:root {
  --bg: #070806;
  --panel: rgba(17, 19, 17, 0.9);
  --panel-strong: #111311;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5ef;
  --muted: #969b91;
  --accent: #c8ff3d;
  --accent-2: #75f7c5;
  --success: #75f7c5;
  --danger: #ff6b6b;
  --warning: #ffd166;
  --radius: 18px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background:
    radial-gradient(circle at 84% 4%, rgba(200, 255, 61, 0.055), transparent 24%),
    linear-gradient(180deg, #070806 0%, #0a0c09 100%);
  color: var(--text);
}

::selection {
  background: var(--accent);
  color: #070806;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-noise {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.landing-orb {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.08;
}

.landing-orb-one {
  top: 120px;
  right: -140px;
  background: var(--accent);
}

.landing-orb-two {
  top: 1280px;
  left: -260px;
  background: var(--accent-2);
}

/* Public site */

.landing-body {
  min-width: 320px;
  overflow-x: hidden;
}

.landing-header {
  position: sticky;
  z-index: 50;
  top: 18px;
  display: grid;
  width: min(1380px, calc(100% - 40px));
  min-height: 72px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 14px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 12, 9, 0.8);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
}

.landing-brand img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  object-fit: cover;
  filter: contrast(1.08);
}

.landing-brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-brand strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.landing-brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.landing-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-navigation a {
  padding: 11px 13px;
  border-radius: 10px;
  color: #b9bdb4;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.landing-navigation a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.landing-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #090b07;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.landing-header-cta:hover,
.landing-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 255, 61, 0.18);
}

.landing-menu-button {
  display: none;
}

.landing-section {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
}

.landing-hero {
  display: grid;
  min-height: 760px;
  padding: 86px 0 96px;
  grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  align-items: center;
  gap: 64px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #c6c9c1;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 640px;
  margin: 28px 0 24px;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.landing-hero h1 span {
  color: var(--accent);
}

.landing-lead {
  max-width: 610px;
  margin: 0;
  color: #aeb3a8;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.landing-hero-actions,
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.landing-primary-button,
.landing-secondary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.landing-primary-button {
  background: var(--accent);
  color: #090b07;
}

.landing-secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.landing-secondary-button:hover {
  border-color: rgba(200, 255, 61, 0.38);
  background: rgba(200, 255, 61, 0.05);
}

.landing-proof {
  display: flex;
  max-width: 610px;
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.landing-proof div {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 21px 20px 0 0;
  flex-direction: column;
  gap: 5px;
}

.landing-proof div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.landing-proof strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.landing-proof span {
  color: var(--muted);
  font-size: 11px;
}

.product-stage {
  position: relative;
  min-width: 0;
  transform: perspective(1600px) rotateY(-4deg) rotateX(1deg);
}

.product-stage-glow {
  position: absolute;
  inset: 10% 8% -8%;
  border-radius: 50%;
  background: rgba(200, 255, 61, 0.13);
  filter: blur(90px);
}

.product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #0d0f0c;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.58);
}

.product-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.045), transparent 34%);
}

.product-window-bar {
  display: flex;
  min-height: 68px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.product-window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-window-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.product-window-brand span,
.product-demo-heading > div,
.product-chart-card > div:first-child,
.product-roster-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-window-brand strong {
  font-size: 12px;
}

.product-window-brand small,
.product-window-status,
.product-demo-heading small,
.product-demo-heading > span,
.product-chart-card small,
.product-roster-card small {
  color: var(--muted);
  font-size: 9px;
}

.product-window-status {
  display: flex;
  align-items: center;
  gap: 7px;
}

.product-window-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(117, 247, 197, 0.7);
}

.product-window-body {
  display: grid;
  min-height: 440px;
  grid-template-columns: 58px 1fr;
}

.product-mini-sidebar {
  display: flex;
  padding: 18px 10px;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.product-mini-sidebar span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #6f746c;
  font-size: 13px;
}

.product-mini-sidebar span.active {
  background: var(--accent);
  color: #090b07;
}

.product-demo-content {
  min-width: 0;
  padding: 25px;
}

.product-demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-demo-heading strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.product-demo-heading > span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-metric-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-metric-grid article,
.product-chart-card,
.product-roster-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.product-metric-grid article {
  display: flex;
  min-height: 105px;
  padding: 15px;
  flex-direction: column;
}

.product-metric-grid span,
.product-metric-grid small,
.product-chart-card span,
.product-roster-card span {
  color: var(--muted);
  font-size: 9px;
}

.product-metric-grid strong {
  margin: 13px 0 auto;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.product-metric-grid small.positive {
  color: var(--success);
}

.product-demo-lower {
  display: grid;
  margin-top: 10px;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}

.product-chart-card,
.product-roster-card {
  min-height: 178px;
  padding: 15px;
}

.product-chart-card > div:first-child,
.product-roster-card > div:first-child {
  flex-direction: row;
  justify-content: space-between;
}

.product-chart-card > div:first-child span,
.product-roster-card > div:first-child span {
  color: var(--text);
  font-weight: 700;
}

.product-chart {
  display: flex;
  height: 112px;
  padding-top: 18px;
  align-items: flex-end;
  gap: 9px;
}

.product-chart i {
  flex: 1;
  height: var(--height);
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(to top, rgba(200, 255, 61, 0.16), var(--accent));
}

.product-roster-card ol {
  display: grid;
  margin: 17px 0 0;
  padding: 0;
  gap: 7px;
  list-style: none;
}

.product-roster-card li {
  display: grid;
  padding: 8px 0;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 9px;
}

.product-roster-card li b {
  color: var(--accent);
  font-size: 8px;
}

.product-roster-card li strong {
  font-size: 9px;
}

.discord-float-card {
  position: absolute;
  right: -24px;
  bottom: -26px;
  display: grid;
  width: 255px;
  min-height: 82px;
  padding: 14px;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  background: rgba(17, 19, 17, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.discord-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #5865f2;
  color: white;
  font-size: 10px;
  font-weight: 850;
}

.discord-float-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-float-card strong {
  font-size: 11px;
}

.discord-float-card small {
  color: var(--muted);
  font-size: 9px;
}

.discord-float-card > i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(117, 247, 197, 0.12);
  color: var(--success);
  font-size: 10px;
  font-style: normal;
}

.capabilities-section,
.dashboard-showcase,
.workflow-section,
.faq-section {
  padding: 118px 0;
  border-top: 1px solid var(--line);
}

.landing-section-heading {
  display: grid;
  margin-bottom: 54px;
  grid-template-columns: 0.5fr 1.25fr 0.75fr;
  align-items: end;
  gap: 30px;
}

.landing-section-heading.compact {
  grid-template-columns: 0.5fr 2fr;
}

.landing-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.landing-section-heading h2,
.showcase-copy h2,
.final-cta-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(39px, 5.4vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.landing-section-heading p,
.showcase-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.capability-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 61, 0.25);
  background: rgba(200, 255, 61, 0.035);
}

.capability-card-featured {
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 255, 61, 0.12), transparent 38%),
    #10120e;
}

.capability-number {
  position: absolute;
  top: 26px;
  right: 26px;
  color: #5e645a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.capability-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.22);
  border-radius: 14px;
  background: rgba(200, 255, 61, 0.065);
  color: var(--accent);
  font-size: 16px;
  font-weight: 850;
}

.capability-card h3 {
  margin: 54px 0 13px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.capability-card ul {
  display: flex;
  margin: 24px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.capability-card li {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8bcb3;
  font-size: 9px;
}

.dashboard-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 90px;
}

.showcase-copy h2 {
  margin-top: 24px;
}

.showcase-copy > p {
  max-width: 590px;
  margin-top: 25px;
}

.showcase-list {
  display: grid;
  max-width: 590px;
  margin-top: 38px;
}

.showcase-list > div {
  display: grid;
  padding: 18px 0;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

.showcase-list i {
  color: var(--accent);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.showcase-list span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-list strong {
  font-size: 13px;
}

.showcase-list small {
  color: var(--muted);
  font-size: 11px;
}

.landing-text-link {
  display: inline-flex;
  margin-top: 26px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.landing-text-link span {
  color: var(--accent);
}

.showcase-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0c0e0b;
}

.showcase-grid-lines {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 72%);
}

.showcase-main-card,
.showcase-map-card,
.showcase-security-card {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: rgba(18, 21, 17, 0.93);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.showcase-main-card {
  top: 58px;
  right: 54px;
  left: 54px;
  min-height: 360px;
  padding: 30px;
  border-radius: 21px;
}

.showcase-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.showcase-card-top span {
  font-size: 12px;
  font-weight: 800;
}

.showcase-card-top small,
.showcase-map-card small,
.showcase-security-card small {
  color: var(--muted);
  font-size: 9px;
}

.showcase-main-card > strong {
  display: block;
  margin-top: 23px;
  font-size: 62px;
  letter-spacing: -0.07em;
}

.showcase-main-card sup {
  color: var(--accent);
  font-size: 20px;
}

.showcase-line-chart {
  position: relative;
  display: flex;
  height: 130px;
  margin-top: 24px;
  align-items: flex-end;
  gap: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-line-chart::before,
.showcase-line-chart::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.045);
}

.showcase-line-chart::before { top: 33%; }
.showcase-line-chart::after { top: 66%; }

.showcase-line-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(200, 255, 61, 0.08), rgba(200, 255, 61, 0.74));
}

.showcase-line-chart span:nth-child(1) { height: 24%; }
.showcase-line-chart span:nth-child(2) { height: 48%; }
.showcase-line-chart span:nth-child(3) { height: 41%; }
.showcase-line-chart span:nth-child(4) { height: 76%; }
.showcase-line-chart span:nth-child(5) { height: 62%; }
.showcase-line-chart span:nth-child(6) { height: 92%; }

.showcase-axis {
  display: flex;
  margin-top: 10px;
  justify-content: space-between;
  color: #5f645c;
  font-size: 8px;
}

.showcase-map-card {
  right: 30px;
  bottom: 30px;
  display: flex;
  width: 190px;
  min-height: 116px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  border-radius: 16px;
}

.showcase-map-card strong {
  margin: 10px 0 5px;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.showcase-map-card span {
  color: var(--success);
  font-size: 10px;
}

.showcase-security-card {
  bottom: 64px;
  left: 26px;
  display: flex;
  min-height: 76px;
  padding: 14px;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
}

.showcase-security-card i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: rgba(117, 247, 197, 0.1);
  color: var(--success);
  font-style: normal;
}

.showcase-security-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-security-card strong {
  font-size: 10px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.workflow-grid article {
  min-height: 270px;
  padding: 28px;
  background: #0d0f0c;
}

.workflow-grid article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.22);
  border-radius: 50%;
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
}

.workflow-grid h3 {
  margin: 80px 0 14px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.faq-section .landing-section-heading {
  display: block;
  margin: 0;
}

.faq-section .landing-section-heading h2 {
  margin-top: 22px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 21px;
  right: 4px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 17px;
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  max-width: 690px;
  margin: -4px 0 24px;
  padding-right: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.final-cta-section {
  display: flex;
  min-height: 430px;
  padding: 70px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  overflow: hidden;
  border: 1px solid rgba(200, 255, 61, 0.17);
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 18%, rgba(200, 255, 61, 0.16), transparent 32%),
    linear-gradient(135deg, #11140e, #0b0d0a);
}

.final-cta-section h2 {
  margin-top: 25px;
}

.landing-footer {
  display: grid;
  width: min(1320px, calc(100% - 40px));
  min-height: 180px;
  margin: 38px auto 0;
  padding: 36px 0;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

.landing-footer p {
  max-width: 360px;
  justify-self: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.landing-footer > div {
  display: flex;
  justify-self: end;
  gap: 20px;
}

.landing-footer > div a {
  color: #b9bdb4;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.landing-footer > div a:hover { color: var(--accent); }

/* Dashboard shell */

.dashboard-body {
  background: #090b08;
}

.dashboard-body .page-glow {
  opacity: 0.055;
}

.dashboard-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
}

.dashboard-sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  height: 100vh;
  padding: 20px 14px 16px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(8, 10, 7, 0.96);
  backdrop-filter: blur(18px);
}

.dashboard-brand {
  display: flex;
  min-height: 58px;
  padding: 6px 8px;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.dashboard-brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  object-fit: cover;
}

.dashboard-brand > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-brand strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.dashboard-brand small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-sidebar-label {
  margin: 34px 10px 9px;
  color: #5e635a;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.dashboard-sidebar-label-management {
  margin-top: 28px;
}

.dashboard-sidebar .dashboard-tabs,
.dashboard-management-nav {
  display: grid;
  margin: 0;
  gap: 4px;
  border: 0;
  background: none;
}

.dashboard-sidebar .dashboard-tab,
.dashboard-management-nav a {
  display: grid;
  min-height: 45px;
  padding: 0 11px;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #8e9489;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
}

.dashboard-sidebar .dashboard-tab i,
.dashboard-management-nav a i {
  color: #666c62;
  font-size: 13px;
  font-style: normal;
}

.dashboard-sidebar .dashboard-tab:hover,
.dashboard-management-nav a:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.dashboard-sidebar .dashboard-tab.active {
  border-color: rgba(200, 255, 61, 0.13);
  background: rgba(200, 255, 61, 0.075);
  color: var(--text);
}

.dashboard-sidebar .dashboard-tab.active i {
  color: var(--accent);
}

.dashboard-sidebar .tab-count {
  min-width: 24px;
  height: 19px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #9ba096;
  font-size: 9px;
  line-height: 19px;
  text-align: center;
}

.dashboard-sidebar-spacer { flex: 1; }

.dashboard-site-link {
  display: flex;
  min-height: 42px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #7e8479;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-site-link:hover { color: var(--accent); }

.dashboard-user {
  display: grid;
  min-height: 62px;
  margin-top: 8px;
  padding: 9px;
  grid-template-columns: 36px 1fr 26px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-discord-login {
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-discord-login:hover {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.1);
  transform: translateY(-1px);
}

.dashboard-discord-login:focus-visible {
  outline: 2px solid #8ea1ff;
  outline-offset: 2px;
}

.dashboard-discord-avatar {
  background: #5865f2;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: -0.04em;
}

.dashboard-discord-arrow {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.18);
  color: #b8c0ff;
  font-size: 13px;
}

/* Web casino ------------------------------------------------------------- */

.dashboard-casino-tab i {
  color: #f2c96d;
  font-family: Georgia, serif;
  font-size: 16px;
}

.casino-access-badge {
  border: 1px solid rgba(242, 201, 109, 0.24);
  background: rgba(242, 201, 109, 0.1);
  color: #f2c96d;
}

#casinoTab {
  --casino-gold: #e9be63;
  --casino-gold-bright: #ffd987;
  --casino-red: #8e1824;
  --casino-felt: #08291f;
  --casino-ink: #070907;
  color: #f4f1e9;
}

.casino-hero {
  position: relative;
  display: grid;
  min-height: 260px;
  padding: 38px 40px;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(233, 190, 99, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(233, 190, 99, 0.13), transparent 34%),
    radial-gradient(circle at 88% 15%, rgba(109, 18, 30, 0.42), transparent 42%),
    linear-gradient(135deg, #0d120f 0%, #080b09 52%, #180b0d 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.035);
}

.casino-hero::after {
  position: absolute;
  right: -80px;
  bottom: -185px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(233, 190, 99, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(233, 190, 99, 0.025), 0 0 0 60px rgba(233, 190, 99, 0.018);
  content: "";
}

.casino-hero-copy,
.casino-vault { position: relative; z-index: 1; }

.casino-eyebrow,
.casino-section-label {
  color: var(--casino-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.casino-hero h2 {
  margin: 10px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.casino-hero h2 em { color: var(--casino-gold-bright); font-weight: 400; }
.casino-hero p { max-width: 650px; margin: 0; color: #a7aaa2; font-size: 14px; line-height: 1.7; }

.casino-live-row {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #d5d2ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.casino-live-row i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ee6a5;
  box-shadow: 0 0 12px #4ee6a5;
}

.casino-vault {
  display: grid;
  padding: 4px;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(233, 190, 99, 0.2);
  border-radius: 18px;
  background: rgba(233, 190, 99, 0.12);
  backdrop-filter: blur(12px);
}

.casino-vault > div {
  display: flex;
  min-height: 90px;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 8, 6, 0.83);
}

.casino-vault .casino-jackpot { grid-column: 1 / -1; }
.casino-vault span { color: #888d84; font-size: 9px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.casino-vault strong { margin: 5px 0 1px; color: #f7f4ec; font-size: 26px; font-variant-numeric: tabular-nums; }
.casino-vault small { color: #777d75; font-size: 9px; }
.casino-vault .casino-jackpot strong { color: var(--casino-gold-bright); text-shadow: 0 0 20px rgba(255, 217, 135, 0.25); }

.casino-notice {
  margin: 16px 0;
  padding: 13px 16px;
  border: 1px solid rgba(78, 230, 165, 0.28);
  border-radius: 12px;
  background: rgba(78, 230, 165, 0.08);
  color: #8cf0c5;
  font-size: 12px;
}
.casino-notice.error { border-color: rgba(255, 92, 104, 0.32); background: rgba(255, 92, 104, 0.08); color: #ff9aa2; }
.casino-notice.neutral { border-color: rgba(233, 190, 99, 0.28); background: rgba(233, 190, 99, 0.07); color: #e7cf9d; }

.casino-game-switch {
  display: grid;
  margin: 18px 0;
  padding: 5px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: #0a0d0b;
}

.casino-game-switch button {
  display: grid;
  min-height: 72px;
  padding: 13px 18px;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #7f847c;
  cursor: pointer;
  text-align: left;
}
.casino-game-switch button > span { grid-row: 1 / 3; font-size: 25px; }
.casino-game-switch button strong { color: #cbcfc7; font-family: Georgia, serif; font-size: 16px; }
.casino-game-switch button small { font-size: 9px; }
.casino-game-switch button.active { border-color: rgba(233, 190, 99, 0.2); background: linear-gradient(135deg, rgba(233, 190, 99, 0.11), rgba(233, 190, 99, 0.025)); }
.casino-game-switch button.active strong { color: var(--casino-gold-bright); }

.casino-room {
  display: grid;
  margin-bottom: 18px;
  padding: 26px;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(145deg, #0d110e, #080a09);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}
.casino-room.hidden { display: none; }
.casino-slots-room { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr); }

.slot-machine {
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(233, 190, 99, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, #391118 0%, #7e1724 38%, #260b10 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.025), 0 18px 50px rgba(75, 6, 15, 0.3);
}

.slot-machine-marquee {
  display: flex;
  height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--casino-gold-bright);
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(255, 217, 135, 0.25);
}
.slot-machine-marquee span { font-size: 13px; }

.slot-machine-glass {
  position: relative;
  padding: 16px;
  border: 5px solid #c39848;
  border-radius: 15px;
  background: #090a08;
  box-shadow: inset 0 0 0 2px #ffe29b, inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(5, minmax(60px, 1fr));
  gap: 7px;
}
.slot-reels span {
  display: grid;
  min-height: 102px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c9c5b9;
  border-radius: 9px;
  background: linear-gradient(#d8d7cf 0%, #fff 45%, #e5e2d8 100%);
  color: #171713;
  font-size: clamp(31px, 4vw, 52px);
  box-shadow: inset 0 9px 18px rgba(0, 0, 0, 0.16), inset 0 -9px 18px rgba(0, 0, 0, 0.12);
  transition: filter 120ms ease, transform 120ms ease;
}
.slot-reels.spinning span { filter: blur(1.5px) saturate(1.35); transform: scaleY(0.92); }
.slot-payline { position: absolute; z-index: 2; top: 50%; right: 10px; left: 10px; height: 2px; background: rgba(255, 50, 78, 0.72); box-shadow: 0 0 10px rgba(255, 50, 78, 0.7); pointer-events: none; }

.slot-machine-footer {
  display: grid;
  padding: 18px 10px 8px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.slot-machine-footer > div { display: flex; flex-direction: column; text-align: center; }
.slot-machine-footer span { color: #d2939b; font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.slot-machine-footer strong { margin-top: 4px; color: #fff1d1; font-size: 19px; }

.casino-play-button {
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid #f6d98d;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe59d, #c8943f);
  color: #281a08;
  box-shadow: 0 7px 24px rgba(213, 165, 76, 0.24), inset 0 1px #fff4cb;
  cursor: pointer;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.casino-play-button i { margin-right: 5px; font-style: normal; }
.casino-play-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.casino-play-button:disabled { cursor: wait; filter: grayscale(0.6); opacity: 0.65; transform: none; }

.casino-controls { display: flex; padding: 7px 2px; flex-direction: column; gap: 12px; }
.casino-chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.casino-chip {
  min-width: 47px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(233, 190, 99, 0.18);
  border-radius: 999px;
  background: #131714;
  color: #a7aca4;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
}
.casino-chip.active { border-color: #f1ce7e; background: linear-gradient(180deg, #f4d98e, #bd8937); color: #241805; box-shadow: 0 0 18px rgba(233, 190, 99, 0.16); }

.casino-total-card,
.casino-result-card {
  display: flex;
  padding: 17px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.casino-total-card span,
.casino-result-card > span { color: #7f857d; font-size: 8px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.casino-total-card strong { margin: 4px 0; color: var(--casino-gold-bright); font-size: 23px; }
.casino-total-card small { color: #777d75; font-size: 9px; }
.casino-result-card { margin-top: auto; min-height: 110px; justify-content: center; }
.casino-result-card strong { margin-top: 7px; font-family: Georgia, serif; font-size: 19px; }
.casino-result-card p { margin: 6px 0 0; color: #858a82; font-size: 10px; line-height: 1.45; }
.casino-result-card.win { border-color: rgba(78, 230, 165, 0.25); background: rgba(78, 230, 165, 0.055); }
.casino-result-card.win strong { color: #69efb5; }
.casino-result-card.loss { border-color: rgba(255, 92, 104, 0.22); background: rgba(255, 92, 104, 0.045); }
.casino-result-card.loss strong { color: #ff8992; }

.casino-roulette-room { grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr); background: radial-gradient(circle at 15% 30%, rgba(11, 89, 64, 0.22), transparent 40%), linear-gradient(145deg, #0b110d, #070907); }
.roulette-stage { display: flex; padding: 18px; align-items: center; justify-content: center; flex-direction: column; }
.roulette-wheel {
  position: relative;
  width: min(310px, 75vw);
  aspect-ratio: 1;
  border: 12px solid #8a6128;
  border-radius: 50%;
  background: repeating-conic-gradient(from -4.86deg, #981d2a 0deg 4.86deg, #171a17 4.86deg 9.72deg);
  box-shadow: 0 0 0 5px #e1bd6d, 0 0 0 10px #412c12, 0 25px 55px rgba(0, 0, 0, 0.5), inset 0 0 0 36px rgba(242, 202, 113, 0.62), inset 0 0 0 41px #5a3c18;
  transition: transform 2.8s cubic-bezier(0.12, 0.75, 0.2, 1);
}
.roulette-wheel::before { position: absolute; inset: 28%; border: 4px solid #edce83; border-radius: 50%; background: radial-gradient(circle, #ddb75f 0 12%, #73491a 13% 45%, #1b1208 46%); content: ""; box-shadow: 0 5px 18px rgba(0,0,0,.6); }
.roulette-wheel.spinning { animation: roulette-spin 1s linear infinite; }
@keyframes roulette-spin { to { transform: rotate(360deg); } }
.roulette-wheel-rim { position: absolute; inset: -4px; border: 2px dashed rgba(255, 233, 176, 0.5); border-radius: 50%; }
.roulette-wheel-center { position: absolute; z-index: 2; inset: 39%; display: grid; place-items: center; border: 2px solid #f0d28b; border-radius: 50%; background: #17100a; color: #f5d88e; font-family: Georgia, serif; font-size: 25px; }
.roulette-ball { position: absolute; z-index: 4; top: 10px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff9ea; box-shadow: 0 2px 7px #000; transform: translateX(-50%); }
.roulette-result-display { display: flex; margin-top: 28px; align-items: center; flex-direction: column; }
.roulette-result-display span { color: #7f857d; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.roulette-result-display strong { display: grid; width: 64px; height: 64px; margin: 8px 0; place-items: center; border: 2px solid var(--casino-gold); border-radius: 50%; background: #111411; color: #f5f0e5; font-family: Georgia, serif; font-size: 30px; }
.roulette-result-display strong[data-color="red"] { background: #8d1925; }
.roulette-result-display strong[data-color="black"] { background: #121412; }
.roulette-result-display strong[data-color="green"] { background: #08724d; }
.roulette-result-display small { color: #a3a89f; font-size: 10px; text-align: center; }

.roulette-table-wrap { padding: 22px; border: 1px solid rgba(237, 205, 127, 0.23); border-radius: 20px; background: linear-gradient(145deg, #0b3a2b, #06251b); box-shadow: inset 0 0 60px rgba(0,0,0,.22); }
.roulette-table-header { display: flex; margin-bottom: 18px; align-items: center; justify-content: space-between; gap: 18px; }
.roulette-table-header h3 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }
.roulette-number-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.roulette-number {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}
.roulette-number.red { background: linear-gradient(#a82332, #72131d); }
.roulette-number.black { background: linear-gradient(#222622, #0e100e); }
.roulette-number.green { background: linear-gradient(#14986c, #08714e); }
.roulette-number.zero { grid-column: 1 / -1; }
.roulette-number.active { outline: 3px solid #f3d589; outline-offset: 1px; box-shadow: 0 0 14px rgba(243, 213, 137, 0.45); }
.roulette-outside-bets { display: grid; margin-top: 8px; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.roulette-outside-bet { display: flex; min-height: 54px; padding: 7px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: rgba(0,0,0,.16); color: #e8e8e1; cursor: pointer; }
.roulette-outside-bet strong { font-size: 9px; }
.roulette-outside-bet small { margin-top: 3px; color: #9eb4aa; font-size: 8px; }
.roulette-outside-bet.red { background: rgba(142, 24, 36, .75); }
.roulette-outside-bet.black { background: rgba(10, 12, 10, .75); }
.roulette-outside-bet.active { border-color: #f4d78e; box-shadow: inset 0 0 0 1px #f4d78e, 0 0 12px rgba(244,215,142,.25); }
.roulette-bet-footer { display: grid; margin-top: 18px; grid-template-columns: 1fr minmax(180px, .45fr); gap: 18px; align-items: end; }

.casino-history-panel { margin-top: 18px; }
.casino-history { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.casino-history-row { display: grid; min-height: 66px; padding: 10px 13px; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: rgba(255,255,255,.018); }
.casino-history-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(233,190,99,.08); }
.casino-history-row > div:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.casino-history-row strong { font-size: 10px; }
.casino-history-row small { margin-top: 3px; color: #737a71; font-size: 8px; }
.casino-history-amounts { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; font-size: 9px; }
.casino-history-amounts span { color: #8d928a; }
.casino-history-amounts strong { color: #ff8c96; }
.casino-history-row.win .casino-history-amounts strong { color: #58e6aa; }
.casino-responsible-note { display: flex; margin-top: 18px; padding: 16px 18px; align-items: center; gap: 14px; border: 1px solid rgba(233,190,99,.15); border-radius: 14px; background: rgba(233,190,99,.035); }
.casino-responsible-note > span { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid rgba(233,190,99,.4); border-radius: 50%; color: var(--casino-gold); font-size: 10px; font-weight: 900; }
.casino-responsible-note p { margin: 0; color: #898f86; font-size: 10px; line-height: 1.55; }
.casino-responsible-note strong { color: #d9dbd5; }

@media (max-width: 1080px) {
  .casino-hero { grid-template-columns: 1fr; }
  .casino-slots-room,
  .casino-roulette-room { grid-template-columns: 1fr; }
  .casino-controls { min-height: 360px; }
  .roulette-stage { padding-bottom: 5px; }
}

@media (max-width: 720px) {
  .casino-hero,
  .casino-room { padding: 20px; border-radius: 18px; }
  .casino-vault { grid-template-columns: 1fr; }
  .casino-vault .casino-jackpot { grid-column: auto; }
  .casino-game-switch button { padding: 10px; grid-template-columns: 1fr; text-align: center; }
  .casino-game-switch button > span { grid-row: auto; }
  .slot-reels { gap: 3px; }
  .slot-reels span { min-height: 64px; font-size: 25px; }
  .slot-machine-footer { grid-template-columns: 1fr 1fr; }
  .slot-machine-footer .casino-play-button { grid-column: 1 / -1; grid-row: 2; }
  .roulette-table-wrap { padding: 13px; }
  .roulette-table-header { align-items: stretch; flex-direction: column; }
  .roulette-number-grid { grid-template-columns: repeat(6, 1fr); }
  .roulette-outside-bets { grid-template-columns: repeat(2, 1fr); }
  .roulette-bet-footer,
  .casino-history { grid-template-columns: 1fr; }
}

.dashboard-user-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #090b07;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-user > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.dashboard-user strong,
.dashboard-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user strong { font-size: 10px; }
.dashboard-user small { color: var(--muted); font-size: 8px; }

.dashboard-user form { margin: 0; }

.dashboard-user button,
.dashboard-user > a {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #8f958a;
  cursor: pointer;
  font-size: 11px;
  text-decoration: none;
}

.dashboard-container {
  width: min(1510px, calc(100% - 52px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.dashboard-hero {
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.dashboard-hero h1 {
  margin: 8px 0 7px;
  font-size: clamp(31px, 3.4vw, 48px);
  letter-spacing: -0.055em;
}

.dashboard-hero .family-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.dashboard-hero .eyebrow,
.dashboard-body .panel-kicker {
  color: #777d72;
  font-size: 9px;
}

.dashboard-hero .eyebrow > span:last-child { color: var(--accent); }

.dashboard-hero .hero-actions {
  align-items: stretch;
}

.dashboard-body .hero-actions .account-box {
  display: none;
}

.dashboard-body .updated-box {
  min-width: 184px;
  border-color: var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-body .refresh-button {
  min-height: 50px;
  border-radius: 12px;
  background: var(--accent);
  color: #090b07;
  box-shadow: none;
}

.dashboard-menu-button {
  display: none;
}

.dashboard-body .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-body .participant-stats-grid,
.dashboard-body .map-summary-grid {
  gap: 12px;
}

.dashboard-body .stat-card,
.dashboard-body .panel {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(18, 21, 17, 0.94), rgba(12, 14, 11, 0.94));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.dashboard-body .stat-card {
  min-height: 138px;
  border-radius: 15px;
}

.dashboard-body .stat-card-main::after {
  background: radial-gradient(circle, rgba(200, 255, 61, 0.32), transparent 70%);
}

.dashboard-body .stat-value {
  margin-top: 14px;
}

.dashboard-body .panel {
  border-radius: 17px;
}

.dashboard-body .progress > span,
.dashboard-body .dynamics-bar-win,
.dashboard-body .map-stat-progress > span {
  background: var(--accent);
}

.dashboard-body .dashboard-tab.active,
.dashboard-body .captures-period-button.active,
.dashboard-body .participants-period-button.active {
  border-color: rgba(200, 255, 61, 0.24);
  background: rgba(200, 255, 61, 0.08);
  color: var(--text);
}

.dashboard-body .admin-secondary-button,
.dashboard-body select,
.dashboard-body input {
  border-color: var(--line);
  background-color: rgba(255, 255, 255, 0.028);
}

.dashboard-body .admin-secondary-button:hover {
  border-color: rgba(200, 255, 61, 0.34);
  color: var(--accent);
}

.dashboard-body .capture-card,
.dashboard-body .participant-row,
.dashboard-body .map-stat-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.dashboard-body .capture-card:hover,
.dashboard-body .participant-row:hover,
.dashboard-body .map-stat-card:hover {
  border-color: rgba(200, 255, 61, 0.26);
  background: rgba(200, 255, 61, 0.025);
}

.dashboard-body .site-footer {
  border-top: 1px solid var(--line);
}

/* Sign-in */

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #070806;
}

.auth-shell-redesign {
  display: grid;
  width: min(1120px, calc(100% - 40px));
  min-height: 680px;
  padding: 0;
  grid-template-columns: 1.12fr 0.88fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #0c0e0b;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5);
}

.auth-story-panel {
  position: relative;
  display: flex;
  padding: 48px;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 16%, rgba(200, 255, 61, 0.17), transparent 34%),
    linear-gradient(150deg, #11140e, #090b08);
}

.auth-story-panel::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -130px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(200, 255, 61, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 56px rgba(200, 255, 61, 0.025),
    0 0 0 112px rgba(200, 255, 61, 0.018);
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.auth-story-copy h1 {
  margin: 22px 0;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.auth-story-copy h1 span { color: var(--accent); }

.auth-story-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.auth-security-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.auth-security-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9da397;
  font-size: 10px;
}

.auth-security-list i {
  color: var(--accent);
  font-style: normal;
}

.auth-card-redesign {
  display: flex;
  width: auto;
  max-width: none;
  min-height: 100%;
  padding: 48px;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: #0d0f0c;
  box-shadow: none;
}

.auth-back-link {
  position: absolute;
  top: 34px;
  color: #7e8479;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.auth-back-link:hover { color: var(--accent); }

.auth-card-redesign .auth-heading h1 {
  margin: 9px 0;
  font-size: 40px;
  letter-spacing: -0.055em;
}

.auth-card-redesign .auth-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-card-redesign .auth-form {
  margin-top: 32px;
}

.auth-card-redesign .auth-form label > span {
  color: #aeb3a8;
  font-size: 10px;
}

.auth-card-redesign .auth-form input {
  min-height: 52px;
  border-color: var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-card-redesign .auth-submit {
  min-height: 54px;
  border-radius: 11px;
  background: var(--accent);
  color: #090b07;
  box-shadow: none;
}

.auth-card-redesign .auth-submit span { margin-left: 12px; }

.auth-card-redesign .auth-footnote {
  color: #73796f;
  font-size: 10px;
}

/* Admin */

.admin-body {
  background: #090b08;
}

.admin-container {
  width: min(1380px, calc(100% - 48px));
  padding-top: 34px;
}

.admin-body .admin-header {
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.admin-brand-mark {
  display: flex;
  width: fit-content;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
  color: #7f857b;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.admin-brand-mark img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.admin-body .admin-header h1 {
  margin-top: 8px;
  font-size: clamp(35px, 4vw, 54px);
}

.admin-body .panel {
  border-color: var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(18, 21, 17, 0.94), rgba(12, 14, 11, 0.94));
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
}

.admin-body .admin-primary-button,
.admin-body .auth-submit {
  background: var(--accent);
  color: #090b07;
  box-shadow: none;
}

.admin-body .admin-home-button,
.admin-body .admin-secondary-button,
.admin-body .account-logout,
.admin-body input,
.admin-body select {
  border-color: var(--line);
  background-color: rgba(255, 255, 255, 0.025);
}

.admin-body .admin-home-button:hover,
.admin-body .admin-secondary-button:hover {
  border-color: rgba(200, 255, 61, 0.32);
  color: var(--accent);
}

.admin-body .admin-user-card,
.admin-body .map-admin-card,
.admin-body .map-ban-row {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.admin-body .admin-user-avatar {
  background: var(--accent);
  color: #090b07;
}

@media (max-width: 1180px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 74px;
  }

  .landing-hero-copy {
    max-width: 820px;
  }

  .product-stage {
    width: min(820px, 96%);
    margin: 20px auto 0;
    transform: none;
  }

  .landing-section-heading {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .landing-section-heading p {
    grid-column: 2;
  }

  .dashboard-showcase {
    gap: 46px;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .landing-header {
    grid-template-columns: 1fr auto auto;
  }

  .landing-menu-button {
    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .landing-menu-button span,
  .dashboard-menu-button span {
    width: 16px;
    height: 1px;
    background: #c6cbc1;
  }

  .landing-navigation {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 12, 9, 0.98);
    box-shadow: var(--shadow);
  }

  .landing-menu-open .landing-navigation { display: flex; }

  .landing-navigation a { padding: 13px; }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-showcase,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .showcase-copy {
    max-width: 720px;
  }

  .faq-section { gap: 52px; }

  .final-cta-section {
    min-height: 390px;
    padding: 50px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .landing-footer {
    grid-template-columns: 1fr auto;
  }

  .landing-footer p { display: none; }

  .dashboard-layout { display: block; }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-104%);
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.45);
    transition: transform 190ms ease;
  }

  .dashboard-menu-open .dashboard-sidebar { transform: translateX(0); }

  .dashboard-menu-open::after {
    content: "";
    position: fixed;
    z-index: 35;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
  }

  .dashboard-menu-button {
    display: flex;
    width: 46px;
    height: 46px;
    padding: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
  }

  .dashboard-hero > div:nth-of-type(1) { flex: 1; }

  .auth-shell-redesign {
    max-width: 620px;
    grid-template-columns: 1fr;
  }

  .auth-story-panel { display: none; }
}

@media (max-width: 720px) {
  .landing-header {
    top: 10px;
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .landing-header-cta {
    display: none;
  }

  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-section {
    width: calc(100% - 28px);
  }

  .landing-hero {
    min-height: auto;
    padding: 66px 0 82px;
    gap: 48px;
  }

  .landing-hero h1 {
    font-size: clamp(56px, 18vw, 82px);
  }

  .landing-lead { font-size: 16px; }

  .landing-proof {
    margin-top: 42px;
  }

  .landing-proof div {
    padding-right: 10px;
  }

  .landing-proof div + div {
    padding-left: 10px;
  }

  .landing-proof strong { font-size: 22px; }
  .landing-proof span { font-size: 9px; }

  .product-stage {
    width: 100%;
  }

  .product-window {
    border-radius: 17px;
  }

  .product-window-body {
    min-height: 390px;
    grid-template-columns: 42px 1fr;
  }

  .product-mini-sidebar { padding-inline: 5px; }
  .product-mini-sidebar span { width: 30px; height: 30px; }
  .product-demo-content { padding: 16px; }
  .product-metric-grid { grid-template-columns: 1fr 1fr; }
  .product-metric-grid article:last-child { display: none; }
  .product-demo-lower { grid-template-columns: 1fr; }
  .product-roster-card { display: none; }
  .discord-float-card { right: 10px; bottom: -42px; }

  .capabilities-section,
  .dashboard-showcase,
  .workflow-section,
  .faq-section {
    padding: 86px 0;
  }

  .landing-section-heading,
  .landing-section-heading.compact {
    display: block;
  }

  .landing-section-heading h2 {
    margin-top: 22px;
  }

  .landing-section-heading p {
    margin-top: 18px;
  }

  .capability-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .capability-card { min-height: 280px; }

  .showcase-visual { min-height: 500px; }
  .showcase-main-card { top: 24px; right: 18px; left: 18px; padding: 22px; }
  .showcase-main-card > strong { font-size: 52px; }
  .showcase-security-card { bottom: 28px; left: 16px; }
  .showcase-map-card { right: 16px; bottom: 28px; width: 162px; }

  .workflow-grid article {
    min-height: 220px;
  }

  .workflow-grid h3 {
    margin-top: 54px;
  }

  .final-cta-section {
    width: calc(100% - 28px);
    min-height: 420px;
    padding: 32px 24px;
  }

  .landing-footer {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .landing-footer > div {
    justify-self: start;
  }

  .dashboard-container {
    width: calc(100% - 26px);
    padding-top: 18px;
  }

  .dashboard-hero {
    position: relative;
    align-items: flex-start;
  }

  .dashboard-hero .family-title-row {
    gap: 10px;
  }

  .dashboard-hero .family-logo {
    width: 42px;
    height: 42px;
  }

  .dashboard-hero h1 {
    font-size: 30px;
  }

  .dashboard-hero .hero-actions {
    width: 100%;
    margin-top: 15px;
  }

  .dashboard-body .updated-box {
    flex: 1;
    min-width: 0;
  }

  .dashboard-body .refresh-button {
    min-height: 49px;
  }

  .dashboard-body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-body .stat-card {
    min-height: 125px;
  }

  .dashboard-body .stat-value {
    font-size: 29px;
  }

  .auth-shell-redesign {
    width: calc(100% - 20px);
    min-height: 620px;
    border-radius: 18px;
  }

  .auth-card-redesign {
    padding: 34px 24px;
  }

  .auth-back-link { top: 24px; }

  .admin-container {
    width: calc(100% - 26px);
  }
}

@media (max-width: 460px) {
  .landing-brand small { display: none; }
  .landing-primary-button,
  .landing-secondary-button { width: 100%; }
  .landing-proof { display: grid; grid-template-columns: repeat(3, 1fr); }
  .product-window-status { display: none; }
  .discord-float-card { width: 230px; }
  .showcase-security-card { display: none; }
  .showcase-map-card { bottom: 22px; }
  .dashboard-body .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Discord control plane */

.bot-status-panel {
  display: flex;
  min-height: 118px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bot-status-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bot-status-copy h2 {
  margin-top: 7px;
}

.bot-status-copy p {
  margin-top: 6px;
}

.bot-status-indicator {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 15px;
  background: rgba(255, 107, 107, 0.07);
}

.bot-status-indicator::before,
.bot-status-indicator::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.bot-status-indicator::before {
  inset: 17px;
  background: var(--danger);
}

.bot-status-indicator::after {
  inset: 12px;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.bot-status-indicator.online {
  border-color: rgba(117, 247, 197, 0.22);
  background: rgba(117, 247, 197, 0.075);
}

.bot-status-indicator.online::before {
  background: var(--success);
  box-shadow: 0 0 18px rgba(117, 247, 197, 0.65);
}

.bot-status-indicator.online::after {
  border-color: rgba(117, 247, 197, 0.35);
  animation: bot-pulse 1.8s ease-out infinite;
}

@keyframes bot-pulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

.dashboard-sidebar .bot-status-badge.online {
  background: rgba(117, 247, 197, 0.1);
  color: var(--success);
}

.bot-metrics-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bot-content-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.bot-modules-panel,
.bot-guild-panel,
.bot-control-panel,
.bot-history-panel {
  padding: 24px;
}

.bot-modules-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bot-module-card {
  display: grid;
  min-height: 66px;
  padding: 12px 13px;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.bot-module-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--danger);
}

.bot-module-card.loaded .bot-module-dot {
  background: var(--success);
  box-shadow: 0 0 11px rgba(117, 247, 197, 0.45);
}

.bot-module-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.bot-module-card strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-module-card small {
  color: var(--muted);
  font-size: 9px;
}

.bot-module-card b {
  color: var(--danger);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.bot-module-card.loaded b {
  color: var(--success);
}

.bot-guild-facts {
  display: grid;
  margin: 22px 0 0;
}

.bot-guild-facts > div {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.bot-guild-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.bot-guild-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.bot-control-panel,
.bot-history-panel {
  margin-top: 14px;
}

.bot-queue-state {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.bot-queue-state[data-tone="pending"] {
  border-color: rgba(255, 209, 102, 0.24);
  color: var(--warning);
}

.bot-queue-state[data-tone="success"] {
  border-color: rgba(117, 247, 197, 0.24);
  color: var(--success);
}

.bot-queue-state[data-tone="error"] {
  border-color: rgba(255, 107, 107, 0.24);
  color: var(--danger);
}

.bot-control-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bot-control-card {
  display: grid;
  min-height: 104px;
  padding: 17px;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.bot-control-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(200, 255, 61, 0.17);
  border-radius: 12px;
  background: rgba(200, 255, 61, 0.055);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.bot-control-card h3,
.bot-announcement-form h3 {
  margin: 0;
  font-size: 13px;
}

.bot-control-card p,
.bot-announcement-form p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.bot-announcement-form {
  display: grid;
  margin-top: 14px;
  padding: 19px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(210px, 0.55fr) minmax(300px, 1fr) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.bot-announcement-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bot-announcement-form label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.bot-announcement-form select,
.bot-announcement-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--text);
  font: inherit;
}

.bot-announcement-form select {
  min-height: 48px;
  padding: 0 12px;
}

.bot-announcement-form textarea {
  min-height: 82px;
  padding: 12px;
  resize: vertical;
}

.bot-announcement-form .admin-primary-button {
  min-height: 48px;
  border-radius: 11px;
}

.bot-command-history {
  display: grid;
  margin-top: 20px;
}

.bot-command-row {
  display: grid;
  min-height: 64px;
  padding: 10px 4px;
  grid-template-columns: 54px minmax(180px, 1fr) minmax(90px, 0.35fr) 104px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.bot-command-id {
  color: #646a60;
  font-size: 9px;
  font-weight: 800;
}

.bot-command-row > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.bot-command-row strong {
  font-size: 11px;
}

.bot-command-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bot-command-row > span:nth-of-type(2) {
  color: var(--muted);
  font-size: 10px;
}

.bot-command-status {
  justify-self: end;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bot-command-status.succeeded {
  background: rgba(117, 247, 197, 0.08);
  color: var(--success);
}

.bot-command-status.failed {
  background: rgba(255, 107, 107, 0.08);
  color: var(--danger);
}

.bot-command-status.pending,
.bot-command-status.running {
  background: rgba(255, 209, 102, 0.08);
  color: var(--warning);
}

@media (max-width: 1180px) {
  .bot-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-announcement-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bot-announcement-form > div:first-child,
  .bot-announcement-message {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .bot-status-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .bot-content-grid,
  .bot-control-grid,
  .bot-modules-grid,
  .bot-announcement-form {
    grid-template-columns: 1fr;
  }

  .bot-announcement-form > div:first-child,
  .bot-announcement-message {
    grid-column: auto;
  }

  .bot-control-card {
    grid-template-columns: 42px 1fr;
  }

  .bot-control-card button {
    grid-column: 1 / -1;
  }

  .bot-command-row {
    grid-template-columns: 42px 1fr auto;
  }

  .bot-command-row > span:nth-of-type(2) {
    display: none;
  }
}

@media (max-width: 460px) {
  .bot-metrics-grid {
    grid-template-columns: 1fr;
  }

  .bot-status-copy {
    align-items: flex-start;
  }
}
/*
 * Нативное раскрытое меню select рендерится браузером отдельно от самого
 * поля. Полупрозрачный фон select в Windows Chromium превращался в белый,
 * тогда как цвет текста оставался светлым. Для пунктов нужен непрозрачный
 * фон и явная тёмная цветовая схема.
 */
select {
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #11140f;
  color: #f4f5ef;
}

select option:disabled {
  color: #747a70;
}

/* Public Discord application */
.application-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f4f5ef;
  background:
    radial-gradient(circle at 18% 12%, rgba(117, 255, 48, .08), transparent 28rem),
    radial-gradient(circle at 88% 75%, rgba(88, 101, 242, .09), transparent 30rem),
    #070806;
}

.application-glow {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.application-glow-one {
  top: -12rem;
  left: -8rem;
  background: rgba(117, 255, 48, .11);
}

.application-glow-two {
  right: -10rem;
  bottom: -12rem;
  background: rgba(88, 101, 242, .13);
}

.application-header,
.application-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.application-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.application-back-link {
  color: #a8ada3;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  transition: color .2s ease;
}

.application-back-link:hover {
  color: #f4f5ef;
}

.application-main {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: start;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(60px, 9vw, 118px) 0 80px;
}

.application-intro {
  position: sticky;
  top: 40px;
  padding-top: 12px;
}

.application-intro h1 {
  margin: 24px 0 18px;
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: .92;
  letter-spacing: -.07em;
}

.application-intro h1 span {
  color: #75ff30;
}

.application-intro > p {
  max-width: 570px;
  margin: 0;
  color: #a2a79e;
  font-size: 1.02rem;
  line-height: 1.75;
}

.application-steps {
  display: grid;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.application-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.application-steps li > span {
  color: #75ff30;
  font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.application-steps div {
  display: grid;
  gap: 5px;
}

.application-steps strong {
  font-size: .92rem;
}

.application-steps small {
  color: #737971;
  font-size: .78rem;
  line-height: 1.5;
}

.application-card {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: rgba(13, 15, 12, .88);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
  backdrop-filter: blur(22px);
}

.application-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(117, 255, 48, .5), transparent);
}

.application-card-heading {
  display: flex;
  gap: 24px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.application-card-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -.04em;
}

.application-bot-status {
  display: inline-flex;
  flex: none;
  gap: 7px;
  align-items: center;
  margin-top: 4px;
  color: #8f958c;
  font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.application-bot-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb5c5c;
  box-shadow: 0 0 12px rgba(251, 92, 92, .5);
}

.application-bot-status.online i {
  background: #75ff30;
  box-shadow: 0 0 12px rgba(117, 255, 48, .55);
}

.application-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.application-alert {
  padding: 13px 15px;
  border: 1px solid rgba(255, 188, 66, .22);
  border-radius: 12px;
  color: #ffd690;
  background: rgba(255, 174, 35, .07);
  font-size: .84rem;
  line-height: 1.5;
}

.application-alert.success {
  border-color: rgba(117, 255, 48, .2);
  color: #c7ffad;
  background: rgba(117, 255, 48, .06);
}

.application-submit-status,
.application-discord-login,
.application-user-row,
.application-empty-state {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  background: rgba(255, 255, 255, .025);
}

.application-submit-status {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
}

.application-submit-status[data-state="succeeded"] {
  border-color: rgba(117, 255, 48, .26);
  background: rgba(117, 255, 48, .05);
}

.application-submit-status[data-state="failed"],
.application-submit-status[data-state="cancelled"] {
  border-color: rgba(251, 92, 92, .26);
  background: rgba(251, 92, 92, .05);
}

.application-submit-status strong,
.application-submit-status p {
  display: block;
  margin: 0;
}

.application-submit-status p {
  margin-top: 4px;
  color: #8f958c;
  font-size: .8rem;
  line-height: 1.45;
}

.application-status-spinner {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid rgba(117, 255, 48, .2);
  border-top-color: #75ff30;
  border-radius: 50%;
  animation: application-spin .8s linear infinite;
}

.application-submit-status[data-state="succeeded"] .application-status-spinner,
.application-submit-status[data-state="failed"] .application-status-spinner,
.application-submit-status[data-state="cancelled"] .application-status-spinner {
  animation: none;
  border: 0;
}

.application-submit-status[data-state="succeeded"] .application-status-spinner::after {
  color: #75ff30;
  content: "✓";
}

.application-submit-status[data-state="failed"] .application-status-spinner::after,
.application-submit-status[data-state="cancelled"] .application-status-spinner::after {
  color: #fb5c5c;
  content: "×";
}

@keyframes application-spin {
  to { transform: rotate(360deg); }
}

.application-empty-state {
  padding: 30px;
  text-align: center;
}

.application-empty-state strong {
  font-size: 1rem;
}

.application-empty-state p {
  max-width: 460px;
  margin: 9px auto 0;
  color: #858b82;
  font-size: .84rem;
  line-height: 1.6;
}

.application-discord-login {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
}

.application-discord-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #5865f2;
  font-size: .73rem;
  font-weight: 800;
}

.application-discord-login strong,
.application-discord-login p {
  display: block;
  margin: 0;
}

.application-discord-login p {
  margin-top: 4px;
  color: #858b82;
  font-size: .76rem;
}

.application-discord-button,
.application-submit-button {
  border: 0;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.application-discord-button {
  padding: 12px 15px;
  background: #5865f2;
  font-size: .78rem;
}

.application-user-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 25px;
  padding: 14px;
}

.application-user-row > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #11140f;
  background: #75ff30;
  font-weight: 900;
}

.application-user-row strong,
.application-user-row small {
  display: block;
}

.application-user-row small {
  margin-top: 3px;
  color: #777d74;
  font-size: .72rem;
}

.application-user-row button {
  padding: 7px 0;
  border: 0;
  color: #8e948b;
  background: transparent;
  font-size: .72rem;
  cursor: pointer;
}

.application-user-row button:hover {
  color: #f4f5ef;
}

.application-form {
  display: grid;
  gap: 19px;
}

.application-field {
  display: grid;
  gap: 9px;
}

.application-field > span {
  color: #cdd0c9;
  font-size: .78rem;
  font-weight: 750;
}

.application-field b {
  margin-left: 4px;
  color: #75ff30;
}

.application-field input,
.application-field textarea,
.application-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  outline: none;
  color: #f3f5ef;
  background: #11140f;
  font: inherit;
  font-size: .86rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.application-field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.application-field input::placeholder,
.application-field textarea::placeholder {
  color: #5d625b;
}

.application-field input:focus,
.application-field textarea:focus,
.application-field select:focus {
  border-color: rgba(117, 255, 48, .58);
  box-shadow: 0 0 0 3px rgba(117, 255, 48, .08);
}

.application-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #858b82;
  font-size: .74rem;
  line-height: 1.5;
  cursor: pointer;
}

.application-consent input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #75ff30;
}

.application-submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 19px;
  color: #0a0c08;
  background: #75ff30;
  box-shadow: 0 13px 30px rgba(117, 255, 48, .13);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.application-submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(117, 255, 48, .2);
}

.application-submit-button:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.application-submit-button i {
  font-style: normal;
  font-size: 1.15rem;
}

.application-footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  color: #5f655d;
  font: 700 .64rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .application-main {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 58px;
  }

  .application-intro {
    position: static;
  }

  .application-intro h1 {
    max-width: 680px;
  }

  .application-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 0;
  }

  .application-steps li {
    grid-template-columns: 1fr;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .application-header,
  .application-footer,
  .application-main {
    width: min(100% - 26px, 1180px);
  }

  .application-header {
    min-height: 74px;
  }

  .application-header .landing-brand small,
  .application-back-link {
    display: none;
  }

  .application-main {
    gap: 32px;
    padding: 42px 0 55px;
  }

  .application-intro h1 {
    margin-top: 18px;
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .application-steps {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .application-card {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .application-card-heading {
    display: grid;
    gap: 12px;
  }

  .application-discord-login,
  .application-user-row {
    grid-template-columns: auto 1fr;
  }

  .application-discord-button,
  .application-user-row form {
    grid-column: 1 / -1;
  }

  .application-discord-button {
    text-align: center;
  }

  .application-user-row form button {
    width: 100%;
    text-align: left;
  }

  .application-footer {
    display: grid;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-status-spinner {
    animation-duration: 1.8s;
  }
}

/* Discord site login and member shop */
.discord-auth-button {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 10px 16px;
  border: 1px solid rgba(88, 101, 242, .5);
  border-radius: 14px;
  color: #f8f8f6;
  background: linear-gradient(135deg, rgba(88, 101, 242, .24), rgba(88, 101, 242, .08));
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.discord-auth-button:hover {
  transform: translateY(-1px);
  border-color: #7885ff;
  background: linear-gradient(135deg, rgba(88, 101, 242, .35), rgba(88, 101, 242, .13));
}

.discord-auth-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: #fff;
  background: #5865f2;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.discord-auth-button strong,
.discord-auth-button small {
  display: block;
}

.discord-auth-button small {
  margin-top: 3px;
  color: #a9aaa5;
  font-size: .76rem;
}

.discord-auth-button i {
  font-style: normal;
  color: #aeb5ff;
  font-size: 1.15rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0;
  color: #777a73;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .09);
}

.dashboard-shop-tab {
  margin-top: 5px;
  border: 1px solid rgba(226, 178, 74, .1) !important;
  background: linear-gradient(90deg, rgba(226, 178, 74, .07), transparent) !important;
}

.dashboard-shop-tab.active {
  border-color: rgba(226, 178, 74, .32) !important;
  background: linear-gradient(90deg, rgba(226, 178, 74, .17), rgba(226, 178, 74, .03)) !important;
}

.shop-access-badge {
  width: auto;
  min-width: 28px;
  max-width: 70px;
  padding-inline: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e9c36d;
  background: rgba(226, 178, 74, .12);
}

.web-shop-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(224, 170, 57, .15), transparent 36%),
    linear-gradient(135deg, rgba(25, 25, 20, .98), rgba(10, 11, 9, .98));
}

.web-shop-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}

.web-shop-heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.web-shop-heading p {
  margin: 0;
  color: #a7a9a2;
}

.web-shop-emblem {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(235, 194, 100, .4);
  border-radius: 20px;
  color: #11120f;
  background: linear-gradient(145deg, #f2d07e, #b78026);
  box-shadow: 0 16px 42px rgba(190, 133, 31, .18);
  font-size: 1.8rem;
  font-weight: 900;
}

.web-shop-balance-card {
  display: grid;
  min-width: 172px;
  padding: 18px 22px;
  border: 1px solid rgba(235, 194, 100, .24);
  border-radius: 17px;
  background: rgba(0, 0, 0, .25);
}

.web-shop-balance-card span,
.web-shop-balance-card small {
  color: #979990;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.web-shop-balance-card strong {
  margin: 3px 0;
  color: #f0cd78;
  font-size: 2rem;
  line-height: 1;
}

.web-shop-catalog-panel {
  margin-top: 18px;
}

.web-shop-notice {
  margin: 18px 0 0;
  padding: 13px 15px;
  border: 1px solid rgba(87, 201, 126, .28);
  border-radius: 12px;
  color: #a9e8bc;
  background: rgba(47, 130, 75, .12);
}

.web-shop-notice.error {
  border-color: rgba(239, 91, 91, .32);
  color: #ffb4b4;
  background: rgba(158, 45, 45, .14);
}

.web-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.web-shop-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: transform .18s ease, border-color .18s ease;
}

.web-shop-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 178, 74, .25);
}

.web-shop-card.unavailable {
  opacity: .67;
}

.web-shop-card-top,
.web-shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.web-shop-card-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(235, 194, 100, .25);
  border-radius: 12px;
  color: #f0cc76;
  background: rgba(226, 178, 74, .08);
  font-weight: 900;
}

.web-shop-card-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
}

.web-shop-card-status.available {
  color: #82dea0;
  background: rgba(50, 163, 87, .12);
}

.web-shop-card-status.locked {
  color: #aaa9a3;
  background: rgba(255, 255, 255, .06);
}

.web-shop-card h3 {
  margin: 18px 0 8px;
  font-size: 1.03rem;
}

.web-shop-card > p {
  flex: 1;
  margin: 0 0 20px;
  color: #92958d;
  font-size: .84rem;
  line-height: 1.55;
}

.web-shop-card-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.web-shop-card-footer strong {
  color: #9c9e97;
  font-size: .72rem;
  font-weight: 600;
}

.web-shop-card-footer strong span {
  color: #f0cd78;
  font-size: 1.16rem;
}

.web-shop-buy-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d5ac4f;
  border-radius: 9px;
  color: #12130f;
  background: #e0b84f;
  font-weight: 800;
  cursor: pointer;
}

.web-shop-buy-button:disabled {
  border-color: rgba(255, 255, 255, .08);
  color: #777971;
  background: rgba(255, 255, 255, .04);
  cursor: not-allowed;
}

.web-shop-info {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  color: #92958d;
}

.web-shop-info > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(226, 178, 74, .3);
  border-radius: 50%;
  color: #e4bd62;
  font-weight: 800;
}

.web-shop-info p {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
}

.web-shop-info strong {
  color: #d5d7d0;
}

.shop-purchase-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.shop-purchase-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(7px);
}

.shop-purchase-card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(235, 194, 100, .25);
  border-radius: 20px;
  background: #11120f;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.shop-purchase-card h2 {
  margin: 8px 36px 6px 0;
}

.shop-purchase-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  color: #d1d2cd;
  background: rgba(255, 255, 255, .04);
  font-size: 1.2rem;
  cursor: pointer;
}

.shop-purchase-summary {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(235, 194, 100, .18);
  border-radius: 12px;
  background: rgba(226, 178, 74, .06);
}

.shop-purchase-summary span {
  margin-right: auto;
  color: #9a9c95;
}

.shop-purchase-summary strong {
  color: #efca73;
  font-size: 1.5rem;
}

.shop-purchase-summary small {
  color: #9a9c95;
}

.shop-special-fields {
  display: grid;
  gap: 14px;
}

.shop-special-fields label {
  display: grid;
  gap: 7px;
  color: #b8bab3;
  font-size: .8rem;
}

.shop-special-fields input,
.shop-special-fields textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  color: #f4f4f1;
  background: #090a08;
}

.shop-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .web-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .web-shop-hero,
  .web-shop-heading {
    align-items: flex-start;
  }

  .web-shop-hero {
    display: grid;
    padding: 21px;
  }

  .web-shop-emblem {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .web-shop-balance-card {
    min-width: 0;
  }

  .web-shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-purchase-card {
    padding: 23px 18px;
  }

  .shop-purchase-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Live capt roster ------------------------------------------------------- */
.dashboard-capts-tab i { color: #ff9f37; font-size: 16px; }
.capt-access-badge { border: 1px solid rgba(255, 159, 55, .22); color: #ffb563; background: rgba(255, 159, 55, .09); }
#captsTab { --capt-orange: #ff9d32; --capt-green: #55e99b; --capt-red: #ff6975; color: #f5f4f1; }

.capt-hero {
  position: relative;
  display: grid;
  min-height: 225px;
  padding: 34px 38px;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 159, 55, .2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 145, 38, .13), transparent 34%),
    radial-gradient(circle at 95% 100%, rgba(89, 43, 10, .24), transparent 42%),
    linear-gradient(140deg, #11100d, #090b09 62%, #100c08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .03);
}
.capt-hero::after { position: absolute; right: -95px; bottom: -170px; width: 390px; height: 390px; border: 1px solid rgba(255, 159, 55, .1); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255, 159, 55, .025), 0 0 0 64px rgba(255, 159, 55, .015); content: ""; }
.capt-hero > * { position: relative; z-index: 1; }
.capt-eyebrow { color: var(--capt-orange); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.capt-hero h2 { margin: 8px 0 11px; font-size: clamp(35px, 4.5vw, 61px); letter-spacing: -.045em; line-height: 1; }
.capt-hero h2 em { color: var(--capt-orange); font-family: Georgia, serif; font-weight: 400; }
.capt-hero p { max-width: 690px; margin: 0; color: #9b9d97; font-size: 13px; line-height: 1.7; }
.capt-access-line { display: flex; margin-top: 20px; flex-wrap: wrap; gap: 10px 18px; color: #c5c6c0; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.capt-access-line span { display: flex; align-items: center; }
.capt-access-line i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--capt-green); box-shadow: 0 0 12px var(--capt-green); }
.capt-access-line strong { color: #f2aa58; }

.capt-summary { display: grid; padding: 4px; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid rgba(255, 159, 55, .14); border-radius: 17px; background: rgba(255, 159, 55, .1); }
.capt-summary > div { display: flex; min-height: 94px; padding: 16px; align-items: center; justify-content: center; flex-direction: column; background: rgba(7, 9, 7, .88); text-align: center; }
.capt-summary span { color: #7f827b; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.capt-summary strong { margin-top: 7px; color: #f8f5ee; font-size: 26px; font-variant-numeric: tabular-nums; }
.capt-summary > div:first-child strong { color: var(--capt-orange); }

.capt-notice { margin: 16px 0; padding: 13px 16px; border: 1px solid rgba(85, 233, 155, .25); border-radius: 11px; color: #8bf0ba; background: rgba(85, 233, 155, .07); font-size: 11px; }
.capt-notice.error { border-color: rgba(255, 105, 117, .3); color: #ff9da5; background: rgba(255, 105, 117, .07); }

.capt-dashboard { display: grid; margin-top: 18px; grid-template-columns: 255px minmax(0, 1fr); gap: 14px; align-items: start; }
.capt-events-panel,
.capt-workspace { border: 1px solid rgba(255, 255, 255, .075); border-radius: 18px; background: #0a0c0a; }
.capt-events-panel { position: sticky; top: 16px; overflow: hidden; }
.capt-events-panel > header { display: flex; min-height: 57px; padding: 0 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.capt-events-panel > header span { color: #858981; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.capt-events-panel > header button { width: 31px; height: 31px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 9px; color: #e4a252; background: #111411; cursor: pointer; }
.capt-events-panel > header button:disabled { opacity: .45; cursor: wait; }
.capt-events-nav { display: grid; padding: 8px; gap: 5px; }
.capt-event-button { display: grid; min-height: 65px; padding: 10px; grid-template-columns: 31px 1fr auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; color: #babdb6; background: transparent; text-align: left; cursor: pointer; }
.capt-event-button:hover { background: rgba(255, 255, 255, .025); }
.capt-event-button.active { border-color: rgba(255, 159, 55, .2); background: rgba(255, 159, 55, .075); }
.capt-event-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; color: #ffad52; background: rgba(255, 159, 55, .1); }
.capt-event-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.capt-event-copy strong { overflow: hidden; color: #e7e8e3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.capt-event-copy small { color: #71766e; font-size: 8px; }
.capt-event-button > i { color: #51dd95; font-size: 7px; font-style: normal; font-weight: 900; }
.capt-events-empty { display: flex; min-height: 165px; padding: 20px; align-items: center; justify-content: center; flex-direction: column; color: #6e736b; text-align: center; }
.capt-events-empty span { color: #d79648; font-size: 26px; }
.capt-events-empty strong { margin: 9px 0 4px; color: #bfc2bb; font-size: 11px; }
.capt-events-empty small { line-height: 1.5; }

.capt-workspace { min-height: 575px; overflow: hidden; }
.capt-empty-workspace { display: flex; min-height: 575px; align-items: center; justify-content: center; flex-direction: column; color: #72766f; text-align: center; }
.capt-empty-workspace span { display: grid; width: 62px; height: 62px; place-items: center; border: 1px solid rgba(255, 159, 55, .18); border-radius: 18px; color: #e39a45; background: rgba(255, 159, 55, .05); font-size: 25px; }
.capt-empty-workspace strong { margin-top: 15px; color: #cacdc6; }
.capt-empty-workspace p { margin: 6px 0 0; font-size: 10px; }
.capt-workspace-header { display: flex; min-height: 118px; padding: 23px 25px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.capt-workspace-header h2 { margin: 7px 0 5px; font-size: 25px; letter-spacing: -.025em; }
.capt-workspace-header p { max-width: 690px; margin: 0; color: #7f847c; font-size: 10px; line-height: 1.5; }
.capt-live-badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; color: #5de3a0; background: rgba(53, 185, 117, .1); font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.capt-time-card { display: flex; min-width: 112px; padding: 13px 16px; align-items: flex-end; flex-direction: column; border: 1px solid rgba(255, 159, 55, .15); border-radius: 12px; background: rgba(255, 159, 55, .04); }
.capt-time-card span { color: #7d8179; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.capt-time-card strong { margin-top: 4px; color: #ffb460; font-size: 17px; }

.capt-planning-grid { display: grid; padding: 20px 23px; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .065); }
.capt-map-label { display: block; margin-bottom: 9px; color: #777c74; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.capt-map-visual { position: relative; display: flex; min-height: 155px; padding: 22px; align-items: flex-end; gap: 15px; overflow: hidden; border: 1px dashed rgba(255, 159, 55, .18); border-radius: 14px; background: linear-gradient(145deg, rgba(28, 23, 16, .92), rgba(7, 11, 8, .94)), repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.02) 15px); }
.capt-map-visual.has-image { border-style: solid; border-color: rgba(255, 159, 55, .28); background: #080a08; }
.capt-map-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.capt-map-visual.has-image::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(4, 7, 5, .08) 15%, rgba(4, 7, 5, .9) 100%); content: ""; }
.capt-map-visual::after { position: absolute; top: 18px; right: 22px; width: 75px; height: 75px; border: 1px solid rgba(255, 159, 55, .11); border-radius: 50%; box-shadow: 0 0 0 15px rgba(255, 159, 55, .02); content: ""; }
.capt-map-visual.has-image::after { display: none; }
.capt-map-visual > i { position: relative; z-index: 2; display: grid; width: 47px; height: 47px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 159, 55, .32); border-radius: 50%; color: #ffb45f; background: rgba(24, 19, 12, .92); font-family: Georgia, serif; font-size: 22px; font-style: normal; }
.capt-map-visual > div { position: relative; z-index: 2; display: flex; flex-direction: column; }
.capt-map-visual strong { color: #eeeae1; font-size: 14px; }
.capt-map-visual small { margin-top: 5px; color: #747970; font-size: 8px; }
.capt-map-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.capt-map-buttons button { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 8px; color: #969b92; background: #0d100e; cursor: pointer; font-size: 9px; }
.capt-map-buttons button:hover:not(:disabled) { border-color: rgba(255, 159, 55, .32); color: #e9b779; }
.capt-map-buttons button.active { border-color: rgba(255, 159, 55, .48); color: #ffb55e; background: rgba(255, 159, 55, .09); box-shadow: inset 0 -2px #dc8426; }
.capt-map-buttons button:disabled { cursor: default; }

.capt-rosters-grid { display: grid; padding: 20px 23px 24px; grid-template-columns: 1fr 1fr; gap: 12px; }
.capt-roster-panel { overflow: hidden; border: 1px solid rgba(255, 255, 255, .075); border-radius: 13px; background: #080a08; }
.capt-roster-header { display: flex; min-height: 47px; padding: 0 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.capt-roster-header > div { display: flex; align-items: center; gap: 8px; }
.capt-roster-header span { color: #7c8179; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.capt-roster-header strong { display: grid; min-width: 25px; height: 21px; padding: 0 6px; place-items: center; border-radius: 6px; color: #f4a94f; background: rgba(255, 159, 55, .08); font-size: 9px; }
.capt-roster-header small { color: #686e66; font-size: 8px; }
.capt-member-row { display: grid; min-height: 61px; padding: 8px 11px 8px 14px; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255, 255, 255, .055); }
.capt-member-row:last-child { border-bottom: 0; }
.capt-member-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.capt-member-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 159, 55, .14); border-radius: 10px; color: #e9b16d; background: linear-gradient(145deg, #21170d, #10120f); font-size: 10px; font-weight: 900; }
.capt-member-identity > div { display: flex; min-width: 0; flex-direction: column; }
.capt-member-name-line { display: flex; min-width: 0; align-items: center; gap: 7px; }
.capt-member-identity strong { overflow: hidden; min-width: 0; color: #dddfda; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.capt-member-identity small { margin-top: 3px; overflow: hidden; color: #6f746c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.capt-tier-badge { display: inline-flex; min-height: 17px; padding: 0 6px; flex: 0 0 auto; align-items: center; border: 1px solid transparent; border-radius: 5px; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .055em; line-height: 1; white-space: nowrap; }
.capt-tier-badge.tier-s { border-color: rgba(255, 183, 72, .32); color: #ffc266; background: rgba(255, 154, 45, .12); box-shadow: inset 0 0 12px rgba(255, 157, 40, .04); }
.capt-tier-badge.tier-a { border-color: rgba(166, 112, 255, .3); color: #caa8ff; background: rgba(137, 80, 235, .12); }
.capt-tier-badge.tier-b { border-color: rgba(82, 205, 255, .27); color: #86dcff; background: rgba(41, 154, 207, .11); }
.capt-voice-dot { margin-left: 3px; color: #56d99a; font-size: 7px; font-style: normal; white-space: nowrap; }
.capt-member-toggle { display: flex; min-height: 33px; padding: 0 9px 0 5px; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 8px; color: #9ca098; background: #0d100e; cursor: pointer; }
.capt-member-toggle:disabled { cursor: default; opacity: .76; }
.capt-checkbox { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(255, 255, 255, .11); border-radius: 6px; color: #6f746c; background: #151815; font-size: 11px; }
.capt-member-toggle em { font-size: 8px; font-style: normal; }
.capt-member-toggle.checked { border-color: rgba(85, 233, 155, .15); color: #67e6a4; }
.capt-member-toggle.checked .capt-checkbox { border-color: rgba(85, 233, 155, .35); color: #072a1a; background: #62e3a1; }
.capt-member-toggle:hover:not(:disabled) { border-color: rgba(255, 159, 55, .32); }
.capt-roster-empty { display: grid; min-height: 120px; place-items: center; color: #666b64; font-size: 9px; }
.capt-explainer { display: flex; margin-top: 14px; padding: 16px 18px; align-items: center; gap: 13px; border: 1px solid rgba(85, 233, 155, .1); border-radius: 13px; background: rgba(85, 233, 155, .025); }
.capt-explainer > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgba(85, 233, 155, .08); }
.capt-explainer p { margin: 0; color: #858a82; font-size: 10px; line-height: 1.55; }
.capt-explainer strong { color: #c8cbc4; }

@media (max-width: 1120px) {
  .capt-hero { grid-template-columns: 1fr; }
  .capt-dashboard { grid-template-columns: 1fr; }
  .capt-events-panel { position: static; }
  .capt-events-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .capt-hero { padding: 24px 19px; }
  .capt-summary { grid-template-columns: 1fr; }
  .capt-events-nav { grid-template-columns: 1fr; }
  .capt-workspace-header { align-items: stretch; flex-direction: column; }
  .capt-time-card { align-items: flex-start; }
  .capt-planning-grid,
  .capt-rosters-grid { padding: 15px; grid-template-columns: 1fr; }
  .capt-member-toggle em { display: none; }
}
