:root {
  --bg: #090611;
  --panel: rgba(20, 13, 31, 0.78);
  --panel-strong: rgba(25, 17, 39, 0.96);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.42);
  --vio: #7c3aed;
  --vio-2: #5b7cff;
  --vio-deep: #5f27d5;
  --pink: #fb7185;
  --vio-soft: rgba(255, 255, 255, 0.04);
  --pink-soft: rgba(251, 113, 133, 0.1);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.26);
}

html {
  scroll-behavior: smooth;
}

body.modal-open {
  overflow: hidden;
}

a,
button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, #c4b5fd 35%, #63d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.btn-press:active {
  transform: translateY(1px) scale(0.995);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.bg-orbit {
  position: fixed;
  top: -12rem;
  right: -10rem;
  width: 42rem;
  height: 42rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.24) 0%, rgba(124, 58, 237, 0.08) 38%, transparent 72%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite;
}

.bg-orbit-2 {
  top: auto;
  right: auto;
  bottom: -16rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(99, 210, 255, 0.18) 0%, rgba(99, 210, 255, 0.06) 40%, transparent 72%);
  animation-duration: 22s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-3%, 4%, 0) scale(1.08);
  }
}

.glass {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(15, 10, 24, 0.94), rgba(12, 8, 20, 0.82));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%);
  pointer-events: none;
}

.hover-glow:hover {
  border-color: rgba(196, 181, 253, 0.24);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.08),
    0 22px 60px rgba(0, 0, 0, 0.42),
    0 14px 40px rgba(124, 58, 237, 0.16);
}

.site-nav-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 600;
}

.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-action:hover {
  transform: translateY(-1px);
}

.site-action-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--vio), #5b7cff);
  box-shadow: 0 12px 26px rgba(92, 86, 255, 0.26);
}

.site-action-primary:hover {
  box-shadow: 0 16px 32px rgba(92, 86, 255, 0.34);
}

.site-action-ghost {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.site-action-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-mobile-link {
  display: block;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.site-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-flash {
  padding: 1rem 1.15rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.site-flash-success {
  border-color: rgba(52, 211, 153, 0.16);
  background: rgba(52, 211, 153, 0.09);
}

.site-flash-warning {
  border-color: rgba(243, 209, 123, 0.18);
  background: rgba(243, 209, 123, 0.08);
}

.site-flash-error {
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.1);
}

.site-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  max-width: 22rem;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 10, 22, 0.96);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.site-toast-success {
  border-color: rgba(52, 211, 153, 0.16);
}

.site-toast-error {
  border-color: rgba(251, 113, 133, 0.2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

.pricing-tier {
  overflow: hidden;
}

.pricing-tier::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

.pricing-tier-featured {
  border-color: rgba(243, 209, 123, 0.24);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(243, 209, 123, 0.1),
    0 18px 44px rgba(243, 209, 123, 0.12);
}

.site-modal-overlay {
  background: rgba(4, 2, 10, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
}

.modal-shell {
  position: relative;
}

.site-modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(15, 10, 24, 0.97), rgba(12, 8, 20, 0.96)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 58%);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.site-modal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  pointer-events: none;
}

.assignment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.assignment-option:hover {
  border-color: rgba(196, 181, 253, 0.22);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.assignment-option-selected {
  border-color: rgba(99, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(99, 210, 255, 0.11), rgba(124, 58, 237, 0.12));
  box-shadow: 0 0 0 1px rgba(99, 210, 255, 0.08), var(--shadow-soft);
}

.assignment-option-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.assignment-option-disabled:hover {
  transform: none;
}

.assignment-option-media {
  flex: 0 0 auto;
}

.assignment-option-avatar,
.assignment-option-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.assignment-option-avatar {
  object-fit: cover;
}

.assignment-option-fallback {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(99, 210, 255, 0.24));
  color: #fff;
  font-weight: 800;
}

.assignment-option-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.assignment-option-title {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 800;
}

.assignment-option-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.assignment-option-subscription {
  display: block;
}

.assignment-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.assignment-option-location,
.assignment-option-detail {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.assignment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assignment-status-active {
  background: rgba(52, 211, 153, 0.14);
  color: rgba(167, 243, 208, 0.95);
}

.assignment-status-pending {
  background: rgba(243, 209, 123, 0.14);
  color: rgba(254, 240, 138, 0.95);
}

.assignment-inline-link {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.server-switch {
  position: relative;
  overflow: hidden;
}

.server-switch::after {
  content: "";
  position: absolute;
  inset: auto auto -2.5rem -2rem;
  width: 6rem;
  height: 6rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 72%);
  pointer-events: none;
}

.command-panel-state {
  padding: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 1.3rem;
  color: rgba(255, 255, 255, 0.62);
}

.command-panel-state-error {
  color: rgba(254, 202, 202, 0.94);
  border-color: rgba(251, 113, 133, 0.18);
  background: rgba(251, 113, 133, 0.08);
}

.command-section {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.command-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(99, 210, 255, 0.08));
}

.command-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.command-section-title {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 800;
}

.command-section-meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.command-section-chevron {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.command-section-collapsed .command-section-chevron {
  transform: rotate(0deg);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}

.command-grid-collapsed {
  display: none;
}

.command-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.02);
}

.command-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.command-card-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 800;
}

.command-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.command-card-description {
  margin: 0.95rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.6;
}

.command-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.8rem;
}

.command-card-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
}

.command-card-locked:hover {
  color: #fff;
}

.cmd-toggle {
  position: relative;
  width: 70px;
  height: 35px;
  --dark: #15111c;
  --light: #d8dbe0;
  --vio-glow: rgba(124, 58, 237, 0.85);
}

.cmd-toggle .switch-label {
  position: absolute;
  width: 100%;
  height: 35px;
  background-color: var(--dark);
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid var(--dark);
  transition: 0.3s;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04);
}

.cmd-toggle .checkbox {
  position: absolute;
  display: none;
}

.cmd-toggle .slider {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--dark);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.cmd-toggle .checkbox:checked + .switch-label .slider {
  background: linear-gradient(90deg, var(--vio), #9b5cf6);
  box-shadow: 0 0 20px var(--vio-glow), 0 0 40px var(--vio-glow);
}

.cmd-toggle .slider::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--light);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cmd-toggle .checkbox:checked + .switch-label .slider::before {
  transform: translateX(34px);
  background-color: #fff;
  box-shadow: 0 0 15px var(--vio-glow);
}

.cmd-toggle.updating .switch-label,
.cmd-toggle.updating .slider {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(1);
}

.stats-container {
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.stat:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.18);
}

.stat .label {
  font-size: 0.78rem;
  opacity: 0.74;
  letter-spacing: 0.04em;
}

.stat .value {
  font-size: 1rem;
  font-weight: 700;
}

.interactive-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.core-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-center {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #a855f7 0%, #6d28d9 40%, rgba(124, 58, 237, 0.22) 70%, transparent 100%);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.65), 0 0 100px rgba(168, 85, 247, 0.42);
  transition: box-shadow 0.3s ease;
}

.core-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  transition: opacity 0.3s ease;
}

.orb {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle, #f0abfc 0%, #7c3aed 60%, transparent 100%);
  box-shadow: 0 0 10px rgba(180, 80, 255, 0.7);
  animation: orbit var(--speed) linear infinite;
  opacity: 0.9;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(var(--radius)) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(var(--radius)) rotate(-360deg);
  }
}

.core-center.glow-boost {
  box-shadow: 0 0 60px rgba(200, 120, 255, 0.92), 0 0 140px rgba(200, 120, 255, 0.82);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--vio), var(--vio-2));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.32);
}

@media (max-width: 767px) {
  .site-toast {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

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

  .assignment-option-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
