/* Zeita Host — auth overlay (login / register) */
.pr-auth-root {
  --zh-bg-0: #0a0f16;
  --zh-bg-1: #101824;
  --zh-bg-2: #172231;
  --zh-panel: rgba(18, 28, 40, 0.88);
  --zh-text: #e6edf5;
  --zh-muted: #96a3b7;
  --zh-line: rgba(230, 237, 245, 0.1);
  --zh-titan: #7d8da7;
  --zh-sky: #7e9cc9;
  --zh-cyan: #78bec9;
  --zh-olive-hot: #95aa70;
  --zh-amber: #cfb07f;
  --zh-radius: 24px;
  --zh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --zh-font-display: "Sora", sans-serif;
  --zh-font-body: "Manrope", sans-serif;
  --zh-btn-grad: linear-gradient(135deg, var(--zh-titan), var(--zh-sky) 28%, var(--zh-olive-hot) 72%, var(--zh-amber));
}

.logo-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-cluster > .brand {
  flex-shrink: 0;
}

.header-support {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(34vw, 210px);
  padding: 0.28rem 0.68rem 0.32rem;
  border: 1px solid rgba(125, 141, 167, 0.22);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--zh-muted);
  text-decoration: none;
  line-height: 1.2;
  transition: border-color 0.25s var(--zh-ease), background 0.25s var(--zh-ease), color 0.25s var(--zh-ease);
}

.header-support:hover {
  border-color: rgba(120, 190, 201, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: var(--zh-cyan);
}

.header-support[hidden] {
  display: none !important;
}

.header-support__icon {
  flex-shrink: 0;
  color: var(--zh-cyan);
}

.header-support__text {
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user {
  appearance: none;
  margin: 0;
  padding: 0.28rem 0.72rem 0.32rem;
  border: 1px solid rgba(120, 190, 201, 0.24);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(42vw, 240px);
  line-height: 1.2;
  text-align: left;
  color: var(--zh-text);
  cursor: pointer;
  animation: none !important;
  transition: border-color 0.25s var(--zh-ease), background 0.25s var(--zh-ease);
}

.header-user:hover {
  border-color: rgba(120, 190, 201, 0.38);
  background: rgba(255, 255, 255, 0.07);
  transform: none;
}

.header-user[hidden] {
  display: none !important;
}

.header-user__name {
  font-family: var(--zh-font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zh-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.header-user__email {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--zh-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-cabinet-vpn,
body.is-signed-in .nav-cabinet-vpn,
#cabinet-vpn-btn {
  animation: none !important;
  transform: none !important;
}

.nav-cabinet-vpn::before,
.nav-cabinet-vpn::after,
#cabinet-vpn-btn::before,
#cabinet-vpn-btn::after {
  animation: none !important;
}

.nav-cabinet-vpn:hover,
#cabinet-vpn-btn:hover {
  transform: none;
}

#cabinet-vpn-btn[hidden] {
  display: none !important;
}

.pr-auth--vpn-keys {
  width: min(520px, 94vw);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
}

.pr-auth__vpn-keys {
  margin: 0.85rem 0 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--zh-line);
}

.pr-auth__vpn-title {
  margin: 0 0 0.55rem;
  font-family: var(--zh-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--zh-cyan);
}

.vpn-keys__note,
.vpn-keys__hint,
.vpn-keys__loading,
.vpn-keys__error {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--zh-muted);
}

.vpn-keys__status {
  margin: 0 0 0.55rem;
  font-family: var(--zh-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--zh-text);
}

.vpn-keys__status--ok {
  color: var(--zh-olive-hot);
}

.vpn-keys__status--warn {
  color: var(--zh-amber);
}

.vpn-keys__login {
  display: grid;
  gap: 0.75rem;
}

.vpn-keys__field {
  display: grid;
  gap: 0.3rem;
}

.vpn-keys__field span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--zh-muted);
}

.vpn-keys__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--zh-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--zh-text);
  font: inherit;
  font-size: 0.98rem;
}

.vpn-keys__code {
  margin: 0.55rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(149, 170, 112, 0.35);
  background: rgba(149, 170, 112, 0.1);
  font-size: 1.02rem;
  color: var(--zh-text);
}

.vpn-keys__code strong {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
}

.vpn-keys__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.vpn-keys__list {
  display: grid;
  gap: 0.75rem;
}

.vpn-key-card {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--zh-line);
  background: rgba(255, 255, 255, 0.03);
}

.vpn-key-card--expired {
  opacity: 0.72;
}

.vpn-key-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.vpn-key-card__loc {
  font-family: var(--zh-font-display);
  font-size: 1.08rem;
}

.vpn-key-card__proto {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zh-cyan);
}

.vpn-key-card__meta {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--zh-muted);
}

.vpn-key-card__config {
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--zh-line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--zh-text);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.vpn-key-card__copy {
  min-height: 2.35rem !important;
  padding: 0.45rem 0.8rem !important;
  font-size: 0.9rem !important;
}

@media (max-width: 900px) {
  .header-support__text {
    display: none;
  }

  .header-support {
    max-width: none;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 520px) {
  .logo-cluster {
    gap: 0.45rem;
  }

  .header-support {
    padding: 0.28rem 0.42rem;
  }

  .header-user {
    max-width: min(48vw, 180px);
    padding: 0.22rem 0.55rem 0.26rem;
  }

  .header-user__name {
    font-size: 0.78rem;
  }
}

.pr-auth .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pr-auth-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--zh-ease), visibility 0.28s var(--zh-ease);
}

.pr-auth-root.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pr-auth-root[hidden] {
  display: none !important;
}

.pr-auth-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 560px at 82% 12%, rgba(120, 190, 201, 0.12), transparent 55%),
    radial-gradient(860px 520px at 14% 22%, rgba(149, 170, 112, 0.1), transparent 52%),
    radial-gradient(640px 380px at 52% 34%, rgba(125, 141, 167, 0.08), transparent 50%),
    rgba(10, 15, 22, 0.72);
  backdrop-filter: blur(14px);
}

.pr-auth-shell {
  position: relative;
  z-index: 1;
  display: block;
  max-height: calc(100dvh - 2rem);
}

.pr-auth {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  padding: 1.65rem 1.5rem 1.45rem;
  font-family: var(--zh-font-body);
  color: var(--zh-text);
  background:
    radial-gradient(420px 240px at 88% 0%, rgba(120, 190, 201, 0.1), transparent 58%),
    radial-gradient(360px 220px at 8% 100%, rgba(149, 170, 112, 0.08), transparent 55%),
    var(--zh-panel);
  border: 1px solid var(--zh-line);
  border-radius: var(--zh-radius);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.pr-auth__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--zh-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--zh-muted);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s var(--zh-ease), border-color 0.25s var(--zh-ease), background 0.25s var(--zh-ease);
}

.pr-auth__close:hover {
  color: var(--zh-cyan);
  border-color: rgba(120, 190, 201, 0.35);
  background: rgba(120, 190, 201, 0.08);
}

.pr-auth__tabs {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--zh-line);
}

.pr-auth__tab {
  background: none;
  border: none;
  padding: 0.25rem 0 0.75rem;
  font-family: var(--zh-font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--zh-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.25s var(--zh-ease);
}

.pr-auth__tab:hover {
  color: var(--zh-text);
}

.pr-auth__tab.is-active {
  color: var(--zh-text);
}

.pr-auth__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--zh-btn-grad);
}

.pr-auth--session .pr-auth__tabs {
  display: none !important;
}

.pr-auth__title {
  margin: 0 0 1rem;
  font-family: var(--zh-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #eef3f9, var(--zh-sky) 36%, var(--zh-cyan) 60%, var(--zh-olive-hot) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pr-auth__form {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.pr-auth__form.is-active {
  display: flex;
}

.pr-auth__label {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zh-titan);
}

.pr-auth__input {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--zh-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  color: var(--zh-text);
  transition: border-color 0.25s var(--zh-ease), box-shadow 0.25s var(--zh-ease), background 0.25s var(--zh-ease);
}

.pr-auth__input::placeholder {
  color: rgba(150, 163, 183, 0.72);
}

.pr-auth__input:focus {
  outline: none;
  border-color: rgba(120, 190, 201, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(120, 190, 201, 0.14);
}

.pr-auth__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pr-auth__pick-wrap {
  position: relative;
}

.pr-auth__pick-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--zh-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  color: var(--zh-text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s var(--zh-ease),
    box-shadow 0.25s var(--zh-ease),
    background 0.25s var(--zh-ease);
}

.pr-auth__pick-trigger::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--zh-cyan);
  border-bottom: 2px solid var(--zh-cyan);
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  opacity: 0.9;
}

.pr-auth__pick-trigger:hover:not(:disabled) {
  border-color: rgba(120, 190, 201, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.pr-auth__pick-wrap.is-open .pr-auth__pick-trigger,
.pr-auth__pick-trigger:focus-visible {
  outline: none;
  border-color: rgba(120, 190, 201, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(120, 190, 201, 0.14);
}

.pr-auth__pick-wrap.is-open .pr-auth__pick-trigger::after {
  transform: rotate(-135deg) translateY(1px);
}

.pr-auth__pick-trigger:disabled {
  opacity: 0.65;
  cursor: default;
}

.pr-auth__pick-menu {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background:
    radial-gradient(420px 180px at 88% 0%, rgba(120, 190, 201, 0.12), transparent 58%),
    radial-gradient(360px 160px at 8% 100%, rgba(149, 170, 112, 0.08), transparent 55%),
    var(--zh-bg-2);
  border: 1px solid rgba(120, 190, 201, 0.24);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

.pr-auth__pick-option {
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--zh-muted);
  cursor: pointer;
  transition:
    color 0.2s var(--zh-ease),
    background 0.2s var(--zh-ease),
    box-shadow 0.2s var(--zh-ease);
}

.pr-auth__pick-option:hover {
  color: var(--zh-text);
  background: rgba(255, 255, 255, 0.06);
}

.pr-auth__pick-option.is-selected {
  color: var(--zh-text);
  background: rgba(120, 190, 201, 0.16);
  box-shadow: inset 0 0 0 1px rgba(120, 190, 201, 0.28);
}

.pr-auth__pick-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pr-auth__row {
  display: flex;
  justify-content: flex-end;
  margin: 0.35rem 0 0.7rem;
}

.pr-auth__forgot {
  font-size: 0.85rem;
  color: var(--zh-muted);
  text-decoration: none;
  pointer-events: none;
  opacity: 0.45;
}

.pr-auth__forgot.is-ready {
  color: var(--zh-cyan);
  pointer-events: auto;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pr-auth__submit {
  margin-top: 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-family: var(--zh-font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: #10150c;
  background: var(--zh-btn-grad);
  box-shadow: 0 14px 32px rgba(125, 141, 167, 0.22);
  cursor: pointer;
  transition: transform 0.35s var(--zh-ease), box-shadow 0.35s var(--zh-ease), opacity 0.25s var(--zh-ease);
}

.pr-auth__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(126, 156, 201, 0.28);
}

.pr-auth__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pr-auth__submit--ghost {
  color: var(--zh-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 141, 167, 0.22);
  box-shadow: none;
}

.pr-auth__submit--ghost:hover:not(:disabled) {
  border-color: rgba(120, 190, 201, 0.35);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.pr-auth__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: start;
}

.pr-auth__code-btn {
  white-space: nowrap;
  border: 1px solid rgba(125, 141, 167, 0.22);
  border-radius: 999px;
  padding: 0.78rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--zh-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s var(--zh-ease), background 0.25s var(--zh-ease), transform 0.25s var(--zh-ease);
}

.pr-auth__code-btn:hover:not(:disabled) {
  border-color: rgba(120, 190, 201, 0.35);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.pr-auth__code-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.pr-auth__hint,
.pr-auth__note {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--zh-muted);
}

.pr-auth__note.is-ok {
  color: var(--zh-olive-hot);
}

.pr-auth__note.is-error {
  color: #e8a07a;
}

.pr-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--zh-muted);
  line-height: 1.45;
}

.pr-auth__check input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--zh-cyan);
}

.pr-auth__terms-link {
  color: var(--zh-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pr-auth--session {
  text-align: center;
}

.pr-auth--session .pr-auth__title {
  display: none !important;
}

.pr-auth__session {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.4rem 0 0.2rem;
}

.pr-auth__session[hidden] {
  display: none !important;
}

.pr-auth__session-name {
  margin: 0;
  text-align: center;
  font-family: var(--zh-font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--zh-text);
}

.pr-auth__session-email {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--zh-cyan);
}

.pr-auth--session .pr-auth__submit--ghost {
  margin-top: 0.85rem;
  min-width: 11rem;
}

.pr-auth--session #account-logout {
  color: var(--zh-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 141, 167, 0.28);
  box-shadow: none;
}

.pr-auth--session #account-logout:hover {
  border-color: rgba(232, 160, 122, 0.45);
  background: rgba(232, 160, 122, 0.08);
}

#register-legal-fields[hidden],
#register-legal-fields.is-hidden {
  display: none !important;
}

#register-legal-fields {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

#register-legal-fields .pr-auth__label:first-child {
  margin-top: 0;
}

/* Compact register — без скролла */
.pr-auth--register {
  width: min(540px, 94vw);
  padding: 1.15rem 1.25rem 1.1rem;
}

.pr-auth--register .pr-auth__tabs {
  margin-bottom: 0.55rem;
}

.pr-auth--register .pr-auth__tab {
  padding: 0.15rem 0 0.55rem;
  font-size: 0.95rem;
}

.pr-auth--register .pr-auth__title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.pr-auth--register .pr-auth__form--register {
  gap: 0.45rem;
}

.pr-auth--register .pr-auth__field {
  min-width: 0;
}

.pr-auth--register .pr-auth__grid {
  display: grid;
  gap: 0.45rem 0.65rem;
}

.pr-auth--register .pr-auth__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pr-auth--register .pr-auth__label {
  margin-top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.pr-auth--register .pr-auth__input {
  padding: 0.58rem 0.72rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.pr-auth--register .pr-auth__code-row {
  gap: 0.45rem;
}

.pr-auth--register .pr-auth__code-btn {
  padding: 0.58rem 0.75rem;
  font-size: 0.78rem;
  min-width: 4.1rem;
}

.pr-auth--register .pr-auth__check {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.pr-auth--register .pr-auth__submit {
  margin-top: 0.45rem;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
}

.pr-auth--register .pr-auth__note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pr-auth--login {
  overflow: hidden;
}

.pr-terms[hidden] {
  display: none !important;
}

.pr-terms {
  position: absolute;
  top: 0;
  right: calc(100% + 0.85rem);
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(300px, 32vw);
  min-width: 240px;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  font-family: var(--zh-font-body);
  color: var(--zh-text);
  background:
    radial-gradient(420px 240px at 88% 0%, rgba(120, 190, 201, 0.1), transparent 58%),
    radial-gradient(360px 220px at 8% 100%, rgba(149, 170, 112, 0.08), transparent 55%),
    var(--zh-panel);
  border: 1px solid var(--zh-line);
  border-radius: var(--zh-radius);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(12px);
  transition:
    opacity 0.28s var(--zh-ease),
    transform 0.32s var(--zh-ease),
    visibility 0.28s var(--zh-ease);
}

.pr-terms.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.pr-terms__head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--zh-line);
  flex-shrink: 0;
}

.pr-terms__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zh-cyan);
  font-weight: 700;
}

.pr-terms__title {
  margin: 0;
  font-family: var(--zh-font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.pr-terms__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--zh-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.35rem;
  cursor: pointer;
  color: var(--zh-muted);
  transition: color 0.25s var(--zh-ease), border-color 0.25s var(--zh-ease);
}

.pr-terms__close:hover {
  color: var(--zh-cyan);
  border-color: rgba(120, 190, 201, 0.35);
}

.pr-terms__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 1rem 1rem;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--zh-muted);
}

.pr-terms__body h3 {
  margin: 0.9rem 0 0.35rem;
  font-family: var(--zh-font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zh-sky);
}

.pr-terms__body h3:first-child {
  margin-top: 0;
}

.pr-terms__body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.pr-terms__meta {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--zh-line);
  color: var(--zh-titan);
  font-size: 0.8rem;
}

.pr-toast {
  position: fixed;
  z-index: 10002;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--zh-line);
  background: rgba(16, 24, 36, 0.94);
  color: var(--zh-text);
  font-family: var(--zh-font-body);
  font-size: 0.92rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s var(--zh-ease);
}

.pr-toast.is-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .pr-auth--register .pr-auth__grid--2 {
    grid-template-columns: 1fr;
  }

  .pr-auth__code-row {
    grid-template-columns: 1fr auto;
  }

  .pr-auth__code-btn {
    width: auto;
  }
}

@media (max-width: 720px) {
  .pr-terms {
    width: min(260px, 38vw);
    min-width: 200px;
    right: calc(100% + 0.65rem);
  }
}

@media (max-width: 560px) {
  .pr-auth--register {
    width: min(420px, 94vw);
    padding: 1rem 1rem 0.95rem;
  }

  .pr-auth--register .pr-auth__code-row {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-auth-root,
  .pr-auth-shell,
  .pr-auth__submit,
  .pr-auth__code-btn,
  .pr-auth__close,
  .pr-terms,
  .pr-toast {
    transition: none;
  }

  .pr-auth__submit:hover:not(:disabled),
  .pr-auth__code-btn:hover:not(:disabled) {
    transform: none;
  }
}
