﻿:root {
  --bg: #0b0d12;
  --bg-soft: #10141b;
  --panel: #141923;
  --panel-2: #1a2230;
  --border: #283142;
  --text: #f5f7fb;
  --muted: #aab4c6;
  --primary: #ffffff;
  --primary-text: #11161d;
  --link: #8fc3ff;
  --field-bg: #141b27;
  --item-bg: #121721;
  --header-bg: rgba(11, 13, 18, 0.92);
  --shadow: rgba(0, 0, 0, 0.18);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

textarea {
  resize: vertical;
  max-width: 100%;
}

body.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.modal-open {
  overflow: hidden;
}

/* =========================
   PUBLIC WEBSITE
========================= */

.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.site-mobile-row {
  display: contents;
}

.site-menu-toggle {
  display: none;
}

.site-mobile-menu {
  display: contents;
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
}

.btn-primary:hover {
  opacity: 0.93;
}

.btn-secondary {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--panel-2);
}

.site-main {
  flex: 1;
}

.hero-section {
  padding: 90px 24px 70px;
}

.compact-hero {
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, #121721 0%, #0e131b 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 32px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.login-card {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 0 18px;
}

.hero-content p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.login-actions {
  align-items: stretch;
}

.employee-login-card {
  max-width: 640px;
}

.password-requirements {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(8, 13, 21, 0.62);
  text-align: left;
}

.password-requirement {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.password-rule-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: transparent;
  background: rgba(15, 23, 42, 0.88);
}

.password-rule-icon::before {
  content: "";
}

.password-requirement.is-met {
  color: #d7fbe8;
}

.password-requirement.is-met .password-rule-icon {
  border-color: rgba(74, 222, 128, 0.62);
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.password-requirement.is-met .password-rule-icon::before {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.login-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.login-method-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(12, 17, 26, 0.72);
}

.login-method-stack {
  display: grid;
  gap: 18px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.login-email-panel {
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(12, 17, 26, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 15px;
  background: rgba(8, 12, 19, 0.86);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-field input::placeholder {
  color: rgba(148, 163, 184, 0.62);
}

.login-field input:focus {
  border-color: rgba(96, 165, 250, 0.78);
  background: rgba(11, 18, 32, 0.95);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.login-submit-btn,
.login-discord-btn {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
}

.login-discord-panel {
  display: flex;
  justify-content: center;
}

.employee-password-box {
  display: inline-flex;
  width: fit-content;
  padding: 12px 16px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.employee-create-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.employee-create-card > .text-input {
  max-width: 520px;
}

.employee-create-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.employee-create-card .form-label {
  margin-top: 8px;
  margin-bottom: 4px;
}

.employee-create-card .section-header-inline + .form-label {
  margin-top: 4px;
}

.employee-create-card .employee-role-grid {
  margin-top: 14px;
}

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

.employee-role-grid.compact {
  grid-template-columns: repeat(4, max-content);
}

.employee-role-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(12, 17, 26, 0.58);
  color: var(--text);
  font-weight: 800;
}

.employee-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.employee-search {
  max-width: 520px;
}

.employee-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(12, 17, 26, 0.62);
}

.employee-card-main {
  display: grid;
  gap: 8px;
}

.employee-card-clickable {
  cursor: pointer;
}

.employee-card-clickable:hover {
  background: rgba(96, 165, 250, 0.08);
}

.employee-card-clickable:focus {
  outline: 2px solid rgba(96, 165, 250, 0.5);
  outline-offset: -2px;
}

.employee-role-line,
.employee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-detail-modal {
  max-height: min(82vh, 820px);
  overflow: auto;
}

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

.employee-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.employee-detail-role-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 12, 19, 0.48);
}

.employee-detail-role-panel h3 {
  margin: 0;
}

.employee-role-grid.modal-roles {
  grid-template-columns: 1fr;
}

.employee-detail-section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.employee-detail-section h3 {
  margin: 0;
}

.employee-detail-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 12, 19, 0.48);
}

.employee-detail-row span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.features-section,
.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 70px;
}

.section-title {
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

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

.feature-card,
.faq-item {
  background: linear-gradient(180deg, #121721 0%, #0f141d 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
}

.feature-card h3,
.faq-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.sponsor-grid {
  display: grid;
  gap: 18px;
}

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

.social-card {
  display: grid;
  grid-template-rows: auto minmax(82px, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #121721 0%, #0e141d 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  transition: 0.24s ease;
  min-height: 138px;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.social-youtube {
  background:
    radial-gradient(circle at top right, rgba(255, 59, 48, 0.18), transparent 34%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-vod {
  background:
    radial-gradient(circle at top right, rgba(231, 76, 60, 0.16), transparent 34%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-twitch {
  background:
    radial-gradient(circle at top right, rgba(145, 70, 255, 0.2), transparent 34%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-tiktok {
  background:
    radial-gradient(circle at top right, rgba(0, 242, 234, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 0, 80, 0.14), transparent 24%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-instagram {
  background:
    radial-gradient(circle at top right, rgba(253, 29, 29, 0.14), transparent 24%),
    radial-gradient(circle at top left, rgba(252, 176, 69, 0.14), transparent 26%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-discord {
  background:
    radial-gradient(circle at top right, rgba(88, 101, 242, 0.2), transparent 34%),
    radial-gradient(circle at top left, rgba(121, 134, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.social-card:hover.social-youtube,
.social-card:hover.social-vod {
  border-color: rgba(255, 59, 48, 0.35);
}

.social-card:hover.social-twitch {
  border-color: rgba(145, 70, 255, 0.35);
}

.social-card:hover.social-tiktok {
  border-color: rgba(0, 242, 234, 0.28);
}

.social-card:hover.social-instagram {
  border-color: rgba(252, 176, 69, 0.32);
}

.social-card:hover.social-discord {
  border-color: rgba(88, 101, 242, 0.36);
}

.social-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.social-chip {
  background: rgba(255, 255, 255, 0.06);
}

.social-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.social-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 420px;
  font-size: 13px;
  display: -webkit-box;
  min-height: calc(2 * 1.45em);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.social-cta {
  justify-self: start;
  width: 170px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.setup-hero-card,
.faq-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(103, 134, 198, 0.14), transparent 34%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.setup-hero-card::before,
.faq-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, transparent 100%);
  pointer-events: none;
}

.setup-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.setup-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.setup-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.setup-legend-dot.yellow {
  background: #ffbd59;
  box-shadow: 0 0 14px rgba(255, 189, 89, 0.38);
}

.setup-legend-dot.blue {
  background: #4c81dc;
  box-shadow: 0 0 14px rgba(76, 129, 220, 0.38);
}

.section-title.compact {
  margin-bottom: 0;
}

.setup-summary-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(76, 129, 220, 0.14), transparent 30%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.setup-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.setup-summary-item {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.setup-summary-item span {
  color: var(--muted);
  font-size: 13px;
}

.setup-summary-item strong {
  font-size: 20px;
  line-height: 1.3;
}

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

.setup-spec-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 148px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(76, 129, 220, 0.16), transparent 30%),
    linear-gradient(180deg, #121721 0%, #0f141d 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: 0.24s ease;
}

.setup-spec-card.status-yellow {
  background:
    radial-gradient(circle at top right, rgba(255, 213, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #121721 0%, #0f141d 100%);
}

.setup-swap-card {
  cursor: pointer;
}

.setup-swap-card:hover,
.setup-swap-card:focus-visible {
  border-color: rgba(255, 225, 0, 0.5);
  outline: none;
}

.setup-swap-preview {
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  line-height: 1.45;
}

.setup-spec-card::after,
.setup-monitor-card::after {
  content: "";
  position: absolute;
  top: 26px;
  right: 22px;
  width: clamp(70px, 24%, 110px);
  height: 14px;
  border-radius: 999px;
  pointer-events: none;
}

.setup-spec-card.status-blue::after,
.setup-monitor-card.status-blue::after {
  background: #11b1cd;
  box-shadow: 0 0 18px rgba(17, 177, 205, 0.32);
}

.setup-spec-card.status-yellow::after,
.setup-monitor-card.status-yellow::after {
  background: #ffe100;
  box-shadow: 0 0 18px rgba(255, 225, 0, 0.34);
}

.setup-spec-label,
.setup-spec-card h3,
.setup-monitor-badge,
.setup-monitor-card h3 {
  position: relative;
  z-index: 1;
}

.setup-spec-card:hover,
.setup-monitor-card:hover,
.faq-pretty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.setup-spec-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #182131;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.setup-spec-card h3,
.setup-monitor-card h3,
.faq-pretty-card h3 {
  margin: 0;
  font-size: 24px;
}

.setup-spec-card p,
.setup-monitor-card p,
.faq-pretty-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.setup-product-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.setup-product-card:focus-visible {
  outline: 2px solid rgba(143, 195, 255, 0.8);
  outline-offset: 3px;
}

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

.setup-monitor-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: 0.24s ease;
}

.setup-monitor-card.main {
  background:
    radial-gradient(circle at top right, rgba(76, 129, 220, 0.16), transparent 30%),
    linear-gradient(180deg, #121721 0%, #0f141d 100%);
}

.setup-monitor-card.secondary {
  background:
    radial-gradient(circle at top right, rgba(255, 189, 89, 0.12), transparent 30%),
    linear-gradient(180deg, #121721 0%, #0f141d 100%);
}

.setup-monitor-badge,
.faq-pretty-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.faq-pretty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.faq-pretty-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(95, 131, 203, 0.12), transparent 32%),
    linear-gradient(180deg, #121721 0%, #0f141d 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: 0.24s ease;
}

details.faq-pretty-card {
  align-content: start;
}

.faq-pretty-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

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

.faq-pretty-card summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #cfe0ff;
  font-size: 22px;
  line-height: 1;
}

.faq-pretty-card[open] summary::after {
  content: "-";
}

.faq-pretty-card[open] {
  border-color: rgba(95, 131, 203, 0.34);
}

.sponsor-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(255, 98, 45, 0.18), transparent 34%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
  transition: 0.24s ease;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 98, 45, 0.35);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
}

.sponsor-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sponsor-chip {
  background: rgba(255, 255, 255, 0.06);
}

.sponsor-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

.sponsor-copy h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.sponsor-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 720px;
}

.sponsor-cta {
  justify-self: start;
  inline-size: 170px;
  text-align: center;
}

.stream-public-hero {
  padding-top: 68px;
}

.stream-public-hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(86, 122, 195, 0.14), transparent 34%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.stream-public-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, transparent 100%);
  pointer-events: none;
}

.stream-public-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stream-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  isolation: isolate;
}

.stream-public-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: 0.24s ease;
}

.stream-public-question {
  background:
    radial-gradient(circle at top right, rgba(88, 146, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.stream-public-confession {
  background:
    radial-gradient(circle at top right, rgba(255, 122, 163, 0.14), transparent 28%),
    linear-gradient(180deg, #121721 0%, #0e141d 100%);
}

.stream-public-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stream-public-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-public-card h3 {
  margin: 0;
  font-size: 32px;
}

.stream-public-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================
   STREAM RUN OVERLAY
========================= */

.stream-run-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(45, 69, 108, 0.22), transparent 34%),
    linear-gradient(180deg, #111821 0%, #070b10 100%);
  color: #f8fbff;
}

.stream-run-app {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 58px;
  padding: 64px;
  text-align: center;
}

.stream-run-app h1 {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(42px, 4.4vw, 82px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.stream-run-time {
  font-size: clamp(92px, 10vw, 190px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.stream-run-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 58px;
}

.stream-run-stat {
  display: grid;
  gap: 14px;
  min-width: 210px;
}

.stream-run-stat > span {
  color: rgba(248, 251, 255, 0.68);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stream-run-stat strong {
  color: #ffffff;
  font-size: clamp(34px, 3vw, 54px);
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stream-run-heart-rate {
  min-width: 240px;
}

.stream-run-divider {
  width: 1px;
  height: 72px;
  background: rgba(248, 251, 255, 0.28);
}

.stream-run-debug {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 420px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(124, 166, 225, 0.32);
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.86);
  color: #b9cff0;
  font: 700 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: left;
  white-space: pre-wrap;
}

.pulse-sender-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 116, 199, 0.24), transparent 38%),
    linear-gradient(180deg, #101824 0%, #060a10 100%);
  color: #f8fbff;
}

.pulse-sender-app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pulse-sender-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(124, 166, 225, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 36, 55, 0.96), rgba(9, 15, 24, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.pulse-sender-kicker,
.pulse-sender-note {
  margin: 0;
  color: #9fbee8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pulse-sender-card h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.pulse-sender-copy {
  margin: 0;
  color: #b9cff0;
  font-size: 16px;
  line-height: 1.5;
}

.pulse-sender-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 24px 18px;
  border: 1px solid rgba(124, 166, 225, 0.2);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.7);
}

.pulse-sender-value strong {
  font-size: 86px;
  line-height: 0.9;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.pulse-sender-value span {
  color: #b9cff0;
  font-size: 22px;
  font-weight: 900;
}

.pulse-sender-status {
  min-height: 22px;
  color: #b9cff0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.pulse-sender-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(178, 209, 255, 0.4);
  border-radius: 14px;
  background: #edf5ff;
  color: #0c1522;
  font-size: 16px;
  font-weight: 900;
}

.pulse-sender-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pulse-sender-button.is-secondary {
  background: rgba(18, 31, 50, 0.94);
  color: #f8fbff;
}

.pulse-sender-manual {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) 1fr;
  gap: 10px;
}

.pulse-sender-manual input {
  min-width: 0;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(124, 166, 225, 0.24);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.78);
  color: #f8fbff;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.pulse-sender-gps {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(124, 166, 225, 0.2);
  border-radius: 18px;
  background: rgba(5, 10, 18, 0.58);
}

.pulse-sender-gps div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulse-sender-gps strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.pulse-sender-gps span {
  color: #b9cff0;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 560px) {
  .pulse-sender-body {
    min-height: 100dvh;
    overflow-x: hidden;
  }

  .pulse-sender-app {
    min-height: 100dvh;
    place-items: stretch;
    padding: 12px;
  }

  .pulse-sender-card {
    width: 100%;
    min-height: calc(100dvh - 24px);
    align-content: start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .pulse-sender-kicker,
  .pulse-sender-note {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }

  .pulse-sender-card h1 {
    font-size: 30px;
  }

  .pulse-sender-copy {
    font-size: 15px;
  }

  .pulse-sender-value {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .pulse-sender-value strong {
    font-size: clamp(58px, 18vw, 78px);
  }

  .pulse-sender-value span {
    font-size: 20px;
  }

  .pulse-sender-button {
    min-height: 58px;
    border-radius: 16px;
    font-size: 16px;
  }

  .pulse-sender-gps {
    padding: 12px;
    border-radius: 16px;
  }

  .pulse-sender-gps div {
    align-items: flex-start;
  }

  .pulse-sender-gps span {
    max-width: 72%;
    line-height: 1.35;
  }

  .pulse-center-toggle {
    margin-top: 8px;
  }

  .pulse-center-toggle summary {
    min-height: 54px;
    padding: 0 14px;
  }

  .pulse-center-reset-form {
    gap: 14px;
    padding: 14px;
  }

  .pulse-center-reset-form label {
    font-size: 16px;
    line-height: 1.35;
  }

  .pulse-center-reset-form p {
    font-size: 13px;
  }

  .pulse-center-reset-form input {
    min-height: 58px;
    font-size: 16px;
  }

  .pulse-center-reset-form .pulse-sender-button {
    white-space: normal;
    line-height: 1.25;
    padding: 10px 14px;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1116;
  margin-top: 20px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left a {
  color: var(--muted);
}

.footer-left a:hover {
  color: var(--text);
}

.footer-right {
  color: var(--muted);
}

.stream-admin-body {
  background:
    radial-gradient(circle at top right, rgba(72, 104, 176, 0.16), transparent 26%),
    radial-gradient(circle at left 20%, rgba(255, 255, 255, 0.04), transparent 20%),
    linear-gradient(180deg, #090b10 0%, #0b0d12 100%);
}

.stream-admin-hero {
  position: relative;
  overflow: hidden;
}

.stream-admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.35;
  pointer-events: none;
}

.stream-admin-hero-card {
  position: relative;
  z-index: 1;
}

.stream-admin-section {
  position: relative;
  z-index: 1;
}

.stream-admin-empty {
  max-width: 900px;
  margin: 0 auto;
}

.confession-showcase {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.confession-stage,
.stream-admin-list-card,
.stream-question-card {
  background: linear-gradient(180deg, #101216 0%, #0b0d11 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.confession-stage {
  position: relative;
  border-radius: 30px;
  padding: 34px 76px 28px;
  overflow: hidden;
  min-height: 620px;
}

.confession-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.3;
  pointer-events: none;
}

.confession-stage-header,
.confession-card,
.confession-dots,
.confession-nav {
  position: relative;
  z-index: 1;
}

.confession-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.confession-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d7deec;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.confession-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.confession-stage-label,
.confession-status,
.stream-question-index,
.stream-question-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d7deec;
  font-size: 13px;
  font-weight: 700;
}

.confession-card {
  min-height: 430px;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.84);
  background: rgba(15, 17, 22, 0.92);
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.confession-card h2 {
  margin: 0 0 28px;
  font-size: 54px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.confession-card p {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(21px, 2.2vw, 34px);
  line-height: 1.45;
  color: #f5f7fb;
  white-space: pre-wrap;
}

.confession-stage-intro .confession-card {
  background:
    radial-gradient(circle at top, rgba(255, 15, 120, 0.08), transparent 45%),
    rgba(15, 17, 22, 0.94);
}

.confession-stage-intro .confession-card h2 {
  font-size: clamp(42px, 5vw, 76px);
}

.confession-stage-intro .confession-card p {
  max-width: 950px;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.5;
  color: #eef2fb;
}

.confession-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #ff0f78;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(255, 15, 120, 0.24);
}

.confession-nav:hover {
  filter: brightness(1.08);
}

.confession-nav-prev {
  left: 22px;
}

.confession-nav-next {
  right: 22px;
}

.confession-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.confession-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  padding: 34px 88px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.confession-stage:fullscreen .confession-card {
  min-height: 0;
  width: min(62vw, 980px);
  min-width: 760px;
  height: min(52vh, 520px);
  margin: 130px 0 0 110px;
  padding: 28px 34px;
  max-height: none;
}

.confession-stage:fullscreen .confession-card p {
  max-width: 760px;
  font-size: clamp(24px, 2.15vw, 40px);
}

.confession-stage:fullscreen .confession-card h2 {
  font-size: clamp(40px, 3.2vw, 62px);
}

.confession-stage:fullscreen .confession-nav-prev {
  left: 56px;
}

.confession-stage:fullscreen .confession-nav-next {
  right: auto;
  left: min(62vw, 980px);
  margin-left: 126px;
}

.confession-stage:fullscreen .confession-dots {
  width: min(62vw, 980px);
  margin: 18px 0 0 110px;
}

.confession-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 15, 120, 0.28);
  cursor: pointer;
}

.confession-dot.active {
  background: #ff0f78;
}

.stream-admin-list-card {
  border-radius: 24px;
  padding: 22px;
  min-height: 620px;
}

.stream-admin-list-head {
  margin-bottom: 18px;
}

.stream-admin-list {
  display: grid;
  gap: 12px;
}

.stream-admin-list-item {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  display: grid;
  gap: 10px;
}

.stream-admin-list-item:hover,
.stream-admin-list-item.active {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.stream-admin-list-select {
  all: unset;
  display: grid;
  gap: 10px;
  cursor: pointer;
}

.stream-admin-list-index {
  font-weight: 800;
}

.stream-admin-list-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-admin-list-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stream-admin-delete-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.stream-admin-delete-btn:hover {
  background: rgba(255, 15, 120, 0.16);
  border-color: rgba(255, 15, 120, 0.34);
}

.stream-admin-list-copy {
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stream-admin-list-date,
.stream-question-meta {
  color: var(--muted);
  font-size: 14px;
}

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

.stream-question-card {
  border-radius: 24px;
  padding: 24px;
}

.stream-question-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stream-question-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.stream-question-body {
  margin: 0 0 18px;
  color: #edf1f8;
  line-height: 1.7;
  font-size: 17px;
}

.stream-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-bar {
  margin-top: 30px;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1116;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.footer-links-bar {
  grid-column: 2;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-bar a {
  color: #cfd6e4;
  text-decoration: none;
  font-size: 14px;
}

.footer-links-bar a:hover {
  color: #ffffff;
}

.footer-copyright {
  grid-column: 3;
  justify-self: end;
  color: #9aa8c7;
  font-size: 14px;
  white-space: nowrap;
}

body:has(> .layout) {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

body:has(> .layout) .site-footer-bar {
  margin-top: 0;
}

/* =========================
   APP LAYOUT
========================= */

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  background: linear-gradient(180deg, #0f131b 0%, #0a0d12 100%);
  border-right: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
}

.user-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 18px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.small-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.user-name {
  font-weight: 800;
  font-size: 16px;
}

.user-sub {
  color: var(--muted);
  font-size: 14px;
}

.menu-title {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group-toggle {
  position: relative;
}

.nav-group-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.68;
  transform: translateY(-62%) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-group[open] > .nav-group-toggle::after {
  transform: translateY(-34%) rotate(225deg);
}

.nav-group-items {
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.nav-group-items .nav-link {
  font-size: 14px;
  color: rgba(238, 244, 255, 0.84);
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

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

.nav-group-toggle-minecraft::before {
  background-image: url("/img/minecraft-grass-block.png");
  background-size: 28px 28px;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
}

.logout-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
}

.content {
  padding: 28px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-topbar {
  margin-bottom: 0;
}

.dashboard-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(90, 150, 255, 0.2), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(18, 28, 45, 0.98) 0%, rgba(9, 14, 23, 0.98) 100%);
  padding: 28px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.topbar h1 {
  margin: 0;
  font-size: 34px;
}

.top-user-card {
  padding: 12px 16px;
  background: linear-gradient(180deg, #121824 0%, #0d121b 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.top-user-card strong {
  color: var(--text);
}

.dashboard-subtitle {
  margin: 8px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-weight: 600;
}

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

.dashboard-tool-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-overview-panel {
  padding: 22px;
  margin-bottom: 18px;
}

.dashboard-overview-panel .stats-panel-head p,
.dashboard-action-card .section-header-inline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 20px 22px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.dashboard-stat-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(143, 195, 255, 0.32), transparent);
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 195, 255, 0.42);
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(20, 31, 49, 0.96), rgba(10, 15, 24, 0.96));
}

.dashboard-action-card {
  min-height: 126px;
}

.dashboard-accent-stream {
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 27, 43, 0.96) 0%, rgba(10, 15, 24, 0.96) 100%);
}

.dashboard-accent-creator {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 27, 43, 0.96) 0%, rgba(10, 15, 24, 0.96) 100%);
}

.dashboard-accent-games {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 27, 43, 0.96) 0%, rgba(10, 15, 24, 0.96) 100%);
}

.dashboard-streamer-card {
  min-height: auto;
}

/* =========================
   CARDS / CONTENT
========================= */

.card {
  background: linear-gradient(180deg, #10151f 0%, #0c1017 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 20px;
}

.top-gap {
  margin-top: 18px;
}

.info-box {
  padding: 14px 16px;
  background: #13213a;
  border: 1px solid #28497e;
  color: #dbe9ff;
  border-radius: 16px;
}

.error-state {
  background: #351923;
  border-color: #6f2a3a;
  color: #ffd8df;
  margin-bottom: 20px;
  text-align: center;
  justify-items: center;
}

.error-state h3,
.error-state p {
  text-align: center;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--muted);
}

/* =========================
   CHAT / TICKETS
========================= */

.chat-box {
  background: #0b0f16;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  min-height: 450px;
  max-height: 600px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thread-box {
  min-height: 250px;
  max-height: 520px;
}

.bubble {
  max-width: min(82%, 760px);
  width: fit-content;
  min-height: auto;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.bubble.user {
  align-self: flex-end;
  background: #f1f4f8;
  color: #1b2028;
}

.bubble.assistant {
  align-self: flex-start;
  background: #1d2432;
  color: #f7f9fc;
}

.bubble.staff {
  align-self: flex-start;
  background: #2b4f7f;
  color: #ffffff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 14px;
}

.primary-btn,
.ghost-btn,
.inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.primary-btn {
  background: #ffffff;
  color: #11161d;
}

.primary-btn:hover {
  opacity: 0.92;
}

.ghost-btn {
  background: var(--panel);
  border-color: var(--border);
  color: var(--text);
}

.ghost-btn:hover {
  background: var(--panel-2);
}

.inline-btn {
  margin-top: 10px;
  background: #ffffff;
  color: #11161d;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 82, 119, 0.35);
  background: rgba(255, 82, 119, 0.12);
  color: #ffd6de;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.danger-btn:hover {
  background: rgba(255, 82, 119, 0.2);
}

.support-btn {
  min-width: 190px;
}

.text-input,
.text-area,
.dropdown-select,
select {
  width: 100%;
  padding: 13px 14px;
  background: #161c28;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  outline: none;
}

.text-input::placeholder,
.text-area::placeholder {
  color: #7f8aa0;
}

.text-input:focus,
.text-area:focus,
.dropdown-select:focus,
select:focus {
  border-color: #4b6ea8;
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

.ticket-link {
  display: block;
  margin-bottom: 10px;
}

.ticket-link:last-child {
  margin-bottom: 0;
}

.list-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 16px;
}

.list-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.support-hero {
  background:
    radial-gradient(circle at top right, rgba(86, 122, 195, 0.14), transparent 30%),
    linear-gradient(180deg, #10151f 0%, #0c1017 100%);
}

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

.support-hero-stat {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.support-hero-stat span {
  color: var(--muted);
  font-size: 13px;
}

.support-hero-stat strong {
  font-size: 28px;
  line-height: 1;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.support-create-card,
.support-list-card {
  height: 100%;
}

.support-ticket-stack {
  display: grid;
  gap: 12px;
}

.support-ticket-link {
  margin-bottom: 0;
}

.support-ticket-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #131a26 0%, #101620 100%);
  transition: 0.22s ease;
}

.support-ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 195, 255, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.support-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-ticket-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--link);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.evidence-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.evidence-list-head {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #10151f;
  object-fit: cover;
  flex-shrink: 0;
}

.evidence-list-content {
  min-width: 0;
}

.evidence-detail-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-color: rgba(103, 164, 255, 0.2);
  background:
    radial-gradient(circle at 92% 4%, rgba(61, 132, 255, 0.16), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(18, 28, 45, 0.98) 0%, rgba(8, 13, 22, 0.98) 100%);
}

.evidence-detail-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.evidence-hero-content {
  min-width: 0;
}

.evidence-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.evidence-hero-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.evidence-title-row h2 {
  margin: 2px 0 0;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.evidence-case-chip,
.evidence-reason-chip {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid rgba(113, 183, 255, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.13);
  color: #bfd8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.evidence-reason-chip {
  border-color: rgba(45, 212, 191, 0.2);
  background: rgba(20, 184, 166, 0.1);
  color: #a7f3e9;
  font-family: inherit;
}

.evidence-skin-preview {
  width: 112px;
  max-width: 100%;
  aspect-ratio: 0.7 / 1;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(132, 179, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(143, 195, 255, 0.18), transparent 58%),
    linear-gradient(180deg, #182236 0%, #0b111d 100%);
  padding: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 44px rgba(0, 0, 0, 0.22);
}

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

.evidence-meta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 14px 18px 14px 58px;
  border: 1px solid rgba(119, 168, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(104, 164, 255, 0.13), rgba(255, 255, 255, 0.025) 52%),
    #101722;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.evidence-meta-grid .evidence-meta-card:first-child {
  padding-top: 14px;
}

.evidence-meta-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #71b7ff, #2d68ff);
  opacity: 0.9;
}

.evidence-meta-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(133, 184, 255, 0.28);
  background: rgba(42, 93, 172, 0.22);
  color: #bcd7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.evidence-meta-card .list-title {
  margin-bottom: 4px;
  color: #eef5ff;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.evidence-meta-card .list-sub {
  color: #9fbcdf;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
}

.evidence-meta-author .list-sub {
  font-family: inherit;
  color: #b8d2f7;
}

.evidence-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
}

.evidence-form {
  gap: 14px;
}

.evidence-form-panel {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(13, 20, 33, 0.74), rgba(9, 14, 23, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.evidence-form-panel .small-label {
  display: block;
  margin-bottom: 7px;
  color: #92afd7;
  font-weight: 800;
}

.evidence-form-panel .text-input,
.evidence-form-panel .text-area,
.evidence-form-panel select {
  border-color: rgba(127, 170, 232, 0.18);
  background: rgba(4, 9, 17, 0.72);
}

.evidence-form-panel .text-input:focus,
.evidence-form-panel .text-area:focus,
.evidence-form-panel select:focus {
  border-color: rgba(103, 164, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(103, 164, 255, 0.12);
}

.evidence-inline-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.evidence-comment-area {
  min-height: 150px;
}

.evidence-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.attachment-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(103, 164, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(103, 164, 255, 0.08), transparent 28%),
    rgba(5, 10, 18, 0.46);
}

.attachment-panel input[type="file"] {
  padding: 12px;
  cursor: pointer;
}

.attachment-panel input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(103, 164, 255, 0.26);
  border-radius: 10px;
  background: rgba(103, 164, 255, 0.13);
  color: #eaf2ff;
  font-weight: 900;
  cursor: pointer;
}

.attachment-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 25, 39, 0.92), rgba(10, 15, 24, 0.92));
  transition: border-color 0.14s ease, transform 0.14s ease, background 0.14s ease;
}

.attachment-item:hover {
  border-color: rgba(103, 164, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(22, 32, 52, 0.96), rgba(11, 17, 27, 0.96));
  transform: translateY(-1px);
}

.attachment-preview {
  flex: 0 0 58px;
  width: 58px;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(3, 7, 14, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #9fbcdf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.attachment-preview-image {
  appearance: none;
  padding: 0;
  cursor: pointer;
}

.attachment-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-content {
  min-width: 0;
  flex: 1;
}

.attachment-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  word-break: break-all;
  line-height: 1.2;
}

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

.attachment-upload-item {
  border-style: dashed;
}

.attachment-upload-item.is-uploading {
  border-color: rgba(110, 168, 254, 0.55);
}

.attachment-upload-item.is-done {
  border-color: rgba(60, 198, 126, 0.45);
}

.attachment-upload-item.is-failed {
  border-color: rgba(255, 110, 110, 0.55);
}

.attachment-remove-inline {
  appearance: none;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff8b8b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.attachment-remove-inline:hover {
  color: #ffb0b0;
  text-decoration: underline;
}

.evidence-lightbox[hidden] {
  display: none;
}

.evidence-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: clamp(10px, 2vw, 22px);
  background: rgba(3, 7, 14, 0.92);
  backdrop-filter: blur(10px);
}

.evidence-lightbox > img {
  align-self: center;
  justify-self: center;
  max-width: min(96vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.evidence-lightbox-close {
  justify-self: end;
  width: clamp(42px, 5vw, 58px);
  height: clamp(42px, 5vw, 58px);
  border: 0;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.18);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
}

.evidence-lightbox-close:hover {
  background: rgba(6, 12, 22, 0.34);
  filter: brightness(1.08);
  transform: scale(1.04);
}

.evidence-lightbox-close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.42));
}

.evidence-lightbox-nav {
  position: fixed;
  top: 50%;
  z-index: 1001;
  width: clamp(58px, 7vw, 92px);
  height: clamp(58px, 7vw, 92px);
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.14s ease;
}

.evidence-lightbox-nav[hidden] {
  display: none;
}

.evidence-lightbox-nav:hover {
  background: rgba(6, 12, 22, 0.34);
  filter: brightness(1.08);
  transform: translateY(-50%) scale(1.04);
}

.evidence-lightbox-nav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.42));
}

.evidence-lightbox-prev {
  left: clamp(10px, 2vw, 28px);
}

.evidence-lightbox-next {
  right: clamp(10px, 2vw, 28px);
}

.evidence-lightbox-caption {
  justify-self: center;
  max-width: min(100%, 900px);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  word-break: break-word;
}

@media (max-width: 680px) {
  .evidence-lightbox {
    padding: 10px;
  }

  .evidence-lightbox > img {
    max-width: 100%;
    max-height: 82vh;
  }

  .evidence-lightbox-nav {
    top: auto;
    bottom: 18px;
    width: 54px;
    height: 54px;
    transform: none;
  }

  .evidence-lightbox-nav:hover {
    transform: none;
  }

  .evidence-lightbox-prev {
    left: 18px;
  }

  .evidence-lightbox-next {
    right: 18px;
  }

  .evidence-lightbox-caption {
    padding: 0 74px;
    font-size: 13px;
  }
}

.evidence-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.evidence-detail-shell > form.top-gap {
  margin-top: 12px;
}

.settings-page-head {
  max-width: 1220px;
  margin-bottom: 18px;
}

.settings-page-head h1 {
  margin: 0 0 6px;
  font-size: 36px;
  letter-spacing: -0.035em;
}

.settings-page-head p {
  margin: 0;
  color: #93a8c5;
  font-size: 15px;
}

.settings-grid {
  display: grid;
  gap: 16px;
  max-width: 1220px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.25fr);
  gap: 16px;
}

.settings-profile-card,
.settings-security-card,
.settings-access-card {
  padding: 20px;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 24, 38, 0.96), rgba(9, 14, 23, 0.96));
}

.settings-profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.settings-profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  object-fit: cover;
  background: #0b111d;
}

.settings-profile-main h2,
.settings-card-head h2 {
  margin: 3px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.settings-profile-main p {
  margin: 4px 0 0;
  color: #9fb2cf;
}

.settings-section-label {
  color: #88a7d2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-identity-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.settings-identity-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-identity-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-identity-list span,
.settings-action-row span {
  color: #8ea3bf;
  font-size: 14px;
}

.settings-identity-list strong,
.settings-action-row strong {
  color: #eef4ff;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.settings-account-badge {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(103, 164, 255, 0.22);
  border-radius: 999px;
  background: rgba(103, 164, 255, 0.08);
  color: #bdd5fb;
  font-size: 13px;
  font-weight: 900;
}

.settings-action-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.settings-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-action-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.settings-action-row strong,
.settings-action-row span {
  display: block;
}

.settings-action-row span {
  margin-top: 4px;
}

.settings-action-row form {
  margin: 0;
}

.settings-access-card {
  max-width: 1220px;
}

.settings-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.settings-role-list span {
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(10, 15, 24, 0.58);
  color: #dbe8fb;
  font-size: 14px;
  font-weight: 800;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
}

.mini-btn:hover {
  background: #222d40;
}

.mini-btn.danger {
  background: #3a1820;
  border-color: #6e2935;
}

.mini-btn.danger:hover {
  background: #4a1d28;
}

.bubble-text {
  margin-bottom: 10px;
}

.bubble-link {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--link);
  text-decoration: underline;
}

/* =========================
   DASHBOARD
========================= */

.stats-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(86, 122, 195, 0.1), transparent 30%),
    linear-gradient(180deg, #10151f 0%, #0c1017 100%);
}

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

.stats-panel-head h2 {
  margin: 0;
}

.stats-panel-sub {
  color: var(--muted);
  font-size: 14px;
}

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

.stat-card {
  background: linear-gradient(180deg, #172033 0%, #101722 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card span {
  color: var(--muted);
  font-size: 14px;
}

.stat-card strong {
  font-size: 34px;
  line-height: 1;
}

.dashboard-stat-card span {
  color: #b8c9e6;
  font-size: 15px;
  font-weight: 800;
}

.dashboard-stat-card strong {
  font-size: 38px;
  color: #f8fbff;
}

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

.dashboard-card {
  min-height: 190px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(180deg, #10151f 0%, #0c1017 100%);
}

.dashboard-card .section-header-inline {
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dashboard-list-link {
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.dashboard-list-link:hover,
.dashboard-list-link:focus-visible {
  background: rgba(103, 164, 255, 0.08);
  transform: translateX(2px);
}

.inventory-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  min-height: auto;
}

.inventory-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
}

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

.inventory-stat-card {
  min-height: auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #172033 0%, #101722 100%);
}

.inventory-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.inventory-stat-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.inventory-layout-single {
  grid-template-columns: 1fr;
}

.inventory-card {
  min-height: auto;
}

.inventory-menu-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.inventory-list-header {
  align-items: center;
}

.inventory-sort-label {
  color: rgba(203, 214, 235, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-sort-select {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid rgba(92, 112, 148, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(13, 18, 28, 0.98));
  color: var(--text);
  outline: none;
}

.inventory-sort-select:disabled {
  color: rgba(170, 180, 198, 0.52);
  cursor: not-allowed;
}

.inventory-form input,
.inventory-form textarea,
.inventory-search input,
.inventory-move-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(92, 112, 148, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(20, 28, 42, 0.96), rgba(13, 18, 28, 0.98));
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.inventory-form textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

.inventory-form input::placeholder,
.inventory-form textarea::placeholder,
.inventory-search input::placeholder,
.inventory-move-form input::placeholder {
  color: rgba(170, 180, 198, 0.58);
}

.inventory-form input:hover,
.inventory-form textarea:hover,
.inventory-search input:hover,
.inventory-move-form input:hover {
  border-color: rgba(143, 195, 255, 0.5);
}

.inventory-form input:focus,
.inventory-form textarea:focus,
.inventory-search input:focus,
.inventory-move-form input:focus {
  border-color: rgba(143, 195, 255, 0.9);
  background:
    radial-gradient(circle at top left, rgba(143, 195, 255, 0.11), transparent 38%),
    linear-gradient(180deg, rgba(22, 32, 50, 0.98), rgba(13, 18, 28, 0.98));
  box-shadow:
    0 0 0 3px rgba(143, 195, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.inventory-form input[type="number"],
.inventory-move-form input[type="number"] {
  font-weight: 800;
}

.inventory-form .form-label {
  margin-top: 16px;
  margin-bottom: 8px;
  color: rgba(210, 221, 242, 0.82);
  font-size: 0.78rem;
}

.inventory-form .section-header-inline + .form-label {
  margin-top: 12px;
}

.inventory-auto-sku-box {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed rgba(143, 195, 255, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(143, 195, 255, 0.1), transparent 42%),
    rgba(13, 18, 28, 0.78);
}

.inventory-auto-sku-box span {
  color: rgba(203, 214, 235, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-auto-sku-box strong {
  color: var(--text);
  font-size: 0.98rem;
}

.inventory-search input {
  min-height: 50px;
  padding-left: 18px;
  border-radius: 16px;
}

.inventory-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 4px;
}

.inventory-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: end;
}

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

.inventory-location-filter {
  display: grid;
  gap: 7px;
}

.inventory-table-wrap {
  margin-top: 22px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 12, 19, 0.42);
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  vertical-align: middle;
}

.inventory-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-table tbody tr {
  min-height: 72px;
}

.inventory-item-row {
  cursor: pointer;
}

.inventory-item-row:hover {
  background: rgba(143, 195, 255, 0.08);
}

.inventory-item-row:focus {
  outline: 2px solid rgba(143, 195, 255, 0.55);
  outline-offset: -2px;
}

.inventory-table tr:last-child td {
  border-bottom: 0;
}

.low-stock-row {
  background: rgba(255, 79, 138, 0.08);
}

.inventory-move-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 82px minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.inventory-booking-form {
  gap: 14px;
}

.inventory-booking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.inventory-barcode-download {
  justify-self: start;
  width: fit-content;
}

.danger-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 79, 138, 0.45);
  border-radius: 10px;
  background: rgba(255, 79, 138, 0.12);
  color: #ff8ab3;
  font-weight: 900;
  cursor: pointer;
}

.movement-list {
  display: grid;
  gap: 12px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.movement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.inventory-movement-window {
  background:
    radial-gradient(circle at top right, rgba(143, 195, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #10151f 0%, #0a0e15 100%);
}

.inventory-modal[hidden] {
  display: none;
}

.inventory-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.inventory-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(143, 195, 255, 0.08), transparent 36%),
    rgba(3, 7, 18, 0.74);
  backdrop-filter: blur(10px);
}

.inventory-modal-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.inventory-modal-panel-wide {
  width: min(980px, 100%);
}

.task-edit-modal-panel {
  width: min(1500px, calc(100vw - 56px));
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  overflow: hidden;
}

.positive-stock {
  color: #3ddc97;
}

.negative-stock {
  color: #ff6b8f;
}

.empty-table,
.empty-state {
  color: var(--muted);
}

.dashboard-list-item {
  padding: 16px 0;
}

.module-intro-card {
  background:
    radial-gradient(circle at top right, rgba(86, 122, 195, 0.14), transparent 30%),
    linear-gradient(180deg, #10151f 0%, #0c1017 100%);
}

.module-feature-grid,
.meeting-list-grid,
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-feature-card,
.meeting-list-card,
.attendance-card,
.meeting-detail-box {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 36, 0.82);
}

.module-feature-card h3,
.meeting-list-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.module-feature-card p,
.meeting-copy,
.meeting-detail-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.meeting-textarea,
.meeting-protocol-textarea,
.attendance-note {
  min-height: 120px;
}

.meeting-protocol-textarea {
  min-height: 260px;
}

.meeting-list-top,
.meeting-card-footer,
.attendance-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meeting-card-footer {
  margin-top: 14px;
  flex-wrap: wrap;
}

.attendance-card {
  display: grid;
  gap: 12px;
}

.attendance-card-top {
  justify-content: flex-start;
}

.meeting-detail-copy {
  display: grid;
  gap: 12px;
}

.task-create-modal-form {
  display: grid;
  gap: 18px;
}

.task-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.task-date-field,
.task-description-field {
  display: grid;
  gap: 8px;
}

.task-description-field {
  grid-column: 1 / -1;
}

.task-description-field textarea {
  min-height: 130px;
}

.task-hidden-textarea {
  display: none;
}

.task-rich-editor {
  display: block;
  min-height: 220px;
  padding: 16px;
  overflow-y: auto;
  line-height: 1.5;
  color: #dbe9ff;
  background:
    linear-gradient(180deg, rgba(8, 13, 21, 0.98), rgba(6, 10, 17, 0.98));
  border-color: rgba(143, 195, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 0 1px rgba(8, 13, 21, 0.28);
}

.task-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.task-rich-editor ul,
.task-rich-editor ol {
  margin: 0;
  padding-left: 22px;
}

.task-rich-editor li {
  margin: 4px 0;
}

.task-rich-editor > div,
.task-rich-editor > ul,
.task-rich-editor > ol {
  margin-bottom: 6px;
}

.task-editor-check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  font-weight: 700;
}

.task-editor-check-line span {
  flex: 1 1 auto;
}

.task-editor-wishlist-chip {
  margin-left: auto;
}

.task-editor-check-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: #8fc3ff;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(143, 195, 255, 0.22));
}

.task-editor-check-box:not(:checked) {
  opacity: 0.76;
}

.task-description-search {
  min-height: 36px;
  padding: 8px 12px;
}

.task-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 195, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(22, 34, 54, 0.98), rgba(11, 18, 29, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.task-editor-toolbar button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 34px;
  border: 1px solid rgba(143, 195, 255, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(27, 43, 68, 0.96), rgba(13, 20, 32, 0.96));
  color: #e8f2ff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.task-editor-toolbar button:hover,
.task-editor-toolbar button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(143, 195, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(42, 67, 104, 0.98), rgba(18, 29, 47, 0.98));
}

.task-toolbar-underline {
  text-decoration: underline;
}

.task-toolbar-strike {
  text-decoration: line-through;
}

.task-save-row {
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding-top: 12px;
  padding-bottom: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.task-save-row .primary-btn {
  min-width: 260px;
  min-height: 48px;
}

.task-edit-modal {
  display: grid;
  gap: 20px;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(17, 25, 40, 0.98), rgba(9, 14, 22, 0.98));
}

.task-edit-modal > .section-header-inline,
.task-comments-panel > .section-header-inline {
  min-height: 52px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.task-edit-layout {
  display: grid;
  grid-template-columns: minmax(720px, 1fr) minmax(360px, 0.34fr);
  gap: 20px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.task-edit-modal .task-create-modal-form {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.task-edit-modal .task-create-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  height: 100%;
  min-height: 0;
}

.task-edit-modal .text-input,
.task-comments-panel .text-input {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(6, 10, 17, 0.74);
}

.task-edit-modal .task-description-field {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  gap: 10px;
}

.task-edit-modal .task-description-field textarea,
.task-edit-modal .task-rich-editor {
  height: 100%;
  min-height: 420px;
  overflow: auto;
  resize: none;
  padding: 18px;
  line-height: 1.55;
}

.task-comments-panel {
  display: grid;
  align-content: start;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(17, 25, 40, 0.98), rgba(9, 14, 22, 0.98));
}

.task-comments-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.task-comments-toggle {
  display: none;
}

.task-comments-content {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.task-comment-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 12, 19, 0.48);
}

.task-comment-form {
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.task-comment-form textarea {
  min-height: 118px;
  resize: vertical;
}

@media (max-width: 1100px) {
  .wishlist-filter-row {
    grid-template-columns: 1fr;
  }

  .wishlist-release-toggle {
    justify-self: start;
    white-space: normal;
  }

  .wishlist-detail-meta {
    grid-template-columns: 1fr;
  }

  .task-edit-modal-panel {
    height: auto;
    max-height: calc(100vh - 48px);
    overflow: auto;
    width: min(980px, calc(100vw - 32px));
  }

  .task-edit-layout {
    grid-template-columns: 1fr;
    height: auto;
    max-height: calc(100vh - 48px);
    overflow: auto;
  }

  .task-edit-modal {
    height: auto;
    overflow: visible;
    padding: 22px;
  }

  .task-edit-modal .task-create-modal-form,
  .task-edit-modal .task-create-grid,
  .task-edit-modal .task-description-field {
    min-height: 0;
  }

  .task-edit-modal .task-create-grid {
    grid-template-rows: none;
  }

  .task-edit-modal .task-description-field textarea {
    min-height: 360px;
    height: auto;
  }

  .task-comments-panel {
    margin-top: 10px;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 22px;
  }

  .task-comments-toggle {
    display: inline-flex;
  }

  .task-comments-content {
    display: none;
  }

  .task-comments-panel.is-open .task-comments-content {
    display: grid;
  }
}

.task-comment-form .btn {
  width: 100%;
  justify-self: stretch;
}

.wishlist-filter-card {
  min-height: auto;
}

.wishlist-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.wishlist-filter-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  align-items: end;
}

.wishlist-filter-field {
  display: grid;
  gap: 8px;
}

.wishlist-release-toggle {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.wishlist-release-toggle input {
  width: 48px;
  height: 26px;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #121a28;
  position: relative;
  cursor: pointer;
}

.wishlist-release-toggle input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #8fc3ff;
  transition: transform 0.18s ease;
}

.wishlist-release-toggle input:checked::before {
  transform: translateX(22px);
}

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

.wishlist-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.wishlist-card-child {
  border-radius: 18px;
  margin-left: 14px;
  background:
    radial-gradient(circle at top right, rgba(143, 195, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #101724 0%, #090e16 100%);
}

.wishlist-linked-list {
  display: grid;
  gap: 10px;
  align-content: start;
  grid-auto-rows: max-content;
}

.wishlist-detail-panel {
  width: min(980px, calc(100vw - 48px));
}

.wishlist-detail-panel.has-linked-games {
  width: min(1540px, calc(100vw - 48px));
  height: calc(100vh - 96px);
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.wishlist-linked-item {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(9, 14, 22, 0.54);
}

.wishlist-linked-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0b1018;
}

.wishlist-linked-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.wishlist-linked-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.25;
}

.wishlist-linked-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.wishlist-linked-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (min-width: 980px) {
  .wishlist-detail-modal.has-linked-games {
    grid-template-columns: minmax(0, 1fr) 560px;
    align-items: start;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .wishlist-detail-modal.has-linked-games > .section-header-inline {
    grid-column: 1 / -1;
  }

  .wishlist-detail-modal.has-linked-games > :not(.section-header-inline):not(.wishlist-linked-panel) {
    grid-column: 1;
  }

  .wishlist-linked-panel {
    grid-column: 2;
    grid-row: 2 / span 12;
    margin-top: 0;
    align-self: stretch;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(143, 195, 255, 0.1), transparent 38%),
      rgba(9, 14, 22, 0.5);
  }

  .wishlist-linked-panel .wishlist-linked-list {
    max-height: none;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
    align-content: start;
    grid-auto-rows: max-content;
  }

  .wishlist-linked-panel .wishlist-linked-item {
    grid-template-columns: 104px minmax(0, 1fr) 96px;
    align-items: start;
    align-self: start;
  }

  .wishlist-linked-panel .wishlist-linked-actions {
    grid-column: auto;
    display: grid;
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
  }

  .wishlist-linked-panel .wishlist-linked-actions .mini-btn,
  .wishlist-linked-panel .wishlist-linked-actions form {
    width: 100%;
    white-space: nowrap;
  }

  .wishlist-linked-panel .wishlist-linked-actions .mini-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
  }

  .wishlist-linked-panel .wishlist-linked-actions form {
    display: block;
  }

  .wishlist-linked-panel .wishlist-linked-actions form .mini-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .wishlist-linked-item {
    grid-template-columns: 1fr;
  }

  .wishlist-linked-actions {
    justify-content: stretch;
  }

  .wishlist-linked-actions .mini-btn,
  .wishlist-linked-actions form {
    width: 100%;
  }
}

@media (min-width: 1500px) {
  .wishlist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.wishlist-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(143, 195, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #121a27 0%, #0c111a 100%);
}

.wishlist-card-compact {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wishlist-card-compact:hover,
.wishlist-card-compact:focus {
  transform: translateY(-2px);
  border-color: rgba(143, 195, 255, 0.42);
  outline: none;
}

.wishlist-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  background: #0b1018;
}

.wishlist-cover-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.wishlist-card-body {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.wishlist-title-nowrap {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.wishlist-description {
  margin: 4px 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.wishlist-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wishlist-mode-row {
  padding-top: 2px;
}

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

.wishlist-detail-modal {
  display: grid;
  gap: 16px;
}

.wishlist-detail-cover {
  border-radius: 16px;
  border: 1px solid var(--border);
}

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

.wishlist-detail-section {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.wishlist-detail-section + .wishlist-detail-section {
  margin-top: 10px;
}

@media (min-width: 980px) {
  .wishlist-detail-modal.has-linked-games {
    grid-template-columns: minmax(0, 1fr) 560px;
    align-items: start;
  }

  .wishlist-linked-panel {
    grid-column: 2;
    grid-row: 2 / span 12;
    margin-top: 0;
  }
}

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

.tasks-page .content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tasks-page .topbar {
  margin-bottom: 0;
}

.tasks-hero {
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 24, 0.96));
}

.tasks-topbar {
  align-items: center;
}

.kanban-board-card {
  min-height: 0;
  padding: 22px;
  background:
    radial-gradient(circle at 82% 0%, rgba(103, 164, 255, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.96), rgba(8, 13, 21, 0.96));
}

.tasks-page .kanban-board-card {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
}

.tasks-page .kanban-board-card > .section-header-inline {
  min-height: 40px;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.tasks-page .kanban-grid {
  min-height: 0;
  overflow-x: auto;
  padding: 0 2px 10px;
  scrollbar-width: thin;
}

.kanban-empty-summary {
  margin-bottom: 22px;
}

.kanban-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  min-height: 460px;
  max-height: 680px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(143, 195, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 21, 33, 0.92), rgba(8, 13, 21, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.kanban-column-0 {
  border-color: rgba(143, 195, 255, 0.22);
}

.kanban-column-1 {
  border-color: rgba(255, 205, 104, 0.2);
}

.kanban-column-2 {
  border-color: rgba(177, 143, 255, 0.2);
}

.kanban-column-3 {
  border-color: rgba(89, 220, 151, 0.2);
}

.tasks-page .kanban-column {
  min-height: 0;
  max-height: none;
}

@media (max-width: 1200px) {
  .tasks-page .kanban-grid {
    grid-template-columns: repeat(4, minmax(min(420px, calc(100vw - 64px)), 1fr));
  }
}

@media (max-width: 700px) {
  .tasks-hero,
  .kanban-board-card {
    padding: 18px;
  }

  .tasks-page .kanban-grid {
    grid-template-columns: repeat(4, minmax(min(340px, calc(100vw - 48px)), 1fr));
  }
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.kanban-column-head h3 {
  margin: 0;
  font-size: 21px;
}

.kanban-column-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.kanban-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(122, 140, 184, 0.16);
  background: rgba(9, 14, 23, 0.82);
  box-shadow: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.kanban-card:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 195, 255, 0.34);
  background: rgba(13, 20, 32, 0.92);
}

.kanban-card .team-role-list {
  margin-top: 0;
}

.kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.task-meta-row strong {
  color: #dbe9ff;
}

.kanban-copy {
  display: grid;
  gap: 7px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0;
}

.kanban-rendered-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-weight: 700;
}

.kanban-rendered-list li::marker {
  color: #8fc3ff;
  font-weight: 900;
}

.kanban-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  min-height: 28px;
}

.kanban-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
}

.kanban-check-item input {
  width: 16px;
  height: 16px;
  accent-color: #8fc3ff;
}

.task-wishlist-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.task-wishlist-chip:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #eff6ff;
}

.kanban-history {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kanban-history strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.task-card-actions {
  gap: 8px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.task-card-actions .mini-btn {
  min-height: 34px;
  padding: 0 12px;
}

.empty-state.compact {
  min-height: 80px;
  padding: 18px;
}

.section-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-header-inline h2 {
  margin: 0;
}

.muted-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #182131;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   TEAM UI
========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.team-card-btn {
  all: unset;
  cursor: pointer;
  display: block;
}

.team-card {
  background: linear-gradient(180deg, #111722, #0d131d);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  transition: 0.25s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 70%);
  opacity: 0;
  transition: 0.3s;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.team-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s;
}

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}

.team-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.team-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: -6px;
}

.team-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.member-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.member-row-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #131a26;
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s;
}

.role-pill:hover {
  background: #1a2332;
}

.role-pill.muted {
  color: var(--muted);
  border-color: var(--border);
}

/* =========================
   TEAM MODAL / PROFILE POPUP
========================= */

.member-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.member-modal.hidden {
  display: none;
}

.member-modal-card {
  width: min(560px, 100%);
  background: linear-gradient(180deg, #131927 0%, #0d121b 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  position: relative;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  animation: slideUp 0.25s ease;
}

.member-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #151c2a;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: 0.2s;
}

.member-modal-close:hover {
  background: #1d2636;
}

.member-modal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.member-modal-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.member-modal-name {
  font-size: 24px;
  font-weight: 800;
}

.member-modal-username {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

.member-modal-section {
  margin-top: 18px;
}

.member-modal-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.member-modal-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-modal-id {
  color: var(--text);
  font-size: 15px;
  word-break: break-all;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

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

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

  .setup-summary-grid,
  .setup-grid,
  .setup-monitor-grid,
  .faq-pretty-grid {
    grid-template-columns: 1fr;
  }

  .stream-public-grid {
    grid-template-columns: 1fr;
  }

  .confession-showcase,
  .stream-question-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .content {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .stats-grid,
  .inventory-stats-grid,
  .dashboard-tools-grid,
  .content-grid,
  .inventory-layout,
  .support-hero-stats {
    grid-template-columns: 1fr;
  }

  .inventory-search,
  .inventory-filter-bar,
  .inventory-move-form,
  .inventory-form-row,
  .task-create-grid,
  .movement-row {
    grid-template-columns: 1fr;
  }

  .stats-panel-head,
  .section-header-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .evidence-detail-hero,
  .evidence-form-row,
  .evidence-meta-grid,
  .irl-hero,
  .irl-grid,
  .irl-tariff-grid,
  .irl-contract-item {
    grid-template-columns: 1fr;
  }

  .irl-hero-icon {
    width: 160px;
    height: 160px;
    justify-self: center;
    order: -1;
  }

  .irl-contract-item {
    align-items: stretch;
  }

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

  .evidence-meta-author {
    grid-column: 1 / -1;
  }

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

  .login-method-grid,
  .employee-card {
    grid-template-columns: 1fr;
  }

  .employee-detail-layout,
  .employee-detail-stats,
  .employee-detail-grid {
    grid-template-columns: 1fr;
  }

  .employee-create-fields {
    grid-template-columns: 1fr;
  }

  .employee-role-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body {
    overflow-x: hidden;
  }

  body:has(> .layout) {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    display: block;
  }

  .site-header-inner {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-mobile-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .site-menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 38px;
    place-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
  }

  .site-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .site-mobile-menu {
    display: none;
    width: 100%;
    padding-top: 10px;
  }

  .site-mobile-menu.is-open {
    display: grid;
    gap: 10px;
  }

  .site-nav {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .site-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  .site-actions,
  .hero-buttons,
  .login-actions {
    width: 100%;
  }

  .site-actions .btn,
  .hero-buttons .btn,
  .login-actions .btn {
    flex: 1 1 160px;
  }

  .hero-section {
    padding: 42px 14px 36px;
  }

  .hero-content {
    padding: 30px 18px;
    border-radius: 22px;
  }

  .hero-content h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .site-footer {
    padding: 0;
  }

  .site-footer-inner {
    display: grid;
    justify-content: center;
    justify-items: center;
    gap: 6px;
    padding: 10px 14px;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    font-size: 12px;
  }

  .footer-left {
    justify-content: center;
    gap: 14px;
    flex-wrap: nowrap;
  }

  .footer-optional-link {
    display: none;
  }

  .site-footer-bar {
    padding: 8px 10px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-links-bar {
    grid-column: auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    overflow-x: visible;
    white-space: nowrap;
  }

  .footer-links-bar a,
  .footer-copyright {
    font-size: 12px;
  }

  .footer-copyright {
    grid-column: auto;
    justify-self: center;
  }

  .layout {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .sidebar {
    padding: 12px;
    gap: 10px;
    background:
      linear-gradient(90deg, rgba(16, 21, 31, 0.96), rgba(10, 13, 18, 0.96)),
      radial-gradient(circle at top left, rgba(143, 195, 255, 0.12), transparent 42%);
    backdrop-filter: blur(14px);
  }

  .sidebar > div {
    min-width: 0;
  }

  .user-box {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .avatar {
    width: 50px;
    height: 50px;
  }

  .user-name,
  .user-sub {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-title {
    display: none;
  }

  .nav {
    flex-direction: row;
    gap: 8px;
    margin: 0 -12px;
    padding: 2px 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    white-space: nowrap;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .nav-link.active {
    background: #f5f7fb;
    border-color: #f5f7fb;
    color: #10151f;
  }

  .logout-btn {
    display: none;
  }

  .content {
    padding: 14px;
  }

  .card {
    border-radius: 20px;
  }

  .dashboard-hero,
  .topbar {
    margin-bottom: 14px;
  }

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

  .confession-stage {
    padding: 26px 18px 24px;
    min-height: auto;
  }

  .confession-nav {
    position: static;
    transform: none;
    margin-top: 18px;
  }

  .confession-stage-header {
    flex-direction: column;
  }

  .confession-card {
    min-height: 360px;
    padding: 28px 20px;
  }

  .confession-card h2 {
    font-size: 34px;
  }

  .confession-card p {
    font-size: 20px;
  }

  .confession-dots {
    margin-top: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .bubble {
    max-width: 100%;
  }

  .stream-public-card {
    padding: 20px;
  }

  .stream-public-card h3 {
    font-size: 26px;
  }

  .evidence-actions {
    justify-content: stretch;
  }

  .evidence-actions .ghost-btn,
  .evidence-actions .primary-btn {
    width: 100%;
  }

  .support-ticket-top,
  .evidence-list-head,
  .meeting-card-footer,
  .attendance-card-top,
  .kanban-card-top,
  .settings-domain-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .support-ticket-card,
  .evidence-list-item,
  .attachment-item {
    gap: 10px;
  }

  .evidence-detail-hero {
    text-align: center;
  }

  .evidence-title-row {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .evidence-hero-chips {
    justify-content: flex-start;
  }

  .evidence-detail-hero .evidence-meta-grid {
    text-align: center;
  }

  .evidence-detail-hero .evidence-meta-grid .list-item {
    min-width: 0;
    padding: 12px;
  }

  .evidence-detail-hero .evidence-meta-grid .evidence-meta-card {
    padding: 14px 14px 14px 54px;
    text-align: left;
  }

  .evidence-detail-hero .evidence-meta-grid .list-title {
    font-size: 16px;
    line-height: 1.2;
  }

  .evidence-detail-hero .evidence-meta-grid .evidence-meta-card .list-title {
    font-size: 12px;
  }

  .evidence-detail-hero .evidence-meta-grid .list-sub {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
  }

  .evidence-skin-preview {
    margin: 0 auto;
  }

  .evidence-form-panel {
    padding: 12px;
  }

  .attachment-preview {
    flex-basis: 50px;
    width: 50px;
    height: 42px;
  }

  .evidence-inline-input {
    grid-template-columns: 1fr;
  }

  .text-input,
  .text-area,
  select,
  button,
  .primary-btn,
  .ghost-btn,
  .danger-btn,
  .logout-btn {
    max-width: 100%;
  }
}

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

  .team-card {
    padding: 16px;
  }

  .member-modal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .member-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-modal-avatar {
    width: 70px;
    height: 70px;
  }

  .member-modal-name {
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .content {
    padding: 10px;
  }

  .card {
    padding: 14px;
    border-radius: 18px;
  }

  .sidebar {
    padding: 10px;
  }

  .nav {
    margin: 0 -10px;
    padding-inline: 10px;
  }

  .nav-link {
    font-size: 14px;
    padding: 9px 11px;
  }

  .topbar h1 {
    font-size: 24px;
  }

  .top-user-card,
  .settings-quick-grid,
  .settings-domain-actions {
    width: 100%;
  }

  .settings-quick-grid .ghost-btn,
  .settings-quick-grid .primary-btn,
  .settings-domain-actions .ghost-btn,
  .settings-domain-actions .primary-btn {
    width: 100%;
  }

  .settings-page-head {
    max-width: none;
  }

  .settings-page-head h1 {
    font-size: 32px;
  }

  .settings-grid {
    max-width: none;
  }

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

  .settings-profile-card,
  .settings-security-card,
  .settings-access-card {
    padding: 16px;
  }

  .settings-card-head,
  .settings-action-row,
  .settings-profile-main {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .settings-action-row form,
  .settings-action-row .btn {
    width: 100%;
  }

  .attachment-panel {
    padding: 12px;
    border-radius: 18px;
  }

  .attachment-item {
    padding: 12px;
    align-items: flex-start;
  }

  .chat-box {
    padding: 12px;
  }

  .user-box {
    padding: 12px;
  }
}

.twitch-follower-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.twitch-follower-scroll {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
  display: grid;
  gap: 10px;
  scrollbar-color: rgba(145, 70, 255, 0.48) rgba(12, 18, 28, 0.8);
  scrollbar-width: thin;
}

.twitch-follower-scroll::-webkit-scrollbar {
  width: 8px;
}

.twitch-follower-scroll::-webkit-scrollbar-track {
  background: rgba(12, 18, 28, 0.8);
  border-radius: 999px;
}

.twitch-follower-scroll::-webkit-scrollbar-thumb {
  background: rgba(145, 70, 255, 0.48);
  border-radius: 999px;
}

.follower-number-badge {
  min-width: 94px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(145, 70, 255, 0.22), rgba(57, 94, 255, 0.14));
  border: 1px solid rgba(145, 70, 255, 0.28);
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.twitch-follower-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.twitch-follower-meta span {
  color: rgba(203, 214, 235, 0.74);
  font-size: 0.86rem;
}

.twitch-follower-meta strong {
  color: #fff;
  font-size: 0.95rem;
}

.form-label {
  display: block;
  color: rgba(203, 214, 235, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   PROFESSIONAL POLISH
========================= */

:root {
  --bg: #070a0f;
  --bg-soft: #0b1018;
  --panel: #111827;
  --panel-2: #162033;
  --panel-3: #0e1522;
  --border: rgba(127, 146, 182, 0.2);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #9fb0cc;
  --muted-2: #6f819e;
  --primary: #f8fafc;
  --primary-text: #07111f;
  --accent: #67a4ff;
  --accent-soft: rgba(103, 164, 255, 0.14);
  --field-bg: rgba(15, 23, 42, 0.92);
  --item-bg: rgba(17, 24, 39, 0.74);
  --header-bg: rgba(7, 10, 15, 0.86);
  --shadow: rgba(0, 0, 0, 0.28);
}

html {
  scrollbar-color: rgba(103, 164, 255, 0.34) rgba(8, 12, 19, 0.96);
  scrollbar-width: thin;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(103, 164, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #070a0f 0%, #090d14 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::-webkit-scrollbar,
.content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.kanban-column-body::-webkit-scrollbar,
.twitch-follower-scroll::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.kanban-column-body::-webkit-scrollbar-track,
.twitch-follower-scroll::-webkit-scrollbar-track {
  background: rgba(8, 12, 19, 0.88);
}

body::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.kanban-column-body::-webkit-scrollbar-thumb,
.twitch-follower-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(103, 164, 255, 0.46), rgba(75, 100, 150, 0.34));
  border: 2px solid rgba(8, 12, 19, 0.88);
  border-radius: 999px;
}

.site-header {
  background: var(--header-bg);
  border-bottom-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.site-header-inner {
  max-width: 1240px;
}

.site-logo {
  letter-spacing: -0.02em;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.nav-link {
  font-weight: 750;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav a:hover {
  background: rgba(148, 163, 184, 0.09);
}

.btn,
.primary-btn,
.ghost-btn,
.inline-btn,
.danger-btn,
.logout-btn {
  border-radius: 12px;
  box-shadow: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.inline-btn:hover,
.danger-btn:hover,
.logout-btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.primary-btn,
.inline-btn {
  background: linear-gradient(180deg, #ffffff 0%, #dce8f8 100%);
  color: #07111f;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-secondary,
.ghost-btn,
.logout-btn {
  background: rgba(17, 24, 39, 0.76);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.ghost-btn:hover,
.logout-btn:hover {
  background: rgba(24, 34, 52, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
}

.pulse-center-toggle {
  margin-top: 16px;
  border: 1px solid rgba(124, 166, 225, 0.18);
  border-radius: 14px;
  background: rgba(8, 14, 24, 0.42);
  overflow: hidden;
}

.pulse-center-toggle[open] {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(9, 15, 24, 0.78);
}

.pulse-center-toggle summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.pulse-center-toggle[open] summary {
  border-bottom: 1px solid rgba(124, 166, 225, 0.16);
}

.pulse-center-toggle summary::-webkit-details-marker {
  display: none;
}

.pulse-center-reset-form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pulse-center-reset-form label {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.pulse-center-reset-form p {
  margin: -4px 0 2px;
  color: #b9cff0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.pulse-center-reset-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(124, 166, 225, 0.24);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.76);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.pulse-center-reset-form button:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.pulse-center-reset-form button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.dashboard-tool-media {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
}

.dashboard-tool-media img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.dashboard-tool-media p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.irl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.irl-hero-copy h1 {
  margin: 6px 0 10px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1;
}

.irl-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.irl-hero-icon {
  width: 220px;
  height: 220px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.34));
}

.irl-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.irl-summary-grid div {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 166, 225, 0.2);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.44);
}

.irl-summary-grid span,
.irl-tariff-card span,
.irl-contract-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.irl-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.irl-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.irl-card-wide {
  min-width: 0;
}

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

.irl-tariff-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(124, 166, 225, 0.18);
  border-radius: 16px;
  background: rgba(5, 10, 18, 0.46);
}

.irl-tariff-card h3,
.irl-contract-item h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.irl-tariff-card strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.irl-tariff-card p,
.irl-contract-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.irl-tariff-card a {
  align-self: end;
  color: #9fbee8;
  font-weight: 900;
  text-decoration: none;
}

.irl-contract-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.irl-contract-form input,
.irl-contract-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(124, 166, 225, 0.24);
  border-radius: 12px;
  background: rgba(5, 10, 18, 0.76);
  color: var(--text);
  font-weight: 800;
}

.irl-contract-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.irl-contract-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(124, 166, 225, 0.16);
  border-radius: 16px;
  background: rgba(5, 10, 18, 0.42);
}

.irl-contract-item strong {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  white-space: nowrap;
}

.success-banner,
.error-banner {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 900;
}

.success-banner {
  border: 1px solid rgba(74, 222, 128, 0.28);
  background: rgba(20, 83, 45, 0.26);
  color: #bbf7d0;
}

.error-banner {
  border: 1px solid rgba(248, 113, 113, 0.32);
  background: rgba(127, 29, 29, 0.26);
  color: #fecaca;
}

.hero-section {
  padding-top: 76px;
}

.hero-content,
.setup-hero-card,
.faq-hero-card,
.sponsor-card,
.stream-public-card,
.feature-card,
.faq-item,
.card,
.dashboard-card,
.dashboard-tool-card,
.employee-card,
.setup-summary-card,
.setup-spec-card,
.setup-monitor-card,
.faq-pretty-card,
.social-card {
  border-color: var(--border);
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(18, 27, 43, 0.96) 0%, rgba(10, 15, 24, 0.96) 100%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-content,
.card,
.dashboard-hero {
  border-radius: 22px;
}

.hero-content h1,
.topbar h1,
.section-title h2,
.stream-public-card h3,
.sponsor-copy h3 {
  letter-spacing: -0.035em;
}

.hero-content p,
.section-title p,
.card p,
.list-sub,
.setup-spec-card p,
.setup-monitor-card p,
.faq-pretty-card p {
  color: var(--muted);
}

.layout {
  background:
    radial-gradient(circle at 78% 8%, rgba(79, 128, 213, 0.08), transparent 34%),
    linear-gradient(180deg, #070a0f 0%, #080c13 100%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(12, 17, 26, 0.98) 0%, rgba(6, 10, 16, 0.98) 100%);
  border-right-color: rgba(148, 163, 184, 0.16);
}

.user-box {
  background:
    radial-gradient(circle at top left, rgba(103, 164, 255, 0.13), transparent 38%),
    linear-gradient(180deg, rgba(22, 32, 51, 0.9), rgba(12, 18, 29, 0.9));
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-link {
  color: rgba(238, 244, 255, 0.92);
  border-radius: 12px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(103, 164, 255, 0.1);
  border-color: rgba(103, 164, 255, 0.22);
  color: #ffffff;
}

.content {
  padding: 28px 30px 34px;
  font-size: 16px;
}

.content p,
.content li,
.content .empty-state,
.content .list-sub {
  font-size: 15px;
  line-height: 1.55;
}

.content .eyebrow,
.content .muted-chip,
.content .top-user-card {
  font-size: 14px;
}

.content .topbar h1 {
  font-size: 36px;
}

.dashboard-hero {
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.13), transparent 32%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(10, 15, 24, 0.94));
  border: 1px solid var(--border);
}

.top-user-card,
.muted-chip,
.role-chip,
.setup-spec-label,
.setup-monitor-badge,
.faq-pretty-index,
.stream-question-status,
.confession-status,
.stream-question-index {
  background: rgba(103, 164, 255, 0.09);
  border-color: rgba(103, 164, 255, 0.18);
  color: #c6d8f6;
}

.card h2,
.dashboard-card h2,
.section-header-inline h2 {
  letter-spacing: -0.02em;
  font-size: 22px;
}

.dashboard-hero {
  background:
    radial-gradient(circle at 84% 18%, rgba(90, 150, 255, 0.2), transparent 30%),
    radial-gradient(circle at 8% 0%, rgba(45, 212, 191, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(18, 28, 45, 0.98) 0%, rgba(9, 14, 23, 0.98) 100%);
  border-color: rgba(103, 164, 255, 0.18);
}

.dashboard-overview-panel,
.dashboard-card,
.dashboard-action-card {
  border-color: rgba(103, 164, 255, 0.16);
}

.dashboard-card .empty-state {
  min-height: 58px;
  display: flex;
  align-items: center;
}

.text-input,
.text-area,
.dropdown-select,
select,
.login-field input,
.inventory-form input,
.inventory-form textarea,
.inventory-search input,
.inventory-move-form input,
.meeting-textarea,
.meeting-protocol-textarea,
.task-description-field textarea,
.evidence-inline-input {
  background: rgba(10, 15, 24, 0.82);
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.text-input:hover,
.text-area:hover,
.dropdown-select:hover,
select:hover,
.login-field input:hover,
.inventory-form input:hover,
.inventory-form textarea:hover,
.inventory-search input:hover,
.inventory-move-form input:hover {
  border-color: rgba(148, 163, 184, 0.34);
}

.text-input:focus,
.text-area:focus,
.dropdown-select:focus,
select:focus,
.login-field input:focus,
.inventory-form input:focus,
.inventory-form textarea:focus,
.inventory-search input:focus,
.inventory-move-form input:focus,
.meeting-textarea:focus,
.meeting-protocol-textarea:focus,
.task-description-field textarea:focus,
.evidence-inline-input:focus {
  border-color: rgba(103, 164, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(103, 164, 255, 0.12);
}

.empty-state,
.dashboard-list-item,
.list-item,
.employee-detail-row,
.setup-swap-preview {
  background: rgba(10, 15, 24, 0.52);
  border-color: rgba(148, 163, 184, 0.16);
}

.chat-box {
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.06), transparent 30%),
    rgba(7, 11, 18, 0.78);
}

.info-box + .chat-box {
  margin-top: 14px;
}

.bubble {
  max-width: min(82%, 760px);
  width: fit-content;
  min-height: 0;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.4;
}

.bubble.assistant {
  background: rgba(31, 41, 58, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.bubble.user {
  background: linear-gradient(180deg, #ffffff 0%, #dce8f8 100%);
}

.error-state {
  background:
    radial-gradient(circle at top right, rgba(255, 93, 122, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(57, 22, 34, 0.94), rgba(35, 14, 23, 0.94));
  border-color: rgba(255, 112, 143, 0.34);
  color: #ffe1e7;
}

.info-box,
.success-box {
  background:
    radial-gradient(circle at top right, rgba(103, 164, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(19, 33, 58, 0.92), rgba(12, 22, 40, 0.92));
  border-color: rgba(103, 164, 255, 0.3);
}

.danger-btn,
.delete-btn {
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(248, 113, 113, 0.32);
  color: #ffe0e0;
}

.danger-btn:hover,
.delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}

.site-footer,
.site-footer-bar {
  background: rgba(6, 9, 14, 0.96);
  border-top-color: rgba(148, 163, 184, 0.12);
}

@media (max-width: 800px) {
  .content {
    padding: 18px 14px 26px;
  }

  .hero-content,
  .card,
  .dashboard-hero {
    border-radius: 18px;
  }
}

.sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

@media (min-width: 801px) and (max-width: 1100px) {
  body:has(> .layout) {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .layout {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar-toggle {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 95;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(17, 24, 39, 0.92);
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    cursor: pointer;
  }

  .sidebar-toggle-icon {
    display: grid;
    gap: 4px;
  }

  .sidebar-toggle-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .sidebar-toggle strong {
    font-size: 14px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 90;
    width: min(340px, 86vw);
    height: 100vh;
    padding: 78px 18px 18px;
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    border-bottom: 0;
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.36);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .content {
    padding: 82px 24px 28px;
    min-height: 0;
    overflow-y: auto;
  }
}

@media (min-width: 1101px) {
  .dashboard-layout {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .dashboard-layout .sidebar {
    position: relative;
    z-index: 80;
    width: 108px;
    padding: 20px 18px;
    overflow-x: hidden;
    transition:
      width 0.34s cubic-bezier(0.2, 0.74, 0.18, 1),
      box-shadow 0.2s ease;
    will-change: width;
  }

  .dashboard-layout .sidebar:hover,
  .dashboard-layout .sidebar:focus-within {
    width: 292px;
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.34);
  }

  .dashboard-layout .user-box {
    min-width: 252px;
    padding: 10px 12px;
    gap: 12px;
    border-radius: 22px;
  }

  .dashboard-layout .avatar {
    width: 48px;
    height: 48px;
    box-shadow:
      0 0 0 3px rgba(103, 164, 255, 0.1),
      0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .dashboard-layout .user-box > div,
  .dashboard-layout .menu-title,
  .dashboard-layout .logout-btn {
    opacity: 0;
    transform: translateX(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
    pointer-events: none;
  }

  .dashboard-layout .sidebar:hover .user-box > div,
  .dashboard-layout .sidebar:focus-within .user-box > div,
  .dashboard-layout .sidebar:hover .menu-title,
  .dashboard-layout .sidebar:focus-within .menu-title,
  .dashboard-layout .sidebar:hover .logout-btn,
  .dashboard-layout .sidebar:focus-within .logout-btn {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .dashboard-layout .nav {
    min-width: 252px;
    gap: 10px;
  }

  .dashboard-layout .nav-group {
    min-width: 252px;
    gap: 8px;
  }

  .dashboard-layout .nav-group-items {
    gap: 8px;
    padding-left: 12px;
    margin-left: 20px;
    border-left: 1px solid rgba(103, 164, 255, 0.18);
  }

  .dashboard-layout .nav-link {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 14px 0 6px;
    border-radius: 18px;
    white-space: nowrap;
    font-weight: 800;
  }

  .dashboard-layout .nav-group-toggle::after {
    right: 16px;
    color: rgba(216, 232, 255, 0.8);
  }

  .dashboard-layout .nav-link::before {
    content: attr(data-nav-icon);
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 19px;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
      rgba(103, 164, 255, 0.12);
    border: 1px solid rgba(103, 164, 255, 0.2);
    color: #d8e8ff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 8px 20px rgba(0, 0, 0, 0.16);
    transition:
      transform 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease;
  }

  .dashboard-layout .nav-link.active::before {
    background-color: rgba(103, 164, 255, 0.32);
    border-color: rgba(175, 215, 255, 0.68);
    color: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 0 2px rgba(103, 164, 255, 0.22),
      0 10px 26px rgba(103, 164, 255, 0.14);
  }

  .dashboard-layout .nav-link:hover::before,
  .dashboard-layout .nav-link:focus-visible::before {
    transform: translateY(-1px);
    border-color: rgba(143, 195, 255, 0.5);
    color: #ffffff;
  }

  .dashboard-layout .nav-link {
    color: transparent;
  }

  .dashboard-layout .sidebar:hover .nav-link,
  .dashboard-layout .sidebar:focus-within .nav-link {
    color: rgba(238, 244, 255, 0.92);
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-group-toggle::after {
    opacity: 0;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .user-box {
    box-sizing: border-box;
    min-width: 0;
    width: 70px;
    height: 70px;
    min-height: 70px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .user-box > div {
    display: none;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .avatar {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0;
    transform: none;
    position: relative;
    z-index: 1;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-link.active {
    background: transparent;
    border-color: transparent;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-group {
    gap: 0;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-group:not([open]) {
    display: block;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-group-items {
    gap: 10px;
    margin-top: 10px;
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }

  .dashboard-layout .sidebar:not(:hover):not(:focus-within) .nav-group-items .nav-link {
    min-height: 58px;
  }

  .dashboard-layout .content {
    padding-left: 34px;
  }
}

/* =========================
   SOCIAL FOCUS CARDS
========================= */

.dashboard-layout .nav-group-toggle-orga::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/orga-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.nav-group-toggle-minecraft::before,
.dashboard-layout .nav-group-toggle-minecraft::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/minecraft-grass-block.png") center / 30px 30px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-evidence::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/beweiserfassung.png") center / 28px 28px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-dashboard::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/dashboard-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-tasks::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/tasks-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-employees::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/employee-logins-icon.png") center / 35px 35px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-inventory::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/inventory-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-members::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/members-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-meetings::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/meetings-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-absences::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/absences-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-tickets::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/tickets-icon.png") center / 35px 35px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-twitch-followers::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/twitch-follower-list.png") center / 33px 33px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-irl-setup::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/irl-setup-icon.png") center / 42px 42px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-wishlist::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/steam-wishlist-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-link-settings::before {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 34%),
    rgba(103, 164, 255, 0.12) url("/img/settings-icon.png") center / 34px 34px no-repeat;
  color: transparent;
}

.dashboard-layout .nav-group-toggle-orga::before,
.dashboard-layout .nav-group-toggle-minecraft::before,
.dashboard-layout .nav-link-evidence::before,
.dashboard-layout .nav-link-dashboard::before,
.dashboard-layout .nav-link-tasks::before,
.dashboard-layout .nav-link-employees::before,
.dashboard-layout .nav-link-inventory::before,
.dashboard-layout .nav-link-members::before,
.dashboard-layout .nav-link-meetings::before,
.dashboard-layout .nav-link-absences::before,
.dashboard-layout .nav-link-tickets::before,
.dashboard-layout .nav-link-irl-setup::before,
.dashboard-layout .nav-link-twitch-followers::before,
.dashboard-layout .nav-link-wishlist::before,
.dashboard-layout .nav-link-settings::before {
  background-color: rgba(103, 164, 255, 0.1);
  background-size: auto, 39px 39px;
  border-color: rgba(143, 195, 255, 0.22);
}

.social-grid {
  isolation: isolate;
}

.sponsor-grid {
  isolation: isolate;
}

.stream-public-card,
.sponsor-card,
.social-card {
  --social-accent: #67a4ff;
  --social-glow: rgba(103, 164, 255, 0.32);
  position: relative;
  overflow: hidden;
  transform-origin: center;
  border-color: color-mix(in srgb, var(--social-accent) 28%, rgba(148, 163, 184, 0.18));
  background:
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--social-accent) 24%, transparent), transparent 32%),
    linear-gradient(180deg, rgba(18, 27, 43, 0.98) 0%, rgba(10, 15, 24, 0.98) 100%);
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.36s ease,
    opacity 0.36s ease,
    border-color 0.36s ease,
    box-shadow 0.36s ease;
  will-change: transform, filter;
}

.stream-public-question {
  --social-accent: #5892ff;
  --social-glow: rgba(88, 146, 255, 0.36);
}

.stream-public-confession {
  --social-accent: #ff7aa3;
  --social-glow: rgba(255, 122, 163, 0.34);
}

.sponsor-card {
  --social-accent: #ff622d;
  --social-glow: rgba(255, 98, 45, 0.36);
}

.stream-public-card::before,
.sponsor-card::before,
.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--social-accent) 18%, transparent), transparent 58%);
  opacity: 0.7;
  pointer-events: none;
}

.stream-public-card::after,
.sponsor-card::after,
.social-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 2px;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--social-accent), transparent);
  opacity: 0.38;
  transform: scaleX(0.62);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.36s ease;
}

.stream-public-card > *,
.sponsor-card > *,
.social-card > * {
  position: relative;
  z-index: 1;
}

.stream-public-grid:has(.stream-public-card:hover) .stream-public-card:not(:hover),
.stream-public-grid:has(.stream-public-card:focus-visible) .stream-public-card:not(:focus-visible),
.sponsor-grid:has(.sponsor-card:hover) .sponsor-card:not(:hover),
.sponsor-grid:has(.sponsor-card:focus-visible) .sponsor-card:not(:focus-visible),
.social-grid:has(.social-card:hover) .social-card:not(:hover),
.social-grid:has(.social-card:focus-visible) .social-card:not(:focus-visible),
.site-main:has(.sponsor-card:hover) .social-card,
.site-main:has(.sponsor-card:focus-visible) .social-card,
.site-main:has(.social-card:hover) .sponsor-card,
.site-main:has(.social-card:focus-visible) .sponsor-card {
  filter: blur(4px) brightness(0.68);
  opacity: 0.72;
  transform: scale(0.96);
}

.stream-public-card:hover,
.stream-public-card:focus-visible,
.sponsor-card:hover,
.sponsor-card:focus-visible,
.social-card:hover,
.social-card:focus-visible {
  z-index: 5;
  transform: scale(1.045) translateY(-6px);
  border-color: color-mix(in srgb, var(--social-accent) 58%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.46),
    0 0 28px var(--social-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  outline: none;
}

.stream-public-card:hover::after,
.stream-public-card:focus-visible::after,
.sponsor-card:hover::after,
.sponsor-card:focus-visible::after,
.social-card:hover::after,
.social-card:focus-visible::after {
  opacity: 0.82;
  transform: scaleX(1);
}

.stream-public-card:hover h3,
.stream-public-card:focus-visible h3,
.sponsor-card:hover .sponsor-copy h3,
.sponsor-card:focus-visible .sponsor-copy h3,
.social-card:hover .social-copy h3,
.social-card:focus-visible .social-copy h3 {
  letter-spacing: 0.02em;
}

.social-youtube,
.social-vod {
  --social-accent: #ff3b30;
  --social-glow: rgba(255, 59, 48, 0.34);
}

.social-twitch {
  --social-accent: #9146ff;
  --social-glow: rgba(145, 70, 255, 0.36);
}

.social-tiktok {
  --social-accent: #00f2ea;
  --social-glow: rgba(0, 242, 234, 0.3);
}

.social-instagram {
  --social-accent: #fcb045;
  --social-glow: rgba(252, 176, 69, 0.32);
}

.social-discord {
  --social-accent: #5865f2;
  --social-glow: rgba(88, 101, 242, 0.36);
}

@media (prefers-reduced-motion: reduce) {
  .stream-public-card,
  .stream-public-card::after,
  .sponsor-card,
  .sponsor-card::after,
  .social-card,
  .social-card::after {
    transition-duration: 0.01ms;
  }

  .stream-public-grid:has(.stream-public-card:hover) .stream-public-card:not(:hover),
  .stream-public-grid:has(.stream-public-card:focus-visible) .stream-public-card:not(:focus-visible),
  .stream-public-card:hover,
  .stream-public-card:focus-visible,
  .sponsor-grid:has(.sponsor-card:hover) .sponsor-card:not(:hover),
  .sponsor-grid:has(.sponsor-card:focus-visible) .sponsor-card:not(:focus-visible),
  .sponsor-card:hover,
  .sponsor-card:focus-visible,
  .social-grid:has(.social-card:hover) .social-card:not(:hover),
  .social-grid:has(.social-card:focus-visible) .social-card:not(:focus-visible),
  .site-main:has(.sponsor-card:hover) .social-card,
  .site-main:has(.sponsor-card:focus-visible) .social-card,
  .site-main:has(.social-card:hover) .sponsor-card,
  .site-main:has(.social-card:focus-visible) .sponsor-card,
  .social-card:hover,
  .social-card:focus-visible {
    transform: none;
  }
}
