/* Cabinet and login refinements; keep the public landing and its 3D logo unchanged. */
.auth-brand-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vpn-app-intro {
  max-width: 65ch;
  margin-top: -8px;
}
.vpn-app-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--accent);
}
.vpn-app-ready:before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}
.vpn-app-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  background: #111b16;
}
.vpn-app-access-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.vpn-app-access .muted {
  max-width: 65ch;
  font-size: 13px;
}
.vpn-app-access .button {
  flex-shrink: 0;
}
.vpn-app-picker {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: start;
}
.vpn-device,
.vpn-picker-label {
  font-size: 13px;
  color: var(--muted);
}
.vpn-device {
  display: grid;
  gap: 12px;
}
.vpn-device select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid #3a4a40;
  border-radius: 6px;
  padding: 12px 14px;
  background: #0e1410;
  color: var(--ink);
  font-size: 16px;
}
.vpn-picker-label {
  margin-bottom: 12px;
}
.vpn-app-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vpn-app-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 84px;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.vpn-app-option:hover,
.vpn-app-option[aria-pressed="true"] {
  border-color: var(--accent);
  background: #17281f;
}
.vpn-app-initial {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid #3b5c48;
  border-radius: 9px;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
}
.vpn-app-option > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.vpn-app-option strong {
  display: block;
  font-size: 16px;
}
.vpn-app-option small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.vpn-other-apps summary,
.vpn-manual summary {
  width: fit-content;
  min-height: 46px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.vpn-other-apps .vpn-app-options {
  margin-top: 4px;
}
.vpn-app-detail {
  min-width: 0;
}
.vpn-app-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vpn-app-steps > li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.vpn-step-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.vpn-step-heading h3 {
  margin: 0;
  font-size: 18px;
}
.vpn-step-number {
  color: var(--accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.vpn-app-downloads,
.vpn-app-import {
  margin-top: 18px;
}
.vpn-app-steps .vpn-app-downloads {
  margin-top: 0;
}
.vpn-install-note {
  margin-top: 14px;
}
.vpn-app-downloads .vpn-store-unavailable:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.vpn-store-warning {
  max-width: 720px;
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 2px solid #b8a27d;
  border-radius: 4px;
  background: #1c1c16;
  font-size: 13px;
  color: #c8c2b3;
}
.vpn-store-warning p + p {
  margin-top: 8px;
}
.vpn-store-warning .button {
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
}
.vpn-app-note,
.vpn-import-feedback {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
}
.vpn-app-note .vpn-inline-choice {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  vertical-align: baseline;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.vpn-manual {
  max-width: 720px;
  margin-top: 12px;
}
.vpn-manual .key {
  margin: 16px 0;
}
@media (max-width: 800px) {
  .vpn-app-picker {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 600px) {
  body[data-screen="account"] .vpn-apps-content {
    gap: 20px;
  }
  .vpn-app-picker {
    gap: 18px;
  }
  .vpn-app-access {
    display: block;
    padding: 18px;
  }
  .vpn-app-access .button {
    margin-top: 16px;
    width: 100%;
  }
  .vpn-app-intro,
  .vpn-app-steps > li > .muted {
    font-size: 14px;
  }
  .vpn-app-option {
    padding: 14px;
    min-height: 78px;
  }
  .vpn-app-initial {
    display: none;
  }
  .vpn-app-downloads,
  .vpn-app-import {
    align-items: stretch;
    flex-direction: column;
  }
  .vpn-app-downloads .button,
  .vpn-app-import .button,
  .vpn-manual > .button {
    width: 100%;
  }
}
body[data-screen="account"] .page-head:has(.onboarding-toggle) {
  flex-wrap: wrap;
  align-items: center;
}
body[data-screen="account"] .page-head:has(.onboarding-toggle) > div {
  flex: 1 1 220px;
}
body[data-screen="account"] .onboarding-toggle {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 16px;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
}
body[data-screen="account"] .onboarding-toggle svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
body[data-screen="account"] .onboarding-toggle .onboarding-chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  color: var(--muted);
}
body[data-screen="account"] .onboarding-toggle[aria-expanded="true"] .onboarding-chevron {
  transform: rotate(90deg);
}
.nav-label-compact {
  display: none;
}
body[data-screen="account"] .page-head h2:focus {
  outline: none;
}
body[data-screen="account"] .page-head > div,
body[data-screen="account"] .list .row > div {
  min-width: 0;
}
body[data-screen="account"] .card p,
body[data-screen="account"] .page-head h2,
body[data-screen="account"] .list p,
body[data-screen="account"] .list .button {
  overflow-wrap: anywhere;
}
body[data-screen="account"] .list .button {
  max-width: 100%;
  text-align: left;
  justify-content: flex-start;
}
body[data-screen="account"] textarea.key {
  display: block;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0e1410;
  resize: vertical;
}
@media (max-width: 800px), (hover: none) and (pointer: coarse) {
  body[data-screen="account"] .form input,
  body[data-screen="account"] .form textarea,
  body[data-screen="account"] .form select,
  body[data-screen="auth"] .form input,
  body[data-screen="auth"] .form textarea,
  body[data-screen="auth"] .form select {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  body[data-screen="account"] .page-head:has(.onboarding-toggle) {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  body[data-screen="account"] .page-head:has(.onboarding-toggle) > div {
    flex: auto;
  }
  body[data-screen="account"] .onboarding-toggle {
    width: 100%;
    min-height: 50px;
  }
  body[data-screen="auth"] .auth-layout {
    padding-top: 20px;
    gap: 24px;
  }
  body[data-screen="auth"] .auth-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(76px, 23vw, 100px);
    align-items: center;
    gap: 14px 12px;
  }
  body[data-screen="auth"] .auth-intro h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: clamp(27px, 7.4vw, 34px);
    line-height: 1.15;
    letter-spacing: -1.1px;
  }
  body[data-screen="auth"] .auth-intro .lead {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
  }
  body[data-screen="auth"] .auth-mark {
    grid-column: 2;
    grid-row: 1;
    height: 104px;
  }
  body[data-screen="account"] .sidebar {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }
  body[data-screen="account"] .sidebar > .logout,
  body[data-screen="account"] .nav-label-wide {
    display: none;
  }
  body[data-screen="account"] .nav-label-compact {
    display: inline;
  }
  body[data-screen="account"] .sidebar .nav-primary,
  body[data-screen="account"] .nav-more summary {
    min-height: 54px;
    font-size: 11px;
    line-height: 1.3;
  }
  body[data-screen="account"] .nav-more summary[aria-current="page"],
  body[data-screen="account"] .nav-more-menu .button.active {
    color: var(--accent);
  }
  body[data-screen="account"] .nav-more-menu {
    width: 220px;
    max-width: calc(100vw - 32px);
    padding: 6px 16px;
    border-radius: 10px;
  }
  body[data-screen="account"] .nav-more-menu .button {
    min-height: 48px;
    font-size: 14px;
  }
  body[data-screen="account"] .nav-more-menu .logout-more {
    color: var(--muted);
  }
  body[data-screen="account"] .stack {
    gap: 24px;
  }
  body[data-screen="account"] .subscription-title h2 {
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: -1.8px;
    line-height: 1.15;
  }
  body[data-screen="account"] .subscription-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    margin: 26px 0;
  }
  body[data-screen="account"] .subscription-metrics > div {
    padding: 0;
    border: 0;
  }
  body[data-screen="account"] .subscription-metrics .metric {
    overflow-wrap: anywhere;
  }
  body[data-screen="account"] .subscription-metrics > div:first-child .metric {
    font-size: clamp(20px, 5.8vw, 26px);
    letter-spacing: -.6px;
  }
  body[data-screen="account"] .traffic-metric .metric {
    font-size: 30px;
  }
  body[data-screen="account"] .access-actions {
    margin-bottom: 8px;
  }
  body[data-screen="account"] .list .row {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  body[data-screen="account"] .list .row > div {
    flex: 1 1 160px;
  }
  body[data-screen="account"] .list .amount {
    margin-left: auto;
  }
  body[data-screen="account"] #notice {
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
    overflow-y: auto;
  }
}
