:root {
  --ink: #edf2ff;
  --muted: #98a4c4;
  --muted-strong: #c3cbe0;
  --surface: rgba(18, 27, 54, 0.78);
  --line: rgba(169, 191, 255, 0.14);
  --accent: #7c8cff;
  --accent-bright: #aab5ff;
  --accent-mint: #62e5c8;
  --shadow: 0 24px 64px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  background: #0b1020;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% -8%, rgba(87, 103, 255, 0.22), transparent 31rem),
    radial-gradient(circle at 34% 105%, rgba(60, 200, 177, 0.11), transparent 30rem),
    #0b1020;
}

a {
  color: inherit;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 260px;
  width: 260px;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 20px 16px 16px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(9, 14, 30, 0.72);
  backdrop-filter: blur(22px);
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand {
  padding: 0 10px 14px;
}

.brand-logo {
  width: 155px;
  height: auto;
  display: block;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(197, 207, 255, 0.34);
  border-radius: 12px;
  color: #fff;
  font-weight: 850;
  letter-spacing: -0.07em;
  background: linear-gradient(145deg, #7787ff, #4653ca);
  box-shadow: 0 8px 22px rgba(81, 97, 238, 0.34);
}

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

.brand-copy strong {
  font-size: 16px;
  letter-spacing: -0.035em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.115em;
}

.nav-list {
  display: grid;
  gap: 3px;
}

.nav-item {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
  color: var(--ink);
  background: rgba(123, 140, 255, 0.08);
  transform: translateX(2px);
}

.nav-item.active {
  color: #fff;
  border-color: rgba(145, 160, 255, 0.18);
  background: linear-gradient(100deg, rgba(114, 133, 255, 0.22), rgba(114, 133, 255, 0.06));
}

.nav-icon {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: 15px;
  line-height: 1;
}

.nav-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.15;
}

.sidebar-bottom {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

.sidebar-note {
  margin: 18px 10px 0;
  color: #697596;
  font-size: 11px;
  line-height: 1.55;
}

.sidebar-session {
  display: grid;
  gap: 8px;
  margin: 10px 10px 0;
}

.sidebar-card {
  display: grid;
  gap: 10px;
  margin: 16px 6px 0;
  padding: 14px 0 0;
  border: none;
  border-top: 1px solid rgba(145, 160, 255, 0.16);
  background: transparent;
  box-shadow: none;
}

.sidebar-card-row {
  display: grid;
  gap: 4px;
}

.sidebar-session-row {
  margin-top: 4px;
}

.sidebar-card-label {
  color: #697596;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.sidebar-card-value {
  display: flex;
  align-items: center;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid rgba(145, 160, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.35);
  color: #8f9ab8;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
  user-select: none;
  cursor: default;
}

.sidebar-card-buttons {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.sidebar-card-buttons button {
  flex: 1;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid rgba(145, 160, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.35);
  color: #8f9ab8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sidebar-card-buttons button:hover,
.sidebar-card-buttons button:focus-visible {
  border-color: rgba(113, 249, 223, 0.65);
  background: rgba(113, 249, 223, 0.12);
  color: #e6fff8;
}

/* Test page only: hide the sidebar-injected filter/session widgets since
   this page renders a single combined box instead. */
.test-page #global-server-filter,
.test-page #sidebar-session-card {
  display: none !important;
}

.test-combo-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 10px 0;
  padding: 10px 12px;
  border: 1px solid rgba(145, 160, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 14px rgba(145, 160, 255, 0.22);
}

.test-combo-server {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-combo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.test-combo-session {
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.test-combo-label {
  color: #697596;
  font-size: 11px;
  font-weight: 700;
}

.test-combo-value {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.test-combo-row select {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  box-sizing: border-box;
  margin-top: 0;
  border: 1px solid rgba(145, 160, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.62);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px;
  cursor: pointer;
}

.test-combo-apply {
  flex: 1 1 0;
  min-width: 0;
  height: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(145, 160, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.62);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.test-combo-apply:hover,
.test-combo-apply:focus-visible {
  border-color: rgba(113, 249, 223, 0.65);
  background: rgba(113, 249, 223, 0.12);
  color: #e6fff8;
}

.test-combo-divider {
  height: 1px;
  background: var(--line);
}

.test-combo-logout {
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(145, 160, 255, 0.28);
  border-radius: 8px;
  background: rgba(8, 14, 32, 0.62);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.test-combo-logout:hover,
.test-combo-logout:focus-visible {
  border-color: rgba(113, 249, 223, 0.65);
  background: rgba(113, 249, 223, 0.12);
  color: #e6fff8;
}

.sidebar-user-value {
  word-break: break-word;
}

.main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.page-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 76px 48px 42px;
}

.trends-page .page-content {
  padding: 24px 48px 42px;
}

.dashboard-page .page-content {
  padding-top: 16px;
}

.history-page .page-content {
  padding-top: 16px;
}

.individual-page .page-content {
  padding-top: 16px;
}

.leaderboards-page .page-content {
  padding-top: 16px;
}
.leaderboards-test-page .page-content {
  padding-top: 16px;
}

.profile-page .page-content {
  padding-top: 16px;
}

.leaderboard-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.leaderboard-kpi-card {
  padding: 18px;
}
.leaderboards-test-page .history-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.leaderboard-test-stage {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 107, 0.12), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(96, 165, 250, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(15, 22, 48, 0.96), rgba(10, 15, 33, 0.98));
}
.leaderboard-test-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.03) 48%, transparent 100%),
    linear-gradient(transparent 0, rgba(255, 255, 255, 0.02) 49%, transparent 100%);
  background-size: 100% 100%, 100% 54px;
  opacity: 0.75;
  pointer-events: none;
}
.leaderboard-test-stage.theme-orange {
  --leaderboard-test-accent: #f6bf63;
  --leaderboard-test-accent-soft: rgba(245, 158, 11, 0.24);
}
.leaderboard-test-stage.theme-blue {
  --leaderboard-test-accent: #8fc2ff;
  --leaderboard-test-accent-soft: rgba(96, 165, 250, 0.24);
}
.leaderboard-test-stage.theme-purple {
  --leaderboard-test-accent: #d7bbff;
  --leaderboard-test-accent-soft: rgba(167, 139, 250, 0.24);
}
.leaderboard-test-stage.theme-green {
  --leaderboard-test-accent: #a8f7d5;
  --leaderboard-test-accent-soft: rgba(34, 197, 94, 0.24);
}
.leaderboard-test-stage.theme-red {
  --leaderboard-test-accent: #ffc2c2;
  --leaderboard-test-accent-soft: rgba(239, 68, 68, 0.24);
}
.leaderboard-test-stage.theme-teal {
  --leaderboard-test-accent: #b6f6f8;
  --leaderboard-test-accent-soft: rgba(20, 184, 166, 0.24);
}
.leaderboard-test-header {
  margin-bottom: 28px;
  text-align: center;
}
.leaderboard-test-header-title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--leaderboard-test-accent, #ffd36b);
  text-shadow: 0 0 30px var(--leaderboard-test-accent-soft, rgba(255, 211, 107, 0.3));
  filter: drop-shadow(0 0 12px var(--leaderboard-test-accent-soft, rgba(255, 211, 107, 0.2)));
}

.leaderboard-test-podium {
  position: relative;
  z-index: 1;
}
.leaderboard-test-podium {
  margin-top: 0;
}
.leaderboard-test-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
.leaderboard-test-podium-slot {
  --podium-height: 186px;
  --podium-rank-color: var(--leaderboard-test-accent, #f6bf63);
  position: relative;
  min-height: 410px;
  padding: 18px 20px calc(var(--podium-height) + 30px);
  border: 1px solid rgba(173, 188, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, var(--leaderboard-test-accent-soft, rgba(245, 158, 11, 0.18)), transparent 34%),
    linear-gradient(180deg, rgba(21, 29, 58, 0.96), rgba(9, 14, 30, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px rgba(2, 6, 23, 0.35);
  text-align: center;
  overflow: visible;
}
.leaderboard-test-podium-slot::before {
  content: '';
  position: absolute;
  right: 12%;
  bottom: calc(var(--podium-height) - 14px);
  left: 12%;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 24px var(--leaderboard-test-accent-soft, rgba(245, 158, 11, 0.18));
}
.leaderboard-test-podium-slot::after {
  content: '';
  position: absolute;
  right: 16%;
  bottom: 8px;
  left: 16%;
  height: var(--podium-height);
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 34px rgba(4, 8, 24, 0.3);
}
.leaderboard-test-podium-slot.rank-1 {
  --podium-height: 216px;
  --podium-rank-color: #ffd36b;
  transform: translateY(-20px);
  padding-top: 38px;
}
.leaderboard-test-podium-slot.rank-2 {
  --podium-height: 170px;
  --podium-rank-color: #d8e0ef;
}
.leaderboard-test-podium-slot.rank-3 {
  --podium-height: 148px;
  --podium-rank-color: #d79b6f;
}
.leaderboard-test-podium-slot.is-empty {
  opacity: 0.55;
}
.leaderboard-test-medal {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 72px;
  margin: 0 auto 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.leaderboard-test-medal.rank-1-medal {
  background-image: url('medal1.svg');
  filter: drop-shadow(0 0 12px rgba(255, 211, 107, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.leaderboard-test-medal.rank-2-medal {
  background-image: url('medal2.svg');
  filter: drop-shadow(0 0 10px rgba(216, 224, 239, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.leaderboard-test-medal.rank-3-medal {
  background-image: url('medal3.svg');
  filter: drop-shadow(0 0 10px rgba(215, 155, 111, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.leaderboard-test-rank-badge,
.leaderboard-test-name,
.leaderboard-test-meta,
.leaderboard-test-value {
  position: relative;
  z-index: 1;
}
.leaderboard-test-rank-badge {
  margin-bottom: 8px;
  color: var(--podium-rank-color);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-shadow: 0 0 28px color-mix(in srgb, var(--podium-rank-color) 28%, transparent);
}
.leaderboard-test-name {
  margin-top: 6px;
  color: #f4f7ff;
  font-size: clamp(12px, 2vw, 18px);
  font-weight: 850;
  line-height: 1.15;
  word-break: break-word;
}
.leaderboard-test-meta {
  position: absolute;
  bottom: calc(var(--podium-height) / 2);
  left: 50%;
  transform: translate(-50%, 50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  align-items: center;
}
.leaderboard-test-meta-box {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.55;
}
.leaderboard-test-value {
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(12px, 3.4vw, 32px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.12);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  padding: 0 4px;
}
.leaderboard-test-loading {
  padding: 54px 18px;
  border: 1px solid rgba(166, 181, 244, 0.14);
  border-radius: 18px;
  color: #b3bedf;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: rgba(7, 13, 29, 0.5);
}

.leaderboards-page .history-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leaderboard-kpi-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-align: center;
}

.leaderboards-page .leaderboard-kpi-card.blue .leaderboard-kpi-title {
  color: #8fc2ff;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

.leaderboards-page .leaderboard-kpi-card.orange .leaderboard-kpi-title {
  color: #ffd098;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.leaderboards-page .leaderboard-kpi-card.purple .leaderboard-kpi-title {
  color: #d9bcff;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.35);
}

.leaderboards-page .leaderboard-kpi-card.green .leaderboard-kpi-title {
  color: #a8f7d5;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.leaderboards-page .leaderboard-kpi-card.red .leaderboard-kpi-title {
  color: #ffc2c2;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.leaderboards-page .leaderboard-kpi-card.teal .leaderboard-kpi-title {
  color: #b6f6f8;
  text-shadow: 0 0 10px rgba(20, 184, 166, 0.35);
}

.leaderboard-table {
  margin-top: 0;
}

.leaderboards-page .leaderboard-table {
  min-width: 0;
  table-layout: fixed;
}

.leaderboards-page .leaderboard-table th,
.leaderboards-page .leaderboard-table td {
  padding: 10px 9px;
  text-align: center;
}

.leaderboards-page .leaderboard-table th:first-child,
.leaderboards-page .leaderboard-table td:first-child {
  width: 92px;
  white-space: nowrap;
}

.leaderboards-page .leaderboard-table th:last-child,
.leaderboards-page .leaderboard-table td:last-child {
  text-align: center;
}

.contact-page .page-content {
  padding-top: 16px;
}

.input-page .page-content {
  padding-top: 16px;
}

.admin-login-page .page-content {
  padding-top: 16px;
}

.admin-page .page-content {
  padding-top: 16px;
}

.admin-page .page-content > .selection-panel + .selection-panel {
  margin-top: 12px;
}

.mobile-header {
  display: none;
}

.hero {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 4px 34px;
}

.hero-copy {
  max-width: 690px;
}

.hero-compact {
  min-height: 0;
  padding-bottom: 16px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent-mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 13px 0 17px;
  font-size: clamp(38px, 4.3vw, 61px);
  font-weight: 750;
  letter-spacing: -0.067em;
  line-height: 0.99;
}

h1 em {
  color: var(--accent-bright);
  font-style: normal;
}

.hero-description {
  max-width: 550px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.66;
}

.hero-orb {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(172, 188, 255, 0.22);
  border-radius: 50%;
  color: #c6ceff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.09em;
  background: radial-gradient(circle at 36% 28%, #5364d5, #242a62 53%, #171d49);
  box-shadow: inset 0 0 35px rgba(170, 185, 255, 0.2), 0 25px 50px rgba(34, 41, 113, 0.32);
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(205, 215, 255, 0.22);
  border-radius: 50%;
}

.orb-ring-one {
  width: 105px;
  height: 105px;
}

.orb-ring-two {
  width: 175px;
  height: 175px;
  border-style: dashed;
  animation: spin 22s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.47fr) minmax(270px, 0.8fr);
  gap: 18px;
}

.goal-dashboard-button {
  width: auto;
  margin-top: 0;
  max-width: 100%;
  padding: 0 24px;
}

.goal-dashboard-page .panel-heading {
  justify-content: flex-start;
}

.goal-dashboard-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.goal-dashboard-page .goal-dashboard-filter-panel {
  padding: 10px 14px;
}

.goal-dashboard-page .goal-dashboard-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.goal-dashboard-page .goal-dashboard-filter-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.goal-dashboard-page .goal-dashboard-filter-row select {
  flex: 1;
  max-width: none;
}

.goal-dashboard-page .goal-dashboard-filter-row .goal-dashboard-button {
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  padding: 10px 20px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.goal-dashboard-page .goal-dashboard-hero {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.selection-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.selection-panel {
  padding: 29px;
}

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

.panel-heading h2 {
  margin: 8px 0 12px;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.step-pill {
  padding: 7px 9px;
  border: 1px solid rgba(152, 169, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(105, 123, 246, 0.08);
}

.selection-text {
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.goalinput2-page .selection-text {
  margin-top: 0;
  color: #ffffff;
  font-weight: 800;
}

.killstats-total {
  margin: -14px 0 16px;
  color: #ffcd90;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.goalinput2-page .selection-fields {
  grid-template-columns: 1fr;
}

.input-page .selection-fields {
  grid-template-columns: 1fr;
}

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

.selection-fields.profile-alliance-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 840px) {
  .selection-fields.profile-alliance-fields {
    grid-template-columns: 1fr;
  }
}

.character-field {
  grid-column: 1 / -1;
}

label {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.optional {
  color: #6f7b99;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

select {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 39px 0 13px;
  appearance: none;
  border: 1px solid rgba(167, 184, 244, 0.17);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: #0d1530 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a4c4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") calc(100% - 13px) center / 16px no-repeat;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.sidebar-card select,
.sidebar-server-filter select {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  margin-top: 0;
  padding: 0 32px 0 10px;
  border: 1px solid rgba(145, 160, 255, 0.14);
  border-radius: 8px;
  outline: none;
  color: #8f9ab8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(8, 14, 32, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238f9ab8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") calc(100% - 10px) center / 14px no-repeat;
}

.sidebar-card select:hover:not(:disabled),
.sidebar-card select:focus,
.sidebar-server-filter select:hover:not(:disabled),
.sidebar-server-filter select:focus {
  border-color: rgba(145, 160, 255, 0.14);
  box-shadow: none;
}

select:hover:not(:disabled) {
  border-color: rgba(173, 189, 255, 0.38);
}

select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 130, 255, 0.14);
}

select:disabled {
  cursor: not-allowed;
  color: #65708d;
  background-color: #0b1128;
}

option {
  color: #edf2ff;
  background: #111a39;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid rgba(167, 184, 244, 0.17);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: none;
  background: #0d1530;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input {
  height: 48px;
}

textarea {
  min-height: 128px;
  padding-top: 12px;
  resize: vertical;
}

input:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: rgba(173, 189, 255, 0.38);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(112, 130, 255, 0.14);
}

input:disabled,
textarea:disabled {
  cursor: not-allowed;
  color: #65708d;
  background-color: #0b1128;
}

input[readonly] {
  background-color: rgba(8, 14, 32, 0.45);
  color: #8f9ab8;
  cursor: default;
  border-color: rgba(145, 160, 255, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: #7080a3;
}

.form-message {
  min-height: 18px;
  margin: 13px 0 0;
  color: #ffb4b4;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.form-message.is-visible {
  opacity: 1;
}

.confirm-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 27px;
  width: 100%;
  margin-top: 7px;
  padding: 0 19px;
  border: 1px solid rgba(224, 230, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  color: #10152d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(110deg, #a2b0ff, #6e80ef);
  box-shadow: 0 12px 27px rgba(68, 84, 209, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.game-selector-page #game-selector-submit {
  margin-top: 18px;
}

.confirm-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 17px 31px rgba(68, 84, 209, 0.36);
}

.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(224, 230, 255, 0.2);
  border-radius: 11px;
  cursor: pointer;
  color: #10152d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(110deg, #a2b0ff, #6e80ef);
  box-shadow: 0 12px 27px rgba(68, 84, 209, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.submit-button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 17px 31px rgba(68, 84, 209, 0.36);
}

.admin-logout-button {
  margin-top: 10px;
  color: #ffe6e6;
  border-color: rgba(255, 152, 152, 0.3);
  background: linear-gradient(110deg, #7a2b33, #b23a44);
  box-shadow: 0 12px 27px rgba(122, 43, 51, 0.32);
}

.admin-logout-button:hover {
  box-shadow: 0 17px 31px rgba(122, 43, 51, 0.4);
}

.error-text {
  min-height: 18px;
  margin-top: 10px;
  color: #ffb4b4;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.beta-access {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 12px;
}

.beta-banner {
  width: 100%;
  max-width: 700px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.65);
}

.login-banner-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.login-intro {
  width: min(700px, 100%);
  margin: 0 auto 20px;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.squad-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  text-align: center;
  color: #ffffff;
}

.glow-title {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.glow-divider {
  height: 1px;
  width: 70%;
  max-width: 400px;
  margin: 4px 0 12px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.glow-badge {
  padding: 10px 24px;
  border: 1.5px solid #3b82f6;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.subtle-disclaimer {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

.cta-text {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.cta-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
}

.login-page .login-banner-wrap,
.login-page .selection-panel {
  width: min(700px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.login-page .selection-panel {
  text-align: center;
}

.login-page .selection-fields {
  text-align: left;
}

.login-page .panel-heading {
  justify-content: center;
}

.login-submit-button {
  margin-top: 8px;
}

.contact-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  text-decoration: none;
}

#login-error {
  margin-top: 12px;
}

.login-page .panel-heading h2 {
  margin-bottom: 10px;
}

#errorMessage {
  min-height: 18px;
  margin: 0;
  color: #ffb4b4;
  font-size: 12px;
}

.filter-row {
  margin: 16px 0 20px;
}

.filter-row label {
  display: block;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: none;
}

.filter-row select {
  max-width: 300px;
}

.filter-inline {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.filter-inline label {
  flex: 1;
}

.trends-nav-button {
  width: auto;
  min-width: 154px;
  margin-top: 0;
  padding: 0 18px;
  white-space: nowrap;
}

.history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 16px 0 22px;
}

.history-page .history-filters {
  margin-top: 0;
}

.history-filters .filter-row {
  margin: 0;
}

.history-filters .filter-row select {
  max-width: none;
}

.history-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 18, 41, 0.62);
}

.individual-page .history-table-wrap {
  max-height: 305px;
  overflow-y: auto;
}

.individual-page .history-table thead {
  background: rgba(37, 52, 93, 0.72);
}

.individual-page .history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(37, 52, 93, 0.96);
  box-shadow: 0 1px 0 rgba(162, 181, 244, 0.18);
}

.history-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  color: #e8ecff;
  font-size: 13px;
}

.history-table th,
.history-table td {
  padding: 12px 13px;
  border-bottom: 1px solid rgba(162, 181, 244, 0.14);
  text-align: left;
}

.history-table th:last-child,
.history-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.history-table th {
  color: #a9b4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-table tbody tr:hover {
  background: rgba(109, 129, 246, 0.08);
}

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

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  color: var(--muted);
}

.sortable.sort-asc::after {
  content: '\25B2';
}

.sortable.sort-desc::after {
  content: '\25BC';
}

.history-actions-cell {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.history-row-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(163, 179, 255, 0.34);
  border-radius: 8px;
  cursor: pointer;
  color: #ecf1ff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: rgba(109, 129, 246, 0.16);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.history-row-action:hover:not(:disabled) {
  background: rgba(109, 129, 246, 0.28);
  border-color: rgba(180, 194, 255, 0.56);
  transform: translateY(-1px);
}

.history-row-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.history-row-action-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(162, 181, 244, 0.24);
}

.history-row-action-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

.history-row-action-danger {
  background: rgba(210, 60, 72, 0.2);
  border-color: rgba(255, 122, 132, 0.42);
}

.history-row-action-danger:hover:not(:disabled) {
  background: rgba(210, 60, 72, 0.34);
  border-color: rgba(255, 145, 154, 0.62);
}

.history-edit-input {
  width: 100%;
  height: 36px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

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

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

.dashboard-meta-card {
  padding: 14px 15px;
}

.dashboard-page .dashboard-meta-card,
.dashboard-page .kpi-grid .kpi-card {
  text-align: center;
}

.dashboard-meta-value {
  margin-top: 8px;
  color: #eaf0ff;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.kpi-card {
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.76);
}

.dashboard-page .kpi-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dashboard-page .kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.dashboard-page .kpi-card:hover {
  transform: translateY(-3px);
}

.dashboard-page .kpi-card:hover::after {
  opacity: 1;
}

.kpi-label {
  color: #a9b4d5;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-page .kpi-label {
  font-family: 'Orbitron', sans-serif;
}

.dashboard-page .kpi-card.blue .kpi-label {
  color: #8fc2ff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

.dashboard-page .kpi-card.orange .kpi-label {
  color: #ffd098;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.dashboard-page .kpi-card.purple .kpi-label {
  color: #d9bcff;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.35);
}

.dashboard-page .kpi-card.green .kpi-label {
  color: #a8f7d5;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.35);
}

.dashboard-page .kpi-card.red .kpi-label {
  color: #ffc2c2;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.dashboard-page .kpi-card.teal .kpi-label {
  color: #b6f6f8;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(20, 184, 166, 0.35);
}

.kpi-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.dashboard-page .kpi-value {
  font-family: 'Orbitron', sans-serif;
}

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

.profile-snapshot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 17, 36, 0.52);
}

.profile-snapshot-label {
  color: #a9b4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-snapshot-value {
  color: #eaf0ff;
  font-size: 16px;
  font-weight: 760;
  text-align: right;
  word-break: break-word;
}

.profile-attack-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, 220px);
}

.profile-attack-select {
  min-width: 0;
  margin-top: 0;
}

.profile-status {
  margin: 14px 2px 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.kpi-delta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-page .kpi-delta {
  font-family: 'Orbitron', sans-serif;
  color: #5be2a8;
  font-weight: 800;
}

.kpi-card.blue {
  border-color: rgba(130, 178, 255, 0.35);
}

.dashboard-page .kpi-card.blue {
  box-shadow: inset 0 0 0 1px rgba(130, 178, 255, 0.22), 0 8px 24px rgba(76, 125, 255, 0.16);
}

.dashboard-page .kpi-card.blue::after {
  box-shadow: inset 0 0 0 1px rgba(130, 178, 255, 0.55), inset 0 0 24px rgba(130, 178, 255, 0.2), 0 0 24px rgba(96, 165, 250, 0.28);
}

.kpi-card.orange {
  border-color: rgba(255, 176, 113, 0.35);
}

.dashboard-page .kpi-card.orange {
  box-shadow: inset 0 0 0 1px rgba(255, 176, 113, 0.22), 0 8px 24px rgba(245, 158, 11, 0.14);
}

.dashboard-page .kpi-card.orange::after {
  box-shadow: inset 0 0 0 1px rgba(255, 176, 113, 0.55), inset 0 0 24px rgba(255, 176, 113, 0.2), 0 0 24px rgba(245, 158, 11, 0.26);
}

.kpi-card.purple {
  border-color: rgba(187, 154, 255, 0.35);
}

.dashboard-page .kpi-card.purple {
  box-shadow: inset 0 0 0 1px rgba(187, 154, 255, 0.22), 0 8px 24px rgba(167, 139, 250, 0.15);
}

.dashboard-page .kpi-card.purple::after {
  box-shadow: inset 0 0 0 1px rgba(187, 154, 255, 0.55), inset 0 0 24px rgba(187, 154, 255, 0.2), 0 0 24px rgba(167, 139, 250, 0.28);
}

.kpi-card.green {
  border-color: rgba(118, 228, 187, 0.35);
}

.dashboard-page .kpi-card.green {
  box-shadow: inset 0 0 0 1px rgba(118, 228, 187, 0.22), 0 8px 24px rgba(34, 197, 94, 0.14);
}

.dashboard-page .kpi-card.green::after {
  box-shadow: inset 0 0 0 1px rgba(118, 228, 187, 0.55), inset 0 0 24px rgba(118, 228, 187, 0.2), 0 0 24px rgba(34, 197, 94, 0.24);
}

.kpi-card.red {
  border-color: rgba(255, 132, 132, 0.35);
}

.dashboard-page .kpi-card.red {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.22), 0 8px 24px rgba(239, 68, 68, 0.15);
}

.dashboard-page .kpi-card.red::after {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.55), inset 0 0 24px rgba(255, 132, 132, 0.2), 0 0 24px rgba(239, 68, 68, 0.26);
}

.kpi-card.teal {
  border-color: rgba(115, 223, 229, 0.35);
}

.dashboard-page .kpi-card.teal {
  box-shadow: inset 0 0 0 1px rgba(115, 223, 229, 0.22), 0 8px 24px rgba(20, 184, 166, 0.14);
}

.dashboard-page .kpi-card.teal::after {
  box-shadow: inset 0 0 0 1px rgba(115, 223, 229, 0.55), inset 0 0 24px rgba(115, 223, 229, 0.2), 0 0 24px rgba(20, 184, 166, 0.26);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .kpi-card {
    transition: none;
  }

  .dashboard-page .kpi-card:hover {
    transform: none;
  }
}

.chart-section {
  margin-top: 16px;
}

.chart-box {
  height: 340px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 21, 48, 0.76);
}

.chart-box canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.killstats-chart-box {
  height: 280px;
  margin-top: 16px;
}

.killstats-page .history-table {
  min-width: 520px;
}

.killstats-page .history-table thead {
  background: rgba(37, 52, 93, 0.72);
}

.killstats-page .history-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(37, 52, 93, 0.96);
  box-shadow: 0 1px 0 rgba(162, 181, 244, 0.18);
}

.killstats-page .history-table tbody tr:nth-child(even) {
  background: rgba(109, 129, 246, 0.045);
}

.killstats-page .history-table tbody tr td:first-child {
  color: #f4f6ff;
  font-weight: 750;
}

.killstats-page .history-table .delta-positive,
.killstats-page .history-table .delta-negative,
.killstats-page .history-table .delta-neutral {
  display: inline-flex;
  min-width: 56px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 16, 32, 0.34);
}

.killstats-page .killstats-weekly-table-wrap {
  max-height: 250px;
  overflow-y: auto;
}

.killstats-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

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

.killstats-collapsible summary::after {
  content: '\25BE';
  position: absolute;
  right: 0;
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.killstats-collapsible[open] summary::after {
  transform: rotate(180deg);
}

.killstats-collapsible:not([open]) summary {
  margin-bottom: 0;
}

.chart-help-text {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.individual-metric-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  text-align:center;
}

.individual-metric-blue {
  color: #95c4ff;
}

.individual-metric-orange {
  color: #ffcd90;
}

.individual-total-kills {
  margin: -6px 0 14px;
  color: #ffdcae;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.individual-metric-purple {
  color: #d2b7ff;
}

.individual-metric-green {
  color: #9df2ce;
}

.individual-metric-red {
  color: #ffb8b8;
}

.individual-metric-teal {
  color: #a5f0f4;
}

.individual-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.individual-page .page-footer {
  margin-top: 26px;
}

.individual-page .history-table {
  min-width: 0;
  table-layout: fixed;
}

.individual-page .history-table th,
.individual-page .history-table td {
  padding: 10px 9px;
}

.individual-page .history-table th:first-child,
.individual-page .history-table td:first-child {
  width: 132px;
  text-align: center;
  white-space: nowrap;
}

.individual-page .history-table th:not(:first-child),
.individual-page .history-table td:not(:first-child) {
  text-align: center;
}

.individual-page .history-table th:last-child,
.individual-page .history-table td:last-child {
  text-align: center;
}

.sitemap-page .history-table th {
  text-align: center;
}

.sitemap-page .history-table td:nth-child(2) {
  text-align: center;
}

.sitemap-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.about-page-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(124, 140, 255, 0.35);
}

.about-page .selection-panel {
  box-shadow: var(--shadow), 0 0 32px rgba(145, 160, 255, 0.2);
}

.about-page-text {
  max-width: 720px;
  margin: 0 auto 14px;
  text-align: center;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.about-page-text:last-child {
  margin-bottom: 0;
}

.sitemap-stack-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sitemap-stack-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 18, 41, 0.62);
  text-align: center;
}

.sitemap-stack-label {
  color: #a9b4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sitemap-stack-desc {
  color: #e8ecff;
  font-size: 13px;
  line-height: 1.55;
}

.killstats-page .page-content {
  padding-top: 16px;
}

.killstats-page .history-table {
  min-width: 0;
  table-layout: fixed;
}

.killstats-page .history-table th,
.killstats-page .history-table td {
  padding: 10px 9px;
  text-align: center;
}

.killstats-page .history-table th:first-child,
.killstats-page .history-table td:first-child {
  width: 132px;
  white-space: nowrap;
}

.killstats-page .history-table th:last-child,
.killstats-page .history-table td:last-child {
  text-align: center;
}

.killstats-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

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

.killstats-filters select {
  max-width: none;
}

.goal-dashboard-page .history-table {
  min-width: 0;
  table-layout: fixed;
}

.goal-dashboard-page .history-table th,
.goal-dashboard-page .history-table td {
  padding: 10px 9px;
  text-align: center;
}

.goal-dashboard-page .history-table th:first-child,
.goal-dashboard-page .history-table td:first-child {
  width: 132px;
  white-space: nowrap;
}

.goal-dashboard-page .history-table th:last-child,
.goal-dashboard-page .history-table td:last-child {
  text-align: center;
}

.trends-page .trends-section + .trends-section {
  margin-top: 24px;
}

.trends-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

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

.trends-month-card {
  padding: 16px;
}

.trends-month-name {
  margin-top: 7px;
  color: #eaf0ff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

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

.trends-metric-chip {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 16, 36, 0.55);
}

.trends-metric-label {
  display: block;
  color: #a9b4d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trends-metric-value {
  display: block;
  margin-top: 5px;
  color: #e8ecff;
  font-size: 16px;
  font-weight: 750;
}

.trends-empty-card {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
}

.delta-positive {
  color: #5be2a8;
  font-weight: 700;
}

.delta-negative {
  color: #ff8f8f;
  font-weight: 700;
}

.delta-neutral {
  color: var(--muted);
}

.goal-status-met {
  color: #5be2a8;
  font-weight: 700;
}

.goal-status-not-met {
  color: #ff8f8f;
  font-weight: 700;
}

.dashboard-page .delta-positive,
.dashboard-page .delta-negative,
.dashboard-page .delta-neutral {
  color: #5be2a8;
  font-weight: 800;
}

.confirm-button:focus-visible,
.menu-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-mint);
  outline-offset: 3px;
}


.page-footer {
  width: min(1120px, 100%);
  margin: auto auto 0;
  padding: 20px 52px 24px;
  color: #65718f;
  font-size: 11px;
}

.page-footer span {
  padding: 0 7px;
  color: #8b96b5;
}

@media (max-width: 840px) {
  .sidebar {
    position: fixed;
    z-index: 20;
    width: 272px;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-103%);
    transition: transform 0.22s ease;
    box-shadow: 22px 0 40px rgba(0, 0, 0, 0.3);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    z-index: 10;
    inset: 0;
    background: rgba(3, 7, 18, 0.64);
    backdrop-filter: blur(2px);
  }

  .mobile-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 16, 32, 0.74);
    backdrop-filter: blur(14px);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    cursor: pointer;
    color: var(--muted-strong);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
  }

  .menu-button span:first-child {
    color: var(--accent-bright);
    font-size: 18px;
  }

  .mobile-brand {
    color: #eef1ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.04em;
  }

  .page-content {
    padding: 57px 28px 36px;
  }

  .dashboard-page .page-content {
    padding-top: 22px;
  }

  .history-page .page-content {
    padding-top: 12px;
  }
    .leaderboards-test-page .page-content {
      padding-top: 12px;
    }

  .individual-page .page-content {
    padding-top: 12px;
  }

  .leaderboards-page .page-content {
    padding-top: 12px;
  }

  .profile-page .page-content {
    padding-top: 12px;
  }

  .leaderboard-sections {
    grid-template-columns: 1fr;
  }
    .leaderboards-test-page .history-filters {
      grid-template-columns: 1fr;
    }
    .leaderboard-test-podium-slot {
      min-height: 382px;
      padding-right: 16px;
      padding-left: 16px;
    }

  .leaderboards-page .leaderboard-table {
    min-width: 0;
  }

  .contact-page .page-content {
    padding-top: 12px;
  }

    .leaderboards-test-page .page-content {
      padding-top: 8px;
    }

  .admin-login-page .page-content {
    padding-top: 8px;
  }

  .admin-page .page-content {
    padding-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 0 3px 35px;
  }

  h1 {
    font-size: clamp(37px, 11vw, 52px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-orb {
    display: none;
  }

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

  .selection-panel {
    border-radius: 17px;
  }

  .selection-panel {
    padding: 23px 18px;
  }

  .selection-fields {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .filter-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .trends-nav-button {
    width: 100%;
  }

  .trends-metrics-grid {
    grid-template-columns: 1fr;
  }

  .character-field {
    grid-column: auto;
  }

  .page-footer {
    padding: 18px 20px 23px;
    font-size: 10px;
  }

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

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

  .dashboard-meta-value {
    font-size: 17px;
  }

  .history-filters {
    grid-template-columns: 1fr;
  }

  .individual-page .history-table {
    font-size: 12px;
  }

  .individual-page .history-table th,
  .individual-page .history-table td {
    padding: 9px 6px;
  }

  .individual-page .history-table th:first-child,
  .individual-page .history-table td:first-child {
    width: 112px;
  }

  .killstats-page .history-table {
    font-size: 12px;
  }

  .killstats-page .history-table th,
  .killstats-page .history-table td {
    padding: 9px 6px;
  }

  .killstats-page .history-table th:first-child,
  .killstats-page .history-table td:first-child {
    width: 112px;
  }

  .killstats-chart-box {
    height: 200px;
    padding: 10px;
    margin-top: 12px;
  }

  .goal-dashboard-page .history-table {
    font-size: 12px;
  }

  .goal-dashboard-page .history-table th,
  .goal-dashboard-page .history-table td {
    padding: 9px 6px;
  }

  .goal-dashboard-page .history-table th:first-child,
  .goal-dashboard-page .history-table td:first-child {
    width: 112px;
  }

}

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

@media (max-width: 640px) {
  .goal-dashboard-page .panel-heading {
    align-items: stretch;
  }

  .goal-dashboard-page .goal-dashboard-button {
    width: 100%;
    min-height: 44px;
    margin-top: 0;
  }

  .goal-dashboard-page .filter-row {
    margin: 12px 0 16px;
  }

  .goal-dashboard-page .filter-row select {
    max-width: none;
  }

  .killstats-page .history-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .killstats-page .killstats-weekly-table-wrap {
    max-height: 620px;
    overflow-y: auto;
    border: 1px solid var(--line);
    background: rgba(11, 18, 41, 0.62);
  }

  .killstats-page .history-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0 10px;
    border-collapse: separate;
  }

  .killstats-page .history-table thead {
    display: none;
  }

  .killstats-page .history-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11, 18, 41, 0.62);
  }

  .killstats-page .history-table tbody tr:hover {
    background: rgba(11, 18, 41, 0.62);
  }

  .killstats-page .history-table td {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    text-align: left !important;
    white-space: normal;
  }

  .killstats-page .history-table td::before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: #a9b4d5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .goal-dashboard-page .history-table-wrap {
    overflow: visible;
    border: none;
    background: transparent;
  }

  .goal-dashboard-page .history-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0 10px;
    border-collapse: separate;
  }

  .goal-dashboard-page .history-table thead {
    display: none;
  }

  .goal-dashboard-page .history-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11, 18, 41, 0.62);
  }

  .goal-dashboard-page .history-table tbody tr:hover {
    background: rgba(11, 18, 41, 0.62);
  }

  .goal-dashboard-page .history-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    border: none;
    text-align: right !important;
    white-space: normal;
    font-size: 13px;
  }

  .goal-dashboard-page .history-table td::before {
    margin-bottom: 0;
    color: #a9b4d5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
  }

  .goal-dashboard-page .history-table td:nth-child(1)::before {
    content: 'Metric';
  }

  .goal-dashboard-page .history-table td:nth-child(2)::before {
    content: 'Current KPI';
  }

  .goal-dashboard-page .history-table td:nth-child(3)::before {
    content: 'Goal';
  }

  .goal-dashboard-page .history-table td:nth-child(4)::before {
    content: 'Current vs Goal';
  }

  .goal-dashboard-page .history-table td:nth-child(5)::before {
    content: 'Status';
  }

  .goal-dashboard-page .history-table td[colspan] {
    display: block;
    text-align: center !important;
    color: var(--muted-strong);
  }

  .goal-dashboard-page .history-table td[colspan]::before {
    content: none;
  }

  .individual-page .history-table-wrap {
    max-height: 384px;
    overflow-y: auto;
    overflow-x: hidden;
    border: none;
    background: transparent;
  }

  .individual-page .history-table {
    min-width: 0;
    width: 100%;
    border-spacing: 0 10px;
    border-collapse: separate;
  }

  .individual-page .history-table thead {
    display: none;
  }

  .individual-page .history-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(11, 18, 41, 0.62);
  }

  .individual-page .history-table tbody tr:hover {
    background: rgba(11, 18, 41, 0.62);
  }

  .individual-page .history-table td {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: none;
    text-align: left !important;
    white-space: normal;
  }

  .individual-page .history-table td::before {
    content: attr(data-label);
    margin-bottom: 3px;
    color: #a9b4d5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .individual-page .history-table td[colspan] {
    display: block;
    grid-column: 1 / -1;
    text-align: center !important;
    color: var(--muted-strong);
  }

  .individual-page .history-table td[colspan]::before {
    content: none;
  }

  .leaderboards-test-page .leaderboard-test-podium-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .leaderboards-test-page .leaderboard-test-podium-slot {
    width: min(100%, 360px);
    margin: 0 auto;
    min-height: 312px;
    padding: 6px 10px calc(var(--podium-height) + 18px);
    border-radius: 18px;
  }

  .leaderboards-test-page .leaderboard-test-podium-slot.rank-1 {
    order: 1;
    transform: none;
  }

  .leaderboards-test-page .leaderboard-test-podium-slot.rank-2 {
    order: 2;
  }

  .leaderboards-test-page .leaderboard-test-podium-slot.rank-3 {
    order: 3;
  }

  .leaderboards-test-page .leaderboard-test-meta {
    font-size: 11px;
  }

  .leaderboards-test-page .leaderboard-test-value {
    font-size: clamp(18px, 5vw, 26px);
  }
}

/* Growth page */

.growth-page .page-content > .selection-panel + .selection-panel {
  margin-top: 24px;
}

.growth-page .page-content > .selection-panel:first-child {
  padding: 10px 14px;
}

.growth-page .filter-row {
  margin: 0;
}

.growth-page .filter-row label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.growth-page .filter-row select {
  flex: 0 1 320px;
  max-width: 320px;
}

.growth-page .growth-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.growth-page .growth-filter-label {
  flex: 1;
}

.growth-page .growth-killstats-button {
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
  padding: 10px 20px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.growth-hero {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.growth-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(130, 178, 255, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(96, 165, 250, 0.22) 0%, transparent 55%),
    radial-gradient(120% 180% at 100% 0%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),
    rgba(9, 16, 36, 0.72);
  box-shadow: 0 14px 36px rgba(76, 125, 255, 0.16);
}

.growth-hero-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.growth-hero-eyebrow {
  color: #a9b4d5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.growth-hero-name {
  color: #eaf0ff;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.growth-hero-range {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
}

.growth-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.growth-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 104px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 16, 36, 0.55);
}

.growth-hero-stat-value {
  color: #eaf0ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.growth-hero-stat-label {
  color: #a9b4d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.growth-hero-empty {
  padding: 20px 4px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
}

.growth-kpi-grid {
  display: flex;
  gap: 14px;
}

.growth-kpi-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.growth-kpi-card {
  --growth-accent: #82b2ff;
  padding: 18px;
  overflow: hidden;
}

.growth-kpi-card.blue { --growth-accent: #82b2ff; }
.growth-kpi-card.orange { --growth-accent: #ffb071; }
.growth-kpi-card.purple { --growth-accent: #bb9aff; }
.growth-kpi-card.green { --growth-accent: #76e4bb; }
.growth-kpi-card.red { --growth-accent: #ff8484; }
.growth-kpi-card.teal { --growth-accent: #73dfe5; }

.growth-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.growth-kpi-label {
  color: var(--growth-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.growth-kpi-badge {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 16, 36, 0.55);
  font-size: 12px;
}

.growth-kpi-values {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.growth-value-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.growth-value-label {
  color: #a9b4d5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.growth-value {
  color: #e8ecff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.growth-value-block:last-child .growth-value {
  color: var(--growth-accent);
}

.growth-arrow {
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
}

.growth-delta-row {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 650;
}

.growth-sparkline {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 14px;
}

.growth-sparkline-line {
  fill: none;
  stroke: var(--growth-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.growth-sparkline-area {
  fill: var(--growth-accent);
  opacity: 0.12;
}

.growth-bar {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(9, 16, 36, 0.7);
  overflow: hidden;
}

.growth-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--growth-accent), rgba(255, 255, 255, 0.65));
  transition: width 0.6s ease;
}

.growth-bar-fill.negative {
  background: linear-gradient(90deg, #ff8484, rgba(255, 255, 255, 0.5));
}

@media (max-width: 640px) {
  .growth-hero-card {
    padding: 20px;
  }

  .growth-hero-stat {
    flex: 1 1 30%;
    min-width: 0;
  }

  .growth-value {
    font-size: 17px;
  }

  .growth-kpi-grid {
    flex-direction: column;
  }
}
