:root {
  color-scheme: light dark;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
  --primary-color: #2563eb;
  --primary-strong: #1d4ed8;
  --secondary-color: #0f172a;
  --surface: #ffffff;
  --surface-strong: #f8fafc;
  --bg-color: #e6edf8;
  --text-color: #0f172a;
  --muted-color: #64748b;
  --border-color: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --page-glow: radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 38%), radial-gradient(circle at 90% 12%, rgba(14, 165, 233, 0.14), transparent 26%);
}

:root[data-theme='dark'] {
  --primary-color: #3b82f6;
  --primary-strong: #60a5fa;
  --secondary-color: #e2e8f0;
  --surface: #111827;
  --surface-strong: #0f172a;
  --bg-color: #020617;
  --text-color: #e2e8f0;
  --muted-color: #94a3b8;
  --border-color: rgba(148, 163, 184, 0.22);
  --shadow: 0 18px 42px rgba(2, 6, 23, 0.52);
  --page-glow:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.24), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(14, 116, 144, 0.24), transparent 24%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-glow), linear-gradient(180deg, #eef4fb 0%, #dbe7f5 100%);
  color: var(--text-color);
}

body[data-theme='dark'] {
  background: var(--page-glow), linear-gradient(180deg, #0b1120 0%, #020617 100%);
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

#app {
  max-width: 1460px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.landing-page {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  gap: 2rem;
  align-items: stretch;
  min-height: calc(100vh - 3rem);
}

.landing-hero {
  display: grid;
  gap: 2rem;
}

.hero-top {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-strong);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 620px;
  margin: 0;
  color: var(--muted-color);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.75;
}

.auth-panel {
  display: grid;
  gap: 1.5rem;
  align-self: start;
}

.auth-intro {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-color);
  padding: 0.65rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.auth-intro h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.65rem;
}

.auth-intro p {
  margin: 0;
  color: var(--muted-color);
  line-height: 1.8;
}

.auth-container {
  display: grid;
  gap: 1rem;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-card:not(.active) {
  display: none;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.45rem;
}

.card-heading p {
  margin: 0.75rem 0 0;
  color: var(--muted-color);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-transform: lowercase;
  color: var(--muted-color);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.auth-divider span {
  padding: 0 0.65rem;
}

.input-group {
  display: grid;
  gap: 0.45rem;
}

.input-group label {
  font-size: 0.95rem;
  color: var(--secondary-color);
}

.input-group input,
.input-group select {
  width: 100%;
  min-height: 48px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text-color);
}

.actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.link-action {
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 50px;
  padding: 0 1.25rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.18);
}

.btn-secondary {
  background: #f8fafc;
  color: var(--secondary-color);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.error-banner,
.success-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
}

.error-banner {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.success-banner {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  margin-top: 1.25rem;
}

.card-footer span,
.card-footer a {
  font-size: 0.95rem;
}

.app-shell {
  display: none;
  gap: 1.5rem;
}

.app-shell:not(.hidden) {
  display: block;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.route-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.route-label {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#app-route {
  margin: 0;
  font-size: 1rem;
  color: var(--secondary-color);
}

.route-breadcrumbs {
  display: block;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb-item {
  position: relative;
  color: var(--muted-color);
  font-size: 0.85rem;
}

.breadcrumb-item:not(.active)::after {
  content: '\00b7';
  margin-left: 0.5rem;
  color: var(--border-color);
}

.breadcrumb-item.active {
  color: var(--secondary-color);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-group img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.brand-copy h1 {
  margin: 0;
  font-size: 1.2rem;
}

.brand-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.app-nav a:hover {
  color: var(--primary-strong);
}

.app-view {
  min-height: 400px;
  margin-top: 1.5rem;
}

@media (max-width: 1024px) {
  .landing-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #app {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

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

.vs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vs-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.vs-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vs-button--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.vs-button--secondary {
  background: white;
  color: var(--secondary-color);
  border-color: rgba(15, 23, 42, 0.12);
}

body[data-theme='dark'] .vs-button--secondary {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.vs-button--sm {
  min-height: 38px;
  padding: 0 0.85rem;
}

.vs-button--md {
  min-height: 44px;
}

.vs-button--lg {
  min-height: 52px;
  padding: 0 1.25rem;
}

.vs-card {
  background: white;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.vs-card__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.vs-card__body {
  color: var(--muted-color);
  line-height: 1.75;
}

.vs-card__footer {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.vs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  min-height: calc(100vh - 3rem);
}

.vs-shell.auth-mode {
  grid-template-columns: minmax(0, 1fr);
}

.vs-shell.auth-mode .vs-main {
  grid-column: 1 / -1;
}

.vs-sidebar.hidden + .vs-main {
  grid-column: 1 / -1;
}

.vs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body[data-theme='dark'] .vs-sidebar {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.18);
}

.vs-brand-panel {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.vs-brand-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-color);
  color: white;
  font-weight: 800;
}

.vs-brand-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.vs-brand-tag {
  margin: 0.25rem 0 0;
  color: var(--muted-color);
  font-size: 0.9rem;
}

.vs-sidebar-nav {
  display: grid;
  gap: 0.6rem;
}

.vs-sidebar-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0.62rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-sidebar-link.active,
.vs-sidebar-link:hover {
  color: var(--primary-strong);
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.vs-sidebar-link:active {
  transform: translateY(0);
}

body[data-theme='dark'] .vs-sidebar-link.active,
body[data-theme='dark'] .vs-sidebar-link:hover {
  background: rgba(59, 130, 246, 0.18);
}

body[data-theme='dark'] .vs-sidebar-link {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.4);
}

body[data-theme='dark'] .vs-sidebar-link.active,
body[data-theme='dark'] .vs-sidebar-link:hover {
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.35);
}

.vs-sidebar-footer {
  margin-top: auto;
}

.vs-main {
  display: grid;
  gap: 0.6rem;
}

.vs-content {
  display: grid;
  gap: 1rem;
}

.vs-auth-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.vs-auth-shell {
  width: 100%;
}

.vs-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(360px, 0.95fr);
  gap: 1.9rem;
  align-items: stretch;
  min-height: 0;
}

.vs-hero-panel {
  position: relative;
  min-height: 620px;
  background-image: linear-gradient(180deg, rgba(5, 10, 23, 0.88), rgba(9, 18, 36, 0.58)), url('vams_hero.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vs-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 11, 24, 0.92), rgba(20, 83, 45, 0.08)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.18), transparent 32%);
}

.vs-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  padding: 2.8rem 2.4rem;
  color: #ffffff;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-kicker-muted {
  background: rgba(15, 23, 42, 0.36);
  color: rgba(255, 255, 255, 0.82);
}

.logo-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.brand-title {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 0.3rem 0 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  font-size: 0.95rem;
}

.hero-headline-block {
  display: grid;
  gap: 0.9rem;
}

.brand-tagline {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 4.1vw, 4.5rem);
  line-height: 0.97;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-desc {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-metric-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
}

.hero-metric-card strong {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-metric-card span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 0.92rem;
}

.features-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  font-size: 0.95rem;
}

.positioning-quote {
  padding: 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
}

.quote-label,
.pilot-callout-label {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.75;
  font-size: 0.98rem;
}

.hero-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.pilot-callout-card {
  padding: 1.25rem 1.3rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.18), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(186, 230, 253, 0.22);
}

.pilot-callout-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.pilot-callout-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.vs-form-panel {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.vs-form-inner {
  width: 100%;
  max-width: 560px;
  display: grid;
  gap: 1rem;
}

.vs-auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 32px;
  padding: 1.6rem;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.vs-auth-card:not(.active) {
  display: none;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

.card-heading p {
  margin: 0.75rem 0 0;
  color: var(--muted-color);
  line-height: 1.75;
}

.auth-panel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-side-note {
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.auth-side-note strong {
  color: #1d4ed8;
  font-size: 0.88rem;
}

.auth-side-note span {
  color: #334155;
  line-height: 1.65;
  font-size: 0.92rem;
}

.error-banner,
.success-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
}

.error-banner {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-banner {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.vs-app-view {
  min-height: 360px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body[data-theme='dark'] .vs-app-view,
body[data-theme='dark'] .vs-card,
body[data-theme='dark'] .card,
body[data-theme='dark'] .vs-auth-card {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--text-color);
}

body[data-theme='dark'] .card-heading p,
body[data-theme='dark'] .brand-copy p,
body[data-theme='dark'] .route-label,
body[data-theme='dark'] .breadcrumb-item,
body[data-theme='dark'] .vs-brand-tag,
body[data-theme='dark'] .auth-side-note span {
  color: var(--muted-color);
}

body[data-theme='dark'] .auth-side-note {
  background: rgba(30, 58, 138, 0.22);
  border-color: rgba(96, 165, 250, 0.34);
}

body[data-theme='dark'] .auth-side-note strong {
  color: #93c5fd;
}

body[data-theme='dark'] .input-group input,
body[data-theme='dark'] .input-group select {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.vs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem;
}

.vs-topbar-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-wrap: wrap;
}

.vs-topbar .brand-copy,
.vs-topbar .route-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.45rem;
}

.vs-topbar .route-copy {
  align-items: center;
}

.vs-topbar-title h1 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.vs-topbar-title p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted-color);
}

.vs-topbar .route-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.vs-topbar #app-route {
  font-size: 0.9rem;
  margin: 0;
}

.vs-topbar .route-breadcrumbs {
  margin-left: 0.1rem;
}

.vs-topbar .breadcrumb-list {
  gap: 0.35rem;
}

.vs-topbar .breadcrumb-item {
  font-size: 0.76rem;
}

.vs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

@media (max-width: 980px) {
  .vs-topbar {
    align-items: flex-start;
  }

  .vs-topbar-title {
    gap: 0.45rem;
  }

  .vs-topbar-actions {
    margin-left: auto;
  }
}

.vs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.vs-footer p {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.85rem;
}

.vs-release-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-theme='dark'] .vs-footer {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

body[data-theme='dark'] .vs-release-chip {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.24);
  color: #cbd5e1;
}

@media (max-width: 980px) {
  .vs-shell {
    grid-template-columns: 1fr;
  }

  .vs-sidebar {
    width: 100%;
  }

  .vs-auth-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .vs-hero-panel {
    min-height: auto;
  }

  .hero-metrics,
  .hero-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  #app {
    padding: 1rem 0.85rem 2rem;
  }

  .vs-hero-content,
  .vs-auth-card {
    padding: 1.35rem;
  }

  .brand-tagline {
    font-size: 2rem;
  }

  .logo-wrapper {
    align-items: center;
  }
}
