:root {
  --vp-flow-gradient: linear-gradient(
    90deg,
    #82f64b 0%,
    #37dfb1 32%,
    #32baf0 66%,
    #6c86ee 100%
  );
  --vp-flow-gradient-vertical: linear-gradient(
    180deg,
    #82f64b 0%,
    #37dfb1 34%,
    #32baf0 66%,
    #6c86ee 100%
  );
  --bg: #071018;
  --card: #0d1824;
  --card-border: rgba(88, 255, 190, .18);
  --text: #f4f7fb;
  --muted: #aab7c7;
  --soft: #202b3a;
  --soft-border: rgba(255,255,255,.10);
  --green: #9cff42;
  --mint: #27e6b4;
  --cyan: #32b8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 25% 15%, rgba(156,255,66,.10), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(39,230,180,.12), transparent 30%),
    linear-gradient(145deg, #050a10, var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: rgba(13, 24, 36, .92);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: 22px 26px 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.logo {
  width: 54px;
  height: 54px;
  flex: 0 0 44px;
  margin: -5px 0;
  background-image: url("/static/vertpath-mark.png");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 10px 18px rgba(39,230,180,.18));
}

h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.035em;
  background: linear-gradient(90deg, var(--green), var(--mint));
  -webkit-background-clip: text;
  color: transparent;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  text-align: center;
  line-height: 52px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin-top: 16px;
}

.primary,
.route,
.copy-route {
  background-image: var(--vp-flow-gradient-vertical);
  background-size: 100% 320%;
  background-repeat: no-repeat;
  box-shadow: none;
  border: 0;
}

.primary {
  color: #041014;
  background-position: 50% 0%;
}

.secondary {
  color: var(--text);
  background: var(--soft);
  border: 1px solid var(--soft-border);
}

.route {
  color: #041014;
  background-position: 50% 50%;
}

.copy-route {
  color: #041014;
  background-position: 50% 100%;
  border: 0;
}

.primary:hover,
.route:hover,
.copy-route:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.02);
}

.hint {
  margin-top: 22px;
  margin-bottom: 10px;
}

.url {
  padding: 12px;
  border-radius: 16px;
  background: rgba(3,8,13,.68);
  border: 1px solid rgba(255,255,255,.08);
  color: #d5e0ec;
  font-size: 13px;
  word-break: break-all;
}

.support {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}


.telegram-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 20px;
  border-radius: 17px;
  color: var(--text);
  background: rgba(34, 158, 217, .14);
  border: 1px solid rgba(50,184,255,.28);
  text-decoration: none;
  font-weight: 700;
}

.telegram-support svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: block;
}


.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.brand-row .brand {
  margin-bottom: 0;
  min-width: 0;
}

.brand-row h1 {
  line-height: 1.06;
  letter-spacing: -.012em;
  font-weight: 750;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.telegram-mini {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #041014;
  background: linear-gradient(135deg, var(--mint), var(--cyan) 58%, #7b8cff);
  border: 1px solid rgba(123,140,255,.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 14px 30px rgba(50,184,255,.18);
  text-decoration: none;
  transform: translateY(1px);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.telegram-mini:hover {
  transform: translateY(0);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 16px 34px rgba(50,184,255,.22);
}

.telegram-mini svg {
  width: 27px;
  height: 27px;
  display: block;
}


.divider {
  height: 1px;
  margin: 14px 0;
  background: rgba(255,255,255,.08);
}

.section-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.other-app-title {
  margin-top: 0;
}

.access-note-card {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(3,8,13,.30);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.access-note-card > .section-title {
  margin: 0;
}

.access-note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.38;
}

.access-note-card .url {
  margin-top: 0;
}


.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 14px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(3,8,13,.48);
  border: 1px solid rgba(255,255,255,.08);
}

.tab-button {
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tab-button.active {
  color: #041014;
  background-image: var(--vp-flow-gradient);
  background-size: 320% 100%;
  background-position: 0% 50%;
  box-shadow: none;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.install-list {
  display: grid;
  gap: 12px;
}

.install-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(3,8,13,.42);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.install-item:hover {
  transform: translateY(-1px);
  border-color: rgba(50,184,255,.26);
  background: rgba(6,15,24,.55);
}

.install-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #dffdf6;
  background:
    radial-gradient(circle at 30% 25%, rgba(127,255,77,.24), transparent 42%),
    linear-gradient(135deg, rgba(40,211,180,.22), rgba(50,184,255,.16));
  border: 1px solid rgba(123,255,224,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.install-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
}

.install-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.install-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.install-subtitle {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.install-arrow {
  color: rgba(223,253,246,.72);
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

.help-list {
  display: grid;
  gap: 12px;
}

.help-item {
  border-radius: 18px;
  background: rgba(3,8,13,.42);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

.help-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.help-item summary::-webkit-details-marker {
  display: none;
}

.help-item summary::after {
  content: "＋";
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform .18s ease;
}

.help-item[open] summary::after {
  content: "−";
}

.help-content {
  padding: 0 18px 18px;
  color: var(--muted);
}

.help-content p {
  margin-top: 0;
}

.help-content ul,
.help-content ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.48;
  font-size: 15px;
  font-weight: 500;
}

.help-content li {
  margin: 0 0 7px;
  padding-left: 2px;
}

.help-content li:last-child {
  margin-bottom: 0;
}

.help-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 15px;
  font-weight: 500;
}

.help-content .muted-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.42;
}

.smart-route-note {
  margin-left: 20px;
  font-size: 13px;
  line-height: 1.38;
}


.info-card {
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(3,8,13,.42);
  border: 1px solid rgba(255,255,255,.08);
}

.info-card > .section-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.access-note-card > .section-title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,.06);
}

.info-row:first-of-type {
  border-top: 0;
}

.org-subscription-row + .info-row {
  border-top: 0;
  padding-top: 0;
}

.info-row span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.info-row strong {
  color: var(--muted);
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.info-row:last-of-type {
  padding-bottom: 0;
}

.muted-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.device-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.device-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,.06);
}

.device-item strong {
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}

.org-subscription-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.org-logo-slot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px dashed rgba(255,255,255,.18);
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.org-logo-slot.has-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  position: relative;
}

.org-logo-slot.has-logo::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(245,250,255,.52), rgba(175,210,245,.24) 42%, rgba(120,170,220,0) 76%);
  filter: blur(2.5px);
  pointer-events: none;
}

.org-logo-slot.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter:
    brightness(1.34)
    contrast(1.14)
    saturate(1.05)
    drop-shadow(0 4px 10px rgba(0,0,0,.30));
}

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

.org-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.org-subscription-row .muted-note {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.copy-status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.copy-status.visible {
  opacity: 1;
  transform: translateY(0);
}

button.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}


@media (max-width: 719px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 18px 20px 18px;
  }

  .brand-row {
    margin-bottom: 18px;
  }

  .tabs {
    margin: 14px 0 12px;
  }

  p {
    margin-bottom: 14px;
  }
}

@media (min-width: 720px) {
  body {
    padding: 32px;
  }

  .card {
    max-width: 640px;
    padding: 24px 30px 24px;
  }

  .btn {
    min-height: 50px;
    line-height: 50px;
  }

  .tabs {
    margin-top: 16px;
  }

  p {
    max-width: 560px;
  }

  .btn,
  .tab-button,
  .install-title,
  .section-title {
    font-weight: 600;
  }

  h1 {
    font-weight: 750;
  }

  .device-item strong {
    font-weight: 500;
  }
}


.access-note-card .copy-status {
  margin-top: 0;
}
