:root {
  --hover-white-border: rgba(255, 255, 255, 0.42);
  --hover-white-bg: rgba(255, 255, 255, 0.1);
  --hover-white-glow: 0 0 28px rgba(255, 255, 255, 0.16);
  --hover-white-inset: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --hover-ease: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

body {
  background: #000;
  color: #f5f5f5;
  overflow-x: hidden;
  position: relative;
}

:root {
  --sidebar-width: 250px;
}

.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
  contain: strict;
  isolation: isolate;
}

body.sky-watch-mode .cosmos-bg {
  z-index: 5000;
}

.cosmos-stars {
  position: absolute;
  inset: 0;
}

.cosmos-canvas {
  display: block;
  width: 100%;
  height: 100%;
  contain: strict;
}

.plate-earth {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
  z-index: 0;
}

.modal-card .plate-earth__stick {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-message-bubble .plate-earth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-message-bubble .plate-earth__stick {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.plate-earth__canvas {
  flex-shrink: 0;
  display: block;
  contain: strict;
  backface-visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  padding: 18px 22px 24px;
  background: rgba(7, 7, 7, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(27, 27, 27, 0.9);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  z-index: 100;
  overflow: visible;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s ease;
}

.sidebar-head,
.sidebar-head__tools {
  overflow: visible;
}

.sidebar-head__tools .sidebar-toggle,
.lang-picker--sidebar .lang-picker__trigger {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  box-sizing: border-box;
}

.sidebar-head {
  margin-bottom: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-head__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.mobile-nav-actions {
  display: none;
}

.mobile-nav-profile {
  display: none;
}

.sidebar-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fafafa;
  white-space: nowrap;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 12px;
}

.sidebar-plate {
  box-sizing: border-box;
  width: 100%;
  min-height: 66px;
  padding: 12px;
  border: 1px solid #1c1c1c;
  border-radius: 16px;
  background: #0d0d0d;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.sidebar-plate--action {
  display: none;
}

.sidebar-plate--profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-left: 12px;
  padding-right: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sidebar-plate--profile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--hover-white-glow);
}

.sidebar-plate__text {
  min-width: 0;
  flex: 1;
}

.sidebar-plate__text p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.sidebar-plate__text span {
  display: block;
  margin-top: 3px;
  color: #8f8f8f;
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex-shrink: 0;
}

.sidebar-toggle,
.sidebar-reopen {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease);
}

.sidebar-toggle span,
.sidebar-reopen span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #f2f2f2;
}

.sidebar-toggle:hover,
.sidebar-reopen:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--hover-white-glow);
}

.sidebar-reopen {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    transform 0.32s ease,
    background var(--hover-ease),
    border-color var(--hover-ease);
}

body.sidebar-collapsed .sidebar {
  transform: translateX(calc(-100% - 12px));
  opacity: 0;
  pointer-events: none;
}

body.sidebar-collapsed .main {
  margin-left: 0;
}

body.sidebar-collapsed .sidebar-reopen {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.sky-watch-btn {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.26);
  font-size: 13px;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  transition: color var(--hover-ease);
}

.sky-watch-btn:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.48);
}

body.sky-watch-mode .sidebar,
body.sky-watch-mode .main,
body.sky-watch-mode .modal,
body.sky-watch-mode .sidebar-reopen {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sky-watch-mode {
  overflow: hidden;
}

.menu button,
.menu-link {
  width: 100%;
  background: transparent;
  color: #d6d6d6;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 450;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
  transition:
    background var(--hover-ease),
    color var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.menu button:hover,
.menu-link:hover {
  background: var(--hover-white-bg);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--hover-white-glow), var(--hover-white-inset);
  transform: translateX(3px);
}

.menu button.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--hover-white-inset);
}

.site-strip {
  position: fixed;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-height: 36px;
  padding: 8px 22px;
  background: rgba(8, 8, 8, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  pointer-events: none;
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body.sidebar-collapsed .site-strip {
  left: 0;
}

.site-strip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.site-strip__contacts {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d8d8d8;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--hover-ease);
}

.site-strip__contacts:hover {
  color: #fff;
}

.site-strip a {
  color: #a8a8a8;
  font-size: 11px;
  text-decoration: none;
  line-height: 1.3;
}

.site-strip a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-strip__date {
  margin-left: auto;
  color: #888;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.profile-row__main {
  flex: 1;
  min-width: 0;
}

.profile:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #191919;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  overflow: hidden;
}

.avatar.has-image {
  background: #111;
}

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

.avatar-picker {
  position: relative;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

button.avatar-picker,
button.cabinet-hero__avatar.avatar-picker {
  border: 0;
  background: transparent;
}

.avatar-picker__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.avatar-picker__plus {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  border: 2px solid #0a0a0a;
  pointer-events: none;
  z-index: 2;
  display: none;
}

.avatar-picker--editable .avatar-picker__plus {
  display: block;
}

.profile p {
  font-size: 14px;
  font-weight: 650;
}

.profile span {
  display: block;
  margin-top: 3px;
  color: #8f8f8f;
  font-size: 12px;
  word-break: break-word;
}

.auth-card,
.cabinet-card,
.tool-card,
.inetometer-card {
  width: min(520px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.inetometer-card {
  width: min(680px, 100%);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(8, 8, 8, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.inetometer-card .plate-earth {
  width: 62%;
  opacity: 1;
}

.inetometer-card .tool-head,
.inetometer-card .inet-quality,
.inetometer-card .user-data-panel {
  position: relative;
  z-index: 1;
}

.cabinet-note {
  margin-bottom: 18px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.55;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tool-head h2 {
  margin: 0;
}

.inet-gauge {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  margin-bottom: 22px;
  padding: 0 0 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.inet-gauge.is-testing .inet-gauge__tick {
  transition: none;
}

.inet-gauge:hover:not(:disabled) {
  transform: translateY(-1px);
}

.inet-gauge:disabled {
  cursor: wait;
}

.inet-gauge__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

#speedGaugePath {
  fill: none;
  stroke: none;
  pointer-events: none;
}

.inet-gauge__ticks {
  pointer-events: none;
}

.inet-gauge__tick {
  stroke: rgba(255, 132, 58, 0.24);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition:
    stroke 0.18s ease,
    stroke-width 0.18s ease,
    opacity 0.18s ease,
    filter 0.18s ease;
}

.inet-gauge__tick--major {
  stroke: rgba(255, 132, 58, 0.34);
  stroke-width: 3.8;
}

.inet-gauge__tick.is-lit {
  stroke: #ff7a2f;
  stroke-width: 3.8;
  filter: drop-shadow(0 0 4px rgba(255, 120, 40, 0.55));
}

.inet-gauge__tick--major.is-lit {
  stroke: #ff9a4d;
  stroke-width: 4.4;
  filter: drop-shadow(0 0 6px rgba(255, 130, 50, 0.65));
}

.inet-gauge__metrics {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  display: grid;
  width: min(88%, 500px);
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  transform: translate(-50%, -50%);
}

.inet-gauge__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.inet-gauge__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: #b8b8b8;
  font-size: 13px;
}

.inet-gauge__value {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(26px, 4.2vw, 34px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.28s ease;
}

.inet-gauge[data-mode="download"] .inet-gauge__metric:first-child .inet-gauge__value,
.inet-gauge[data-mode="upload"] .inet-gauge__metric--up .inet-gauge__value {
  color: #ff7340;
}

.inet-gauge[data-mode="ping"] .inet-gauge__metric--ping .inet-gauge__value {
  color: #fff;
}

.inet-gauge__metric--ping .inet-gauge__value {
  color: rgba(255, 255, 255, 0.72);
}

.inet-gauge__unit {
  margin-top: 6px;
  color: #ddd;
  font-size: 13px;
}

.inet-gauge__phase {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  color: #ff9a55;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transform: translateX(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.inet-quality {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.inetometer-card .inet-quality {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
}

.inetometer-card .user-data-row {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.06);
}

.inet-quality__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.inet-quality__score strong {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.inet-quality__dots {
  color: #57d657;
  letter-spacing: 2px;
}

.inet-quality__score span:last-child {
  color: #ddd;
  font-size: 14px;
}

.inet-quality__video {
  color: #9a9a9a;
  font-size: 13px;
}

.user-data-panel {
  margin-top: 8px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px solid #242424;
}

.user-data-panel h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 650;
}

.user-data-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.user-data-row {
  display: grid;
  grid-template-columns: minmax(120px, 42%) 1fr;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #232323;
  border-radius: 10px;
  background: #101010;
}

.user-data-row dt {
  color: #888;
  font-size: 12px;
}

.user-data-row dd {
  margin: 0;
  color: #ececec;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.auth-lead,
.cabinet-greeting {
  margin-bottom: 18px;
  color: #b8b8b8;
  font-size: 14px;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .form-field input,
.auth-form .form-field textarea,
.cabinet-input {
  user-select: text;
  -webkit-user-select: text;
}

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

.form-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-auto-pass {
  padding: 0;
  border: none;
  background: none;
  color: #bdbdbd;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--hover-ease);
}

.auth-auto-pass:hover {
  color: #fff;
}

.auth-form .form-field input:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: #161616;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 18px rgba(255, 255, 255, 0.06);
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap input {
  padding-right: 46px;
}

.auth-masked-input:not(.is-visible) {
  -webkit-text-security: disc;
}

.form-input-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8f8f8f;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color var(--hover-ease),
    background var(--hover-ease);
}

.form-input-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.form-input-toggle.is-visible {
  color: #fff;
}

.form-input-toggle .eye-icon {
  display: block;
}

.form-input-toggle.is-visible .eye-icon--open {
  display: none;
}

.form-input-toggle.is-visible .eye-icon--off {
  display: block !important;
}

.form-input-toggle:not(.is-visible) .eye-icon--off {
  display: none !important;
}

.auth-switch {
  justify-self: center;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: none;
  color: #8f8f8f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--hover-ease);
}

.auth-switch:hover {
  color: #fff;
}

.auth-error {
  margin: 0;
  color: #ff8a8a;
  font-size: 13px;
  line-height: 1.45;
}

.cabinet-section {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #242424;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.cabinet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cabinet-section h3 {
  font-size: 15px;
  font-weight: 650;
}

.cabinet-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: #171717;
  border: 1px solid #2d2d2d;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.cabinet-badge.is-ready {
  color: #b8ffb8;
  border-color: rgba(120, 255, 120, 0.25);
}

.cabinet-badge.is-loading {
  color: #ffe6a8;
  border-color: rgba(255, 220, 120, 0.25);
}

.cabinet-result {
  margin-bottom: 12px;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.cabinet-result.is-highlight {
  color: #f2f2f2;
  font-size: 18px;
  font-weight: 650;
}

.cabinet-ip-panel {
  margin-bottom: 12px;
}

.cabinet-ip-value {
  margin-bottom: 14px;
  color: #f5f5f5;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.cabinet-ip-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.cabinet-ip-row {
  display: grid;
  grid-template-columns: minmax(92px, 34%) 1fr;
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid #232323;
  border-radius: 10px;
  background: #101010;
}

.cabinet-ip-row dt {
  color: #888;
  font-size: 12px;
  line-height: 1.45;
}

.cabinet-ip-row dd {
  margin: 0;
  color: #ececec;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.cabinet-btn {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.cabinet-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: var(--hover-white-glow);
  transform: translateY(-1px);
}

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

.speed-oval {
  --speed-accent: #8ec5ff;
  --speed-fill: 1;
  position: relative;
  display: block;
  width: 100%;
  min-height: 132px;
  margin-bottom: 14px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.speed-oval:hover:not(:disabled) {
  transform: translateY(-1px);
}

.speed-oval:disabled {
  cursor: wait;
}

.speed-oval[data-mode="download"] {
  --speed-accent: #ffcc00;
}

.speed-oval[data-mode="upload"] {
  --speed-accent: #7dffaf;
}

.speed-oval[data-mode="done"] {
  --speed-accent: #ffffff;
}

.speed-oval__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.speed-oval__track {
  fill: #101010;
  stroke: #242424;
  stroke-width: 5;
}

.speed-oval__fill {
  fill: none;
  stroke: var(--speed-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--speed-fill, 1);
  transition:
    stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    stroke 0.35s ease,
    filter 0.35s ease;
  filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.28));
}

.speed-oval[data-mode="ping"] .speed-oval__fill {
  filter: drop-shadow(0 0 10px rgba(120, 180, 255, 0.28));
}

.speed-oval[data-mode="upload"] .speed-oval__fill {
  filter: drop-shadow(0 0 10px rgba(100, 255, 170, 0.24));
}

.speed-oval__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 20px;
  text-align: center;
}

.speed-oval__hint {
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 500;
}

.speed-oval__phase {
  margin-bottom: 8px;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speed-oval__value strong {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.speed-oval__value span {
  display: block;
  margin-top: 4px;
  color: #aaa;
  font-size: 13px;
  font-weight: 600;
}

.inetometer-results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}

.inetometer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
}

.inetometer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #b0b0b0;
  font-size: 13px;
  font-weight: 500;
}

.inetometer-arrow {
  color: #8f8f8f;
}

.inetometer-value {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.inetometer-item--up .inetometer-value {
  color: #ff6a45;
}

.inetometer-item--ping .inetometer-value {
  color: #8d8d8d;
}

.inetometer-unit {
  margin-top: 6px;
  color: #ececec;
  font-size: 13px;
  font-weight: 500;
}

.cabinet-metrics {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
}

.cabinet-metrics li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #101010;
  border: 1px solid #252525;
}

.cabinet-metrics span {
  display: block;
  margin-bottom: 4px;
  color: #888;
  font-size: 12px;
}

.cabinet-metrics strong {
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 520px) {
  .inetometer-results {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .inetometer-value {
    font-size: 24px;
  }

  .speed-oval__value strong {
    font-size: 34px;
  }
}

.cabinet-logout {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 120, 120, 0.25);
  border-radius: 14px;
  background: rgba(255, 80, 80, 0.08);
  color: #ffb4b4;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease);
}

.cabinet-logout:hover {
  background: rgba(255, 80, 80, 0.14);
  border-color: rgba(255, 120, 120, 0.4);
}

.main {
  position: relative;
  z-index: 1;
  margin-left: 250px;
  min-height: 100vh;
  min-width: 0;
  overflow-x: clip;
}

.page {
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.5s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 2;
  will-change: auto;
}

.page.page-exit {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  pointer-events: none;
}

.page.page-enter {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 72px 48px 56px;
}

.hero-chat {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6vh;
  animation: heroFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.hero-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1f1f1f, #121212);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-chat-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f3f3f3;
}

.hero-chat-status {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a8a8a;
}

.hero-message-bubble {
  position: relative;
  overflow: hidden;
  background: rgba(16, 16, 16, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 22px 24px 24px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-message-bubble > :not(.plate-earth) {
  position: relative;
  z-index: 1;
}

#typing {
  max-width: none;
  min-height: 132px;
  text-align: left;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 450;
  letter-spacing: -0.018em;
  color: #ececec;
  white-space: pre-line;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  color: #ffffff;
  font-weight: 300;
  animation: blink 0.85s infinite;
}

.hero-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(16, 16, 16, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  color: #ececec;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: -0.018em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease),
    color var(--hover-ease);
}

.hero-cta:hover {
  background: rgba(22, 22, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  color: #fff;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.cards {
  display: grid;
  min-height: 100vh;
  padding: 70px 64px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
  gap: 26px;
  align-items: start;
  align-content: start;
}

.page-back {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 520;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease),
    color var(--hover-ease);
}

.page-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hover-white-border);
  color: #fff;
  box-shadow: var(--hover-white-glow), var(--hover-white-inset);
  transform: translateX(-2px);
}

#beelineCard .card-image {
  background: #0a0a0a;
}

#ozonCard .card-image {
  background: #061228;
}

#yapayCard .card-image {
  background: #1a1030;
}

.card-platform {
  overflow: visible;
  isolation: isolate;
}

.card-platform::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 29px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.78;
  animation: contactsAuraPulse 3.6s ease-in-out infinite;
}

.card-platform--go6 {
  border-color: rgba(240, 190, 55, 0.22);
  box-shadow:
    0 0 0 1px rgba(240, 190, 55, 0.1),
    0 0 24px rgba(255, 190, 50, 0.14),
    0 0 48px rgba(255, 170, 30, 0.08);
}

.card-platform--go6::after {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 205, 70, 0.22) 0%,
    rgba(255, 180, 40, 0.08) 52%,
    transparent 72%
  );
  box-shadow: 0 0 34px rgba(255, 195, 55, 0.18);
}

.card-platform--go6:hover {
  border-color: rgba(255, 205, 70, 0.34);
  box-shadow:
    0 22px 55px rgba(255, 190, 50, 0.16),
    0 0 32px rgba(255, 200, 60, 0.22),
    0 0 64px rgba(255, 170, 30, 0.14);
}

#go6PageOpen .card-image {
  background: linear-gradient(135deg, #8a6a12 0%, #d4a826 42%, #f0c040 100%);
}

.card-platform--interpayment {
  border-color: rgba(55, 145, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(55, 145, 255, 0.1),
    0 0 22px rgba(45, 125, 230, 0.14),
    0 0 44px rgba(35, 110, 210, 0.08);
}

.card-platform--interpayment::after {
  background: radial-gradient(
    ellipse at center,
    rgba(75, 165, 255, 0.2) 0%,
    rgba(45, 125, 230, 0.08) 52%,
    transparent 72%
  );
  box-shadow: 0 0 30px rgba(55, 145, 255, 0.16);
}

.card-platform--interpayment:hover {
  border-color: rgba(75, 165, 255, 0.34);
  box-shadow:
    0 22px 55px rgba(45, 125, 230, 0.16),
    0 0 30px rgba(75, 165, 255, 0.22),
    0 0 60px rgba(35, 110, 210, 0.12);
}

#interpaymentPageOpen .card-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(75, 165, 255, 0.28) 0%, rgba(75, 165, 255, 0.08) 28%, transparent 58%),
    linear-gradient(135deg, #061228 0%, #0a2040 55%, #123870 100%);
}

.card-platform--payscrow {
  border-color: rgba(170, 170, 195, 0.2);
  box-shadow:
    0 0 0 1px rgba(170, 170, 195, 0.1),
    0 0 22px rgba(150, 150, 190, 0.14),
    0 0 44px rgba(130, 130, 175, 0.08);
}

.card-platform--payscrow::after {
  background: radial-gradient(
    ellipse at center,
    rgba(170, 170, 210, 0.2) 0%,
    rgba(130, 130, 175, 0.08) 52%,
    transparent 72%
  );
  box-shadow: 0 0 30px rgba(150, 150, 195, 0.16);
}

.card-platform--payscrow:hover {
  border-color: rgba(190, 190, 215, 0.32);
  box-shadow:
    0 22px 55px rgba(150, 150, 190, 0.14),
    0 0 30px rgba(170, 170, 210, 0.22),
    0 0 60px rgba(130, 130, 175, 0.12);
}

#payscrowPageOpen .card-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 58%),
    linear-gradient(135deg, #121218 0%, #1a1a24 55%, #252532 100%);
}

#payscrowPageOpen:hover .card-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 28%, transparent 58%),
    linear-gradient(135deg, #121218 0%, #1a1a24 55%, #252532 100%);
  box-shadow: inset 0 0 52px rgba(255, 255, 255, 0.18);
}

#interpaymentPageOpen:hover .card-image {
  background:
    radial-gradient(circle at 50% 42%, rgba(75, 165, 255, 0.42) 0%, rgba(75, 165, 255, 0.14) 28%, transparent 58%),
    linear-gradient(135deg, #061228 0%, #0a2040 55%, #123870 100%);
  box-shadow: inset 0 0 52px rgba(60, 150, 255, 0.34);
}

.card-image--brand::before {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.72;
  transition:
    background var(--hover-ease),
    opacity var(--hover-ease),
    filter var(--hover-ease);
}

#interpaymentPageOpen .card-image--brand::before {
  background: rgba(70, 150, 255, 0.28);
}

#payscrowPageOpen .card-image--brand::before {
  background: rgba(255, 255, 255, 0.12);
}

.card-image-media--brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  animation: none;
}

.card-image-media--brand img {
  width: min(58%, 168px);
  height: auto;
  max-height: 62%;
  object-fit: contain;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: filter var(--hover-ease);
  filter:
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
}

#interpaymentPageOpen .card-image-media--brand img {
  width: auto;
  height: min(72%, 190px);
  max-width: 46%;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 28px rgba(80, 160, 255, 0.35));
}

#payscrowPageOpen .card-image-media--brand img {
  width: min(72%, 220px);
  height: auto;
  max-height: 48%;
  filter:
    drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.14));
}

#go6PageOpen .card-image img {
  transition: filter var(--hover-ease);
}

#go6PageOpen:hover .card-image img {
  filter:
    drop-shadow(0 0 22px rgba(255, 210, 60, 0.72))
    drop-shadow(0 0 44px rgba(255, 190, 40, 0.48))
    drop-shadow(0 0 68px rgba(255, 170, 30, 0.28));
}

#go6PageOpen:hover .card-image {
  box-shadow: inset 0 0 52px rgba(255, 200, 55, 0.34);
}

.card-platform--soon {
  cursor: default;
  opacity: 0.78;
}

.card-platform--soon:hover {
  transform: none;
}

.card-soon-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

#interpaymentPageOpen:hover .card-image--brand::before {
  background: rgba(60, 150, 255, 0.62);
  opacity: 1;
  filter: blur(24px);
}

#payscrowPageOpen:hover .card-image--brand::before {
  background: rgba(255, 255, 255, 0.52);
  opacity: 1;
  filter: blur(24px);
}

.card-platform--payscrow:hover .card-image-media--brand img {
  filter:
    drop-shadow(0 14px 34px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.82))
    drop-shadow(0 0 56px rgba(255, 255, 255, 0.38));
}

.card-platform--interpayment:hover .card-image-media--brand img {
  filter:
    drop-shadow(0 14px 34px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 32px rgba(60, 150, 255, 0.78))
    drop-shadow(0 0 58px rgba(40, 120, 255, 0.46));
}

.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #0d0d0d;
  border: 1px solid #202020;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--hover-ease),
    box-shadow var(--hover-ease),
    border-color var(--hover-ease),
    background var(--hover-ease);
}

.card:hover {
  transform: translateY(-8px);
  background: #111;
  border-color: var(--hover-white-border);
  box-shadow:
    0 22px 55px rgba(230, 160, 24, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    var(--hover-white-glow);
}

.card:hover .card-content {
  background: rgba(255, 255, 255, 0.04);
}

.card:hover .card-content h2 {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.card:hover .card-content p {
  color: #d8d8d8;
}

.card-image {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid #202020;
  background: #e6a018;
  isolation: isolate;
  transition:
    box-shadow var(--hover-ease),
    background var(--hover-ease);
}

.card-image::before {
  content: "";
  position: absolute;
  inset: -52%;
  z-index: 2;
  background: radial-gradient(
    circle at 50% 7%,
    rgba(255, 245, 165, 0.78) 0%,
    rgba(255, 210, 85, 0.42) 11%,
    rgba(255, 170, 35, 0.16) 22%,
    transparent 34%
  );
  animation: yellowOrbit 8s linear infinite;
  pointer-events: none;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: -48%;
  z-index: 3;
  background: radial-gradient(
    circle at 50% 92%,
    rgba(255, 220, 110, 0.55) 0%,
    rgba(255, 180, 50, 0.24) 10%,
    transparent 26%
  );
  animation: yellowOrbit 12s linear infinite reverse;
  pointer-events: none;
}

.card-image-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  animation: cardKenBurns 16s ease-in-out infinite alternate;
  will-change: transform;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#beelineCard .card-image img,
#ozonCard .card-image img,
#yapayCard .card-image img {
  object-fit: contain;
}

.card:nth-child(2) .card-image::before {
  animation-delay: -2.5s;
}

.card:nth-child(2) .card-image::after {
  animation-delay: -4s;
}

.card:nth-child(3) .card-image::before {
  animation-delay: -5s;
}

.card:nth-child(3) .card-image::after {
  animation-delay: -7s;
}

.card:nth-child(2) .card-image-media {
  animation-delay: -5s;
}

.card:nth-child(3) .card-image-media {
  animation-delay: -10s;
}

.card:hover .card-image-media {
  animation-duration: 11s;
}

@keyframes yellowOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes cardKenBurns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  content-visibility: hidden;
  transition:
    opacity 0.42s ease,
    visibility 0.42s ease,
    backdrop-filter 0.42s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  content-visibility: visible;
}

.card-content {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 16px 18px 18px;
  background: #0d0d0d;
  transition:
    background var(--hover-ease),
    color var(--hover-ease);
}

.card-content h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin-bottom: 7px;
  transition:
    color var(--hover-ease),
    text-shadow var(--hover-ease);
}

.card-content h2 a {
  border-bottom: 1px solid #777;
}

.card-content p {
  color: #8d8d8d;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--hover-ease);
}

.modal-card {
  width: min(860px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: #0d0d0d;
  border: 1px solid #2b2b2b;
  border-radius: 26px;
  padding: 44px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.65);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.97);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}

.modal-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.modal-card > :not(.plate-earth):not(.close) {
  position: relative;
  z-index: 1;
}

.modal.show .modal-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
}

.modal-card h2 {
  font-size: 31px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 26px;
}

.modal-card p {
  margin-bottom: 17px;
  color: #d2d2d2;
  font-size: 16px;
  line-height: 1.75;
}

.modal-card a {
  color: #ffffff;
  border-bottom: 1px solid #666;
  transition:
    color var(--hover-ease),
    border-color var(--hover-ease),
    text-shadow var(--hover-ease);
}

.modal-card a:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.modal-card strong {
  color: #ffffff;
  font-weight: 650;
}

.close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 10;
  width: 37px;
  height: 37px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #171717;
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--hover-white-border);
  box-shadow: var(--hover-white-glow), var(--hover-white-inset);
  transform: rotate(90deg);
}

.manual-btn {
  margin-top: 0;
  padding: 14px 16px;
  background: #f4f4f4;
  color: #000;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    color var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.manual-btn:hover {
  background: #ffffff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.modal-actions .manual-btn,
.modal-actions .connect-toggle {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

.connect-toggle {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: transparent;
  color: #f2f2f2;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease),
    color var(--hover-ease);
}

.connect-toggle:hover,
.connect-toggle.is-open {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hover-white-border);
  box-shadow: var(--hover-white-glow), var(--hover-white-inset);
  color: #fff;
}

.connect-section {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.connect-section.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 22px;
}

.connect-section-inner {
  overflow: hidden;
}

.connect-intro {
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-intro p {
  margin-bottom: 12px;
}

.connect-intro p:last-child {
  margin-bottom: 0;
}

.connect-intro .capital-note {
  color: #fff;
  font-weight: 600;
}

.connect-form {
  display: grid;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 14px;
  font-weight: 560;
  color: #ececec;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  background: #111;
  color: #f5f5f5;
  font: inherit;
  font-size: 15px;
  transition:
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    background var(--hover-ease);
}

.form-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  background: #141414;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea,
.form-field.is-invalid select,
.form-field.is-invalid .form-input-wrap input {
  border-color: rgba(255, 130, 55, 0.58);
  background: rgba(255, 110, 40, 0.04);
  box-shadow:
    0 0 0 3px rgba(255, 120, 40, 0.12),
    0 0 18px rgba(255, 120, 40, 0.08);
}

.field-validation-tip {
  position: fixed;
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(300px, calc(100vw - 24px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 140, 60, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(28, 20, 12, 0.98), rgba(16, 12, 10, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff3e8;
  font-size: 13px;
  line-height: 1.45;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 28px rgba(255, 120, 40, 0.14);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.field-validation-tip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(255, 140, 60, 0.34);
  border-top: 1px solid rgba(255, 140, 60, 0.34);
  background: rgba(22, 16, 11, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.field-validation-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field-validation-tip[hidden] {
  display: none !important;
}

.field-validation-tip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 150, 70, 0.95), rgba(255, 110, 40, 0.95));
  color: #1a1008;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 14px rgba(255, 120, 40, 0.35);
}

.field-validation-tip__text {
  padding-top: 1px;
}

.form-hint {
  font-size: 12px;
  color: #888;
  line-height: 1.45;
}

.connect-submit {
  margin-top: 6px;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: #f4f4f4;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.connect-submit:hover {
  background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.contacts-card {
  width: min(700px, 100%);
}

#manualModal {
  z-index: 1001;
}

.manual-notice-card {
  width: min(480px, 100%);
  padding: 36px 32px 32px;
  text-align: center;
}

.manual-notice-card h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}

.manual-notice-card p {
  margin-bottom: 14px;
  color: #d2d2d2;
  font-size: 15px;
  line-height: 1.65;
}

.manual-notice-card p:last-of-type {
  margin-bottom: 14px;
}

#manualModalBody {
  text-align: center;
}

#manualModalBody p {
  margin-bottom: 14px;
  color: #d2d2d2;
  font-size: 15px;
  line-height: 1.65;
}

.manual-pay-field {
  width: 100%;
  margin: 0 0 12px;
  text-align: left;
}

.manual-pay-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 560;
  color: #ececec;
}

.manual-pay-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #2e2e2e;
  border-radius: 14px;
  background: #111;
  color: #f5f5f5;
  font: inherit;
  font-size: 15px;
  transition:
    border-color var(--hover-ease),
    box-shadow var(--hover-ease),
    background var(--hover-ease);
}

.manual-pay-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
  background: #141414;
}

.manual-notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 0;
}

.manual-notice-actions .manual-notice-btn {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 14px;
}

.manual-notice-btn-outline {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.manual-notice-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hover-white-border);
  box-shadow: var(--hover-white-glow), var(--hover-white-inset);
  transform: translateY(-2px);
}

.manual-notice-btn {
  min-width: 160px;
  padding: 13px 22px;
  border: none;
  border-radius: 14px;
  background: #f4f4f4;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.manual-notice-btn:hover {
  background: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.contacts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contacts-list a {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 15px 17px;
  background: #151515;
  border: 1px solid #242424;
  border-radius: 16px;
  color: #ededed;
  font-size: 15px;
  font-weight: 520;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease),
    color var(--hover-ease),
    box-shadow var(--hover-ease),
    transform var(--hover-ease);
}

.contacts-list a:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  transform: translateY(-2px);
}

.contacts-list a:not(.contacts-priority):not(.contacts-featured):hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contacts-list .contacts-priority,
.contacts-list .contacts-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.contacts-link-label {
  min-width: 0;
}

.contacts-list .contacts-teamlead {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.contacts-list .contacts-teamlead:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.contacts-list .contacts-payscrow {
  background: rgba(130, 130, 155, 0.1);
  border-color: rgba(170, 170, 195, 0.18);
  box-shadow:
    0 0 0 1px rgba(170, 170, 195, 0.1),
    0 0 20px rgba(150, 150, 190, 0.16),
    0 0 42px rgba(130, 130, 175, 0.1);
}

.contacts-list .contacts-payscrow:hover {
  background: rgba(150, 150, 175, 0.16);
  border-color: rgba(190, 190, 215, 0.28);
  box-shadow:
    0 0 0 1px rgba(190, 190, 215, 0.16),
    0 0 28px rgba(170, 170, 210, 0.24),
    0 0 56px rgba(150, 150, 190, 0.16);
}

.contacts-list .contacts-interpayment {
  background: rgba(35, 110, 210, 0.1);
  border-color: rgba(55, 145, 255, 0.2);
}

.contacts-list .contacts-interpayment:hover {
  background: rgba(45, 125, 230, 0.15);
  border-color: rgba(75, 165, 255, 0.3);
}

.contacts-list .contacts-go6online {
  background: rgba(210, 160, 35, 0.1);
  border-color: rgba(240, 190, 55, 0.2);
  box-shadow:
    0 0 0 1px rgba(240, 190, 55, 0.12),
    0 0 22px rgba(255, 200, 60, 0.2),
    0 0 46px rgba(255, 180, 40, 0.12);
}

.contacts-list .contacts-go6online:hover {
  background: rgba(225, 175, 45, 0.15);
  border-color: rgba(255, 205, 70, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 205, 70, 0.18),
    0 0 32px rgba(255, 210, 70, 0.28),
    0 0 64px rgba(255, 190, 50, 0.18);
}

.contacts-list .contacts-aura {
  overflow: visible;
  isolation: isolate;
}

.contacts-list .contacts-aura::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
  animation: contactsAuraPulse 3.6s ease-in-out infinite;
}

.contacts-list .contacts-payscrow::after {
  background: radial-gradient(
    ellipse at center,
    rgba(170, 170, 210, 0.22) 0%,
    rgba(130, 130, 175, 0.08) 52%,
    transparent 72%
  );
  box-shadow: 0 0 28px rgba(150, 150, 195, 0.18);
}

.contacts-list .contacts-go6online::after {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 205, 70, 0.24) 0%,
    rgba(255, 180, 40, 0.1) 52%,
    transparent 72%
  );
  box-shadow: 0 0 32px rgba(255, 195, 55, 0.2);
}

@keyframes contactsAuraPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.985);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.015);
  }
}

.contacts-list .contacts-escrow {
  background: rgba(80, 180, 130, 0.1);
  border-color: rgba(90, 210, 150, 0.2);
}

.contacts-list .contacts-escrow:hover {
  background: rgba(90, 195, 145, 0.15);
  border-color: rgba(105, 225, 170, 0.3);
}

.contacts-badge {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
}

.contacts-brand-icon {
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  pointer-events: none;
}

.contacts-brand-icon--crow {
  height: 18px;
}

.contacts-brand-icon--diamond {
  height: 24px;
}

.contacts-brand-icon--go6 {
  height: 22px;
}

@media (max-width: 1200px) {
  :root {
    --sidebar-width: 230px;
  }

  .sidebar {
    width: 230px;
  }

  .main {
    margin-left: 230px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(280px, 400px));
    padding: 64px 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 0px;
    --mobile-nav-height: 104px;
  }

  body.sidebar-collapsed {
    --mobile-nav-height: 52px;
  }

  .site-strip {
    left: 0;
  }

  .sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px 12px 10px;
    border-right: none;
    border-bottom: 1px solid #1b1b1b;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow: visible;
  }

  .sidebar-head {
    margin-bottom: 0;
    order: 1;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-right: calc(112px + env(safe-area-inset-right, 0px));
  }

  .sidebar-head__tools {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    z-index: 127;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
  }

  body.sidebar-collapsed .sidebar-head__tools {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(64px + env(safe-area-inset-right, 0px));
    z-index: 128;
  }

  body:not(.sidebar-collapsed) .mobile-nav-actions {
    right: calc(112px + env(safe-area-inset-right, 0px));
  }

  .sidebar-reopen {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: calc(16px + env(safe-area-inset-right, 0px));
    left: auto;
    z-index: 128;
  }

  body:not(.sidebar-collapsed) .sidebar-reopen {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.sidebar-collapsed .sidebar-reopen {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mobile-nav-profile {
    position: relative;
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    line-height: 0;
    transition:
      background var(--hover-ease),
      border-color var(--hover-ease),
      box-shadow var(--hover-ease);
  }

  .mobile-nav-profile:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: var(--hover-white-glow);
  }

  .mobile-nav-profile .avatar.avatar--mobile-nav {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2a2a2a, #141414);
  }

  .mobile-nav-profile .avatar.avatar--mobile-nav.has-image {
    background: #111;
  }

  .mobile-nav-profile .avatar.avatar--mobile-nav img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 11px;
  }

  .cards {
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
  }

  .menu {
    flex-direction: row;
    gap: 4px;
    order: 2;
    flex: none;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 4px;
    padding-bottom: 2px;
    margin-top: 4px;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu button,
  .menu-link {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 40px;
    width: auto;
  }

  .sidebar-toggle {
    position: static;
    top: auto;
    right: auto;
    margin: 0;
    z-index: auto;
  }

  body.sidebar-collapsed .sidebar-toggle {
    visibility: hidden;
    pointer-events: none;
  }

  .lang-picker--sidebar {
    width: 40px;
    height: 40px;
  }

  .lang-picker--sidebar .lang-picker__trigger {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .lang-picker--sidebar .lang-picker__panel {
    max-height: min(240px, 42vh);
  }

  .lang-picker--sidebar .lang-picker__scroll {
    max-height: min(220px, 40vh);
  }

  .sidebar-foot {
    display: none;
  }

  .sidebar-plate--profile {
    display: none;
  }

  .sky-watch-btn {
    width: auto;
    padding: 9px 0;
    font-size: 12px;
    white-space: nowrap;
  }

  body.sidebar-collapsed .sidebar {
    transform: translateY(calc(-100% - 8px));
  }

  .menu button {
    padding: 10px 11px;
    font-size: 14px;
  }

  .sidebar-plate__text p {
    font-size: 13px;
  }

  .sidebar-plate__text span {
    font-size: 11px;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .main {
    margin-left: 0;
    padding-top: calc(var(--mobile-nav-height) + env(safe-area-inset-top, 0px) + 4px);
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .site-strip {
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .user-data-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cabinet-shell {
    padding: 10px 16px 32px;
  }

  .sidebar-brand {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .hero {
    min-height: calc(100vh - 70px);
    padding: 36px 22px 40px;
  }

  .hero-chat {
    margin-top: 5vh;
  }

  #typing {
    min-height: 120px;
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-message-bubble {
    padding: 20px 20px 22px;
    border-radius: 20px;
  }

  .cards {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    padding: 42px 22px;
  }

  .card {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .tool-head {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-right: 46px;
    gap: 8px;
  }

  .tool-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  .tool-head .cabinet-badge {
    order: 2;
    max-width: calc(100% - 46px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .close {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    z-index: 25;
  }

  .inet-gauge {
    min-height: 340px;
    padding-bottom: 62px;
  }

  .inet-gauge__svg {
    min-height: 228px;
    transform: scale(1.18);
    transform-origin: center top;
  }

  .inet-gauge__metrics {
    width: min(78%, 300px);
    gap: 2px;
    top: 50%;
  }

  .inet-gauge__label {
    font-size: 8px;
    line-height: 1.15;
  }

  .inet-gauge__value {
    font-size: 13px;
  }

  .inet-gauge__unit {
    font-size: 8px;
  }

  .inet-gauge__phase {
    font-size: 11px;
    max-width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .inet-gauge__tick {
    stroke-width: 3.6;
  }

  .inet-gauge__tick--major {
    stroke-width: 4.2;
  }

  .inet-gauge__tick.is-lit {
    stroke-width: 4.2;
  }

  .inet-gauge__tick--major.is-lit {
    stroke-width: 4.8;
  }

  .modal-card .plate-earth {
    width: 52%;
    opacity: 0.45;
  }

  .page-back {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .cards {
    padding-top: 8px;
  }

  .sidebar {
    height: auto;
    min-height: 64px;
    padding: 10px 12px 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .sidebar-head {
    order: 1;
  }

  .menu {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-foot {
    display: none;
  }

  .sidebar-plate--profile {
    display: none;
  }

  .menu button,
  .menu-link {
    text-align: left;
    font-size: 14px;
    padding: 10px 9px;
  }

  .main {
    padding-top: calc(var(--mobile-nav-height) + env(safe-area-inset-top, 0px) + 4px);
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 28px 16px 36px;
  }

  .hero-chat {
    margin-top: 3vh;
    gap: 16px;
  }

  #typing {
    min-height: 110px;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.015em;
  }

  .hero-message-bubble {
    padding: 18px 18px 20px;
    border-radius: 18px;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
    justify-content: center;
    font-size: 13px;
  }

  .cards {
    padding: calc(88px + env(safe-area-inset-top, 0px)) 16px 36px;
    gap: 20px;
  }

  .card {
    border-radius: 22px;
  }

  .card-content {
    padding: 15px 16px 16px;
  }

  .card-content h2 {
    font-size: 17px;
  }

  .modal {
    padding: 12px;
    align-items: flex-start;
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
  }

  .modal-card {
    padding: 32px 22px;
    border-radius: 22px;
    max-height: calc(100vh - 95px);
  }

  .modal-card h2 {
    font-size: 26px;
    padding-right: 42px;
  }

  .modal-card p {
    font-size: 15px;
    line-height: 1.65;
  }

  .modal-actions {
    gap: 10px;
  }

  .modal-actions .manual-btn,
  .modal-actions .connect-toggle {
    font-size: 12px;
    padding: 12px 10px;
    min-height: 44px;
  }

  .manual-notice-actions {
    gap: 10px;
  }

  .manual-notice-actions .manual-notice-btn {
    font-size: 12px;
    padding: 12px 10px;
    min-height: 44px;
  }

  .contacts-list {
    grid-template-columns: 1fr;
  }

  .contacts-list a {
    padding: 14px 16px;
  }

  .cabinet-shell {
    padding: 8px 16px 28px;
  }

  .cabinet-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .cabinet-logout--inline {
    width: 100%;
  }

  .cabinet-layout {
    grid-template-columns: 1fr;
  }

  .totp-setup {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px 14px 14px;
  }

  .totp-qr-frame {
    justify-self: center;
    margin-top: 8px;
  }

  .totp-setup__info .cabinet-btn {
    width: 100%;
  }
}

.cabinet-page {
  padding: 0;
  border-bottom: none;
}

.cabinet-shell {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 72px 48px 56px;
  min-width: 0;
  box-sizing: border-box;
}

.cabinet-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.cabinet-hero__main {
  min-width: 0;
  flex: 1;
}

.cabinet-hero__profile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin-bottom: 18px;
}

.cabinet-hero__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a 0%, #454545 55%, #6a6a6a 100%);
  color: #f5f5f5;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cabinet-hero__avatar.has-image {
  background: #111;
}

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

.cabinet-hero__label {
  margin: 0 0 6px;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cabinet-hero__info h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  word-break: break-word;
}

.cabinet-hero__meta {
  display: block;
  margin-top: 8px;
  color: #9a9a9a;
  font-size: 13px;
}

.cabinet-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: #a8a8a8;
  font-size: 12px;
}

.cabinet-tag strong {
  color: #f2f2f2;
  font-weight: 650;
}

.cabinet-tag__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666;
}

#cabinetTag2fa.is-active .cabinet-tag__dot {
  background: #7dff9a;
  box-shadow: 0 0 10px rgba(125, 255, 154, 0.45);
}

.cabinet-tag--accent {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d0d0d0;
}

.cabinet-logout--inline {
  width: auto;
  margin-top: 0;
  flex-shrink: 0;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.cabinet-panel--password,
.cabinet-panel--totp,
.cabinet-panel--security {
  grid-column: 1 / -1;
}

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

.security-choice__btn {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.security-choice__btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.security-choice__btn.is-active {
  border-color: rgba(120, 180, 255, 0.55);
  background: rgba(80, 140, 255, 0.12);
}

.cabinet-panel__head--sub {
  margin-top: 8px;
  margin-bottom: 12px;
}

.cabinet-panel__head--sub h3 {
  margin: 0;
  font-size: 1rem;
}

.cabinet-panel__lead--compact {
  margin-bottom: 12px;
}

.security-tg-actions {
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cabinet-feedback--inline {
  margin-top: 10px;
}

.cabinet-setting__hint.is-error {
  color: #ffb4a8;
}

.cabinet-setting__hint.is-ok {
  color: #a8e6bf;
}

.cabinet-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  container-type: inline-size;
  transition:
    border-color var(--hover-ease),
    transform var(--hover-ease),
    box-shadow var(--hover-ease);
}

.cabinet-panel:hover {
  border-color: rgba(255, 255, 255, 0.11);
}

.cabinet-panel--settings {
  grid-column: 1 / -1;
}

.cabinet-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cabinet-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cabinet-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8e8e8;
}

.cabinet-panel__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cabinet-panel__lead,
.cabinet-panel__note {
  margin: 0 0 18px;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.6;
}

.cabinet-panel__note {
  margin-bottom: 10px;
}

.cabinet-form {
  display: grid;
  gap: 14px;
}

.cabinet-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-btn {
  max-width: 100%;
}

.cabinet-form-success,
.cabinet-feedback {
  margin: 0;
  color: #b8ffb8;
  font-size: 13px;
  line-height: 1.45;
}

.cabinet-input {
  border-radius: 14px !important;
}

.cabinet-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.cabinet-status--ok {
  border: 1px solid rgba(125, 255, 154, 0.18);
  background: rgba(125, 255, 154, 0.08);
  color: #b8ffb8;
}

.cabinet-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7dff9a;
  box-shadow: 0 0 10px rgba(125, 255, 154, 0.45);
  flex-shrink: 0;
}

.cabinet-btn--primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(220, 220, 220, 0.92));
  color: #111;
  font-weight: 700;
}

.cabinet-btn--primary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #ffffff, #ececec);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}

.cabinet-btn--soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8e8e8;
}

.cabinet-btn--soft:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.cabinet-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.cabinet-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.cabinet-btn--danger {
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 80, 80, 0.1);
  color: #ffb4b4;
}

.cabinet-btn--danger:hover:not(:disabled) {
  background: rgba(255, 80, 80, 0.16);
  border-color: rgba(255, 120, 120, 0.42);
}

.cabinet-btn--compact {
  width: auto;
  padding: 10px 14px;
}

.totp-setup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 18px;
  margin-top: 8px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.34));
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.totp-qr-frame {
  position: relative;
  align-self: start;
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, #ffffff, #f3f3f3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 4px rgba(255, 255, 255, 0.12);
}

.totp-qr-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  pointer-events: none;
}

.totp-qr-frame__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ececec, #ffffff);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.totp-qr {
  display: block;
  width: min(168px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
}

.totp-setup__info {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.totp-setup__info p {
  margin: 0;
  color: #c8c8c8;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.totp-setup__info .cabinet-btn {
  justify-self: start;
  width: auto;
  max-width: 100%;
}

@container (max-width: 560px) {
  .totp-setup {
    grid-template-columns: 1fr;
    justify-items: stretch;
    padding: 18px 14px 14px;
  }

  .totp-qr-frame {
    justify-self: center;
  }

  .totp-setup__info .cabinet-btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .totp-setup {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .totp-qr-frame {
    justify-self: center;
  }

  .totp-setup__info .cabinet-btn {
    width: 100%;
  }
}

.totp-secret {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.totp-code-input {
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cabinet-settings {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cabinet-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  transition:
    border-color var(--hover-ease),
    background var(--hover-ease);
}

.cabinet-setting:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.24);
}

.cabinet-setting strong {
  display: block;
  margin-bottom: 4px;
  color: #f2f2f2;
  font-size: 14px;
}

.cabinet-setting span {
  color: #888;
  font-size: 12px;
  line-height: 1.45;
  min-width: 0;
}

.cabinet-setting--stack {
  flex-direction: column;
  align-items: stretch;
}

.cabinet-setting__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cabinet-setting__hint {
  margin: 0;
  color: #c9a227;
  font-size: 12px;
  line-height: 1.5;
}

.cabinet-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #171717;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background var(--hover-ease),
    border-color var(--hover-ease);
}

.cabinet-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--hover-ease);
}

.cabinet-toggle[aria-checked="true"] {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.cabinet-toggle[aria-checked="true"] span {
  transform: translateX(20px);
}

@media (prefers-reduced-motion: reduce) {
  .page,
  .card-image-media,
  .card-image::before,
  .card-image::after,
  .card,
  .modal,
  .modal-card,
  .cosmos-canvas {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .page {
    transform: none !important;
  }

  .card:hover {
    transform: none;
  }

  .field-validation-tip {
    transition-duration: 0.01ms !important;
  }
}