:root {
  --bg: #030208;
  --bg-soft: #090713;
  --panel: rgba(11, 10, 22, 0.84);
  --panel-strong: rgba(15, 13, 30, 0.94);
  --panel-muted: rgba(12, 10, 23, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.025);
  --surface-strong: rgba(255, 255, 255, 0.04);
  --border: rgba(183, 156, 255, 0.11);
  --border-strong: rgba(183, 156, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.04);
  --text: #f8f5ff;
  --muted: #9f95c0;
  --muted-strong: #cec5e8;
  --accent: #9368f7;
  --accent-2: #bb79f3;
  --accent-3: #7085f4;
  --success: #8ef2c8;
  --warning: #ffd483;
  --danger: #ff9eb8;
  --shadow-xl: 0 28px 90px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.2);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Manrope", "Aptos", "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 108, 255, 0.55) rgba(255, 255, 255, 0.04);
}

*::selection {
  background: rgba(154, 108, 255, 0.32);
  color: #fff9ff;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

*::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(187, 121, 243, 0.9), rgba(112, 133, 244, 0.9));
  background-clip: padding-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 9%, rgba(147, 104, 247, 0.16), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(112, 133, 244, 0.16), transparent 20%),
    radial-gradient(circle at 55% 100%, rgba(187, 121, 243, 0.09), transparent 26%),
    linear-gradient(180deg, #020105 0%, #06040d 42%, #080611 100%);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.scene-glow,
.scene-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.scene-glow-left {
  background: radial-gradient(circle at 18% 24%, rgba(154, 108, 255, 0.12), transparent 18%);
}

.scene-glow-right {
  background: radial-gradient(circle at 82% 12%, rgba(111, 137, 255, 0.14), transparent 20%);
}

.scene-noise {
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
}

.hidden {
  display: none !important;
}

.glass-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.08), transparent 35%),
    var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 78%, rgba(255, 255, 255, 0.03));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #d5c7ff;
}

.muted-text {
  color: var(--muted);
}

.small-text {
  font-size: 0.86rem;
}

h1,
h2,
h3,
.metric-card strong,
.stat-card strong,
.table-primary,
.brand-lockup strong {
  font-family: var(--font-display);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
}

h3 {
  font-size: 1.18rem;
}

.login-shell,
.admin-shell {
  position: relative;
  z-index: 1;
}

.login-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 430px);
  gap: 24px;
  align-items: stretch;
}

.login-copy,
.login-panel,
.sidebar,
.topbar,
.panel,
.dialog-card,
.mini-panel,
.metric-card,
.timeline-item,
.table-shell,
.subpanel,
.permission-card {
  padding: 24px;
}

.login-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 620px;
}

.login-copy h1,
.login-panel h2,
.page-heading h2,
.section-title h3,
.panel h3,
.dialog-card h3 {
  margin: 0;
}

.login-copy h1 {
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 0.95;
  max-width: 11ch;
}

.login-copy p,
.panel-copy,
.empty-state p {
  margin: 0;
  line-height: 1.75;
}

.pill-row,
.toolbar,
.stat-row,
.quick-grid,
.metric-strip,
.topbar-actions,
.dialog-actions,
.pill-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pill,
.role-badge,
.status-pill,
.outline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pill {
  color: #efe8ff;
}

.status-pill.success,
.badge.success {
  background: rgba(142, 242, 200, 0.12);
  border-color: rgba(142, 242, 200, 0.22);
  color: #d9fff1;
}

.status-pill.warn,
.badge.warn {
  background: rgba(255, 212, 131, 0.12);
  border-color: rgba(255, 212, 131, 0.22);
  color: #ffe7bb;
}

.status-pill.danger,
.badge.danger {
  background: rgba(255, 158, 184, 0.12);
  border-color: rgba(255, 158, 184, 0.22);
  color: #ffd8e3;
}

.status-pill.info,
.badge.info {
  background: rgba(154, 108, 255, 0.13);
  border-color: rgba(154, 108, 255, 0.24);
  color: #ecdeff;
}

.feature-chip,
.mini-stat,
.metric-card,
.mini-panel,
.permission-card,
.subpanel,
.table-shell,
.timeline-item,
.stat-card,
.hero-card,
.info-list-item,
.list-card {
  border: 1px solid rgba(183, 156, 255, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.feature-chip {
  display: grid;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top right, rgba(154, 108, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.018);
}

.feature-chip strong {
  font-size: 1rem;
}

.feature-chip span {
  color: var(--muted);
  line-height: 1.6;
}

.login-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.brand-lockup strong {
  font-size: 1.04rem;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.field-grid,
.triple-grid,
.stats-grid,
.diagnostic-grid,
.permission-grid {
  display: grid;
  gap: 16px;
}

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

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagnostic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.93rem;
  font-weight: 600;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(9, 8, 18, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(208, 108, 255, 0.58);
  box-shadow: 0 0 0 4px rgba(154, 108, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: #8577a9;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 13px;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.015em;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  color: #fbf8ff;
  border-color: rgba(198, 165, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(187, 121, 243, 0.98), rgba(112, 133, 244, 0.92)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(129, 93, 235, 0.36);
}

.btn-secondary {
  border-color: rgba(183, 156, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.btn-ghost {
  border-color: rgba(183, 156, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
}

.btn-danger {
  color: #ffdbe4;
  border-color: rgba(255, 158, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 158, 184, 0.14), rgba(255, 158, 184, 0.08));
}

.btn-lg {
  min-height: 50px;
  padding: 14px 18px;
}

.btn:focus-visible,
.nav-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(154, 108, 255, 0.14);
}

.status-text {
  min-height: 22px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.status-text.error {
  color: var(--danger);
}

.admin-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 16px auto 22px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 20px;
  padding: 22px;
}

.brand-lockup {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-glyph {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1.15rem;
  color: #fdfaff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  box-shadow: 0 14px 30px rgba(154, 108, 255, 0.28);
}

.brand-glyph::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  opacity: 0.55;
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.sidebar-section-label {
  padding-left: 6px;
  color: #8e83ae;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(183, 156, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.nav-item {
  position: relative;
  min-height: 46px;
  padding: 12px 16px 12px 18px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: #ede6ff;
  font-weight: 700;
  box-shadow: none;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  transform: translateY(-50%);
  transition: background 160ms ease;
}

.nav-item.active {
  border-color: rgba(183, 156, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(154, 108, 255, 0.16), rgba(208, 108, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px rgba(12, 9, 24, 0.32);
}

.nav-item.active::before {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.nav-item:hover:not(.active) {
  border-color: rgba(183, 156, 255, 0.08);
  background: rgba(255, 255, 255, 0.032);
}

.sidebar-foot {
  display: grid;
  gap: 12px;
}

.mini-stat {
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.014));
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.8rem;
}

.workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.06), transparent 42%),
    rgba(10, 8, 19, 0.9);
}

.page-heading {
  display: grid;
  gap: 6px;
}

.page-heading p {
  margin: 0;
  max-width: 60ch;
  line-height: 1.7;
}

.page-heading h2 {
  font-size: clamp(1.72rem, 2.2vw, 2.25rem);
}

.topbar-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.topbar-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(183, 156, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.topbar-cluster-end {
  margin-left: auto;
}

.project-switch {
  min-width: 260px;
  padding: 2px 2px 2px 8px;
  gap: 4px;
}

.project-switch > span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d82ad;
}

.identity-card {
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid rgba(183, 156, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.role-badge {
  width: fit-content;
  color: #f4e9ff;
  background: linear-gradient(180deg, rgba(154, 108, 255, 0.18), rgba(154, 108, 255, 0.08));
  border-color: rgba(154, 108, 255, 0.2);
}

.page-root,
.page-grid,
.layout-grid {
  display: grid;
  gap: 20px;
}

.layout-grid.two-col,
.page-grid.two-col {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.12fr);
}

.layout-grid.three-col {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.12fr) minmax(280px, 0.8fr);
}

.panel,
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(183, 156, 255, 0.12);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.05), transparent 38%),
    var(--panel-strong);
  box-shadow: var(--shadow-xl);
}

.hero-card {
  display: grid;
  gap: 18px;
  min-height: 280px;
  background:
    radial-gradient(circle at top right, rgba(208, 108, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(111, 137, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    var(--panel-strong);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-copy h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 156, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 6, 15, 0.4), rgba(7, 6, 15, 0.92)),
    rgba(11, 9, 20, 0.78);
}

.game-card img,
.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card .overlay,
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(180deg, transparent, rgba(5, 3, 9, 0.88));
}

.thumb-fallback {
  place-items: center;
  font-size: 2.6rem;
  font-weight: 900;
  color: #f3e7ff;
  background:
    radial-gradient(circle at top left, rgba(208, 108, 255, 0.32), transparent 35%),
    linear-gradient(180deg, rgba(24, 17, 41, 0.66), rgba(11, 9, 20, 0.96));
}

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

.metric-card,
.stat-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  min-height: 132px;
  align-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top right, rgba(154, 108, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.metric-card span,
.stat-card span,
.section-subtitle,
.detail-label {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

.metric-card strong,
.stat-card strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

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

.panel-head > div:first-child,
.section-title > div:first-child,
.subpanel-head > div:first-child {
  display: grid;
  gap: 6px;
}

.panel-head,
.subpanel-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head input {
  max-width: 340px;
}

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

.section-stack {
  display: grid;
  gap: 16px;
}

.subpanel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  border-color: rgba(183, 156, 255, 0.1);
}

.helper-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.reward-preview-grid,
.info-list,
.timeline-list,
.list-grid,
.check-list {
  display: grid;
  gap: 12px;
}

.info-list-offset,
.permission-grid-offset {
  margin-top: 14px;
}

.mode-switch,
.reward-template-row,
.announcement-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-chip {
  appearance: none;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(183, 156, 255, 0.12);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted-strong);
  cursor: pointer;
  font-weight: 800;
}

.mode-chip.active {
  color: #fbf7ff;
  border-color: rgba(183, 156, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(154, 108, 255, 0.18), rgba(112, 133, 244, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.reward-builder {
  display: grid;
  gap: 12px;
}

.reward-row {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(183, 156, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.01);
}

.reward-row-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.85fr) minmax(150px, 0.55fr) minmax(0, 1fr);
}

.reward-value-field textarea {
  min-height: 110px;
}

.reward-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(183, 156, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.toggle-row:hover {
  border-color: rgba(191, 164, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.014);
}

.toggle-row.is-disabled {
  opacity: 0.62;
}

.toggle-control {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.toggle-content {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.toggle-title {
  color: #f3edff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.toggle-description {
  color: #9f95c0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.toggle-topic {
  display: inline-flex;
  justify-self: end;
  align-self: center;
}

.toggle-topic code {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  border-color: rgba(191, 164, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(153, 108, 255, 0.16), rgba(153, 108, 255, 0.08)),
    rgba(255, 255, 255, 0.02);
  color: #f5ecff;
}

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

.directory-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(183, 156, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.directory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.directory-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.directory-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.directory-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.directory-meta span {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(183, 156, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted-strong);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.directory-meta strong {
  color: #f1eaff;
  margin-right: 6px;
}

.directory-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
}

.directory-side {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

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

.info-list-item,
.timeline-item,
.list-card {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.info-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

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

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

.list-card-row > strong,
.timeline-item strong {
  font-size: 0.98rem;
}

.feature-chip:hover,
.mini-stat:hover,
.metric-card:hover,
.permission-card:hover,
.list-card:hover,
.info-list-item:hover,
.timeline-item:hover,
.check-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 156, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.table-shell {
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(8, 6, 16, 0.92);
  border-color: rgba(183, 156, 255, 0.12);
}

.table-toolbar {
  margin-bottom: 14px;
}

.table-wrap {
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 156, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.01)),
    rgba(7, 5, 15, 0.92);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(183, 156, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 16, 37, 0.98), rgba(16, 13, 31, 0.98));
  color: #d5c7f8;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.024);
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-primary {
  font-weight: 700;
  font-size: 0.98rem;
}

.table-secondary {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 170px;
  justify-content: flex-end;
}

.table-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 0.84rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.empty-state {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: center;
  justify-items: start;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(183, 156, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(154, 108, 255, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.022);
}

.empty-state.centered {
  justify-items: center;
  text-align: center;
}

.footer-note {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

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

.skeleton-card {
  min-height: 180px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.4s infinite;
}

.footer-note,
.toolbar-spread {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.permission-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.permission-table th,
.permission-table td {
  min-width: 120px;
}

.permission-table th:first-child,
.permission-table td:first-child {
  min-width: 240px;
}

.check-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 156, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.check-card-inline {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.check-card-inline input {
  margin-top: 2px;
}

.check-card-inline strong {
  display: block;
  margin-bottom: 4px;
}

.check-card.pass {
  border-color: rgba(142, 242, 200, 0.24);
}

.check-card.warn {
  border-color: rgba(255, 212, 131, 0.24);
}

.check-card.fail {
  border-color: rgba(255, 158, 184, 0.24);
}

.code-block {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(183, 156, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(6, 5, 12, 0.96);
  color: #ede4ff;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

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

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
}

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

.membership-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(183, 156, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.empty-inline {
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(8px);
  min-width: 260px;
  max-width: min(92vw, 420px);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(183, 156, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(13, 11, 26, 0.96);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(255, 158, 184, 0.28);
  color: #ffe0e9;
}

.toast.warn {
  border-color: rgba(255, 212, 131, 0.28);
  color: #ffeac3;
}

.toast.success {
  border-color: rgba(142, 242, 200, 0.28);
  color: #e3fff5;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 2, 7, 0.78);
  backdrop-filter: blur(12px);
}

.dialog-card {
  width: min(100%, 500px);
  display: grid;
  gap: 14px;
  padding: 24px;
}

.dialog-actions {
  justify-content: flex-end;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
}

:root {
  --panel: rgba(9, 8, 19, 0.84);
  --panel-strong: rgba(10, 9, 22, 0.94);
  --panel-muted: rgba(9, 8, 18, 0.72);
  --border: rgba(191, 164, 255, 0.1);
  --border-strong: rgba(191, 164, 255, 0.2);
  --shadow-xl: 0 34px 82px rgba(0, 0, 0, 0.52), 0 10px 28px rgba(86, 49, 182, 0.12);
  --shadow-md: 0 20px 44px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 14px 28px rgba(0, 0, 0, 0.22);
}

body {
  background:
    radial-gradient(circle at 14% 9%, rgba(147, 104, 247, 0.18), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(112, 133, 244, 0.15), transparent 18%),
    radial-gradient(circle at 52% 100%, rgba(187, 121, 243, 0.08), transparent 26%),
    linear-gradient(180deg, #020105 0%, #05030c 42%, #07050f 100%);
}

.scene-noise {
  opacity: 0.028;
}

.glass-card {
  border-color: rgba(191, 164, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.07), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow-xl);
}

.glass-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 16%, transparent 80%, rgba(255, 255, 255, 0.025));
}

.login-copy {
  gap: 22px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand-note {
  color: #f1e7ff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-glyph-large {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  font-size: 1.3rem;
}

.admin-shell {
  width: min(1560px, calc(100% - 32px));
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
}

.sidebar {
  gap: 18px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(131, 88, 236, 0.075), transparent 34%),
    rgba(8, 7, 17, 0.94);
}

.brand-lockup-sidebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 124px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(191, 164, 255, 0.11);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 18%, rgba(187, 121, 243, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(161, 111, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
}

.brand-mark {
  position: relative;
  width: 78px;
  min-width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.12), transparent 48%);
  opacity: 0.95;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(191, 164, 255, 0.12);
  background: radial-gradient(circle at center, rgba(140, 96, 247, 0.08), transparent 72%);
}

.brand-lockup-sidebar .brand-glyph {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  font-size: 1.42rem;
  letter-spacing: -0.08em;
  box-shadow: 0 20px 38px rgba(154, 108, 255, 0.34);
}

.brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: center;
}

.brand-copy .eyebrow {
  color: #d7cbff;
}

.brand-copy strong {
  max-width: 12ch;
  font-size: 1.24rem;
  line-height: 1.02;
}

.brand-copy p {
  margin: 2px 0 0;
  max-width: 28ch;
  color: #ab9fc8;
  line-height: 1.55;
}

.sidebar-section {
  gap: 12px;
}

.sidebar-section + .sidebar-section {
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.sidebar-nav {
  padding: 4px;
  gap: 4px;
  border: none;
  background: transparent;
}

.nav-item {
  min-height: 44px;
  padding: 11px 14px 11px 20px;
  color: #ddd2ff;
}

.nav-item::before {
  left: 7px;
  width: 2px;
  height: 18px;
}

.nav-item.active {
  border-color: rgba(191, 164, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(151, 106, 251, 0.18), rgba(120, 129, 245, 0.08)),
    rgba(255, 255, 255, 0.036);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(12, 9, 24, 0.26);
}

.mini-stat,
.permission-card,
.subpanel,
.table-shell,
.timeline-item,
.stat-card,
.hero-card,
.info-list-item,
.list-card,
.directory-card {
  border-color: rgba(191, 164, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.mini-stat {
  border-radius: 16px;
}

.workspace {
  gap: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.065), transparent 44%),
    rgba(8, 7, 17, 0.92);
}

.page-heading {
  gap: 8px;
}

.page-heading h2 {
  max-width: 16ch;
}

.topbar-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-brand-chip,
.topbar-context-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-brand-chip {
  color: #f8f1ff;
  border: 1px solid rgba(204, 174, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(167, 109, 255, 0.2), rgba(108, 131, 255, 0.14)),
    rgba(255, 255, 255, 0.02);
}

.topbar-context-pill {
  color: #b8afd5;
  border: 1px solid rgba(191, 164, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.topbar-actions {
  padding: 8px;
  gap: 12px;
  border: 1px solid rgba(191, 164, 255, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.015);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-cluster {
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
}

.topbar-cluster + .topbar-cluster {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
}

.topbar-cluster-end {
  margin-left: 0;
}

.account-shell {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(191, 164, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-switch {
  min-width: 272px;
  padding: 0;
  gap: 6px;
}

.project-switch select {
  min-height: 46px;
}

.identity-card {
  gap: 10px;
  min-width: 224px;
  padding: 12px 14px 12px 15px;
  border: none;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  box-shadow: none;
}

.identity-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.identity-label {
  color: #9489b6;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity-name-block {
  display: grid;
  gap: 4px;
}

.identity-card strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.05;
}

.identity-subline {
  color: #9f95c0;
  font-size: 0.82rem;
  line-height: 1.3;
}

.account-signout {
  min-width: 118px;
  padding-inline: 16px;
  border-radius: 14px;
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.012);
}

.panel,
.hero-card {
  border-color: rgba(191, 164, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(147, 104, 247, 0.042), transparent 38%),
    rgba(8, 7, 17, 0.92);
}

.panel-primary {
  background:
    radial-gradient(circle at top right, rgba(164, 108, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(9, 8, 19, 0.94);
}

.panel-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(8, 7, 17, 0.9);
}

.panel-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)),
    rgba(7, 6, 14, 0.9);
}

.hero-card {
  padding: 22px;
  min-height: auto;
}

.hero-card-dashboard {
  background:
    radial-gradient(circle at top right, rgba(199, 115, 255, 0.18), transparent 24%),
    radial-gradient(circle at bottom left, rgba(112, 133, 244, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    rgba(8, 7, 17, 0.94);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.78fr);
  gap: 18px;
  align-items: start;
}

.hero-copy {
  gap: 16px;
}

.hero-heading-block {
  display: grid;
  gap: 8px;
}

.hero-copy h3 {
  max-width: 12ch;
  font-size: clamp(2rem, 2.8vw, 3rem);
  line-height: 0.98;
}

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

.hero-meta-chip {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 164, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.012);
}

.hero-meta-chip span {
  color: #9b91ba;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta-chip strong {
  color: #f3ebff;
  font-size: 0.95rem;
  line-height: 1.35;
}

.hero-status-row {
  gap: 8px;
}

.dashboard-stats-grid {
  gap: 12px;
}

.metric-card {
  gap: 14px;
  min-height: 120px;
  padding: 16px;
  border-color: rgba(191, 164, 255, 0.1);
}

.metric-card strong,
.stat-card strong {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
}

.metric-card small {
  font-size: 0.8rem;
  line-height: 1.5;
}

.metric-card-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
    radial-gradient(circle at top right, rgba(179, 115, 255, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.024);
  border-color: rgba(191, 164, 255, 0.14);
}

.metric-card-primary strong {
  font-size: clamp(1.8rem, 2.7vw, 2.5rem);
}

.metric-card-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.014);
}

.hero-side {
  gap: 14px;
}

.spotlight-panel,
.subpanel-quiet {
  padding: 16px;
  gap: 12px;
}

.spotlight-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at top right, rgba(166, 112, 255, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.012);
}

.subpanel-quiet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.008);
}

.spotlight-panel .section-title,
.subpanel-quiet .section-title {
  margin-bottom: 4px;
}

.game-card {
  min-height: 246px;
  border-radius: 20px;
  border-color: rgba(191, 164, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(7, 6, 15, 0.18), rgba(6, 5, 12, 0.94)),
    rgba(11, 9, 20, 0.84);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: inherit;
}

.game-card .overlay {
  padding: 20px;
  gap: 10px;
  background: linear-gradient(180deg, rgba(8, 6, 15, 0.04), rgba(5, 4, 11, 0.88) 78%);
}

.game-card .overlay strong {
  font-size: 1.14rem;
}

.project-media-card {
  min-height: 200px;
}

.thumb-fallback {
  background:
    radial-gradient(circle at 24% 18%, rgba(208, 108, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 80%, rgba(112, 133, 244, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(24, 17, 41, 0.6), rgba(10, 9, 20, 0.96));
}

.thumb-monogram {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #faf3ff;
  background: linear-gradient(135deg, rgba(187, 121, 243, 0.98), rgba(112, 133, 244, 0.9));
  box-shadow: 0 18px 36px rgba(118, 87, 224, 0.34);
}

.dashboard-feed-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(300px, 0.86fr);
}

.dashboard-archive-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.panel-head,
.subpanel-head {
  padding-bottom: 14px;
}

.panel-head {
  margin-bottom: 16px;
}

.directory-card {
  padding: 16px 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 16px;
}

.directory-main {
  gap: 14px;
}

.directory-meta {
  gap: 8px;
}

.directory-meta span {
  padding: 8px 10px;
  border-radius: 12px;
}

.directory-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: end;
  gap: 8px;
  align-content: start;
}

.table-primary {
  letter-spacing: -0.03em;
}

.table-secondary {
  max-width: 58ch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.promo-workspace-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  align-items: start;
}

.promo-editor-panel,
.promo-directory-panel {
  min-height: 100%;
}

.promo-builder-shell,
.promo-liveops-shell {
  gap: 16px;
}

.promo-liveops-shell .check-list {
  gap: 10px;
}

.liveops-shell {
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
}

.discord-overview-grid {
  gap: 12px;
}

.discord-workspace-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: start;
  margin-top: 18px;
}

.discord-wizard-shell {
  display: grid;
  gap: 18px;
  margin: 18px 0 20px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(184, 151, 255, 0.1);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(7, 7, 15, 0.62);
  box-shadow: var(--shadow-md);
}

.discord-wizard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.discord-wizard-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: 18px;
  align-items: start;
}

.discord-wizard-stepper {
  display: grid;
  gap: 10px;
}

.discord-step-chip {
  appearance: none;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(182, 156, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.discord-step-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(182, 156, 255, 0.16);
}

.discord-step-chip.current {
  border-color: rgba(167, 139, 250, 0.34);
  background:
    linear-gradient(180deg, rgba(140, 92, 255, 0.16), rgba(89, 48, 176, 0.08)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.12);
}

.discord-step-chip.complete .discord-step-index {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(16, 185, 129, 0.9));
}

.discord-step-index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #f5f1ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-step-copy {
  display: grid;
  gap: 4px;
}

.discord-step-copy strong {
  font-size: 0.95rem;
}

.discord-step-copy span {
  color: rgba(222, 214, 245, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.discord-wizard-stage {
  display: grid;
  gap: 14px;
}

.discord-wizard-body {
  display: grid;
}

.discord-wizard-subpanel {
  gap: 16px;
}

.discord-installation-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.discord-installation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(184, 151, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
}

.discord-installation-card.selected {
  border-color: rgba(167, 139, 250, 0.26);
  background:
    radial-gradient(circle at top left, rgba(109, 40, 217, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.014);
}

.discord-installation-main {
  display: grid;
  gap: 10px;
}

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

.discord-module-card {
  align-items: flex-start;
}

.discord-module-card span {
  display: grid;
  gap: 4px;
}

.discord-module-card small {
  color: rgba(217, 209, 239, 0.68);
  line-height: 1.45;
}

.discord-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.helper-inline {
  display: block;
  margin-top: 6px;
  color: rgba(214, 206, 238, 0.6);
  font-size: 0.78rem;
  line-height: 1.4;
}

.code-shell {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(184, 151, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  overflow-x: auto;
}

.code-shell code {
  color: #dfd6ff;
  font-size: 0.82rem;
  white-space: nowrap;
}

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

.discord-preferences-grid,
.discord-vote-options {
  display: grid;
  gap: 12px;
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(191, 164, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.008);
}

.checkbox-line input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox-card span {
  color: #d8cff0;
  font-size: 0.86rem;
  font-weight: 650;
}

.discord-vote-option-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(191, 164, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.discord-directory-list {
  margin-top: 14px;
}

.discord-preview-card {
  min-height: 180px;
}

.toolbar-end {
  justify-content: flex-end;
}

.events-overview-grid {
  gap: 12px;
}

.events-overview-panels {
  align-items: start;
  margin-top: 18px;
}

.events-workspace-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: start;
}

.events-editor-panel,
.events-directory-panel {
  min-height: 100%;
}

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

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

.events-view-switch {
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.event-card .directory-actions {
  grid-template-columns: repeat(2, minmax(112px, max-content));
}

.event-actions {
  align-content: start;
}

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

.template-card {
  appearance: none;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(183, 156, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.template-card:hover,
.template-card.active {
  transform: translateY(-1px);
  border-color: rgba(193, 164, 255, 0.2);
  box-shadow: 0 18px 40px rgba(9, 10, 20, 0.34);
  background:
    linear-gradient(180deg, rgba(167, 120, 255, 0.12), rgba(255, 255, 255, 0.016)),
    rgba(255, 255, 255, 0.018);
}

.template-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.template-card-title {
  color: #fbf7ff;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.template-card-copy {
  margin-top: 6px;
  color: #a89fc4;
  font-size: 0.84rem;
  line-height: 1.55;
}

.template-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #a89fc4;
  font-size: 0.8rem;
}

.template-card-meta code {
  white-space: nowrap;
}

.liveops-form-shell,
.liveops-side-stack {
  display: grid;
  gap: 16px;
}

.liveops-template-meta,
.history-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.liveops-field,
.liveops-field-full {
  display: grid;
  gap: 8px;
}

.liveops-field-full {
  grid-column: 1 / -1;
}

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

.variable-chip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 164, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.01);
}

.variable-chip span {
  color: #c7b9ea;
  font-size: 0.8rem;
  font-weight: 700;
}

.variable-chip strong {
  color: #f4edff;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
}

.announcement-preview-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(191, 164, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(164, 110, 255, 0.18), transparent 46%),
    linear-gradient(160deg, rgba(21, 18, 33, 0.96), rgba(13, 12, 24, 0.98));
  box-shadow: 0 18px 42px rgba(12, 10, 24, 0.34);
}

.announcement-preview-card h4 {
  margin: 0;
  color: #fcf8ff;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.announcement-preview-card p {
  margin: 0;
  color: #cdbfe9;
  line-height: 1.65;
}

.announcement-preview-meta,
.announcement-preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #b8abd7;
  font-size: 0.82rem;
}

.liveops-internal-summary {
  display: grid;
  gap: 10px;
}

.history-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(183, 156, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.012);
}

.history-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.history-card-meta span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(191, 164, 255, 0.08);
  color: #b7aacd;
  font-size: 0.82rem;
  line-height: 1.45;
}

.history-card-meta strong {
  color: #f7f1ff;
}

.code-block.compact {
  max-height: 180px;
  overflow: auto;
}

.promo-filter-shell {
  padding: 16px;
  border: 1px solid rgba(191, 164, 255, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.008);
}

.promo-card .directory-actions {
  grid-template-columns: repeat(2, minmax(92px, max-content));
}

.reward-row {
  padding: 14px;
  border-radius: 18px;
}

.btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 780;
}

.btn-primary {
  box-shadow: 0 16px 34px rgba(128, 90, 236, 0.34);
}

.btn-secondary {
  border-color: rgba(191, 164, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.012);
}

.btn-ghost {
  border-color: rgba(191, 164, 255, 0.1);
  background: rgba(255, 255, 255, 0.012);
}

.btn-accent-soft {
  border-color: rgba(191, 164, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(147, 104, 247, 0.16), rgba(112, 133, 244, 0.08)),
    rgba(255, 255, 255, 0.018);
}

.btn-compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.pill,
.role-badge,
.status-pill,
.outline-pill {
  padding: 7px 12px;
  border-color: rgba(191, 164, 255, 0.12);
}

.role-badge {
  font-size: 0.72rem;
  padding: 6px 10px;
  line-height: 1;
}

.empty-state {
  min-height: 190px;
}

@media (max-width: 1280px) {
  .hero-meta-strip,
  .dashboard-feed-grid,
  .dashboard-archive-grid,
  .events-overview-panels,
  .promo-workspace-grid,
  .events-workspace-grid,
  .discord-workspace-grid,
  .discord-wizard-layout,
  .discord-module-grid,
  .liveops-shell,
  .liveops-template-grid,
  .liveops-form-grid,
  .liveops-variable-grid,
  .liveops-template-meta,
  .history-card-meta,
  .discord-overview-grid,
  .events-template-grid,
  .events-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1280px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-grid.two-col,
  .page-grid.two-col,
  .hero-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .login-shell,
  .admin-shell {
    width: min(100% - 24px, 100%);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: stretch;
    width: 100%;
  }

  .topbar-cluster,
  .topbar-cluster-end {
    width: 100%;
    margin-left: 0;
  }

  .topbar-cluster {
    flex-direction: column;
    align-items: stretch;
  }

  .project-switch,
  .identity-card,
  .topbar-cluster .btn {
    width: 100%;
  }

  .field-grid,
  .triple-grid,
  .diagnostic-grid,
  .permission-grid,
  .reward-row-grid,
  .reward-preview-grid,
  .liveops-form-grid,
  .liveops-variable-grid,
  .liveops-template-grid,
  .liveops-template-meta,
  .history-card-meta,
  .discord-overview-grid,
  .discord-workspace-grid,
  .discord-wizard-layout,
  .discord-module-grid,
  .events-template-grid,
  .events-preview-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .login-copy,
  .login-panel,
  .sidebar,
  .topbar,
  .panel,
  .dialog-card,
  .mini-panel,
  .metric-card,
  .timeline-item,
  .table-shell,
  .subpanel,
  .permission-card {
    padding: 20px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-copy {
    min-height: auto;
  }

  .login-feature-grid,
  .stats-grid,
  .events-overview-panels {
    grid-template-columns: 1fr;
  }

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

  .table-actions,
  .toolbar,
  .topbar-actions {
    width: 100%;
  }

  .mode-switch,
  .reward-template-row,
  .announcement-quick-actions,
  .announcement-preview-meta,
  .announcement-preview-footer,
  .discord-wizard-header,
  .discord-wizard-footer,
  .directory-actions,
  .directory-title-row,
  .directory-meta {
    width: 100%;
  }

  .directory-card,
  .discord-installation-card {
    grid-template-columns: 1fr;
  }

  .directory-title-row,
  .directory-side {
    justify-items: start;
    text-align: left;
  }

  .history-card-top,
  .template-card-top {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .topbar-actions {
    width: 100%;
  }

  .account-shell {
    width: 100%;
  }

  .topbar-cluster + .topbar-cluster {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .dashboard-feed-grid,
  .dashboard-archive-grid,
  .events-overview-panels,
  .promo-workspace-grid,
  .events-workspace-grid,
  .hero-meta-strip {
    grid-template-columns: 1fr;
  }

  .directory-actions,
  .promo-card .directory-actions,
  .event-card .directory-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}

@media (max-width: 780px) {
  .brand-lockup-sidebar {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .login-brand {
    align-items: flex-start;
  }

  .hero-meta-strip {
    grid-template-columns: 1fr;
  }

  .topbar-kicker,
  .identity-meta {
    align-items: flex-start;
  }

  .identity-meta {
    flex-direction: column;
  }

  .account-shell {
    flex-direction: column;
  }

  .toggle-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .toggle-topic {
    grid-column: 2;
    justify-self: start;
  }

  .directory-actions,
  .promo-card .directory-actions {
    grid-template-columns: 1fr;
  }
}
