body.vpn-help-open {
  overflow: hidden;
}

.vpn-help-modal[hidden] {
  display: none !important;
}

.vpn-help-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 18px;
}

.vpn-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(10px);
}

.vpn-help-modal__dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(92vh, 1040px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(9, 15, 29, 0.98));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 60px rgba(0,0,0,.45);
  padding: 28px;
}

.vpn-help-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
}

.vpn-help-modal__close:hover {
  background: rgba(255,255,255,.12);
}

.vpn-help-modal__header {
  padding-right: 58px;
}

.vpn-help-modal__header h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.vpn-help-modal__lead {
  margin: 0;
  color: #d7e8ff;
  max-width: 840px;
  font-size: 17px;
}

.vpn-help-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,.26);
  background: rgba(56,189,248,.12);
  color: #d7f1ff;
  font-size: 14px;
  margin-bottom: 14px;
}

.vpn-help-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.vpn-help-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}

.vpn-help-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.vpn-help-summary__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}

.vpn-help-step__num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #03131f;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 20px rgba(56,189,248,.25);
}

.vpn-help-summary__item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.vpn-help-summary__item span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.vpn-help-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.vpn-help-screen {
  display: grid;
  gap: 16px;
}

.vpn-help-screen__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.vpn-help-screen__desc {
  margin: 0;
  color: #d7e8ff;
}

.vpn-help-screen__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.vpn-help-screen__list li::marker {
  color: #7dd3fc;
}

.vpn-help-screen img {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

.vpn-help-tip {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: #d9ffe6;
}

.vpn-help-keybox {
  display: grid;
  gap: 14px;
}

.vpn-help-keybox__meta {
  font-size: 15px;
  color: #d7e8ff;
}

.vpn-help-keybox__steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.vpn-help-keybox__steps li::marker {
  color: #7dd3fc;
}

.vpn-help-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--muted);
}

.vpn-help-status.is-error {
  color: #fecaca;
}

.vpn-help-status.is-success {
  color: #bbf7d0;
}

.vpn-help-result[hidden] {
  display: none !important;
}

.vpn-help-result textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(1, 10, 18, 0.7);
  color: #dff3ff;
  padding: 14px;
  font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vpn-help-result__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.vpn-help-note {
  font-size: 13px;
  color: var(--muted);
}

.vpn-help-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .vpn-help-summary,
  .vpn-help-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .vpn-help-modal {
    padding: 10px;
  }

  .vpn-help-modal__dialog {
    padding: 18px;
    border-radius: 22px;
    max-height: calc(100vh - 20px);
  }

  .vpn-help-modal__header {
    padding-right: 46px;
  }

  .vpn-help-modal__header h2 {
    font-size: 28px;
  }

  .vpn-help-modal__lead,
  .vpn-help-keybox__meta,
  .vpn-help-screen__desc,
  .vpn-help-summary__item span,
  .vpn-help-screen__list,
  .vpn-help-keybox__steps {
    font-size: 16px;
  }

  .vpn-help-card {
    padding: 16px;
    border-radius: 20px;
  }

  .vpn-help-screen img {
    border-radius: 20px;
  }

  .vpn-help-action-row,
  .vpn-help-result__actions {
    flex-direction: column;
  }

  .vpn-help-action-row > * {
    width: 100%;
    justify-content: center;
  }
}
