/* Держава cabinet — cab2 shell (wCloud-aligned) */

.cab2 { isolation: isolate; min-height: 100dvh; position: relative; }
.cab2::before {
  content: "";
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(34% 30% at 20% 20%, rgb(var(--blue-rgb) / .3), transparent 70%),
    radial-gradient(32% 30% at 82% 70%, #8b6bff3d, transparent 70%),
    radial-gradient(26% 24% at 62% 10%, #38d5ff24, transparent 70%),
    linear-gradient(180deg, #0c111d 0%, #080b13 35%, #06080d 100%);
  animation: 26s ease-in-out infinite alternate cabAurora;
  position: fixed;
  inset: -25%;
}
html[data-theme="light"] .cab2::before {
  background:
    radial-gradient(34% 30% at 20% 20%, rgb(var(--blue-rgb) / .16), transparent 70%),
    radial-gradient(32% 30% at 82% 70%, #8b6bff1f, transparent 70%),
    linear-gradient(180deg, #f1f4f9, #f6f7f9);
}
@keyframes cabAurora {
  50% { transform: translate(4%, -3%) rotate(7deg) scale(1.08); }
  to { transform: translate(-4%, 3%) rotate(-5deg) scale(1.02); }
}

.cab2-drops { z-index: -1; pointer-events: none; position: fixed; inset: 0; overflow: hidden; }
.cab2-drops i {
  background:
    radial-gradient(circle at 30% 24%, #ffffff80, #fff0 22%),
    radial-gradient(circle at 70% 80%, rgb(var(--blue-rgb) / .32), transparent 45%),
    radial-gradient(circle at 50% 50%, rgb(var(--blue-rgb) / .04) 55%, rgb(var(--blue-rgb) / .2) 72%, #aac8ff4d 100%);
  box-shadow: inset 0 -8px 18px rgb(var(--blue-rgb) / .22), inset 0 6px 10px #ffffff14, 0 24px 50px -24px rgb(var(--blue-rgb) / .6);
  opacity: .75;
  border: 1px solid #c8dcff2e;
  border-radius: 50%;
  animation: 16s ease-in-out infinite alternate cabDrop;
  position: absolute;
}
.cab2-drops i:nth-child(1) { width: 140px; height: 140px; top: 26%; left: 4%; }
.cab2-drops i:nth-child(2) { width: 70px; height: 70px; animation-duration: 12s; animation-delay: -4s; top: 16%; right: 7%; }
.cab2-drops i:nth-child(3) { width: 104px; height: 104px; animation-duration: 19s; animation-delay: -8s; top: 62%; right: 4%; }
.cab2-drops i:nth-child(4) { width: 44px; height: 44px; animation-duration: 10s; animation-delay: -2s; top: 78%; left: 10%; }
.cab2-drops i:nth-child(5) { width: 30px; height: 30px; animation-duration: 13s; animation-delay: -6s; top: 8%; left: 46%; }
@keyframes cabDrop {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(22px, -30px) scale(1.05, .96); }
  66% { transform: translate(-16px, 18px) scale(.96, 1.04); }
  to { transform: translate(12px, 34px) scale(1); }
}
html[data-theme="light"] .cab2-drops i {
  background: radial-gradient(circle at 32% 28%, #fff, #ffffff80 40%, rgb(var(--blue-rgb) / .14));
  border-color: #fff;
}

html:not([data-theme="light"]) .cab2 .glass {
  background: linear-gradient(#181e2ec7, #0c101ab8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.glass-tint {
  background: linear-gradient(180deg, rgb(var(--blue-rgb) / .24), rgb(var(--blue-rgb) / .06)) !important;
  border-color: rgb(var(--blue-rgb) / .35) !important;
}
html[data-theme="light"] .glass-tint {
  background: linear-gradient(180deg, rgb(var(--blue-rgb) / .14), #ffffffb3) !important;
}
.glass:after {
  content: "";
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--ink) / .08), transparent 45%);
  position: absolute;
  inset: 0;
}
.glass:hover:after { opacity: 1; }
.sheen {
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.sheen:before {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffff29, #0000);
  width: 40%;
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -60%;
  transform: rotate(18deg);
  animation: sheenRun 1.6s var(--ease) .4s both;
}
@keyframes sheenRun { to { left: 130%; } }

.cab2-top {
  z-index: 50;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  display: flex;
  position: sticky;
  top: 0;
}
.cab2-top:before {
  content: "";
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(#0c111deb 25%, #0000);
  position: absolute;
  inset: 0;
}
html[data-theme="light"] .cab2-top:before { background: linear-gradient(#f1f4f9f0 25%, #0000); }
.cab2-top-right { align-items: center; gap: 10px; display: flex; }
.cab2-theme {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cab2-theme .theme-toggle { width: 42px; height: 42px; border-radius: 50%; }
.cab2-balance {
  height: 42px;
  font-family: var(--display);
  letter-spacing: -.01em;
  transition: transform .3s var(--spring);
  border-radius: 99px;
  align-items: center;
  gap: 10px;
  padding: 0 6px 0 16px;
  font-size: 15.5px;
  font-weight: 800;
  display: inline-flex;
  color: inherit;
  cursor: pointer;
}
.cab2-balance:hover { transform: translateY(-1px); }
.cab2-balance i {
  color: #fff;
  background: var(--btn-grad);
  width: 30px;
  height: 30px;
  box-shadow: 0 6px 16px -6px rgb(var(--blue-rgb) / .9);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.cab2-main { min-width: 0; padding: 18px 28px 140px; }

.umenu { position: relative; }
.umenu-btn {
  height: 42px;
  color: var(--fg-2);
  border-radius: 99px;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 6px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
}
.umenu-btn:hover { color: var(--fg); }
.umenu-name { max-width: 150px; color: var(--fg); }
.umenu-pop {
  z-index: 60;
  width: 260px;
  animation: umenuIn .35s var(--spring);
  transform-origin: 100% 0;
  border-radius: 22px;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
}
@keyframes umenuIn {
  0% { opacity: 0; transform: scale(.92) translateY(-6px); }
}
.umenu-head {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  padding: 8px 8px 12px;
  display: flex;
}
.umenu-pop a, .umenu-out, .umenu-invite {
  width: 100%;
  height: 40px;
  color: var(--fg-2);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  font-size: 14px;
  transition: background .2s, color .2s, transform .1s ease;
  display: flex;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.umenu-pop a:hover, .umenu-out:hover, .umenu-invite:hover { color: var(--fg); background: rgb(var(--ink) / .06); }
.umenu-out { color: var(--red, #ff5a52); }
.umenu-out:hover { color: var(--red, #ff5a52); background: #f871711a; }

.invite-label {
  margin: 6px 0 0;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 600;
}
.invite-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.invite-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  color: var(--fg);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.invite-row .btn { flex: 0 0 auto; }

/* Friends / referral */
.friends-plate {
  grid-column: 1 / -1;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px 18px;
}
.friends-plate-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--fg);
  background: rgb(var(--blue-rgb) / .14);
  border: 1px solid rgb(var(--blue-rgb) / .22);
  align-self: center;
}
.friends-plate-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.friends-plate-label {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 600;
}
.friends-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 6px 6px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
}
.friends-link-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  padding: 0;
  height: 36px;
}
.friends-copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff, var(--blue));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgb(var(--blue-rgb) / .95);
}
.friends-copy .friends-copy-ok { display: none; }
.friends-copy.is-ok .friends-copy-ico { display: none; }
.friends-copy.is-ok .friends-copy-ok { display: block; }
.friends-copy.is-ok { background: linear-gradient(180deg, #4ea1ff, #2f74f0); }

.friends-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.friends-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.friends-link-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}
.friends-link-card .btn { align-self: flex-start; margin-top: 2px; }
.friends-accruals { min-height: 180px; display: flex; flex-direction: column; }
.friends-accruals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  overflow: auto;
  max-height: 260px;
}
.friends-accrual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(var(--ink) / .04);
  border: 1px solid var(--line-2);
}
.friends-accrual b { font-size: 14px; font-weight: 700; color: #4ade80; }
.friends-empty { margin-top: 8px; }
.friends-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.friends-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}
.friends-step-n {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgb(var(--blue-rgb) / .85);
}
.friends-step-n-gift {
  background: rgb(var(--blue-rgb) / .2);
  color: var(--fg);
  border: 1px solid rgb(var(--blue-rgb) / .28);
}
.friends-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.friends-stat {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  justify-content: center;
}
.friends-stat-val {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.friends-stat-lbl {
  color: var(--fg-3);
  font-size: 13.5px;
  line-height: 1.35;
  max-width: 18ch;
}
.friends-payout .panel-head { align-items: center; }
.friends-payout .panel-head b { font-size: 1.25rem; }
.friends-partner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.friends-partner-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.friends-partner-badge {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent, #3b82ff);
  background: color-mix(in srgb, var(--accent, #3b82ff) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, #3b82ff) 28%, transparent);
}
.friends-partner-head__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.friends-partner-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.friends-partner-title-row .h3 { margin: 0; }
.friends-partner-title-row b {
  font-size: 1.15rem;
  color: var(--accent, #3b82ff);
  white-space: nowrap;
}
.friends-partner-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.friends-partner-meta li {
  position: relative;
  margin: 0;
  padding: 0 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted, #8b93a7);
}
.friends-partner-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent, #3b82ff);
}
.friends-partner-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .04);
  cursor: pointer;
}
.friends-partner-toggle__txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.friends-partner-toggle strong {
  display: block;
  font-size: 0.95rem;
}
.friends-partner-toggle .tiny { display: block; margin-top: 0; }
.friends-partner-toggle__ctrl {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 26px;
}
.friends-partner-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.friends-switch {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 26px;
  border-radius: 99px;
  background: rgb(var(--ink) / .12);
  border: 1px solid var(--line-2);
  transition: background .2s ease, border-color .2s ease;
}
.friends-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / .2);
  transition: transform .2s ease;
}
.friends-partner-toggle input:checked + .friends-switch {
  background: color-mix(in srgb, var(--accent, #3b82ff) 55%, transparent);
  border-color: color-mix(in srgb, var(--accent, #3b82ff) 65%, transparent);
}
.friends-partner-toggle input:checked + .friends-switch::after {
  transform: translateX(16px);
}
.friends-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.friends-people-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(var(--ink) / .04);
  border: 1px solid var(--line-2);
}
.friends-people-list .meta { color: var(--fg-3); font-size: 12.5px; }
.friends-page .page-head { margin-bottom: 6px; }

@media (max-width: 900px) {
  .friends-top,
  .friends-steps,
  .friends-stats { grid-template-columns: 1fr; }
  .friends-stat { min-height: 0; }
  .friends-stat-lbl { max-width: none; }
  .friends-link-card { flex-direction: column; }
  .friends-link-row { flex-wrap: wrap; padding: 10px; }
  .friends-link-row input { width: 100%; flex: 1 1 100%; height: 32px; }
  .friends-copy { width: 100%; justify-content: center; }
}

.avatar {
  color: #fff;
  box-shadow: 0 0 0 1px rgb(var(--ink) / .12);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  display: inline-flex;
  overflow: hidden;
}

.dock {
  z-index: 50;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 #ffffff24, 0 24px 60px -18px #000c, 0 0 0 1px rgb(var(--ink) / .06);
  animation: dockIn .8s var(--spring) both;
  border-radius: 28px;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
  display: flex;
  position: fixed;
  transform: translate(-50%);
  background: linear-gradient(#161c2cc7, #0a0e18db) !important;
}
@keyframes dockIn {
  0% { opacity: 0; transform: translate(-50%, 40px) scale(.9); }
}
.dock-item {
  width: 68px;
  color: var(--fg-3);
  transition: color .25s, transform .35s var(--spring);
  border-radius: 20px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0 5px;
  display: flex;
  position: relative;
}
.dock-ic {
  width: 44px;
  height: 44px;
  transition: background .3s, box-shadow .3s, transform .35s var(--spring);
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.dock-label { letter-spacing: .01em; white-space: nowrap; font-size: 11px; font-weight: 600; }
.dock-item:hover { color: var(--fg); transform: translateY(-6px); }
.dock-item:hover .dock-ic { background: rgb(var(--ink) / .07); transform: scale(1.12); }
.dock-item.on { color: var(--fg); }
.dock-item.on .dock-ic {
  background: linear-gradient(180deg, rgb(var(--ink) / .16), rgb(var(--ink) / .06));
  color: var(--blue-2);
  box-shadow: inset 0 1px #fff3, 0 8px 20px -10px #000c;
}
.dock-item.on:after {
  content: "";
  background: var(--blue-2);
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px var(--blue);
  border-radius: 50%;
  position: absolute;
  bottom: -3px;
}
.dock-item.accent .dock-ic {
  color: #fff;
  background: var(--btn-grad);
  box-shadow: inset 0 1px 0 #ffffff59, 0 10px 24px -10px rgb(var(--blue-rgb) / .95);
}
.dock-item.accent { color: var(--fg-2); }
html[data-theme="light"] .dock {
  background: linear-gradient(#ffffffdb, #f0f4fce6) !important;
  box-shadow: inset 0 1px #fff, 0 20px 50px -18px #1e326459;
}

.page {
  max-width: 1080px;
  animation: pageIn .6s var(--ease);
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  display: flex;
}
.page.wide { max-width: 1280px; }
@keyframes pageIn {
  0% { opacity: 0; transform: translateY(10px); }
}
.page-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  display: flex;
}
.page-head .eyebrow { margin-bottom: 8px; }

.ov-hello { padding: 8px 2px 0; }
.ov-hello .h1 { font-size: clamp(28px, 4vw, 40px); }
.ov-hello p { margin-top: 6px; }
.ov-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 18px;
  display: grid;
}
.ov-main, .ov-side { flex-direction: column; gap: 18px; min-width: 0; display: flex; }
.ov-grid {
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.6fr);
  gap: 18px;
  display: grid;
}
.ov-balance {
  border-radius: 26px;
  flex-direction: column;
  gap: 8px;
  min-height: 230px;
  padding: 24px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.ov-big {
  font-family: var(--display);
  letter-spacing: -.035em;
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}
.ov-mid {
  font-family: var(--display);
  letter-spacing: -.02em;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 800;
  display: block;
}
.ov-chart {
  border-radius: 26px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  display: flex;
}
.ov-mini { gap: 18px; display: flex; }
.ov-mini > span { flex-direction: column; align-items: flex-end; display: flex; }
.ov-mini b { font-family: var(--display); font-size: 20px; font-weight: 800; }
.ov-sub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ov-switch { margin-top: auto; }

.banner {
  border-radius: 20px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
}
.banner.warn {
  background: linear-gradient(#fbbf2424, #fbbf240a);
  border-color: #fbbf2459;
}
.banner.warn > svg { color: var(--amber); }

.tg-row {
  transition: transform .3s var(--spring);
  border-radius: 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  display: flex;
}
.tg-row:hover { transform: translateY(-2px); }
.tg-row-ic {
  color: #fff;
  background: linear-gradient(#37aee2, #1e96c8);
  border-radius: 14px;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  display: inline-flex;
  box-shadow: 0 8px 20px -8px #2aabeecc;
}
.tg-row-txt { flex-direction: column; flex: 1; gap: 1px; min-width: 0; display: flex; }

.rp {
  border-radius: 20px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
}
.rp-icon {
  width: 42px;
  height: 42px;
  color: var(--blue-2);
  background: rgb(var(--blue-rgb) / .14);
  border: 1px solid rgb(var(--blue-rgb) / .22);
  border-radius: 13px;
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.rp-text {
  min-width: 0;
  color: var(--fg-2);
  flex-direction: column;
  flex: 1;
  gap: 3px;
  font-size: 13.5px;
  display: flex;
}
.rp-text b { color: var(--fg); font-size: 15px; }
.rp .btn { width: 100%; }

.panel { border-radius: 24px; padding: 22px; min-width: 0; }
.panel-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}
.quick-stack { display: flex; flex-direction: column; gap: 10px; }
.quick-card {
  text-align: left;
  transition: transform .4s var(--spring);
  border-radius: 18px;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  display: flex;
  cursor: pointer;
  color: inherit;
  width: 100%;
}
.quick-card:hover { transform: translateY(-2px); }
.quick-card b { font-size: 15px; }

.servers { flex-direction: column; gap: 10px; display: flex; }
.server {
  border-radius: 18px;
  padding: 12px 14px;
  display: block;
}
.server-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.server-head { align-items: flex-start; gap: 14px; display: flex; }
.server-icon {
  width: 40px;
  height: 40px;
  color: var(--blue-2);
  background: rgb(var(--blue-rgb) / .14);
  border-radius: 12px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.server-main { min-width: 0; }
.server-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.server-name {
  font-size: 14.5px;
  font-weight: 700;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-status {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(var(--ink) / .06);
  color: var(--fg-3);
}
.server-status.is-ok {
  color: #4ade80;
  background: rgb(74 222 128 / .12);
}
.server-status.is-warn {
  color: var(--amber);
  background: rgb(251 191 36 / .14);
}
.server-status.is-off {
  color: var(--red, #ff5a52);
  background: rgb(248 113 113 / .14);
}
.server-meta {
  color: var(--fg-3);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 3px;
  font-size: 12px;
  display: flex;
}
.server-meta > span:not(:last-child)::after {
  content: '·';
  margin-left: 10px;
  opacity: .55;
}
.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: auto;
}
.server-foot {
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  display: flex;
}
.chip {
  background: rgb(var(--ink) / .05);
  border: 1px solid var(--line);
  height: 28px;
  color: var(--fg-2);
  border-radius: 99px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
}
.ring {
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  line-height: 1;
  display: inline-flex;
  position: relative;
}
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3px; }
.ring circle:first-child { stroke: rgb(var(--ink) / .1); }
.ring circle:last-child {
  stroke: var(--blue);
  stroke-linecap: round;
  transition: stroke-dasharray .8s var(--ease);
}
.ring.warn circle:last-child { stroke: var(--amber); }
.ring.err circle:last-child { stroke: var(--red, #ff5a52); }
.ring b { font-size: 14px; font-weight: 800; }
.ring em { color: var(--fg-3); font-size: 9px; font-style: normal; }

.badge {
  white-space: nowrap;
  background: rgb(var(--ink) / .08);
  height: 24px;
  color: var(--fg-2);
  border-radius: 99px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
}
.badge i { background: currentColor; border-radius: 50%; width: 6px; height: 6px; }
.badge.ok { color: var(--green); background: #4ade8021; }
.badge.warn, .badge.is-off { color: var(--amber); background: #fbbf2424; }

.empty {
  text-align: center;
  border-radius: 26px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 24px;
  display: flex;
}
.empty .muted { max-width: 380px; margin-bottom: 8px; }
.empty-icon {
  width: 60px;
  height: 60px;
  color: var(--blue-2);
  background: rgb(var(--blue-rgb) / .13);
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
  display: inline-flex;
}
.empty-line { text-align: center; color: var(--fg-3); padding: 24px 10px; font-size: 14px; }

.two-col {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  display: grid;
}
.two-col-main, .two-col-side { flex-direction: column; gap: 18px; min-width: 0; display: flex; }
.bill-card {
  border-radius: 26px;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  display: flex;
}
.bill-amount {
  font-family: var(--display);
  letter-spacing: -.04em;
  font-size: clamp(38px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}
.bill-mini { flex-wrap: wrap; gap: 22px; margin-top: 14px; display: flex; }
.bill-mini span { flex-direction: column; gap: 2px; display: flex; }
.bill-mini em { color: var(--fg-3); font-size: 12px; font-style: normal; }

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 18px;
  align-items: start;
}
.wallet-hero {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.wallet-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.wallet-topup,
.wallet-plans { min-width: 0; }
.wallet-amts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 14px;
}
.wallet-amt {
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
  color: var(--fg);
  font-weight: 700;
  font-family: var(--display);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s ease;
}
.wallet-amt.is-on {
  border-color: rgb(var(--blue-rgb) / .7);
  background: rgb(var(--blue-rgb) / .14);
  color: var(--blue-2);
}
.wallet-custom-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.wallet-custom-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wallet-custom-field input {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  color: var(--fg);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}
.wallet-custom-field input:focus {
  border-color: rgb(var(--blue-rgb) / .7);
  box-shadow: 0 0 0 4px rgb(var(--blue-rgb) / .16);
}

.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.sheet-modal[hidden] { display: none !important; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: #05070dcc;
  backdrop-filter: blur(8px);
}
.sheet-card {
  position: relative;
  width: min(100%, 460px);
  max-height: min(88dvh, 720px);
  overflow: auto;
  border-radius: 24px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: umenuIn .35s var(--spring);
  margin-bottom: 8px;
}
.sheet-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--fg-3);
  background: rgb(var(--ink) / .06);
  border: 0;
  cursor: pointer;
}
.cp-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(251 191 36 / .12);
  color: var(--amber);
  font-size: 13px;
}
.cp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cp-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
  color: var(--fg);
  cursor: pointer;
}
.cp-opt.is-on {
  border-color: rgb(var(--blue-rgb) / .7);
  background: rgb(var(--blue-rgb) / .12);
}
.cp-opt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-opt__name { font-weight: 700; }
.cp-opt__spec { color: var(--fg-3); font-size: 12.5px; }
.cp-opt__cost { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.cp-opt__sum { font-weight: 800; font-family: var(--display); }
.cp-opt__note { color: var(--fg-3); font-size: 11.5px; }
.cp-opt__cost--back .cp-opt__sum { color: var(--green); }
.cp-summary {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-diff { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-diff__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.cp-diff__row dt { color: var(--fg-3); }
.cp-diff__from { color: var(--fg-3); text-decoration: line-through; margin-right: 6px; }
.cp-pay {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.cp-pay__lbl { color: var(--fg-3); font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.cp-pay__lbl small { font-size: 12px; opacity: .85; }
.cp-pay__val { font-family: var(--display); font-weight: 800; font-size: 18px; }
.cp-pay.is-back .cp-pay__val { color: var(--green); }
.cp-pay.is-short .cp-pay__val { color: var(--amber); }
.cp-warn, .cp-fine { margin: 0; color: var(--fg-3); font-size: 12.5px; line-height: 1.4; }
.cp-warn { color: var(--amber); }

.connect-qr-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  align-self: center;
}
.connect-qr-wrap img {
  width: 200px;
  height: 200px;
  display: block;
}
.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.connect-actions .btn { flex: 1 1 140px; }

.server-actions .btn-connect {
  min-width: 72px;
}
.server-traffic { color: var(--fg-2); font-weight: 600; }
.devices-head {
  align-items: center;
  margin-bottom: 14px;
}
.devices-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.server-del {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--fg-3);
  background: rgb(var(--ink) / .05);
  border: 1px solid var(--line);
  cursor: pointer;
}
.server-del:hover:not(:disabled) {
  color: var(--red, #ff5a52);
  background: rgb(248 113 113 / .12);
  border-color: rgb(248 113 113 / .28);
}
.server-del:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.server-del.is-armed {
  color: #fff;
  background: var(--red, #ff5a52);
  border-color: transparent;
}

.traffic-card { grid-column: 1 / -1; }
.traffic-left {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-2);
  white-space: nowrap;
}
.traffic-strip { display: flex; flex-direction: column; gap: 8px; }
.traffic-strip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.traffic-track {
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--ink) / .08);
  overflow: hidden;
}
.traffic-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8cff, var(--blue));
  transition: width .45s var(--ease, ease);
}

.connect-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.connect-apps .btn { flex: 1 1 140px; }
.connect-region-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(var(--blue-rgb) / .1);
  border: 1px solid rgb(var(--blue-rgb) / .2);
  color: var(--fg-2);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .wallet-layout { grid-template-columns: 1fr; }
  .wallet-amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .server-actions {
    width: 100%;
    margin-left: 0;
    padding-left: 52px;
  }
  .server-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .server-actions { padding-left: 0; }
}

.plan-picks {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  display: grid;
}
.plan-pick {
  text-align: left;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .03);
  transition: all .3s var(--ease);
  border-radius: 18px;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  display: flex;
  cursor: pointer;
  color: inherit;
}
.plan-pick:hover { border-color: var(--line-2); }
.plan-pick.is-on {
  border-color: rgb(var(--blue-rgb) / .65);
  background: rgb(var(--blue-rgb) / .12);
}
.plan-pick b { font-size: 15px; }
.plan-pick em {
  font-family: var(--display);
  font-style: normal;
  letter-spacing: -.03em;
  margin: 4px 0;
  font-size: 22px;
  font-weight: 800;
}
.plan-pick span { color: var(--fg-3); font-size: 12.5px; }
.pay-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pick {
  height: 42px;
  color: var(--fg-2);
  background: rgb(var(--ink) / .05);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.pay-pick.is-on {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
  box-shadow: 0 6px 16px -8px rgb(var(--blue-rgb) / .9);
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.acc-grid > .panel {
  min-width: 0;
}
.profile-card { flex-wrap: wrap; align-items: center; gap: 22px; display: flex; }
.acc-email-view { margin-top: 12px; }
.acc-email-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.acc-email-now-static { margin-bottom: 12px; }
.acc-email-now-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.acc-email-now-text b {
  font-size: 15px;
  font-weight: 700;
  word-break: break-all;
}
.acc-email-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.acc-email-form[hidden],
.acc-email-view[hidden],
.acc-email-code[hidden] { display: none !important; }
.acc-email-new-label {
  display: block;
  margin: 0;
}
.acc-email-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.acc-email-field {
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}
.acc-email-edit-row .linkish-soft {
  color: var(--fg-3);
  font-weight: 500;
  font-size: 13.5px;
  text-decoration: none;
  padding: 6px 4px;
}
.acc-email-edit-row .linkish-soft:hover {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acc-email-code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.acc-pwd-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.acc-pwd-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-pwd-item[hidden] { display: none !important; }
.acc-pwd-label {
  margin: 0;
  color: var(--fg-3);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
}
.acc-pwd-field {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 6px 8px 6px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.acc-pwd-field:focus-within {
  border-color: rgb(var(--blue-rgb) / .7);
  box-shadow: 0 0 0 4px rgb(var(--blue-rgb) / .16);
  background: rgb(var(--ink) / .07);
}
.acc-pwd-field input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: none;
  background: transparent !important;
  color: var(--fg);
  font-size: 16px;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.acc-pwd-field input:-webkit-autofill,
.acc-pwd-field input:-webkit-autofill:hover,
.acc-pwd-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg) !important;
  transition: background-color 99999s ease-out 0s;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}
#acc-password-card .btn-primary {
  align-self: flex-start;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  margin-top: 2px;
}
html[data-theme="light"] .cab2 .glass {
  background: linear-gradient(#ffffffd1, #ffffff8c);
  border-color: #ffffffe6;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px #1e32640f, var(--shadow);
}
html[data-theme="light"] .dock {
  background: linear-gradient(#ffffffdb, #f0f4fce6) !important;
  box-shadow: inset 0 1px #fff, 0 20px 50px -18px #1e326459;
}
html[data-theme="light"] .toast {
  background: linear-gradient(#fffffff5, #f6f8fcf7);
}
.btn-danger-glass {
  color: #fff;
  backdrop-filter: blur(18px);
  background: linear-gradient(#ff50482e, #e0382f1a);
  border: 1px solid #ff5a5266;
  box-shadow: inset 0 1px #ffffff24;
}
.btn-danger-glass:hover {
  background: linear-gradient(#ff6a62, #e0382f);
  border-color: #ff6a62;
}
.cab-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.cab-switch input {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: rgb(var(--ink) / .14);
  border: 1px solid var(--line-2);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.cab-switch input::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform .3s var(--spring);
  box-shadow: 0 2px 6px #0000004d;
}
.cab-switch input:checked {
  background: var(--blue);
  border-color: transparent;
}
.cab-switch input:checked::after { transform: translateX(18px); }

.stat-label {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 600;
}
.spread { justify-content: space-between; align-items: center; gap: 12px; display: flex; }
.row { align-items: center; gap: 12px; display: flex; }
.grow { flex: 1; min-width: 0; }
.truncate { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.num { font-variant-numeric: tabular-nums; }
.hint { color: var(--fg-3); font-size: 12.5px; line-height: 1.5; }
.btn-block { width: 100%; }
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg); background: rgb(var(--ink) / .06); }

/* Boot loader */
.cab-boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}
.cab-boot[hidden] { display: none !important; }
.cab-boot-mark {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(180deg, rgb(var(--ink) / .09), rgb(var(--ink) / .02));
  border: 1px solid rgb(var(--ink) / .1);
}
.cab-boot-ring {
  position: absolute;
  inset: -12px;
  border-radius: 36px;
  border: 1px solid rgb(var(--blue-rgb) / .4);
  animation: ringPulse 2.4s var(--ease) infinite;
}
.cab-boot-spin {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgb(var(--blue-rgb) / .25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: .75s linear infinite spin;
}
.cab-boot-txt {
  color: var(--fg-2);
  font-size: 14.5px;
  margin: 0;
}

/* Auth */
.auth2,
.gate2 {
  flex-direction: column;
  min-height: 100dvh;
  display: flex;
  position: relative;
  overflow: hidden;
}
.auth2[hidden],
.gate2[hidden],
.guest2[hidden] { display: none !important; }

.gate2-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 22px 48px;
  text-align: center;
  animation: apRise .9s var(--ease) both;
}
.gate2-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}
.gate2-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.1;
  color: var(--fg);
}
.gate2-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-2);
  line-height: 1.35;
}
.gate2-sub {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-3);
  line-height: 1.45;
  max-width: 320px;
}
.gate2-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(320px, 100%);
}
.gate2-actions .btn {
  width: 100%;
  height: 50px;
  font-size: 15.5px;
}
.gate2-foot {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
}
.gate2-foot a {
  color: var(--fg-3);
  transition: color .2s ease;
}
.gate2-foot a:hover { color: var(--fg); }
.auth2-top {
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  display: flex;
}
.auth2-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgb(var(--ink) / .06);
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--fg-2);
  border-radius: 11px;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.auth-tab.is-on {
  background: rgb(var(--ink) / .1);
  color: var(--fg);
  box-shadow: inset 0 1px 0 #ffffff14;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.auth2-main {
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 10px 16px 50px;
  display: flex;
}
.auth2-mark {
  background: linear-gradient(180deg, rgb(var(--ink) / .09), rgb(var(--ink) / .02));
  border: 1px solid rgb(var(--ink) / .1);
  width: 84px;
  height: 84px;
  box-shadow: 0 20px 50px -20px rgb(var(--blue-rgb) / .7);
  border-radius: 24px;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}
.auth2-mark .brand-mark,
.cab-boot-mark .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.auth2-ring {
  border: 1px solid rgb(var(--blue-rgb) / .35);
  animation: ringPulse 3.2s var(--ease) infinite;
  border-radius: 38px;
  position: absolute;
  inset: -14px;
}
.auth2-ring.r2 { animation-delay: 1.6s; }
@keyframes ringPulse {
  0% { opacity: .9; transform: scale(.85); }
  to { opacity: 0; transform: scale(1.35); }
}
.ap {
  border-radius: 30px;
  width: 100%;
  max-width: 440px;
  padding: 8px;
  animation: apRise .9s var(--ease) both;
  overflow: hidden;
}
@keyframes apRise {
  0% { opacity: 0; filter: blur(8px); transform: translateY(18px) scale(.97); }
}
.ap-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: height .45s cubic-bezier(.22, 1, .36, 1);
}
.ap-track {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.ap-slider[data-step="code"] .ap-track {
  transform: translateX(-50%);
}
.ap-slider.no-anim .ap-track {
  transition: none !important;
}
.ap-pane {
  width: 50%;
  flex: 0 0 50%;
  min-width: 0;
  box-sizing: border-box;
}
.ap-body { padding: 24px 22px 22px; }
.ap-resend {
  margin: 4px 0 0;
  color: var(--fg-3);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.ap-resend-btn {
  color: var(--blue-2);
  background: none;
  border: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ap-resend-btn:hover:not(:disabled) { text-decoration: underline; }
.ap-resend-btn:disabled {
  opacity: .55;
  cursor: default;
  text-decoration: none;
}
.ap-resend-btn.is-busy {
  opacity: .72;
  filter: brightness(.85);
  cursor: wait;
  pointer-events: none;
}
.ap-resend-btn .btn-spin {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: .7s linear infinite spin;
}
@media (prefers-reduced-motion: reduce) {
  .ap-track { transition: none; }
}
.ap-head h1 {
  font-family: var(--display);
  letter-spacing: -.03em;
  font-size: 28px;
  font-weight: 800;
}
.ap-head p { color: var(--fg-2); margin-top: 6px; font-size: 14.5px; }
.ap-head.center { text-align: center; }
.ap-form { flex-direction: column; gap: 12px; margin-top: 18px; display: flex; }
.ap-field {
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  height: 52px;
  color: var(--fg-3);
  border-radius: 16px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
}
.ap-field:focus-within {
  border-color: rgb(var(--blue-rgb) / .7);
  box-shadow: 0 0 0 4px rgb(var(--blue-rgb) / .16);
  color: var(--blue-2);
}
.ap-field input {
  min-width: 0;
  height: 100%;
  color: var(--fg);
  background: transparent !important;
  border: 0;
  outline: none;
  flex: 1;
  font-size: 16px;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.ap-field-pwd { padding-right: 8px; }
.pwd-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-3);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: color .2s, background .2s;
}
.pwd-toggle:hover { color: var(--fg); background: rgb(var(--ink) / .06); }
.pwd-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.pwd-toggle .eye-slash {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .38s cubic-bezier(.22, 1, .36, 1);
}
.pwd-toggle.is-on .eye-slash {
  stroke-dashoffset: 28;
}
.pwd-toggle.is-on { color: var(--blue-2); }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: lowercase;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgb(var(--ink) / .12);
}
.auth-tg {
  gap: 10px;
}
.auth-tg svg { width: 18px; height: 18px; }
.auth-tg-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0 16px;
  text-align: center;
}
.auth-tg-spin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgb(var(--blue-rgb) / .22);
  border-top-color: var(--blue);
  animation: .7s linear infinite spin;
}
.auth-tg-status {
  margin: 0;
  font-weight: 600;
  color: var(--fg);
}
.auth-tg-meta {
  margin: 0;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.4;
  max-width: 280px;
}
.auth-foot {
  margin-top: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.auth-switch,
.auth-forgot-row {
  margin: 0;
  width: 100%;
  text-align: center;
  line-height: 1.35;
}
.auth-switch {
  color: var(--fg-3);
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
}
.auth-forgot-row .linkish-soft {
  color: var(--fg-3);
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
}
.auth-forgot-row .linkish-soft:hover {
  color: var(--blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#auth-forgot-email-view[hidden],
#auth-forgot-code-view[hidden],
#auth-forgot-password-view[hidden],
#auth-login-otp-view[hidden],
#auth-main-view[hidden],
#auth-forgot-row[hidden],
#auth-lead[hidden],
#auth-email-field[hidden],
.ap-field[hidden] {
  display: none !important;
}
#acc-login-card .cab-switch {
  margin-top: 12px;
}
#acc-email-otp-switch.is-disabled {
  opacity: .55;
  cursor: not-allowed;
}
#acc-email-otp-switch.is-disabled input {
  pointer-events: none;
}
.ap-field input::placeholder { color: var(--fg-3); }
.ap-field input:-webkit-autofill,
.ap-field input:-webkit-autofill:hover,
.ap-field input:-webkit-autofill:focus,
.ap-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--fg) !important;
  caret-color: var(--fg);
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgb(12 16 26) inset !important;
  background-color: transparent !important;
}
html[data-theme="light"] .ap-field input:-webkit-autofill,
html[data-theme="light"] .ap-field input:-webkit-autofill:hover,
html[data-theme="light"] .ap-field input:-webkit-autofill:focus,
html[data-theme="light"] .ap-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #eef1f6 inset !important;
  -webkit-text-fill-color: #0c111d !important;
}
.ap-hint { color: var(--fg-3); font-size: 13px; line-height: 1.5; }
.ap-code { flex-direction: column; align-items: center; gap: 16px; display: flex; }
.ap-back {
  color: var(--fg-2);
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  display: inline-flex;
  background: none;
  border: 0;
  cursor: pointer;
}
.ap-code-ic {
  color: #fff;
  background: var(--btn-grad);
  width: 60px;
  height: 60px;
  box-shadow: 0 14px 30px -12px rgb(var(--blue-rgb) / .9);
  border-radius: 20px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.btn .btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn.is-busy {
  opacity: .72;
  filter: brightness(.72);
  cursor: wait;
  pointer-events: none;
}
.btn.is-busy .btn-spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: .7s linear infinite spin;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.code-input {
  font-family: var(--display);
  letter-spacing: .4em;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.form-msg {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  max-width: 440px;
  width: 100%;
}
.form-msg.is-bad {
  color: var(--red, #ff5a52);
  background: #ff5a521f;
  border: 1px solid #ff5a5240;
}
.form-msg:not(.is-bad):not([hidden]) {
  color: var(--fg-2);
  background: rgb(var(--ink) / .05);
  border: 1px solid var(--line);
}

.toasts {
  z-index: 100;
  pointer-events: none;
  flex-direction: column;
  gap: 10px;
  width: min(380px, 100vw - 36px);
  display: flex;
  position: fixed;
  bottom: 100px;
  right: 18px;
}
.toast {
  pointer-events: auto;
  animation: toastIn .5s var(--spring);
  border-radius: 18px;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  display: flex;
  background: linear-gradient(#181e2ef0, #0c101af5);
  border: 1px solid var(--line);
}
.toast b { font-size: 14px; display: block; }
.toast .dot {
  background: var(--blue);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 12px var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.toast.ok .dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.toast.err .dot { background: var(--red, #ff5a52); box-shadow: 0 0 12px var(--red, #ff5a52); }
.toast.wait .toast-spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue-2);
  border-right-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  animation: .7s linear infinite spin;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(14px) scale(.96); }
}

#cab-boot[hidden],
#cab-auth[hidden],
#cab-guest[hidden],
.guest2[hidden],
#cab-shell[hidden],
[data-view][hidden],
#ov-banner[hidden],
#ov-email-banner[hidden],
#ov-devices-empty[hidden],
#devices-empty[hidden],
#umenu-pop[hidden],
#cab-msg[hidden],
#guest-msg[hidden],
#guest-profile[hidden],
#guest-renew-result[hidden],
#acc-tg-link[hidden],
#acc-tg-unlink[hidden],
#acc-tg-link-box[hidden],
#acc-tg-unlink-hint[hidden],
#acc-password-login-wrap[hidden],
#acc-password-current-wrap[hidden],
#acc-email-code-wrap[hidden],
.btn[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .ov-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ov-grid, .two-col, .acc-grid { grid-template-columns: 1fr; }
  .ov-balance { min-height: 0; }
}
@media (max-width: 720px) {
  .cab2-top { padding: 10px 12px; }
  .cab2-top .brand span, .umenu-name, .umenu-btn > svg { display: none; }
  .umenu-btn { padding: 0 6px; }
  .cab2-main { padding: 10px 14px calc(110px + env(safe-area-inset-bottom, 0px)); }
  .dock {
    left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom));
    border-radius: 24px; justify-content: space-between; gap: 0; padding: 6px; transform: none;
  }
  .dock-item { flex: 1; width: auto; min-width: 0; padding: 4px 0 6px; }
  .dock-item:hover { transform: none; }
  .dock-ic { border-radius: 13px; width: 40px; height: 36px; }
  .dock-label { display: none; }
  .dock-item.on:after { bottom: 0; }
  .ov-mini { display: none; }
  .cab2-drops i:nth-child(1),
  .cab2-drops i:nth-child(3),
  .cab2-drops i:nth-child(5) { display: none; }
  .cab2::before { animation: none; }
}
@media (max-width: 480px) {
  .auth2-top { padding: 16px; }
  .ap-body { padding: 20px 14px 16px; }
  .cab2-balance { height: 36px; font-size: 13px; padding: 0 4px 0 10px; }
  .cab2-balance i { width: 26px; height: 26px; }
}
html.lite .cab2::before, html.lite .cab2-drops i { animation: none; }
html.lite .cab2-drops { display: none; }
@media (prefers-reduced-motion: reduce) {
  .cab2::before, .cab2-drops i, .dock, .page, .ap, .sheen:before, .cab-boot-spin, .cab-boot-ring { animation: none !important; }
}

/* Guest shop — subscription without registration */
.guest2 {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.guest2[hidden] { display: none !important; }
.guest2-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  z-index: 2;
}
.guest2-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guest2-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 16px 40px;
  width: 100%;
}
.guest2-card {
  width: min(560px, 100%);
  border-radius: 28px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: apRise .7s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.guest2-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 70%;
  height: 55%;
  background: radial-gradient(circle, rgb(var(--blue-rgb) / .22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.guest2-card > * { position: relative; z-index: 1; }
.guest2-kicker {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue-2);
}
.guest2-head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0;
}
.guest2-lead {
  margin: 10px 0 0;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 36em;
}
.guest-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  border-radius: 16px;
  background: rgb(var(--ink) / .07);
  border: 1px solid rgb(var(--ink) / .06);
}
.guest-switch-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(var(--ink) / .14), rgb(var(--ink) / .08));
  box-shadow: inset 0 1px 0 #ffffff18, 0 6px 16px -10px #0008;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
  z-index: 0;
}
.guest-switch[data-tab="renew"] .guest-switch-thumb {
  transform: translateX(100%);
}
.guest-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 650;
  font-size: 14.5px;
  cursor: pointer;
  transition: color .2s;
}
.guest-tab.is-on { color: var(--fg); }
.guest-pane {
  display: none;
  flex-direction: column;
  gap: 18px;
}
.guest-pane.is-on {
  display: flex;
}
#gpane-buy[hidden],
#gpane-renew[hidden],
.guest-pane[hidden],
#guest-profile[hidden],
#guest-renew-done[hidden],
#guest-renew-result[hidden],
#guest-msg[hidden] {
  display: none !important;
}
.guest-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.guest-plan {
  appearance: none;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
  border-radius: 18px;
  padding: 14px 12px 12px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  transition: border-color .2s, background .2s, transform .2s var(--spring);
}
.guest-plan:hover {
  border-color: rgb(var(--blue-rgb) / .45);
  transform: translateY(-1px);
}
.guest-plan.is-on {
  border-color: rgb(var(--blue-rgb) / .85);
  background: linear-gradient(180deg, rgb(var(--blue-rgb) / .18), rgb(var(--blue-rgb) / .05));
  box-shadow: 0 0 0 1px rgb(var(--blue-rgb) / .25), 0 16px 32px -22px rgb(var(--blue-rgb) / .7);
}
.guest-plan b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.02em;
}
.guest-plan strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: auto;
}
.guest-plan span {
  color: var(--fg-3);
  font-size: 12px;
  line-height: 1.35;
}
.guest-pay-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guest-pay-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-3);
}
.guest-methods { gap: 8px; }
.guest-cta-form { margin: 0; }
.guest-cta {
  min-height: 52px;
  font-size: 15.5px;
  border-radius: 16px;
}
.guest-renew-hint {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.45;
}
.guest-renew-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guest-id-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-3);
}
.guest-id-field input {
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  color: var(--fg);
  padding: 0 16px;
  font-size: 18px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .04em;
  outline: none;
}
.guest-id-field input:focus {
  border-color: rgb(var(--blue-rgb) / .7);
  box-shadow: 0 0 0 4px rgb(var(--blue-rgb) / .16);
}
.guest-id-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--fg) !important;
  -webkit-box-shadow: 0 0 0 1000px rgb(12 16 26) inset !important;
  transition: background-color 99999s ease-out 0s;
}
html[data-theme="light"] .guest-id-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #eef1f6 inset !important;
  -webkit-text-fill-color: #0c111d !important;
}
.guest-renew-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
}
.guest-renew-done {
  text-align: center;
  padding: 8px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.guest-renew-done-ic {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--btn-grad);
  box-shadow: 0 14px 30px -12px rgb(var(--blue-rgb) / .85);
}
.guest-renew-done h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -.03em;
}
.guest-renew-done p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.45;
  max-width: 32em;
}
.guest-profile {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgb(var(--ink) / .04);
}
.guest-profile h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -.02em;
}
.guest-msg { max-width: none; width: 100%; margin: 0; }
.guest-foot {
  text-align: center;
  margin: 0;
  color: var(--fg-3);
  font-size: 13.5px;
}
.linkish {
  background: none;
  border: 0;
  color: var(--blue-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.acc-tg-box { margin-top: 12px; }
.acc-tg-box .renew-link,
.guest-profile .renew-link {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgb(var(--ink) / .05);
  color: var(--fg);
  padding: 10px 12px;
  font-size: 13px;
  box-sizing: border-box;
}
.banner.warn + .banner.warn { margin-top: 10px; }
@media (max-width: 560px) {
  .guest2-top { padding: 16px; }
  .guest2-card { padding: 22px 16px 18px; border-radius: 24px; }
  .guest-plans { grid-template-columns: 1fr; }
  .guest-plan { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .guest-plan strong { margin-top: 0; margin-left: auto; }
  .guest-plan span { flex: 1 1 100%; }
}
