:root {
  --bg: #141414;
  --bg-elevated: #1f1f1f;
  --bg-soft: #17181c;
  --panel: #1f1f1f;
  --panel-soft: #17181c;
  --panel-muted: #262626;
  --nav: #141414;
  --nav-soft: #1a1c22;
  --ink: rgba(255, 255, 255, 0.88);
  --ink-strong: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --line: #303030;
  --line-soft: #262626;
  --accent: #177ddc;
  --accent-deep: #0958d9;
  --accent-soft: rgba(23, 125, 220, 0.18);
  --accent-soft-strong: rgba(23, 125, 220, 0.28);
  --danger: #ff7875;
  --danger-soft: rgba(220, 68, 70, 0.18);
  --ok: #73d13d;
  --ok-soft: rgba(73, 170, 25, 0.16);
  --warn: #ffc53d;
  --warn-soft: rgba(217, 137, 22, 0.18);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  --radius: 16px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 400;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 500;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Medium.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "OpenAI Sans";
  font-style: normal;
  font-weight: 600;
  src: url("https://cdn.openai.com/common/fonts/openai-sans/v2/OpenAISans-Semibold.woff2") format("woff2");
}

/* Public landing and customer portal */
.public-page {
  min-height: 100vh;
  color: #fff;
  background: #000;
  font-family: "OpenAI Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "liga" on, "calt" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}
html:has(body.public-page) {
  background: #000;
}
.lk-page {
  min-height: 100vh;
  color: #15201c;
  background: #fbfcf9;
  font-family: var(--font);
}
.public-page a,
.lk-page a { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.public-header,
.lk-topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.public-header {
  position: relative;
  z-index: 2;
}
.public-brand,
.lk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.public-brand {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}
.lk-brand {
  color: #111c18;
}
.public-brand-mark,
.lk-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
}
.public-brand-mark {
  background: #fff;
  color: #000;
}
.lk-brand-mark {
  background: #0f6b4f;
}
.public-nav,
.lk-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.public-nav {
  color: rgba(255, 255, 255, 0.66);
}
.public-header-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.public-header-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.public-header-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}
.lk-nav {
  color: rgba(21, 32, 28, 0.72);
}
.lk-nav form { margin: 0; }
.lk-nav button {
  border: 0;
  background: none;
  color: rgba(21, 32, 28, 0.72);
  font: inherit;
  cursor: pointer;
}
.public-nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: transparent;
}
.public-hero {
  position: relative;
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.public-hero-copy {
  max-width: 1000px;
  padding: 48px 0 76px;
}
.public-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 64px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}
.public-hero-copy p {
  margin: 28px auto 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
  text-wrap: pretty;
}
.public-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.public-button,
.lk-primary,
.lk-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(21, 32, 28, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #111c18;
  font: 500 14px/1 "OpenAI Sans", var(--font);
  letter-spacing: 0;
  cursor: pointer;
}
.public-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}
.public-button:hover,
.public-nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
}
.public-button.primary,
.lk-primary {
  border-color: #0f6b4f;
  background: #0f6b4f;
  color: #fff;
}
.public-button.primary {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.public-button.primary:hover {
  background: rgba(255, 255, 255, 0.82);
}
.public-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-50%);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.public-scroll-cue:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  transform: translateX(-50%) translateY(2px);
}
.public-scroll-cue svg {
  width: 22px;
  height: 22px;
}
.public-scroll-cue path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.lk-secondary {
  background: #e9f3ee;
  border-color: rgba(15, 107, 79, 0.24);
  color: #0f6b4f;
}
.lk-card,
.lk-auth-card,
.lk-metrics article {
  background: #fff;
  border: 1px solid rgba(21, 32, 28, 0.10);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(32, 48, 40, 0.08);
}
.lk-metrics span,
.lk-muted {
  color: rgba(21, 32, 28, 0.58);
}
.public-section {
  width: min(1120px, calc(100% - 40px));
  margin: 92px auto;
}
.public-section h2 {
  margin: 0 0 26px;
  color: #fff;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
}
.public-tariffs {
  display: grid;
  align-content: start;
  gap: 32px;
  margin-bottom: 0;
  padding: 0 0 var(--tariff-tail-space, 0px);
}
.public-tariffs h2 {
  margin-bottom: 0;
  text-align: center;
}
.public-tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.public-tariff-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.public-tariff-card h3 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}
.public-tariff-card strong {
  margin-top: auto;
  color: #fff;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}
.public-tariff-card p {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
  line-height: 1.55;
}
.public-tariff-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
  line-height: 1.55;
  text-align: center;
}
.public-manifesto {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
.public-line-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.public-line-list div {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.public-line-list strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}
.public-line-list span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1.55;
}
.public-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.public-flow li {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.public-flow li span {
  color: rgba(255, 255, 255, 0.50);
  font-size: 14px;
  font-weight: 600;
}
.public-flow li strong {
  margin-top: auto;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.14;
}
.public-flow li p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.5;
}
.public-closer {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 96px;
}
.public-closer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 19px;
  line-height: 1.55;
}
.public-closer .public-button {
  width: fit-content;
}
.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.public-feature-grid article {
  padding: 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.public-feature-grid h3 {
  margin: 0 0 10px;
  color: #fff;
}
.public-feature-grid p,
.public-split p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}
.public-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}
.lk-main {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 56px;
}
.lk-auth-main {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 28px 0 92px;
}
.lk-auth-card {
  width: min(100%, 460px);
  margin: 44px auto;
  padding: 28px;
}
.lk-auth-page .lk-auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.lk-auth-card h1,
.lk-hero h1,
.lk-card h2 {
  margin: 0;
  color: #111c18;
  letter-spacing: 0;
}
.lk-auth-page .lk-auth-card h1 {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}
.lk-auth-card p,
.lk-hero p,
.lk-card p {
  color: rgba(21, 32, 28, 0.64);
  line-height: 1.5;
}
.lk-auth-page .lk-auth-card > p {
  max-width: 360px;
  margin: -4px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.55;
}
.lk-form,
.lk-inline-form,
.lk-device-form {
  display: grid;
  gap: 12px;
}
.lk-auth-page .lk-form {
  gap: 12px;
  margin-top: 6px;
}
.lk-form label {
  display: grid;
  gap: 6px;
  color: rgba(21, 32, 28, 0.68);
  font-size: 13px;
  font-weight: 700;
}
.lk-auth-page .lk-form label {
  position: relative;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.lk-form input,
.lk-inline-form input,
.lk-device-form input,
.lk-device-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(21, 32, 28, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #111c18;
  padding: 0 12px;
  font: 15px/1.2 var(--font);
}
.lk-auth-page .lk-form input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgb(33, 33, 33);
  color: #fff;
  padding: 0 16px;
  font: 400 16px/1.2 "OpenAI Sans", var(--font);
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lk-auth-page .lk-form input:hover {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgb(33, 33, 33);
}
.lk-auth-page .lk-form input:focus {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgb(33, 33, 33);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.lk-auth-page .lk-form label.is-invalid input {
  border-color: rgba(255, 120, 117, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 120, 117, 0.12);
  padding-right: 245px;
}
.lk-auth-page .lk-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}
.lk-field-message {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  width: fit-content;
  max-width: calc(100% - 20px);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 120, 117, 0.28);
  border-radius: 999px;
  background: rgba(255, 120, 117, 0.12);
  color: #ffccc7;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  pointer-events: none;
}
.lk-error,
.lk-success {
  padding: 12px 14px;
  border-radius: 10px;
  margin: 14px 0;
}
.lk-error {
  background: #fdecec;
  color: #a12c2c;
}
.lk-success {
  background: #e9f7ef;
  color: #0f6b4f;
}
.lk-auth-page .lk-error,
.lk-auth-page .lk-success {
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.lk-auth-page .lk-error {
  border: 1px solid rgba(255, 120, 117, 0.32);
  background: rgba(255, 120, 117, 0.12);
  color: #ffccc7;
}
.lk-auth-page .lk-success {
  border: 1px solid rgba(125, 226, 179, 0.32);
  background: rgba(125, 226, 179, 0.12);
  color: #b7f7d6;
}
.lk-auth-note { font-size: 14px; }
.lk-auth-page .lk-auth-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.5;
}
.lk-auth-note a,
.lk-link-line {
  color: #0f6b4f;
  font-weight: 700;
}
.lk-auth-page .lk-auth-note a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 4px;
}
.lk-auth-page .lk-primary {
  width: 100%;
  min-height: 52px;
  border-color: #fff;
  background: #fff;
  color: #000;
  font: 500 15px/1 "OpenAI Sans", var(--font);
}
.lk-auth-page .lk-form .lk-primary {
  margin-top: 23.5px;
}
.lk-auth-page .lk-primary:hover {
  background: rgba(255, 255, 255, 0.84);
}
.lk-wide-link {
  width: 100%;
  margin-top: 18px;
}
.lk-auth-page .lk-wide-link {
  margin-top: 0;
}
.lk-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.lk-auth-page .lk-recovery-grid code {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 14px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.lk-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.lk-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.lk-metrics article {
  display: grid;
  gap: 8px;
  padding: 18px;
}
.lk-metrics strong {
  color: #111c18;
  font-size: 28px;
}
.lk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.lk-card {
  padding: 22px;
}
.lk-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.lk-device-form {
  grid-template-columns: minmax(0, 1fr) 220px auto;
  margin: 18px 0;
}
.lk-device-list,
.lk-payment-list {
  display: grid;
  gap: 10px;
}
.lk-device,
.lk-payment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(21, 32, 28, 0.10);
  border-radius: 12px;
  background: #f8faf6;
}
.lk-device h3 {
  margin: 0 0 4px;
  color: #111c18;
}
.lk-device p { margin: 0; font-size: 14px; }
.lk-device-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.lk-device-links a {
  padding: 8px 10px;
  border-radius: 8px;
  background: #e9f3ee;
  color: #0f6b4f;
  font-size: 13px;
  font-weight: 700;
}
.lk-payment-row {
  align-items: center;
}
.lk-payment-row strong {
  color: #0f6b4f;
}

.lk-dashboard-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 118px;
  display: grid;
  gap: 16px;
}
.lk-dashboard-nav form {
  margin: 0;
}
.lk-header-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.lk-trial-floating-button {
  min-height: 40px;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 20;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  padding: 0 18px;
  font: 500 14px/1 "OpenAI Sans", var(--font);
  letter-spacing: 0;
  white-space: nowrap;
}
.lk-trial-floating-button:hover {
  background: rgba(255, 255, 255, 0.84);
}
.lk-section-tabs,
.lk-dashboard-panes,
.lk-dashboard-pane {
  min-width: 0;
  display: grid;
  gap: 16px;
}
.lk-dashboard-pane[hidden] {
  display: none !important;
}
.lk-section-tabs {
  grid-template-columns: repeat(5, minmax(0, max-content));
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
.lk-topup-promo {
  margin: 10px 0 20px;
  color: rgba(255, 255, 255, 0.64);
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
  text-align: center;
}
.lk-section-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
  letter-spacing: 0;
  text-align: center;
  padding: 0 14px;
}
.lk-section-tabs button:hover,
.lk-section-tabs button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lk-dashboard-page .lk-hero {
  margin: 0 0 12px;
  align-items: center;
}
.lk-dashboard-page .lk-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
}
.lk-dashboard-page .lk-hero p {
  margin: 12px 0 0;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 17px;
  line-height: 1.55;
}
.lk-dashboard-page .lk-secondary,
.lk-dashboard-page .lk-primary {
  border-radius: 999px;
  font: 500 14px/1 "OpenAI Sans", var(--font);
  letter-spacing: 0;
}
.lk-dashboard-page .lk-primary {
  border-color: #fff;
  background: #fff;
  color: #000;
}
.lk-dashboard-page .lk-primary:hover {
  background: rgba(255, 255, 255, 0.84);
}
.lk-dashboard-page .lk-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.lk-dashboard-page .lk-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lk-dashboard-page .lk-error,
.lk-dashboard-page .lk-success {
  margin: 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.lk-dashboard-page .lk-error {
  border: 1px solid rgba(255, 120, 117, 0.32);
  background: rgba(255, 120, 117, 0.12);
  color: #ffccc7;
}
.lk-dashboard-page .lk-success {
  border: 1px solid rgba(125, 226, 179, 0.32);
  background: rgba(125, 226, 179, 0.12);
  color: #b7f7d6;
}
.lk-dashboard-page .lk-metrics {
  margin: 0;
  gap: 12px;
}
.lk-dashboard-page .lk-metrics article,
.lk-dashboard-page .lk-card {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.lk-dashboard-page .lk-metrics article {
  min-height: 126px;
  align-content: space-between;
  padding: 20px;
}
.lk-dashboard-page .lk-metrics span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.3;
}
.lk-dashboard-page .lk-metrics strong {
  color: #fff;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
}
.lk-balance-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lk-balance-plus {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font: 500 24px/1 "OpenAI Sans", var(--font);
  padding: 0 0 2px;
}
.lk-balance-plus:hover {
  background: rgba(255, 255, 255, 0.84);
}
.lk-dashboard-page .lk-grid {
  margin: 0;
  gap: 12px;
}
.lk-dashboard-page .lk-card {
  padding: 22px;
}
.lk-dashboard-page .lk-card h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: 0;
}
.lk-dashboard-page .lk-card h2.lk-device-add-title {
  margin-top: 8px;
  padding-left: 36px;
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
}
.lk-dashboard-page .lk-card h2.lk-payment-title {
  padding-left: 0;
  text-align: center;
}
.lk-dashboard-page .lk-card h2.lk-nav-size-title {
  margin-top: 8px;
  padding-left: 16px;
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
}
.lk-dashboard-page .lk-card h2.lk-step-title {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 4px;
  align-items: baseline;
}
.lk-dashboard-page .lk-card h2.lk-step-title-next {
  margin-top: 26px;
}
.lk-dashboard-page .lk-card h2.lk-referral-title {
  padding-left: 36px;
}
.lk-dashboard-page .lk-card p {
  color: rgba(255, 255, 255, 0.62);
}
.lk-dashboard-page .lk-muted {
  color: rgba(255, 255, 255, 0.56);
}
.lk-dashboard-page code {
  color: #fff;
}
.lk-dashboard-page .lk-link-line {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}
.lk-dashboard-page .lk-inline-form,
.lk-dashboard-page .lk-device-form {
  gap: 10px;
}
.lk-dashboard-page .lk-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
}
.lk-dashboard-page .lk-device-form {
  width: calc(100% - 40px);
  margin: 12px 20px 20px;
}
.lk-dashboard-page .lk-inline-form input,
.lk-dashboard-page .lk-device-form input,
.lk-dashboard-page .lk-device-form select {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgb(33, 33, 33);
  color: #fff;
  padding: 0 16px;
  font: 400 15px/1.2 "OpenAI Sans", var(--font);
  outline: none;
}
.lk-dashboard-page .lk-device-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.lk-tariff-select {
  position: relative;
  min-width: 0;
}
.lk-tariff-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(33, 33, 33);
  color: #fff;
  cursor: pointer;
  padding: 0 17px;
  font: 400 15px/1.2 "OpenAI Sans", var(--font);
  letter-spacing: 0;
}
.lk-tariff-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.72);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}
.lk-tariff-select.is-open .lk-tariff-trigger::after {
  transform: translateY(2px) rotate(225deg);
}
.lk-tariff-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lk-tariff-trigger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.lk-tariff-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: #1a1a1a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}
.lk-tariff-menu[hidden] {
  display: none;
}
.lk-tariff-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  padding: 0 12px;
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
  text-align: left;
}
.lk-tariff-menu button:hover,
.lk-tariff-menu button.is-selected {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lk-dashboard-page .lk-inline-form input::placeholder,
.lk-dashboard-page .lk-device-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
.lk-dashboard-page .lk-inline-form input:focus,
.lk-dashboard-page .lk-device-form input:focus,
.lk-dashboard-page .lk-device-form select:focus {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.lk-dashboard-page .lk-section-head {
  align-items: flex-start;
}
.lk-dashboard-page .lk-section-head p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.5;
}
.lk-dashboard-page .lk-device-list,
.lk-dashboard-page .lk-payment-list {
  gap: 10px;
}
.lk-dashboard-page .lk-device-list > .lk-muted {
  padding-left: 16px;
}
.lk-dashboard-page .lk-instruction-text {
  display: grid;
  gap: 10px;
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.5;
}
.lk-dashboard-page .lk-instruction-text p {
  margin: 0;
}
.lk-dashboard-page .lk-referral-text {
  display: grid;
  gap: 10px;
  padding-left: 36px;
  font-size: 15px;
  line-height: 1.5;
}
.lk-dashboard-page .lk-referral-text p {
  margin: 0;
}
.lk-dashboard-page .lk-referral-line {
  padding-left: 36px;
}
.lk-dashboard-page .lk-instruction-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.lk-dashboard-page .lk-instruction-platform > span {
  color: #fff;
  font-weight: 500;
}
.lk-dashboard-page .lk-instruction-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lk-dashboard-page .lk-instruction-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 0 14px;
  text-decoration: none;
  font: 500 14px/1.2 "OpenAI Sans", var(--font);
}
.lk-dashboard-page .lk-instruction-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lk-dashboard-page .lk-inline-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 4px;
}
.lk-dashboard-page .lk-inline-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.86);
}
.lk-dashboard-page .lk-device,
.lk-dashboard-page .lk-payment-row {
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.20);
}
.lk-dashboard-page .lk-device h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}
.lk-dashboard-page .lk-device p {
  color: rgba(255, 255, 255, 0.54);
}
.lk-dashboard-page .lk-device-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.lk-dashboard-page .lk-device-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}
.lk-dashboard-page .lk-payment-row {
  color: rgba(255, 255, 255, 0.70);
}
.lk-dashboard-page .lk-payment-row strong {
  color: #fff;
  font-weight: 500;
}
.lk-dashboard-page .lk-payment-row small {
  color: rgba(255, 255, 255, 0.48);
}
.lk-settings-list {
  display: grid;
  gap: 10px;
}
.lk-settings-list div {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.20);
}
.lk-settings-list span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.3;
}
.lk-settings-list strong {
  min-height: 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.lk-password-button {
  justify-self: start;
}
.lk-password-modal {
  width: min(460px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
}
.lk-password-modal::backdrop {
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(3px);
}
.lk-modal-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}
.lk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lk-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
}
.lk-modal-close {
  width: 34px;
  height: 34px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}
.lk-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.lk-modal-close::before,
.lk-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.lk-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lk-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lk-password-form {
  grid-template-columns: 1fr;
  margin: 0;
}
.lk-password-form .lk-primary {
  width: 100%;
}
.lk-modal-field {
  position: relative;
  display: grid;
}
.lk-modal-field.is-invalid input {
  border-color: rgba(255, 120, 117, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 120, 117, 0.12);
  padding-right: 150px;
}

@media (max-width: 980px) {
  .public-hero {
    min-height: calc(100vh - 116px);
  }
  .public-hero-copy h1 {
    font-size: 58px;
  }
  .public-hero-copy p {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .public-header,
  .lk-topbar,
  .public-hero,
  .public-section,
  .lk-main,
  .lk-auth-main,
  .lk-dashboard-main {
    width: min(100% - 24px, 1120px);
  }
  .public-nav {
    gap: 4px;
    font-size: 13px;
  }
  .public-header-link {
    min-height: 36px;
    padding: 0 10px;
  }
  .lk-trial-floating-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }
  .public-hero {
    min-height: calc(100vh - 82px);
    padding: 44px 0 72px;
  }
  .public-hero-copy {
    padding: 0;
  }
  .public-hero-copy h1 {
    font-size: 44px;
    line-height: 1.02;
  }
  .public-hero-copy p {
    font-size: 16px;
  }
  .lk-auth-main {
    min-height: calc(100vh - 80px);
    padding: 34px 0 80px;
  }
  .lk-auth-page .lk-auth-card {
    max-width: 360px;
    gap: 20px;
  }
  .lk-auth-page .lk-auth-card h1 {
    font-size: 20px;
  }
  .lk-auth-page .lk-auth-card > p {
    font-size: 16px;
  }
  .lk-dashboard-main {
    padding: 0 0 72px;
    gap: 12px;
  }
  .lk-section-tabs {
    grid-template-columns: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    overflow: visible;
  }
  .lk-section-tabs button {
    min-width: max-content;
    padding: 0 12px;
  }
  .lk-topup-promo {
    margin: 8px 0 18px;
    font-size: 16px;
  }
  .lk-dashboard-page .lk-hero {
    align-items: flex-start;
    gap: 18px;
  }
  .lk-dashboard-page .lk-hero h1 {
    font-size: 34px;
  }
  .lk-dashboard-page .lk-hero p {
    font-size: 16px;
  }
  .lk-dashboard-page .lk-hero form,
  .lk-dashboard-page .lk-section-head form,
  .lk-dashboard-page .lk-telegram-button {
    width: 100%;
  }
  .lk-dashboard-page .lk-section-head {
    flex-direction: column;
  }
  .lk-dashboard-page .lk-card {
    padding: 18px;
  }
  .lk-dashboard-page .lk-instruction-platform {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .lk-settings-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lk-password-button {
    width: 100%;
  }
  .lk-dashboard-page .lk-inline-form,
  .lk-dashboard-page .lk-device-form {
    grid-template-columns: 1fr;
  }
  .lk-dashboard-page .lk-device-form {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }
  .lk-dashboard-page .lk-inline-form .lk-primary,
  .lk-dashboard-page .lk-device-form .lk-primary {
    width: 100%;
  }
  .public-actions {
    display: grid;
  }
  .public-button {
    width: 100%;
  }
  .public-scroll-cue {
    bottom: 18px;
  }
  .public-tariffs {
    gap: 22px;
  }
  .public-tariff-grid {
    grid-template-columns: 1fr;
  }
  .public-tariff-card {
    min-height: 240px;
    padding: 22px;
  }
  .public-tariff-card h3 {
    font-size: 22px;
  }
  .public-tariff-card strong {
    font-size: 22px;
  }
  .public-tariff-card p {
    font-size: 16px;
  }
  .public-tariff-note {
    font-size: 16px;
  }
  .public-feature-grid,
  .public-flow ol,
  .lk-metrics,
  .lk-grid {
    grid-template-columns: 1fr;
  }
  .public-line-list div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .public-flow li {
    min-height: 180px;
  }
  .public-section h2 {
    font-size: 34px;
  }
  .public-split,
  .lk-hero,
  .lk-device,
  .lk-payment-row {
    flex-direction: column;
  }
  .lk-device-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lk-dashboard-nav {
    gap: 4px;
  }
  .lk-dashboard-nav .public-header-link {
    min-height: 34px;
    padding: 0 9px;
    font-size: 12px;
  }
  .lk-dashboard-nav a[href*="neverlandvpnbot"] {
    display: none;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
html { color-scheme: dark; }
body { min-height: 100vh; }
body.modal-open,
body.mobile-nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
code {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111317;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}
.mobile-only { display: none; }
.desktop-only { display: block; }

.app-shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; transition: grid-template-columns 0.22s ease; }
.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 65;
  display: none;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 16px;
  background: rgba(20, 20, 20, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.mobile-topbar-title {
  min-width: 0;
  color: var(--ink-strong);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-nav-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  gap: 4px;
  place-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 8, 12, 0.52);
  backdrop-filter: blur(2px);
}
.mobile-nav-backdrop[hidden] {
  display: none;
}
.sidebar {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--nav), var(--nav-soft));
  color: var(--ink);
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  overflow: hidden;
  transition: padding 0.22s ease, border-color 0.22s ease;
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1668dc, #177ddc 45%, #3c9ae8);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(9, 88, 217, 0.34);
}
.brand-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.brand-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.brand-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(23, 125, 220, 0.18), 0 10px 24px rgba(9, 88, 217, 0.34);
}
.brand-copy {
  min-width: 0;
}
.brand-title { font-size: 20px; font-weight: 700; color: var(--ink-strong); }
.brand-subtitle { color: rgba(255, 255, 255, 0.45); font-size: 12px; }
.nav { display: grid; gap: 6px; }
.nav-link {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-strong);
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-strong);
}
.nav-link.active::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
}
.sidebar-footer { margin-top: 24px; display: grid; gap: 12px; }
.admin-chip {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.main-content {
  padding: 28px;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 20px;
  background:
    radial-gradient(circle at top right, rgba(23, 125, 220, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(114, 46, 209, 0.08), transparent 18%),
    var(--bg);
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 88px 1fr;
}
.app-shell.sidebar-collapsed .sidebar {
  padding: 24px 20px;
}
.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  margin-bottom: 0;
}
.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav,
.app-shell.sidebar-collapsed .sidebar-footer {
  display: none;
}
.app-shell.sidebar-collapsed .brand-toggle {
  margin: 0 auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.page-head h1,
.users-hero-copy h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page-head p,
.users-hero-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}
.head-actions { display: flex; gap: 10px; }
.users-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}
.nodes-hero {
  position: relative;
  padding-right: 56px;
}
.users-toolbar {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}
.nodes-toolbar {
  position: absolute;
  top: 0;
  right: 0;
}
.inline-details {
  position: relative;
  display: inline-flex;
}
.inline-details summary {
  display: block;
  list-style: none;
}
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details:not([open]) .details-popover { display: none; }
.details-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(640px, calc(100vw - 340px));
  z-index: 20;
}
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.modal-shell[hidden] {
  display: none;
}
.modal-shell.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.58);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-width: 100%;
  max-height: min(calc(100dvh - 48px), 860px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.modal-shell.is-visible .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-head {
  gap: 12px;
}
.modal-close {
  width: 34px;
  height: 34px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: #3a3a3a;
}
.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}
.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card,
.panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat-card { padding: 18px 20px; }
.stat-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-value {
  margin-top: 10px;
  color: var(--ink-strong);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.content-grid { display: grid; gap: 16px; }
.content-grid.two { grid-template-columns: minmax(340px, 420px) 1fr; }
.panel-card { padding: 18px; }
.panel-card.narrow { max-width: 640px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.panel-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 19px;
  font-weight: 600;
}
.section-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.section-tab {
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease;
}
.section-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-strong);
}
.section-tab.active {
  background: var(--accent-soft);
  color: var(--ink-strong);
  box-shadow: inset 0 0 0 1px rgba(23, 125, 220, 0.28);
}
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tariff-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.tariff-card-accent {
  border-color: rgba(23, 125, 220, 0.34);
  box-shadow: inset 0 0 0 1px rgba(23, 125, 220, 0.08);
}
.tariff-card-label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tariff-card-price {
  color: var(--ink-strong);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.tariff-card-note {
  color: var(--muted);
  font-size: 13px;
}

.stack-form,
.stack-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.form-grid { display: grid; gap: 12px; }
.form-grid > * { min-width: 0; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 0;
}
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141414;
  padding: 12px 13px;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
input[type="date"] {
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 140px;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.25); }
input:hover, select:hover, textarea:hover { border-color: #3a3a3a; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 125, 220, 0.16);
}
input[disabled],
textarea[disabled] {
  background: #121316;
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}
select option {
  background: #1f1f1f;
  color: var(--ink);
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
}
.checkbox-line input {
  width: auto;
  accent-color: var(--accent);
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}
.primary-button {
  background: linear-gradient(180deg, #177ddc, #1668dc);
  border-color: #1668dc;
  color: #fff;
  box-shadow: 0 10px 24px rgba(9, 88, 217, 0.24);
}
.secondary-button {
  background: #1d1f25;
  border-color: var(--line);
  color: rgba(255, 255, 255, 0.78);
}
.secondary-button:hover {
  background: #23262d;
  border-color: #3b3b3b;
  color: var(--ink-strong);
}
.danger-button {
  background: rgba(220, 68, 70, 0.12);
  border-color: rgba(220, 68, 70, 0.28);
  color: var(--danger);
}
.danger-button:hover {
  background: rgba(220, 68, 70, 0.18);
}
.ghost-button {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
}
.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.icon-button {
  width: 38px;
  height: 38px;
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(23, 125, 220, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(23, 125, 220, 0.18), rgba(23, 125, 220, 0.1));
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.icon-button:hover {
  background: linear-gradient(180deg, rgba(23, 125, 220, 0.28), rgba(23, 125, 220, 0.14));
  border-color: rgba(23, 125, 220, 0.52);
}
.icon-button::before,
.icon-button::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: #d6ebff;
  transform: translate(-50%, -50%);
}
.icon-button::before {
  width: 14px;
  height: 2px;
}
.icon-button::after {
  width: 2px;
  height: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll .data-table {
  min-width: 720px;
}
.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.data-table.compact th,
.data-table.compact td {
  padding: 9px 8px;
}
.table-link {
  color: #69b1ff;
  font-weight: 600;
}
.table-link:hover {
  color: #91caff;
}
.mobile-card-list {
  display: none;
  gap: 12px;
}
.mobile-card {
  padding: 16px;
}
.mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.mobile-card-title {
  color: var(--ink-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.mobile-card-subtitle {
  margin-top: 6px;
}
.mobile-card-grid {
  display: grid;
  gap: 10px;
}
.mobile-card-row {
  display: grid;
  gap: 4px;
}
.mobile-card-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-card-value {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.45;
}
.mobile-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.mobile-card-actions .secondary-button,
.mobile-card-actions .primary-button,
.mobile-card-actions .danger-button {
  flex: 1 1 auto;
  text-align: center;
}

.metric-stack {
  min-width: 150px;
  display: grid;
  gap: 6px;
}
.metric-value {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.82);
}
.resource-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.resource-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.resource-bar.cpu span {
  background: linear-gradient(90deg, #1677ff, #3c9ae8);
}
.resource-bar.memory span {
  background: linear-gradient(90deg, #13c2c2, #36cfc9);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}
.status-chip.healthy,
.status-chip.enabled,
.status-chip.synced {
  background: var(--ok-soft);
  border-color: rgba(73, 170, 25, 0.22);
  color: var(--ok);
}
.status-chip.degraded,
.status-chip.warning,
.status-chip.unknown {
  background: var(--warn-soft);
  border-color: rgba(217, 137, 22, 0.24);
  color: var(--warn);
}
.status-chip.down,
.status-chip.error,
.status-chip.disabled {
  background: var(--danger-soft);
  border-color: rgba(220, 68, 70, 0.24);
  color: var(--danger);
}

.link-card,
.subtle-block,
.alert {
  padding: 12px 13px;
  border-radius: 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}
.link-label {
  margin-bottom: 7px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}
.subtle-block {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.alert.error {
  background: rgba(220, 68, 70, 0.1);
  border-color: rgba(220, 68, 70, 0.24);
  color: var(--danger);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(23, 125, 220, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(114, 46, 209, 0.12), transparent 24%),
    var(--bg);
}
.login-card {
  width: min(440px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  padding: 28px;
}
.brand-login { margin-bottom: 22px; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
  .app-shell,
  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .mobile-topbar {
    display: flex;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(292px, calc(100vw - 36px));
    min-height: 100vh;
    z-index: 70;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .app-shell.mobile-nav-open .sidebar {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .app-shell.sidebar-collapsed .sidebar {
    padding: 24px 18px;
  }
  .app-shell.sidebar-collapsed .brand {
    justify-content: flex-start;
    margin-bottom: 24px;
  }
  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .nav,
  .app-shell.sidebar-collapsed .sidebar-footer {
    display: grid;
  }
  .app-shell.sidebar-collapsed .brand-toggle {
    margin: 0;
  }
  .main-content {
    padding: 84px 18px 18px;
  }
  .page-head {
    flex-direction: column;
  }
  .section-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-tab {
    text-align: center;
  }
  .head-actions {
    width: 100%;
    flex-direction: column;
  }
  .head-actions form,
  .head-actions a,
  .head-actions button {
    width: 100%;
  }
  .form-grid.two {
    grid-template-columns: 1fr;
  }
  .users-hero {
    grid-template-columns: 1fr;
  }
  .users-toolbar {
    justify-self: stretch;
  }
  .nodes-hero {
    padding-right: 0;
  }
  .nodes-toolbar {
    position: static;
  }
  .mobile-card-list {
    display: grid;
  }
}

@media (max-width: 720px) {
  .main-content { padding: 16px; }
  .mobile-topbar {
    padding: 0 14px;
  }
  .main-content {
    padding: 80px 16px 16px;
  }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariff-grid { grid-template-columns: 1fr; }
  .users-toolbar {
    justify-self: stretch;
    flex-wrap: wrap;
  }
  .stat-card,
  .panel-card {
    border-radius: 14px;
  }
  .modal-shell {
    place-items: start center;
    padding: 16px;
  }
  .modal-card {
    width: min(640px, 100%);
    max-height: none;
    overflow: visible;
    margin: 0 auto;
  }
  .table-scroll .data-table {
    min-width: 640px;
  }
  .login-card {
    width: min(100vw - 24px, 440px);
    padding: 24px 20px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 78px 12px 12px;
    gap: 14px;
  }
  .mobile-topbar {
    height: 60px;
    padding: 0 12px;
  }
  .mobile-topbar-title {
    font-size: 16px;
  }
  .sidebar {
    width: min(286px, calc(100vw - 18px));
    padding: 20px 16px;
  }
  .page-head h1,
  .users-hero-copy h1 {
    font-size: 27px;
  }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 28px; }
  .panel-card { padding: 15px; }
  .mobile-card {
    padding: 14px;
  }
  .mobile-card-actions {
    flex-direction: column;
  }
  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }
  .table-scroll .data-table {
    min-width: 580px;
  }
  .login-card {
    width: min(100vw - 18px, 440px);
    padding: 22px 18px;
  }
}
