:root {
  color-scheme: dark;
  --bg: #071015;
  --panel: #101c23;
  --panel-2: #14252e;
  --panel-3: #0c171d;
  --line: rgba(154, 255, 219, 0.16);
  --line-strong: rgba(154, 255, 219, 0.3);
  --text: #eefbf7;
  --muted: #9db4ae;
  --accent: #38f2ba;
  --accent-soft: rgba(56, 242, 186, 0.12);
  --warn: #ffd166;
  --danger: #ff6b7f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(130deg, rgba(18, 189, 136, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(56, 242, 186, 0.12), transparent 32%), var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.vs-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.vs-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.vs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.vs-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 90% 16%, 84% 77%, 50% 100%, 16% 77%, 10% 16%);
  background: linear-gradient(145deg, var(--accent), #7af7d6);
  color: #03110d;
  font-weight: 950;
}

.vs-brand__text {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.vs-account {
  position: relative;
}

.vs-login-trigger {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 18px;
  font-weight: 850;
}

.vs-login-trigger--logged-in {
  max-width: min(220px, 46vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-account-menu {
  position: absolute;
  inset-block-start: calc(100% + 11px);
  inset-inline-end: 0;
  z-index: 12;
  min-width: 150px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.vs-account-menu__item {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 14px;
  text-align: start;
  font-weight: 850;
}

.vs-main {
  display: grid;
  gap: 20px;
  padding: 26px 0 34px;
}

.vs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(56, 242, 186, 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow);
}

.vs-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vs-hero__meta {
  min-width: min(330px, 100%);
  display: grid;
  gap: 8px;
}

.vs-hero__meta span {
  display: block;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

.vs-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.vs-filter-panel,
.vs-checkout__panel {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 35, 0.92);
  box-shadow: var(--shadow);
}

.vs-filter-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.vs-panel-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-filter {
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: start;
  padding: 0 12px;
  font-weight: 850;
}

.vs-filter--active {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--text);
}

.vs-catalog {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.vs-section,
.vs-catalog-message {
  border: 1px solid var(--line);
  background: rgba(12, 23, 29, 0.84);
}

.vs-catalog-message {
  padding: 22px;
  color: var(--muted);
  font-weight: 850;
}

.vs-catalog-message--error {
  color: var(--danger);
}

.vs-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.vs-section__head p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vs-section__head h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.vs-section__head span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.vs-section__code {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-weight: 950;
}

.vs-product-list {
  display: grid;
}

.vs-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.vs-product:last-child {
  border-bottom: 0;
}

.vs-product--selected {
  background: rgba(56, 242, 186, 0.08);
  box-shadow: inset 4px 0 0 var(--accent);
}

.vs-product h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.vs-product p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.vs-badge {
  min-height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: var(--warn);
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 950;
}

.vs-badge--empty {
  visibility: hidden;
}

.vs-price {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 950;
}

.vs-product__button,
.vs-pay-button {
  min-height: 44px;
  border: 0;
  background: var(--accent);
  color: #03110d;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 950;
}

.vs-checkout {
  min-width: 0;
}

.vs-checkout__panel {
  display: grid;
  gap: 16px;
  background: var(--panel);
  padding: 18px;
}

.vs-checkout__close {
  display: none;
}

.vs-checkout h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.vs-checkout p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vs-selected-price {
  min-height: 70px;
  display: grid;
  place-items: center start;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--accent);
  padding: 14px;
  font-size: 2.2rem;
  font-weight: 950;
}

.vs-payment-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.vs-payment-method {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.vs-payment-method--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.vs-security-note {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 12px;
}

.vs-footer {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 0 0 34px;
}

.vs-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 900;
}

.vs-legal-link {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

.vs-copyright {
  width: min(820px, 100%);
  border: 1px solid var(--line-strong);
  background: #eefbf7;
  color: #53615d;
  padding: 9px 14px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.vs-copyright strong {
  color: #152722;
}

.vs-login-modal,
.vs-payment-modal,
.vs-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.vs-login-modal--open,
.vs-payment-modal--open,
.vs-legal-modal--open {
  display: grid;
}

.vs-login-modal__backdrop,
.vs-payment-modal__backdrop,
.vs-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 9, 0.74);
}

.vs-login-modal__panel,
.vs-payment-modal__panel,
.vs-legal-modal__panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.vs-login-modal__panel,
.vs-payment-modal__panel {
  width: min(430px, 100%);
  display: grid;
  gap: 24px;
  padding: 34px 28px 28px;
}

.vs-payment-modal__panel {
  text-align: center;
}

.vs-login-modal__close,
.vs-payment-modal__close,
.vs-legal-modal__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.vs-login-modal__close,
.vs-payment-modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
}

.vs-login-modal__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.vs-login-modal__brand strong,
.vs-login-modal__brand span {
  display: block;
}

.vs-login-modal__brand strong {
  font-size: 1.65rem;
}

.vs-login-modal__brand span {
  color: var(--muted);
  font-weight: 750;
}

.vs-login-form {
  display: grid;
  gap: 14px;
}

.vs-login-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 900;
}

.vs-login-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.vs-login-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 242, 186, 0.12);
}

.vs-login-error {
  min-height: 18px;
  margin: -3px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 850;
}

.vs-login-submit {
  min-height: 48px;
  border: 0;
  background: var(--accent);
  color: #03110d;
  cursor: pointer;
  font-weight: 950;
}

.vs-login-modal__terms {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.55;
}

.vs-payment-modal__icon,
.vs-result-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 950;
}

.vs-payment-modal__icon--pending::after,
.vs-result-panel--pending .vs-result-icon::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: vs-spin 900ms linear infinite;
}

.vs-payment-modal__icon--success::after,
.vs-result-panel--success .vs-result-icon::after {
  content: '';
  width: 16px;
  height: 28px;
  border: solid var(--accent);
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
}

.vs-payment-modal__icon--error::after,
.vs-result-panel--failed .vs-result-icon::after,
.vs-result-panel--cancelled .vs-result-icon::after {
  content: '!';
}

.vs-payment-modal__summary,
.vs-result-order {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: var(--panel-3);
  padding: 12px 14px;
  text-align: start;
}

.vs-payment-modal__summary span,
.vs-result-order span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vs-payment-modal__action,
.vs-result-action {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
}

.vs-legal-modal__panel {
  width: min(860px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.vs-legal-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.vs-legal-modal__header h2 {
  margin: 0;
  font-size: 1.55rem;
}

.vs-legal-modal__body {
  overflow-y: auto;
  padding: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.vs-legal-modal__body h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.vs-legal-modal__body h3:first-child {
  margin-top: 0;
}

.vs-legal-modal__body p,
.vs-legal-modal__body li {
  font-size: 0.96rem;
}

.vs-legal-modal__body ul {
  margin: 0;
  padding-inline-start: 20px;
}

.vs-company-box {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  background: #eefbf7;
  color: #21312d;
  padding: 10px 14px;
  font-weight: 850;
  line-height: 1.35;
}

.vs-company-box span {
  display: block;
}

.vs-company-box strong {
  color: #0f2520;
}

.vs-result-page {
  width: min(820px, calc(100% - 32px));
  min-height: calc(100vh - 110px);
  margin: 0 auto 42px;
  display: grid;
  align-items: center;
}

.vs-result-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 29, 0.84);
  padding: clamp(26px, 6vw, 48px);
  text-align: center;
  box-shadow: var(--shadow);
}

.vs-result-panel h1 {
  max-width: 100%;
  font-size: clamp(2rem, 7vw, 3.8rem);
}

.vs-result-panel p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vs-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.vs-result-action--primary {
  border: 0;
  background: var(--accent);
  color: #03110d;
}

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

@media (width <= 1120px) {
  .vs-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .vs-checkout {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: grid;
    align-items: end;
    padding: 0 12px 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .vs-checkout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(1, 7, 9, 0.62);
  }

  .vs-checkout--active {
    opacity: 1;
    pointer-events: auto;
  }

  .vs-checkout__panel {
    position: absolute;
    inset-block-start: auto;
    inset-inline-start: 12px;
    inset-inline-end: 12px;
    inset-block-end: max(12px, env(safe-area-inset-bottom));
    max-height: min(68vh, 520px);
    overflow-y: auto;
    transform: translateY(26px);
    transition: transform 180ms ease;
  }

  .vs-checkout--active .vs-checkout__panel {
    transform: translateY(0);
  }

  .vs-checkout__close {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
  }
}

@media (width <= 760px) {
  .vs-shell {
    width: min(100% - 24px, 1280px);
  }

  .vs-header {
    min-height: 68px;
  }

  .vs-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .vs-workspace {
    grid-template-columns: 1fr;
  }

  .vs-filter-panel {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 0 0 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: thin;
  }

  .vs-panel-label {
    display: none;
  }

  .vs-filter {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--panel);
    white-space: nowrap;
  }

  .vs-section__head {
    padding: 16px;
  }

  .vs-product {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .vs-product__button,
  .vs-pay-button {
    width: 100%;
  }

  .vs-legal-modal,
  .vs-login-modal,
  .vs-payment-modal {
    padding: 12px;
  }

  .vs-login-modal__panel,
  .vs-payment-modal__panel {
    padding: 34px 22px 26px;
  }

  .vs-legal-modal__header,
  .vs-legal-modal__body {
    padding: 18px;
  }

  .vs-copyright {
    font-size: 0.74rem;
  }
}
