:root {
  --bg: #0b0d12;
  --card: #151a22;
  --card-soft: #1c2230;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: #2b3243;
  --primary: #4f8cff;
  --primary-dim: rgba(79, 140, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html.lang-ru .lng-en {
  display: none !important;
}

html.lang-en .lng-ru {
  display: none !important;
}

.lng {
  display: inline;
}

.lang-bar--footer {
  display: flex;
  justify-content: center;
  padding: 20px 0 8px;
  margin-top: 8px;
}

.lang-bar--footer .lang-switch {
  padding: 4px;
  background: rgba(15, 19, 27, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.lang-switch {
  display: flex;
  gap: 4px;
}

.lang-btn {
  min-width: 40px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #242c3b;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
  border-color: #475569;
}

.lang-btn.is-active {
  background: linear-gradient(180deg, #4f8cff, #346fd7);
  border-color: #497edf;
  color: #fff;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #1f2b44 0%, #0b0d12 45%);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

/* —— Липкая шапка —— */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11, 13, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 50, 67, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-sticky-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.head--sticky {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.support-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(79, 140, 255, 0.12);
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.support-btn:hover {
  background: rgba(79, 140, 255, 0.22);
  border-color: #497edf;
  color: #7eb0ff;
}

.support-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.support-btn__icon {
  display: block;
}

/* —— Шапка (блок с лого внутри липкой полосы) —— */
.head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.head-main {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px var(--primary-dim);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.head-text {
  min-width: 0;
}

.head .title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.head .sub {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.head .sub strong {
  color: var(--text);
  font-weight: 600;
}

.mono-inline {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.88em;
  color: var(--muted);
}

/* —— Карточки VLESS / WG —— */
.card {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.hint {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

.url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.url-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 11px 12px;
  font-size: 0.82rem;
  font-family: ui-monospace, monospace;
  color: var(--text);
  background: #0f131b;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quickstart {
  background: linear-gradient(180deg, #111722, #0f141e);
}

.quickstart-title {
  margin-bottom: 10px;
}

.quickstart-list {
  margin: 0 0 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.quickstart-list li {
  color: #dbe6ff;
  line-height: 1.5;
  font-size: 0.92rem;
}

.quickstart-note {
  margin-bottom: 0;
}

.toast {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #4ade80;
  font-weight: 500;
}

.wg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.wg-qr-hint {
  margin-top: 12px !important;
  margin-bottom: 8px !important;
}

.wg-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.wg-qr-mount {
  min-height: 220px;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wg-qr-mount canvas,
.wg-qr-mount img,
.vless-qr-mount canvas,
.vless-qr-mount img {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.vless-qr-hint {
  margin-top: 14px !important;
  margin-bottom: 8px !important;
}

.vless-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.vless-qr-mount {
  min-height: 220px;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wg-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.wg-toast {
  margin-top: 8px !important;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn-secondary {
  background: rgba(240, 246, 252, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(240, 246, 252, 0.12);
}

.btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a.btn-primary {
  text-decoration: none;
}

/* —— Переключатель протокола —— */
.proto-switch-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 18px;
  background: #111722;
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}

.proto-switch-caption {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  flex: 0 1 auto;
}

.proto-switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.proto-switch-control {
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 12px;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 260px;
}

.proto-slider {
  position: relative;
  width: 220px;
  max-width: 100%;
  min-width: 220px;
  height: 36px;
  background: rgba(240, 246, 252, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.proto-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff, #346fd7);
  box-shadow: 0 2px 10px var(--primary-dim);
  transition: transform 0.18s ease;
  z-index: 0;
}

.proto-slider-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted);
  width: 50%;
  text-align: center;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  transition: color 0.15s ease;
}

.proto-slider-label--vless {
  left: 0;
}

.proto-slider-label--wg {
  right: 0;
}

.proto-switch-control input:checked + .proto-slider .proto-switch-knob {
  transform: translateX(100%);
}

.proto-switch-control input:checked + .proto-slider .proto-slider-label--vless {
  color: var(--muted);
}

.proto-switch-control input:checked + .proto-slider .proto-slider-label--wg {
  color: #fff;
}

.proto-switch-control input:not(:checked) + .proto-slider .proto-slider-label--vless {
  color: #fff;
}

.proto-switch-control input:not(:checked) + .proto-slider .proto-slider-label--wg {
  color: var(--muted);
}

/* —— Области протоколов —— */
.proto-scope[data-proto="vless"] .proto-wireguard {
  display: none;
}

.proto-scope[data-proto="wireguard"] .proto-vless {
  display: none;
}

.hero,
.install {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
}

.expired {
  margin: 8px 0 14px;
  color: #f59e0b;
  font-size: 13px;
}

.panel--lapsed .expired {
  color: #f87171;
}

.hero--lapsed {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(160deg, rgba(127, 29, 29, 0.35) 0%, var(--card) 55%);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.lapsed-notice {
  border-color: rgba(248, 113, 113, 0.35);
  background: linear-gradient(165deg, rgba(88, 28, 28, 0.4) 0%, var(--card) 50%);
}

.lapsed-notice__body {
  margin: 0 0 14px;
  line-height: 1.55;
}

.lapsed-notice__actions {
  margin-bottom: 10px;
}

.lapsed-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.grid div {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.grid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.grid b {
  font-size: 14px;
  font-weight: 600;
}

/* —— Installation —— */
.install h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.install-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .install-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .install-sidebar {
    position: relative;
    top: auto;
    order: -1;
    margin-bottom: 12px;
  }
}

@media (max-width: 767px) {
  .install-sidebar {
    order: -1;
  }
}

.install-main {
  min-width: 0;
}

.instr-block {
  background: #111722;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.instr-block:last-of-type {
  margin-bottom: 0;
}

.instr-block h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.instr-block p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  word-break: break-word;
}

.sub-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.install-sidebar {
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  top: auto;
}

.field {
  margin-bottom: 12px;
}

.field:last-of-type {
  margin-bottom: 10px;
}

.field label,
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

select {
  width: 100%;
  padding: 15px 25px 15px 15px;
  background: #0f131b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

select:focus,
.app-icon-btn:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.app-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.app-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 10px 8px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #1a2230;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-width: 86px;
}

.app-icon-btn:hover {
  border-color: #475569;
  background: #1e293b;
}

.app-icon-btn.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary-dim);
  background: rgba(79, 140, 255, 0.12);
}

.app-svg {
  width: 40px;
  height: 40px;
  display: block;
}

.app-icon-name {
  font-size: 12px;
  font-weight: 700;
  color: #e5e7eb;
  text-align: center;
  line-height: 1.15;
  max-width: 86px;
  word-break: break-word;
}

.app-icon-btn.is-active .app-icon-name {
  color: #ffffff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  padding: 10px 14px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #273246;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(180deg, #4f8cff, #346fd7);
  border-color: #497edf;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-primary.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.note {
  margin: 0;
  color: #4ade80;
  font-size: 13px;
}

.hidden-input {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

/* —— Liquid Glass Refresh: controls and detail blocks —— */
.instr-block {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(13, 21, 36, 0.72);
  border: 1px solid rgba(167, 197, 255, 0.12);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 22px rgba(4, 11, 22, 0.16);
}

.instr-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b9cce8;
}

.instr-block h4::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fb8ff, #6ce4ff);
  box-shadow: 0 0 12px rgba(108, 228, 255, 0.35);
}

.install-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(15, 24, 40, 0.78);
  border: 1px solid rgba(173, 201, 255, 0.14);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(4, 11, 22, 0.18);
}

.app-icon-btn {
  border-radius: 16px;
  border: 1px solid rgba(168, 196, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(17, 28, 46, 0.76);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 20px rgba(4, 11, 22, 0.14);
}

.app-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 216, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(24, 38, 62, 0.8);
}

.app-icon-btn.is-active {
  border-color: rgba(146, 196, 255, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(94, 152, 255, 0.16),
    0 14px 26px rgba(32, 79, 168, 0.22);
  background:
    linear-gradient(180deg, rgba(98, 156, 255, 0.22), rgba(52, 96, 191, 0.14)),
    rgba(20, 34, 58, 0.84);
}

.btn {
  border: 1px solid rgba(180, 208, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    rgba(27, 43, 69, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(5, 12, 24, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 220, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 28px rgba(8, 19, 38, 0.24);
}

.btn-primary {
  background:
    linear-gradient(180deg, rgba(144, 202, 255, 0.28), rgba(80, 122, 235, 0.2)),
    linear-gradient(180deg, #5e9bff, #3f72dc);
  border-color: rgba(164, 206, 255, 0.34);
}

.qr-wrap {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(10, 18, 31, 0.74);
  border: 1px solid rgba(170, 198, 255, 0.14);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(4, 11, 22, 0.16);
}

.lang-bar--footer .lang-switch {
  background: rgba(10, 16, 28, 0.7);
  border: 1px solid rgba(177, 204, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(4, 11, 22, 0.14);
}

/* —— Liquid Glass Refresh: content accents —— */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  letter-spacing: 0.09em;
  color: #b3d4ff;
  margin-bottom: 10px;
  border: 1px solid rgba(151, 189, 255, 0.16);
  border-radius: 999px;
  background: rgba(118, 164, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

#vless-title::before,
#wg-title::before,
#quickTitle::before,
#install-title::before,
#lapsedTitle::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#vless-title::before {
  content: "◈";
  color: #9fd7ff;
}

#wg-title::before {
  content: "⎔";
  color: #c6b4ff;
}

#quickTitle::before {
  content: "⚡";
  color: #ffd46a;
}

#install-title::before {
  content: "⬡";
  color: #8be4ff;
}

#lapsedTitle::before {
  content: "!";
  color: #ff9b9b;
}

.expired {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffd978;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 196, 66, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.expired::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.panel--lapsed .expired {
  color: #fca5a5;
}

.hero--lapsed {
  border-color: rgba(248, 113, 113, 0.45);
  background:
    linear-gradient(160deg, rgba(127, 29, 29, 0.3) 0%, rgba(20, 30, 49, 0.82) 55%),
    var(--card);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(248, 113, 113, 0.08),
    var(--shadow-lg);
}

.lapsed-notice {
  border-color: rgba(248, 113, 113, 0.35);
  background:
    linear-gradient(165deg, rgba(88, 28, 28, 0.34) 0%, rgba(20, 30, 49, 0.82) 50%);
}

.grid div {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(18, 29, 48, 0.78);
  border: 1px solid rgba(173, 202, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 26px rgba(4, 11, 22, 0.18);
}

.grid div::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 185, 255, 0.14), transparent 70%);
}

.grid b {
  color: #f5f9ff;
}

.url-input,
select {
  background: rgba(7, 15, 28, 0.78);
  border: 1px solid rgba(171, 201, 255, 0.16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.proto-switch-bar {
  justify-content: flex-start;
  padding: 12px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(13, 22, 38, 0.64);
  border: 1px solid rgba(164, 196, 255, 0.16);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(6, 14, 28, 0.22);
}

.quickstart {
  border-color: rgba(255, 214, 112, 0.18);
}

.quickstart::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -28px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 87, 0.14), transparent 72%);
}

.quickstart-list li::marker {
  color: #9ed5ff;
}

#vlessBlock {
  border-color: rgba(102, 194, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(16, 62, 118, 0.18);
}

#vlessBlock::after {
  content: "";
  position: absolute;
  left: -12px;
  bottom: -28px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 217, 255, 0.18), transparent 72%);
}

#wireguardBlock {
  border-color: rgba(180, 154, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(58, 36, 118, 0.16);
}

#wireguardBlock::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -16px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 120, 255, 0.18), transparent 72%);
}

/* —— Liquid Glass Refresh: background and shells —— */
:root {
  --bg: #07111f;
  --bg-deep: #020814;
  --card: rgba(18, 28, 48, 0.7);
  --card-soft: rgba(24, 36, 60, 0.68);
  --text: #f7fbff;
  --muted: #9eafc6;
  --line: rgba(166, 196, 255, 0.16);
  --primary: #72a8ff;
  --primary-dim: rgba(100, 167, 255, 0.24);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 16px 34px rgba(2, 8, 20, 0.34);
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(67, 121, 255, 0.26), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(42, 208, 255, 0.18), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(148, 110, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #12213b 0%, var(--bg) 32%, var(--bg-deep) 100%);
  min-height: 100vh;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

body::before {
  top: 84px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 165, 255, 0.18) 0%, transparent 72%);
}

body::after {
  right: -60px;
  bottom: 120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.16) 0%, transparent 74%);
}

.container {
  position: relative;
  z-index: 1;
}

.header-sticky {
  background: rgba(7, 14, 26, 0.55);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border-bottom: 1px solid rgba(175, 205, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.logo {
  border-radius: 16px;
  border: 1px solid rgba(190, 219, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(49, 93, 173, 0.28);
}

.head .title {
  text-shadow: 0 2px 20px rgba(78, 151, 255, 0.18);
}

.support-btn {
  border-radius: 14px;
  border-color: rgba(180, 208, 255, 0.22);
  background: linear-gradient(180deg, rgba(116, 171, 255, 0.2), rgba(67, 108, 188, 0.16));
  color: #beddff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(18, 45, 95, 0.28);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.support-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(128, 182, 255, 0.28), rgba(75, 126, 219, 0.2));
  border-color: rgba(170, 210, 255, 0.42);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 30px rgba(33, 71, 140, 0.32);
}

.hero,
.install,
.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--card);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-md);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.hero,
.install {
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    var(--shadow-lg);
}

.card {
  border-radius: 20px;
}

.hero::before,
.install::before,
.card::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before,
.install::before {
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(120, 170, 255, 0.16), transparent 28%),
    radial-gradient(circle at left center, rgba(92, 210, 255, 0.08), transparent 24%);
}

.card::before {
  top: -35%;
  right: -18%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  opacity: 0.55;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .app-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .app-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .header-sticky-inner {
    align-items: flex-start;
  }
}
