:root {
  --bg: #eef8ef;
  --card: #ffffff;
  --text: #1c2a21;
  --muted: #8f9495;
  --line: #ecf0ed;
  --green-1: #a8e7ba;
  --green-2: #66cd88;
  --green-3: #44b46d;
  --shadow: 0 10px 24px rgba(39, 88, 52, 0.08);

  --app-bg: radial-gradient(circle at 50% -40%, #f9fdf9 0%, var(--bg) 70%);
  --top-bg-url: url("icon/backstage%20for%20logo.jpg?v=2");
  /* Light theme: keep leaf background crisp (no wash overlay). */
  --top-overlay: none;
  --top-soft: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--app-bg);
  color: var(--text);
  min-height: 100vh;
}

body,
.card,
.menu-item,
.mini-item,
.theme-toggle,
.subtitle {
  transition:
    background-color 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 420ms ease,
    background 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo {
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.theme-animating .logo-stack {
  opacity: 1;
  transform: none;
}

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

.logo-area {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.logo-stack {
  position: relative;
  display: grid;
  place-items: center;
  animation: logoFloat 6.8s ease-in-out infinite;
  will-change: transform;
  margin-bottom: -12px;
}

.logo {
  grid-area: 1 / 1;
  transition: opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
}

.logo--light {
  opacity: 1 !important;
  z-index: 2;
}

.logo--dark {
  opacity: 0 !important;
  z-index: 1;
}

body[data-theme="dark"] .logo--dark {
  opacity: 1 !important;
}

body[data-theme="dark"] .logo--light {
  opacity: 0 !important;
}

body:not([data-theme="dark"]) .logo--light {
  opacity: 1 !important;
  z-index: 2;
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

.theme-toggle {
  position: absolute;
  top: -3px;
  left: -6px;
  z-index: 5;
  width: 56px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 320ms ease,
    background 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle:hover {
  filter: brightness(0.92);
  transform: scale(0.98);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle__icon {
  position: relative;
  z-index: 2;
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  transform: translateX(-10px);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), color 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  left: 4px;
  top: 3px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 16px 12px;
  position: relative;
}

.app-shell {
  overflow: visible;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: screenIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Keep profile intro overlay perfectly stable on first frame. */
#profileScreen.is-active {
  animation: none;
}

.card {
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid #f2f5f3;
}

.panel {
  padding: 14px 14px 10px;
}

.panel-section {
  position: relative;
}

.panel-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 6px 10px;
  user-select: none;
}

.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 8px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background-image:
    var(--top-soft),
    var(--top-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.top::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--top-overlay);
  pointer-events: none;
}

.top > * {
  position: relative;
  z-index: 1;
}

#mainScreen.is-active .top,
#mainScreen.is-active .plan,
#mainScreen.is-active .menu,
#mainScreen.is-active .duo {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#mainScreen.is-active .top { animation-delay: 40ms; }
#mainScreen.is-active .plan { animation-delay: 110ms; }
#mainScreen.is-active .menu { animation-delay: 170ms; }
#mainScreen.is-active .duo  { animation-delay: 230ms; }

#mainScreen.is-active .menu-item,
#mainScreen.is-active .mini-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#mainScreen.is-active .menu-item:nth-child(1) { animation-delay: 210ms; }
#mainScreen.is-active .menu-item:nth-child(2) { animation-delay: 260ms; }
#mainScreen.is-active .mini-item:nth-child(1) { animation-delay: 310ms; }
#mainScreen.is-active .mini-item:nth-child(2) { animation-delay: 360ms; }

.logo {
  width: min(320px, 100%);
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Re-run logo entrance animation reliably when returning to main. */
#mainScreen.is-active .logo-stack {
  opacity: 0;
  transform: translateY(-24px);
  animation:
    logoDropIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 90ms both,
    logoFloat 6.8s ease-in-out 900ms infinite;
}

.subtitle {
  margin-top: -18px;
  color: rgba(17, 35, 23, 0.62);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-variation-settings: "wght" 650;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(236, 240, 237, 0.9);
  backdrop-filter: blur(6px);
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.plan {
  padding: 8px 6px 2px;
}

.plan-bubbles {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 8px;
}

.plan-bubble {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px 6px 6px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(6px);
}

.plan-bubble > * {
  justify-self: center;
  text-align: center;
}

/* Главный экран: компактные название тарифа и дата (перебиваем глобальные .state / .date).
   Карточки plan-bubble--main-metric стилизуются только в блоке #appShell ниже — без класса .date. */
.panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .state {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 0;
  gap: 4px;
}

.panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .state--main-tariff {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .main-tariff-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  white-space: pre-line;
  max-width: 100%;
  word-break: break-word;
}

.panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .date.main-tariff-expires,
.panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .main-tariff-expires {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  width: 100%;
  max-width: 100%;
}

.panel-section.plan .plan-bubble .main-tariff-name,
.panel-section.plan .plan-bubble .main-tariff-expires {
  color: rgba(42, 31, 83, 0.88);
}

.panel-section.plan .plan-header-pill {
  padding: 3px 8px;
  font-size: 9px;
  max-width: 100%;
  text-align: center;
  line-height: 1.15;
}

.plan-header,
.plan-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 22px;
}

.plan-header {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.browser-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--app-bg);
}

.browser-card {
  width: min(520px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(130, 102, 216, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(39, 88, 52, 0.12);
  padding: 18px;
  display: grid;
  gap: 10px;
  position: relative;
}

.browser-theme-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

.browser-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto;
}

.browser-title {
  text-align: center;
  font-size: 22px;
}

.browser-subtitle,
.browser-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.browser-form {
  display: grid;
  gap: 10px;
}

.browser-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.browser-input {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.24);
  padding: 0 12px;
  font-size: 14px;
}

.browser-turnstile-wrap {
  display: flex;
  justify-content: center;
}

.browser-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(100deg, var(--green-3) 0%, #2f9f61 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.browser-btn--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Slightly smaller typography for web (non-Telegram) mode. */
html.mm-web-session #appShell .btn,
html.mm-web-session #appShell .pay-btn,
html.mm-web-session #appShell .purchase-method,
html.mm-web-session #appShell button {
  font-size: 16px;
}

html.mm-web-session #appShell .pay-btn-title { font-size: 15px; }
html.mm-web-session #appShell .pay-btn-sub { font-size: 12px; }
html.mm-web-session #appShell .menu-item { font-size: 16px; }
html.mm-web-session #appShell .menu-item,
html.mm-web-session #appShell .mini-item {
  min-height: 66px;
  grid-template-columns: 40px 1fr;
}
html.mm-web-session #appShell .icon {
  width: 40px;
  height: 40px;
}
html.mm-web-session #appShell .icon-img {
  width: 26px;
  height: 26px;
}
html.mm-web-session #appShell .title {
  font-size: 17px;
  line-height: 1.15;
}
html.mm-web-session #appShell .hint {
  font-size: 12px;
}

.browser-btn--mirror {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 10px;
}

.browser-forgot-btn {
  border: 0;
  background: transparent;
  color: #4f60df;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.browser-forgot-btn:active {
  transform: scale(0.97);
  opacity: 0.82;
}

.browser-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.browser-legal-btn {
  border: 0;
  background: transparent;
  color: #2f6ee8;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.browser-legal-btn:hover {
  color: #2358bf;
  opacity: 0.92;
}

.browser-legal-btn:active {
  transform: translateY(1px);
}

/* Web auth tabs (browser shell) */
.browser-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}
.browser-auth-tab {
  border: 1px solid rgba(165, 181, 217, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.browser-auth-tab:active {
  transform: scale(0.985);
}
.browser-auth-tab.is-active {
  border-color: rgba(93, 135, 255, 0.6);
  background: linear-gradient(180deg, rgba(93, 135, 255, 0.22), rgba(93, 135, 255, 0.08));
}
body[data-theme="dark"] .browser-auth-tab {
  border-color: rgba(165, 181, 217, 0.22);
  background: rgba(255, 255, 255, 0.05);
}
body[data-theme="dark"] .browser-auth-tab.is-active {
  border-color: rgba(93, 135, 255, 0.55);
  background: linear-gradient(180deg, rgba(93, 135, 255, 0.18), rgba(93, 135, 255, 0.06));
}

@media (max-width: 420px) {
  .browser-legal {
    gap: 8px 12px;
  }
}

.profile-email-btn--ghost {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(130, 102, 216, 0.32);
  color: var(--text);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.profile-email-btn--ghost:active,
.profile-email-btn--ghost.is-pressed {
  transform: translateY(1px) scale(0.985);
  opacity: 0.85;
  box-shadow: inset 0 2px 8px rgba(95, 86, 170, 0.22);
}

.auth-code-modal {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: none;
}

.auth-code-modal.is-open {
  display: block;
}

.auth-code-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 30, 0.58);
}

.auth-code-modal__card {
  position: relative;
  margin: 18vh auto 0;
  width: min(420px, calc(100% - 30px));
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(130, 102, 216, 0.2);
  padding: 16px;
}

.auth-code-modal__title { margin: 0; font-size: 18px; }
.auth-code-modal__subtitle { margin: 8px 0 12px; color: var(--muted); font-size: 13px; }
.auth-code-modal__input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.24);
  padding: 0 12px;
  letter-spacing: 3px;
  text-align: center;
  font-size: 18px;
}
.auth-code-modal__actions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-sub-devices-modal .auth-code-modal__actions { grid-template-columns: 1fr; justify-items: end; }
.profile-sub-devices-modal .auth-code-modal__btn { width: auto; min-width: 170px; }
.auth-code-modal__btn { min-height: 40px; border-radius: 12px; border: 0; cursor: pointer; }
.auth-code-modal__btn--primary { background: linear-gradient(100deg, var(--green-3) 0%, #2f9f61 100%); color: #fff; }
.auth-code-modal__btn--secondary { background: #eef0ff; color: #38407a; }
.auth-code-modal__close { position: absolute; right: 10px; top: 8px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: #7a7fa2; }

.plan-header-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(130, 102, 216, 0.26);
  background: rgba(255, 255, 255, 0.78);
  justify-self: center;
}

.right {
  text-align: right;
}

.plan .right {
  text-align: center;
  justify-self: center;
}

.plan-content .state {
  justify-self: center;
}

.state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 36px;
  font-weight: 700;
  width: 100%;
}

.state-text {
  display: inline-block;
  text-align: center;
  max-width: 100%;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.state-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #f0faf2;
}

.date {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  width: 100%;
  justify-self: center;
  text-align: center;
}

.menu {
  display: grid;
  gap: 12px;
  padding: 2px 0;
  margin-bottom: 0;
}

.menu-item,
.mini-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  min-height: 72px;
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  padding: 0 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease, filter 220ms ease;
  will-change: transform;
}

.menu-item--accent {
  background: linear-gradient(100deg, var(--green-3) 0%, #2f9f61 100%);
  border: none;
}

.menu-item--admin {
  background: linear-gradient(100deg, rgba(165, 130, 255, 0.16) 0%, rgba(214, 199, 255, 0.18) 100%);
  border-color: rgba(165, 130, 255, 0.42);
  box-shadow: 0 14px 28px rgba(132, 94, 247, 0.12);
}

.menu-item--admin .title {
  color: #1c2a21;
}

.menu-item--admin .hint {
  color: rgba(28, 42, 33, 0.72);
}

.menu-item--admin .icon {
  background: transparent;
}

body[data-theme="dark"] .menu-item.menu-item--admin {
  background: linear-gradient(100deg, rgba(112, 78, 200, 0.44) 0%, rgba(78, 55, 140, 0.30) 100%);
  border-color: rgba(165, 130, 255, 0.46);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36);
}

body[data-theme="dark"] .menu-item.menu-item--admin .title {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .menu-item.menu-item--admin .hint {
  color: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .menu-item.menu-item--admin .icon {
  background: transparent;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: transparent;
}

.icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.menu-item--accent .icon {
  background: transparent;
}

.meta {
  display: grid;
  gap: 4px;
}

.title {
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0.15px;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.hint {
  font-size: 21px;
  color: #8f9892;
  font-weight: 520;
  letter-spacing: 0.1px;
}

.menu-item--accent .title,
.menu-item--accent .hint {
  color: #fff;
}

.menu-item:hover,
.mini-item:hover {
  transform: translateY(-2px);
  filter: brightness(0.93);
  box-shadow: 0 14px 30px rgba(39, 88, 52, 0.14);
}

.menu-item:active,
.mini-item:active,
.menu-item.is-pressed,
.mini-item.is-pressed {
  transform: translateY(0) scale(0.975);
  filter: brightness(0.9);
  box-shadow: 0 8px 18px rgba(39, 88, 52, 0.1);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: -2px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mini-item {
  min-height: 72px;
  grid-template-columns: 46px 1fr;
  padding: 0 10px;
}

.mini-item .title {
  font-size: inherit;
}

.mini-item .hint {
  font-size: inherit;
}

.menu-item:focus-visible,
.mini-item:focus-visible {
  outline: 3px solid rgba(102, 205, 136, 0.35);
  outline-offset: 2px;
}

.tariff-panel {
  padding: 2px 0 0;
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.tariff-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tariff-title {
  font-size: 24px;
  font-weight: 800;
}

.tariff-back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  padding: 0;
  transition: filter 200ms ease, transform 160ms ease;
}

.tariff-back:hover {
  filter: brightness(0.95);
}

.tariff-back:active {
  transform: scale(0.96);
}

.tariff-back-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.tariff-subtitle {
  color: var(--muted);
  font-size: 16px;
}

.tariff-bubble {
  border-radius: 18px;
}

.tariff-list {
  display: grid;
  gap: 10px;
}

.tariff-list-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 14px 6px 4px;
}

.tariff-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px 46px 14px 14px;
  display: grid;
  gap: 6px;
  text-align: left;
  position: relative;
  transition:
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 260ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease,
    background 360ms ease;
}

.tariff-item--active {
  background: linear-gradient(100deg, rgba(68, 180, 109, 0.12) 0%, rgba(47, 159, 97, 0.08) 100%);
  border: 1px solid rgba(53, 163, 95, 0.85);
  box-shadow: 0 12px 26px rgba(41, 125, 76, 0.14);
  color: var(--text);
}


.tariff-item__top {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tariff-item__title {
  font-size: 24px;
  font-weight: 750;
}

.tariff-item__badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(53, 163, 95, 0.14);
  color: #2e9d63;
  border: 1px solid rgba(53, 163, 95, 0.2);
}

.tariff-item__hint {
  color: #2e9d63;
  font-size: 15px;
  font-weight: 650;
}

.tariff-item__bottom {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.tariff-item__price {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.tariff-item__devices {
  font-size: 14px;
  color: #2e9d63;
  font-weight: 650;
}

.tariff-item__selector {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #35a35f;
}

.tariff-item--active .tariff-item__badge {
  background: rgba(53, 163, 95, 0.16);
  color: #2e9d63;
  border-color: rgba(53, 163, 95, 0.26);
}

.tariff-item--active .tariff-item__hint,
.tariff-item--active .tariff-item__devices {
  color: #2e9d63;
}

.tariff-item--active .tariff-item__selector {
  border-color: #35a35f;
  box-shadow: inset 0 0 0 5px rgba(53, 163, 95, 0.95);
}

.tariff-item:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.tariff-item:active {
  transform: scale(0.985);
}

.tariff-item:focus-visible {
  outline: 3px solid rgba(102, 205, 136, 0.35);
  outline-offset: 2px;
}

.card-lite {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
}

.devices {
  display: grid;
  gap: 10px;
}

.devices-head {
  display: grid;
  gap: 4px;
}

.devices-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.devices-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.devices-price {
  color: var(--muted);
  font-size: 14px;
}

.devices-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.devices-slider-wrap {
  position: relative;
  height: 30px;
  padding-right: 7px;
}

.devices-slider::-webkit-slider-runnable-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53, 163, 95, 0.24) 0%, rgba(53, 163, 95, 0.1) 100%);
  border: 1px solid rgba(53, 163, 95, 0.22);
}

.devices-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -7px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
  opacity: 0;
}

.devices-slider::-moz-range-track {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(53, 163, 95, 0.24) 0%, rgba(53, 163, 95, 0.1) 100%);
  border: 1px solid rgba(53, 163, 95, 0.22);
}

.devices-slider::-moz-range-thumb {
  -moz-appearance: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  cursor: pointer;
  opacity: 0;
}

.slider-leaf {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  transition: left 120ms linear;
  object-fit: contain;
  /* Иначе PNG перекрывает input[type=range] — ползунок «едет», а касания не доходят до трека. */
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(41, 125, 76, 0.25));
}

.extra-dev-mode__solo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  width: 100%;
  margin-top: 10px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 16px;
  border: 1px solid rgba(140, 140, 140, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 100%);
  background-color: rgba(140, 140, 140, 0.06);
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 160ms ease,
    box-shadow 180ms ease;
}

body[data-theme="dark"] .extra-dev-mode__solo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.extra-dev-mode__solo.is-active {
  background: linear-gradient(180deg, rgba(53, 163, 95, 0.26) 0%, rgba(53, 163, 95, 0.12) 100%);
  background-color: rgba(53, 163, 95, 0.14);
  border-color: rgba(53, 163, 95, 0.38);
  color: var(--text);
  box-shadow:
    0 10px 22px rgba(53, 163, 95, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .extra-dev-mode__solo.is-active {
  background: linear-gradient(180deg, rgba(95, 209, 154, 0.24) 0%, rgba(95, 209, 154, 0.12) 100%);
  background-color: rgba(95, 209, 154, 0.16);
  border-color: rgba(95, 209, 154, 0.34);
  box-shadow:
    0 10px 24px rgba(95, 209, 154, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.extra-dev-mode__solo:active {
  transform: scale(0.985);
}

.extra-dev-mode__solo:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.devices-foot {
  font-size: 15px;
}

.tariff-inc-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.includes {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 16px;
}

.include-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  line-height: 1.35;
}

.include-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  margin-top: 2px;
}

.tariff-sticky-wrap {
  position: sticky;
  bottom: 4px;
  /* Ссылка «Чат с поддержкой» в разметке под кнопкой; z-index выше, чтобы ничто не перехватывало тапы по оплате. */
  z-index: 999;
  padding: 0 8px calc(6px + env(safe-area-inset-bottom));
  pointer-events: auto;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pay-btn {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
  border-radius: 20px;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  box-shadow: 0 16px 34px rgba(41, 125, 76, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 180ms ease, filter 220ms ease, box-shadow 280ms ease;
}

.pay-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.pay-btn:active {
  transform: scale(0.985);
  filter: brightness(0.92);
}

.pay-btn-title {
  font-size: 19px;
  font-weight: 800;
}

.pay-btn-sub {
  font-size: 14px;
  opacity: 0.96;
  letter-spacing: 0.15px;
}

.support-chat-btn {
  pointer-events: auto;
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(53, 163, 95, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(39, 88, 52, 0.12);
  transition: transform 160ms ease, filter 220ms ease, background 240ms ease;
}

.support-chat-btn--static {
  position: relative;
  z-index: 0;
  margin: 4px 8px 0;
  width: calc(100% - 16px);
}

.support-chat-btn--below-pay {
  margin: 10px 8px calc(12px + env(safe-area-inset-bottom, 0px));
}

.support-chat-btn:hover {
  filter: brightness(0.96);
}

.support-chat-btn:active {
  transform: scale(0.985);
}

.support-chat-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.support-panel {
  display: grid;
  gap: 12px;
}

.support-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-chat-card {
  display: grid;
  gap: 8px;
  text-align: center;
  padding: 16px 14px;
}

.support-chat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(53, 163, 95, 0.24);
  background: rgba(53, 163, 95, 0.08);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.support-chat-main-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.support-chat-title {
  font-size: 22px;
  font-weight: 760;
}

.support-chat-text {
  color: var(--muted);
  font-size: 15px;
}

.support-chat-main-btn {
  margin-top: 2px;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 760;
}

.setup-panel {
  display: grid;
  gap: 14px;
}

.setup-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.setup-head .tariff-title {
  flex: 1;
  text-align: center;
  margin: 0;
  padding-right: 42px;
}

.setup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.setup-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(53, 163, 95, 0.32);
  background: rgba(53, 163, 95, 0.14);
  color: #2f9f61;
  font-size: 13px;
  font-weight: 780;
  display: grid;
  place-items: center;
  transition:
    background 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 280ms ease,
    border-color 280ms ease,
    box-shadow 320ms ease,
    transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-step--active {
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 100%);
  color: #fff;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(55, 184, 109, 0.35),
    0 8px 22px rgba(41, 125, 76, 0.28);
  transform: scale(1.04);
}

.setup-step--done {
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(41, 125, 76, 0.22);
  transform: scale(1);
  font-size: 14px;
}

.setup-step-line {
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: rgba(53, 163, 95, 0.26);
  transition: background 400ms ease;
}

.setup-step-line--done {
  background: linear-gradient(90deg, #37b86d 0%, #2f9f61 100%);
  opacity: 1;
}

.setup-panel .setup-next-btn[hidden] {
  display: none !important;
}

.setup-wizard-panels {
  position: relative;
  min-height: 0;
  overflow: visible;
}

.setup-step-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
  animation: setup-panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.setup-step-panel.is-active {
  display: flex;
}

@keyframes setup-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setup-title {
  text-align: center;
  font-size: clamp(22px, 5.2vw, 28px);
  font-weight: 780;
  margin: 0;
  line-height: 1.15;
}

.setup-subtitle {
  text-align: center;
  color: #2f9f61;
  font-size: clamp(14px, 3.6vw, 17px);
  font-weight: 650;
  margin: -4px 0 0;
  line-height: 1.35;
}

/* Платформа: три карточки */
.setup-platform-row {
  display: flex;
  gap: 10px;
  justify-content: stretch;
  align-items: stretch;
  padding-top: 12px;
  overflow: visible;
}

.setup-platform-card {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 12px;
  min-height: 118px;
  border-radius: 18px;
  border: 2px solid rgba(53, 163, 95, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(39, 88, 52, 0.08);
  color: #1a6b45;
  cursor: pointer;
  font: inherit;
  transition:
    transform 220ms cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease,
    filter 220ms ease;
}

.setup-platform-card:hover {
  transform: translateY(-2px);
  filter: brightness(0.99);
  box-shadow: 0 12px 26px rgba(39, 88, 52, 0.12);
}

.setup-platform-card:active,
.setup-platform-card.is-pressed {
  transform: scale(0.97);
}

.setup-platform-card__icon {
  display: grid;
  place-items: center;
  color: #2f9f61;
  transition: color 260ms ease, transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-platform-card__icon svg {
  display: block;
}

.setup-platform-card__label {
  font-size: 14px;
  font-weight: 760;
  color: var(--text);
  line-height: 1.2;
}

.setup-platform-card--native {
  padding-top: 20px;
}

.setup-platform-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  /* Вынесено вверх из зоны иконки: частично над верхней границей карточки */
  transform: translate(-50%, calc(-72% + 1px));
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.15;
  background: linear-gradient(135deg, #f5d78a 0%, #e8b84a 100%);
  color: #5c4510;
  box-shadow:
    0 0 0 1px rgba(212, 165, 60, 0.45),
    0 6px 14px rgba(180, 130, 40, 0.22);
  animation: setup-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes setup-badge-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(212, 165, 60, 0.45),
      0 6px 14px rgba(180, 130, 40, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(212, 165, 60, 0.65),
      0 8px 20px rgba(180, 130, 40, 0.32);
  }
}

.setup-platform-card__check {
  font-size: 15px;
  font-weight: 900;
  color: #22a35c;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.34, 1.4, 0.64, 1);
  line-height: 1;
  margin-top: -2px;
}

.setup-platform-card--active .setup-platform-card__check {
  opacity: 1;
  transform: scale(1);
}

.setup-platform-card--active {
  border-color: rgba(46, 184, 140, 0.85);
  background: linear-gradient(165deg, rgba(68, 180, 140, 0.18) 0%, rgba(47, 159, 120, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(55, 200, 160, 0.25),
    0 14px 32px rgba(41, 125, 100, 0.18);
}

.setup-platform-card--active .setup-platform-card__icon {
  color: #0d8f6a;
  transform: scale(1.06);
}

.setup-platform-card--native:not(.setup-platform-card--active) {
  border-color: rgba(212, 165, 60, 0.65);
  box-shadow:
    0 0 0 1px rgba(232, 190, 90, 0.35),
    0 10px 24px rgba(180, 130, 40, 0.12);
}

/* Список ОС / устройств */
.setup-devices-block {
  margin-top: 4px;
}

.setup-devices-title {
  text-align: center;
  color: #2f9f61;
  font-size: 15px;
  font-weight: 720;
  margin: 0 0 10px;
}

.setup-devices-list {
  display: grid;
  gap: 10px;
}

.setup-device-item {
  border: 2px solid rgba(53, 163, 95, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  min-height: 54px;
  padding: 12px 16px;
  padding-right: 52px;
  text-align: left;
  position: relative;
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition:
    transform 220ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 240ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease,
    background 320ms ease;
}

.setup-device-item:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.setup-device-item:active,
.setup-device-item.is-pressed {
  transform: scale(0.985);
}

.setup-device-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.setup-device-item__label {
  flex: 1;
  min-width: 0;
}

.setup-device-item__native-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 780;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5d78a 0%, #e8b84a 100%);
  color: #5c4510;
  box-shadow: 0 2px 8px rgba(180, 130, 40, 0.2);
}

.setup-device-item__check {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) scale(0.7);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(53, 163, 95, 0.45);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: transparent;
  transition:
    transform 300ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background 260ms ease,
    border-color 260ms ease,
    color 200ms ease;
}

.setup-device-item--active .setup-device-item__check {
  transform: translateY(-50%) scale(1);
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 100%);
  border-color: transparent;
  color: #fff;
}

.setup-device-item--active .setup-device-item__check::after {
  content: "✓";
}

.setup-device-item--active {
  border-color: rgba(46, 184, 130, 0.8);
  background: linear-gradient(100deg, rgba(68, 180, 130, 0.14) 0%, rgba(47, 159, 120, 0.07) 100%);
  box-shadow: 0 12px 28px rgba(41, 125, 90, 0.12);
}

.setup-device-item--native:not(.setup-device-item--active) {
  border-color: rgba(212, 165, 60, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 190, 90, 0.2);
}

/* Шаг 2: выбор клиента VPN */
.setup-step2-main-title {
  margin-bottom: -2px;
}

.setup-step2-lead {
  text-align: center;
  margin: 0;
  padding: 0 4px;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 620;
  line-height: 1.45;
  color: rgba(42, 31, 83, 0.88);
}

.setup-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.setup-app-card {
  width: 100%;
  border: 2px solid rgba(53, 163, 95, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  padding-right: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition:
    border-color 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    background 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 320ms ease,
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-app-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(41, 125, 90, 0.1);
}

.setup-app-card:active,
.setup-app-card.is-pressed {
  transform: scale(0.992);
}

.setup-app-card__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.setup-app-card__title {
  font-size: 18px;
  font-weight: 780;
}

.setup-app-card__desc {
  font-size: 13px;
  font-weight: 640;
  line-height: 1.38;
  color: #248f5c;
  opacity: 0.92;
}

.setup-app-card__mark {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) scale(0.88);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(53, 163, 95, 0.42);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: transparent;
  transition:
    transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background 260ms ease,
    border-color 260ms ease,
    color 200ms ease;
}

.setup-app-card--active .setup-app-card__mark {
  transform: translateY(-50%) scale(1);
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 100%);
  border-color: transparent;
  color: #fff;
}

.setup-app-card--active .setup-app-card__mark::after {
  content: "✓";
}

.setup-app-card--active {
  border-color: rgba(46, 184, 130, 0.82);
  background: linear-gradient(100deg, rgba(68, 180, 130, 0.13) 0%, rgba(47, 159, 120, 0.06) 100%);
  box-shadow: 0 12px 28px rgba(41, 125, 90, 0.12);
}

.setup-step2-notice {
  margin-top: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(53, 163, 95, 0.38);
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.48;
  color: rgba(42, 31, 83, 0.9);
}

.setup-step2-notice strong {
  font-weight: 780;
}

.setup-step2-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 4px;
}

.setup-step2-install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff !important;
  font-size: 18px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(41, 125, 76, 0.24);
  transition: transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1), filter 220ms ease;
}

.setup-step2-install-btn:hover {
  filter: brightness(0.97);
}

.setup-step2-install-btn:active {
  transform: scale(0.987);
}

.setup-step2-install-icon {
  display: grid;
  place-items: center;
}

.setup-step2-install-icon svg {
  display: block;
}

.setup-step2-foot-btn {
  min-height: 50px;
  border-radius: 16px;
  border: 2px solid rgba(53, 163, 95, 0.45);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 17px;
  font-weight: 720;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background 260ms ease,
    border-color 260ms ease;
}

.setup-step2-foot-btn--next:hover .setup-step2-foot-arrow {
  transform: translateX(4px);
}

.setup-step2-foot-arrow {
  font-size: 1.15em;
  font-weight: 900;
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-step2-foot-btn:active,
.setup-step2-foot-btn.is-pressed {
  transform: scale(0.987);
}

.setup-step2-foot-btn--ghost {
  background: rgba(255, 255, 255, 0.35);
}

.setup-step2-chat-icon {
  font-size: 1.1em;
  line-height: 1;
}

.setup-step2-back-only {
  background: transparent;
  border: none;
  color: #2f9f61;
  font-size: 16px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Шаг 3: импорт подписки */
.setup-step3-title {
  margin-bottom: 6px;
}

.setup-step3-lead {
  text-align: center;
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 620;
  line-height: 1.45;
  color: rgba(42, 31, 83, 0.88);
}

.setup-step3-pick-label {
  margin: 14px 0 10px;
  font-size: 15px;
  font-weight: 720;
  color: var(--text);
  text-align: center;
}

.setup-step3-key-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.setup-step3-key-card {
  width: 100%;
  border: 2px solid rgba(53, 163, 95, 0.28);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  padding-right: 54px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition:
    border-color 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    background 320ms cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 320ms ease,
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-step3-key-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(41, 125, 90, 0.1);
}

.setup-step3-key-card:active {
  transform: scale(0.992);
}

.setup-step3-key-card__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.setup-step3-key-card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.setup-step3-key-card__title {
  font-size: 17px;
  font-weight: 780;
  line-height: 1.25;
}

.setup-step3-key-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(53, 163, 95, 0.16);
  color: #248f5c;
  border: 1px solid rgba(53, 163, 95, 0.35);
}

.setup-step3-key-badge--trial {
  background: rgba(212, 165, 60, 0.18);
  color: #9a6d1a;
  border-color: rgba(212, 165, 60, 0.45);
}

.setup-step3-key-card__exp {
  font-size: 13px;
  font-weight: 640;
  color: rgba(42, 31, 83, 0.72);
}

.setup-step3-key-card__mark {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%) scale(0.88);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(53, 163, 95, 0.42);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: transparent;
  transition:
    transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background 260ms ease,
    border-color 260ms ease,
    color 200ms ease;
}

.setup-step3-key-card--active .setup-step3-key-card__mark {
  transform: translateY(-50%) scale(1);
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 100%);
  border-color: transparent;
  color: #fff;
}

.setup-step3-key-card--active .setup-step3-key-card__mark::after {
  content: "✓";
}

.setup-step3-key-card--active {
  border-color: rgba(46, 184, 130, 0.82);
  background: linear-gradient(100deg, rgba(68, 180, 130, 0.13) 0%, rgba(47, 159, 120, 0.06) 100%);
  box-shadow: 0 12px 28px rgba(41, 125, 90, 0.12);
}

.setup-step3-empty {
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(42, 31, 83, 0.75);
  margin: 8px 0 16px;
}

.setup-step3-ready {
  border-radius: 18px;
  border: 1px solid rgba(53, 163, 95, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 250, 247, 0.88) 100%);
  padding: 22px 18px 20px;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(39, 88, 52, 0.08);
}

.setup-step3-ready-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #2f9f61;
  background: rgba(53, 163, 95, 0.12);
  border: 1px dashed rgba(53, 163, 95, 0.35);
}

.setup-step3-ready-title {
  font-size: 18px;
  font-weight: 820;
  margin-bottom: 8px;
  color: var(--text);
}

.setup-step3-ready-desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.48;
  color: rgba(42, 31, 83, 0.82);
}

.setup-step3-add-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(41, 125, 76, 0.24);
  transition: transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1), filter 220ms ease, opacity 200ms ease;
}

.setup-step3-add-btn:hover:not(:disabled) {
  filter: brightness(0.97);
}

.setup-step3-add-btn:active:not(:disabled) {
  transform: scale(0.987);
}

.setup-step3-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.setup-step3-add-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.setup-step3-add-icon {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  display: inline-block;
  transform: translateY(-1px);
}

.setup-step3-support {
  margin-top: 4px;
  margin-bottom: 6px;
}

.setup-step3-manual {
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid rgba(53, 163, 95, 0.28);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  isolation: isolate;
}

.setup-step3-manual-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 720;
  cursor: pointer;
  text-align: left;
  transition: background 220ms ease;
}

.setup-step3-manual-toggle:hover {
  background: rgba(53, 163, 95, 0.06);
}

.setup-step3-manual-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(53, 163, 95, 0.65);
  border-bottom: 2px solid rgba(53, 163, 95, 0.65);
  transform: rotate(45deg);
  transition: transform 0.38s cubic-bezier(0.2, 0.75, 0.2, 1);
  margin-top: -3px;
}

.setup-step3-manual.is-open .setup-step3-manual-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.setup-step3-manual-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.2, 0.75, 0.2, 1);
  overflow: hidden;
}

.setup-step3-manual.is-open .setup-step3-manual-panel {
  grid-template-rows: 1fr;
}

.setup-step3-manual-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 16px 16px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.2, 0.75, 0.2, 1),
    visibility 0s linear;
}

.setup-step3-manual:not(.is-open) .setup-step3-manual-inner {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 140ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.setup-step3-manual-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f9f61;
  margin-bottom: 8px;
}

.setup-step3-key-url {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(53, 163, 95, 0.22);
  color: rgba(42, 31, 83, 0.88);
  margin-bottom: 12px;
  max-height: 120px;
  overflow: auto;
}

.setup-step3-copy-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(53, 163, 95, 0.4);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
  transition: transform 200ms ease, background 220ms ease;
}

.setup-step3-copy-btn:hover:not(:disabled) {
  background: rgba(53, 163, 95, 0.08);
}

.setup-step3-copy-btn:active:not(:disabled) {
  transform: scale(0.987);
}

.setup-step3-copy-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.setup-step3-copy-glyph {
  font-size: 1.15em;
  opacity: 0.85;
}

.setup-step3-how-title {
  font-size: 15px;
  font-weight: 780;
  margin-bottom: 10px;
  color: var(--text);
}

.setup-step3-how-list {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.48;
  color: rgba(42, 31, 83, 0.88);
}

.setup-step3-how-list li::marker {
  color: #2f9f61;
  font-weight: 800;
}

.setup-step3-done {
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(53, 163, 95, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 250, 247, 0.88) 100%);
  padding: 24px 18px 18px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(39, 88, 52, 0.08);
}

.setup-step3-done-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2fc88b 0%, #2f9f61 100%);
  box-shadow: 0 14px 30px rgba(41, 125, 90, 0.28);
}

.setup-step3-done-title {
  font-size: 36px;
  font-weight: 820;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.setup-step3-done-text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.48;
  color: rgba(42, 31, 83, 0.82);
}

.setup-step3-done-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 780;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 14px 30px rgba(41, 125, 76, 0.24);
}

.setup-placeholder-card {
  border-radius: 18px;
  border: 1px solid rgba(53, 163, 95, 0.22);
  background: rgba(255, 255, 255, 0.75);
  padding: 18px 16px;
  box-shadow: 0 8px 22px rgba(39, 88, 52, 0.06);
}

.setup-placeholder-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.88;
}

.setup-next-btn {
  margin-top: 6px;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 760;
  box-shadow: 0 16px 30px rgba(41, 125, 76, 0.26);
  transition:
    transform 200ms cubic-bezier(0.34, 1.4, 0.64, 1),
    filter 220ms ease,
    box-shadow 260ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.setup-next-btn__arrow {
  font-size: 1.15em;
  font-weight: 900;
  transition: transform 280ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.setup-next-btn:hover {
  filter: brightness(0.97);
}

.setup-next-btn:hover .setup-next-btn__arrow {
  transform: translateX(3px);
}

.setup-next-btn:active {
  transform: scale(0.985);
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.admin-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.admin-menu {
  display: grid;
  gap: 10px;
}

.admin-catalog-grid {
  display: grid;
  gap: 12px;
}

.admin-benefit-grid {
  display: grid;
  gap: 12px;
}

.admin-catalog-card,
.admin-subscriptions-add {
  border: 1px solid rgba(130, 102, 216, 0.28);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(169, 139, 255, 0.14) 0%, rgba(207, 187, 255, 0.16) 100%);
  min-height: 82px;
  width: 100%;
  text-align: left;
  padding: 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(93, 63, 182, 0.12);
  transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease, box-shadow 220ms ease;
}

/* Add button in "Подписки" menu */
.admin-subscriptions-add {
  place-items: center;
  text-align: center;
  font-size: 18px;
  font-weight: 750;
  min-height: 64px;
  transform: scale(0.96);
  color: #4e2c97;
  background: linear-gradient(120deg, rgba(178, 152, 255, 0.28) 0%, rgba(215, 198, 255, 0.3) 100%);
}

.admin-catalog-card__title {
  font-size: 19px;
  font-weight: 760;
  color: #2a1f53;
}

.admin-catalog-card__hint {
  font-size: 13px;
  color: rgba(42, 31, 83, 0.7);
}

.admin-catalog-card:hover,
.admin-subscriptions-add:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.admin-stock-placeholder {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-stock-placeholder__title {
  font-size: 20px;
  font-weight: 760;
}

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

.benefit-card {
  margin-top: 10px;
  padding: 12px 12px 12px;
}

.benefit-card__title {
  font-size: 16px;
  font-weight: 820;
  color: #2a1f53;
}

.benefit-card__title--small {
  font-size: 14px;
}

.benefit-card__sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(42, 31, 83, 0.86);
}

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

.benefit-grid--dates {
  margin-top: 10px;
}

.benefit-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.benefit-field--top-gap {
  margin-top: 10px;
}

.benefit-field--accordion {
  align-content: start;
}

.benefit-field__label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(42, 31, 83, 0.82);
}

.benefit-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.34);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.benefit-input:focus {
  border-color: rgba(130, 102, 216, 0.55);
  box-shadow: 0 0 0 2px rgba(130, 102, 216, 0.12);
}

.benefit-input::placeholder {
  color: rgba(42, 31, 83, 0.55);
}

.benefit-number {
  display: grid;
  gap: 8px;
}

/* Hide native number spinners (use quick chips instead). */
.benefit-input--number::-webkit-outer-spin-button,
.benefit-input--number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.benefit-input--number {
  -moz-appearance: textfield;
  appearance: textfield;
}

.benefit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.benefit-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: rgba(165, 130, 255, 0.1);
  color: #2a1f53;
  font-weight: 760;
  cursor: pointer;
}

.benefit-chip:hover {
  filter: brightness(0.98);
  border-color: rgba(130, 102, 216, 0.45);
}

.benefit-chip:active {
  transform: scale(0.985);
}

.benefit-time {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.06);
  padding: 10px 10px 10px;
}

.benefit-time__head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.benefit-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.9);
  user-select: none;
}

.benefit-switch--range {
  margin-top: 10px;
}

.benefit-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.benefit-switch__ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(130, 102, 216, 0.34);
  background: rgba(255, 255, 255, 0.9);
  position: relative;
  flex-shrink: 0;
}

.benefit-switch__ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(120, 79, 224, 0.55);
  transition: left 180ms ease, background 180ms ease;
}

.benefit-switch input:checked + .benefit-switch__ui::after {
  left: 21px;
  background: rgba(55, 184, 109, 0.7);
}

.benefit-switch__label {
  line-height: 1.25;
}

.benefit-submit {
  margin-top: 12px;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.35);
  background: linear-gradient(135deg, rgba(120, 79, 224, 0.9) 0%, rgba(165, 130, 255, 0.9) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 820;
  cursor: pointer;
}

.benefit-submit:active,
.benefit-submit.is-pressed {
  transform: scale(0.99);
}

.benefit-mini-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.58);
  line-height: 1.35;
  text-align: center;
}

.benefit-plan-pick {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.benefit-plan-btn {
  width: 100%;
  text-align: left;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 240, 255, 0.96) 100%);
  padding: 12px 13px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(93, 63, 182, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.benefit-plan-btn:hover {
  border-color: rgba(130, 102, 216, 0.54);
  filter: brightness(0.995);
  box-shadow: 0 10px 24px rgba(93, 63, 182, 0.12);
}

.benefit-plan-btn:active,
.benefit-plan-btn.is-active {
  border-color: #11c34a;
  background: linear-gradient(135deg, rgba(17, 195, 74, 0.16) 0%, rgba(177, 150, 255, 0.18) 100%);
  box-shadow: 0 0 0 2px rgba(17, 195, 74, 0.28);
}

.benefit-plan-btn__title {
  font-size: 14px;
  font-weight: 820;
  color: #2a1f53;
  line-height: 1.25;
}

.benefit-plan-btn__meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.82);
  line-height: 1.3;
}

.benefit-list-head {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.benefit-list-head__title {
  font-size: 14px;
  font-weight: 820;
  color: #2a1f53;
}

.benefit-refresh {
  width: 40px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 16px;
}

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

.benefit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.benefit-row__text {
  min-width: 0;
  flex: 1;
}

.benefit-row__code {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #2a1f53;
}

.benefit-row__meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.82);
  line-height: 1.3;
  white-space: pre-line;
}

.benefit-row__del {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(183, 68, 68, 0.45);
  background: rgba(255, 236, 236, 0.95);
  cursor: pointer;
  font-size: 18px;
}

body[data-theme="dark"] .benefit-card__title,
body[data-theme="dark"] .benefit-list-head__title,
body[data-theme="dark"] .benefit-row__code,
body[data-theme="dark"] .benefit-plan-btn__title {
  color: #f0e9ff;
}

body[data-theme="dark"] .benefit-card__sub,
body[data-theme="dark"] .benefit-mini-note,
body[data-theme="dark"] .benefit-plan-btn__meta,
body[data-theme="dark"] .benefit-row__meta,
body[data-theme="dark"] .benefit-switch {
  color: rgba(240, 233, 255, 0.86);
}

body[data-theme="dark"] .benefit-input,
body[data-theme="dark"] .benefit-plan-btn,
body[data-theme="dark"] .benefit-refresh,
body[data-theme="dark"] .benefit-row,
body[data-theme="dark"] .benefit-chip {
  background: rgba(28, 31, 36, 0.92);
  border-color: rgba(165, 130, 255, 0.34);
  color: #f0e9ff;
}

body[data-theme="dark"] .benefit-plan-btn.is-active {
  border-color: #28ff74;
  box-shadow: 0 0 0 2px rgba(40, 255, 116, 0.42), 0 0 22px rgba(40, 255, 116, 0.22);
  background: linear-gradient(135deg, rgba(40, 255, 116, 0.17) 0%, rgba(82, 65, 132, 0.34) 100%);
}

body[data-theme="dark"] .benefit-time {
  background: rgba(165, 130, 255, 0.1);
  border-color: rgba(165, 130, 255, 0.32);
}

body[data-theme="dark"] .benefit-switch__ui {
  background: rgba(28, 31, 36, 0.92);
  border-color: rgba(165, 130, 255, 0.34);
}

.benefit-grid--dates-stack {
  grid-template-columns: minmax(0, 1fr);
}

.benefit-collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 180ms ease, transform 200ms ease;
}

.benefit-collapse.is-open {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}

body[data-theme="dark"] .benefit-field__label {
  color: rgba(240, 233, 255, 0.86);
}

body[data-theme="dark"] .benefit-input::placeholder {
  color: rgba(240, 233, 255, 0.55);
}

.admin-subscriptions-list {
  display: grid;
  gap: 10px;
}

.admin-plan-card {
  border-radius: 16px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 240, 255, 0.92) 100%);
  box-shadow: 0 10px 22px rgba(93, 63, 182, 0.14);
  padding: 12px 12px 12px 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
}

.admin-plan-card__main {
  display: grid;
  gap: 7px;
}

.admin-plan-card__title-row {
  display: flex;
  gap: 8px;
  align-items: start;
}

.admin-plan-card__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-plan-card__title,
.admin-plan-card__price {
  font-weight: 760;
  color: #2a1f53;
}

.admin-plan-card__duration-chip {
  font-size: 11px;
  font-weight: 760;
  color: #5c3cb3;
  border: 1px solid rgba(120, 79, 224, 0.35);
  border-radius: 8px;
  padding: 2px 6px;
  background: rgba(150, 114, 240, 0.13);
}

.admin-plan-card__duration,
.admin-plan-card__devices {
  color: rgba(42, 31, 83, 0.72);
  font-size: 13px;
}

.admin-plan-card__actions {
  display: flex;
  gap: 8px;
}

.admin-plan-card__icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.25);
  background: rgba(165, 130, 255, 0.12);
  cursor: pointer;
}

.admin-plan-card__icon-btn--danger {
  background: rgba(255, 108, 108, 0.12);
  border-color: rgba(255, 108, 108, 0.28);
}

.admin-plan-card__drag {
  width: 24px;
  height: 36px;
  border: 1px solid rgba(130, 102, 216, 0.18);
  border-radius: 8px;
  background: rgba(165, 130, 255, 0.08);
  cursor: grab;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 0;
  touch-action: none;
  user-select: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.admin-plan-card__drag:active {
  cursor: grabbing;
}

.admin-plan-card__drag span {
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(93, 63, 182, 0.68);
}

.admin-plan-card.is-dragging {
  opacity: 0.65;
}

.admin-plan-card.is-drag-over {
  border-color: rgba(120, 79, 224, 0.75);
  box-shadow: 0 0 0 2px rgba(120, 79, 224, 0.2);
}

.admin-plan-modal__card {
  display: grid;
  gap: 12px;
}

#adminPlanSubmitBtn {
  justify-self: center;
  width: min(360px, 88%);
  font-size: 17px;
  font-weight: 720;
  min-height: 46px;
  transform: scale(0.96);
}

#adminPlanSubmitBtn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.1);
}

.admin-plan-field {
  display: grid;
  gap: 6px;
}

.admin-plan-field__label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(42, 31, 83, 0.72);
}

.admin-plan-input,
.admin-plan-month-picker {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 12px;
  font-size: 15px;
}

.admin-broadcast-text {
  min-height: 120px;
  padding: 10px 12px;
  resize: none;
  overflow: hidden;
}

.admin-broadcast-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

.admin-broadcast-tool {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.12);
  color: rgba(42, 31, 83, 0.9);
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, filter 180ms ease, background 200ms ease;
}

.admin-broadcast-tool:active {
  transform: scale(0.98);
}

body[data-theme="dark"] .admin-broadcast-toolbar {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .admin-broadcast-tool {
  background: rgba(180, 153, 255, 0.14);
  border-color: rgba(180, 153, 255, 0.28);
  color: #f0e9ff;
}

.admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-file-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-file-picker__btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.14);
  color: rgba(42, 31, 83, 0.92);
  font-weight: 820;
  cursor: pointer;
  transition: transform 120ms ease, filter 180ms ease, background 220ms ease;
}

.admin-file-picker__btn:active {
  transform: scale(0.985);
}

.admin-file-picker__name {
  font-size: 12px;
  color: rgba(42, 31, 83, 0.66);
}

body[data-theme="dark"] .admin-file-picker__btn {
  background: rgba(180, 153, 255, 0.14);
  border-color: rgba(180, 153, 255, 0.28);
  color: rgba(240, 233, 255, 0.92);
}

body[data-theme="dark"] .admin-file-picker__name {
  color: rgba(240, 233, 255, 0.72);
}

body[data-theme="dark"] .admin-user-modal__card--notice .admin-user-modal__subtitle {
  color: rgba(240, 233, 255, 0.8);
}

.admin-maint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

.admin-maint-title {
  font-size: 14px;
  font-weight: 760;
  color: #2a1f53;
}

.admin-maint-hint {
  font-size: 12px;
  color: rgba(42, 31, 83, 0.65);
  margin-top: 2px;
}

.admin-switch {
  position: relative;
  width: 52px;
  height: 32px;
  flex-shrink: 0;
}

.admin-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch__ui {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(130, 102, 216, 0.26);
  background: rgba(165, 130, 255, 0.14);
  transition: background 220ms ease, border-color 220ms ease;
}

.admin-switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-switch input:checked + .admin-switch__ui {
  background: rgba(120, 79, 224, 0.9);
  border-color: rgba(120, 79, 224, 0.9);
}

.admin-switch input:checked + .admin-switch__ui::after {
  transform: translateX(20px);
}

.admin-maint-templates-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.admin-maint-templates {
  display: grid;
  gap: 8px;
}

.admin-maint-template {
  border: 1px solid rgba(130, 102, 216, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 10px;
}

.admin-maint-template__text {
  font-size: 13px;
  color: rgba(42, 31, 83, 0.9);
  white-space: pre-wrap;
}

.admin-maint-template__actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-broadcast-photo-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.admin-broadcast-photo-item {
  border: 1px solid rgba(130, 102, 216, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
}


.maintenance-toast {
  position: fixed;
  z-index: 30001;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(34, 37, 42, 0.95);
  color: rgba(245, 240, 255, 0.96);
  border: 1px solid rgba(180, 153, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.maintenance-toast.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 6, 8, 0.62);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.maintenance-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.maintenance-overlay__card {
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(180, 153, 255, 0.34);
  background: rgba(28, 31, 36, 0.98);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  padding: 20px 18px 18px;
  display: grid;
  gap: 12px;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.maintenance-overlay.is-open .maintenance-overlay__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.maintenance-overlay__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.maintenance-overlay__text {
  font-size: 20px;
  font-weight: 760;
  line-height: 1.42;
  color: rgba(240, 233, 255, 0.9);
  white-space: pre-line;
  margin: 0 auto;
  max-width: 20ch;
  text-wrap: balance;
}

body[data-theme="dark"] .admin-maint-row {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .admin-maint-title {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-maint-hint {
  color: rgba(240, 233, 255, 0.72);
}

body[data-theme="dark"] .admin-maint-template {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .admin-maint-template__text {
  color: rgba(240, 233, 255, 0.92);
}

body[data-theme="dark"] .admin-broadcast-photo-item {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(165, 130, 255, 0.28);
  color: rgba(240, 233, 255, 0.92);
}

.admin-plan-month-picker {
  text-align: left;
  cursor: pointer;
}

.admin-month-modal__card {
  max-height: min(70vh, 520px);
  overflow: auto;
  display: grid;
  gap: 12px;
}

.admin-month-list {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  max-height: min(52vh, 420px);
  -webkit-overflow-scrolling: touch;
}

.admin-month-list__item {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.2);
  background: rgba(255, 255, 255, 0.94);
  text-align: left;
  padding: 0 12px;
}

.admin-month-list__item.is-active {
  background: rgba(120, 79, 224, 0.12);
  border-color: rgba(120, 79, 224, 0.42);
}

.admin-item {
  border: 1px solid rgba(130, 102, 216, 0.28);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(169, 139, 255, 0.14) 0%, rgba(207, 187, 255, 0.16) 100%);
  min-height: 82px;
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  display: grid;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(93, 63, 182, 0.12);
  transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 220ms ease, box-shadow 220ms ease;
}

.admin-item:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.admin-item:active,
.admin-item.is-pressed {
  transform: scale(0.985);
}

.admin-item__title {
  font-size: 19px;
  font-weight: 760;
  color: #2a1f53;
}

.admin-item__hint {
  font-size: 13px;
  color: rgba(42, 31, 83, 0.7);
}

.admin-users-screen-panel {
  padding: 2px 0 0;
}

/* Отдельный полноэкранный слой: не зависит от скролла/высоты админки и не «прилипает» снизу под меню. */
#adminUsersScreen.is-active {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--app-bg);
  padding: 24px 16px 12px;
}

#adminUsersScreen.is-active .admin-users-screen-panel {
  width: min(760px, 100%);
  margin: 0 auto;
}

#adminUsersScreen.is-active .tariff-head {
  margin-bottom: 12px;
}

@keyframes adminUserCardEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-user-card--enter {
  animation: adminUserCardEnter 0.55s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.admin-user-card--leave {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .admin-user-card--enter {
    animation: none;
  }
  .admin-user-card--leave {
    transition: none;
  }
}

.admin-search-table {
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.35);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.admin-search-table-label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(42, 31, 83, 0.65);
  margin-bottom: 8px;
}

.admin-search-wrap {
  display: block;
}

.admin-search-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.admin-search-input:focus {
  border-color: rgba(130, 102, 216, 0.55);
  box-shadow: 0 0 0 2px rgba(130, 102, 216, 0.12);
}

.admin-users-live-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(42, 31, 83, 0.58);
  text-align: center;
}

.admin-users-updated {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.5);
  text-align: center;
}

.admin-users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  align-items: stretch;
}

.admin-user-card {
  border-radius: 14px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(93, 63, 182, 0.1);
  padding: 10px 12px 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 88px;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-user-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(93, 63, 182, 0.14);
  border-color: rgba(130, 102, 216, 0.44);
}

.admin-user-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-user-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.admin-user-card__lines {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.admin-user-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(165, 130, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.admin-user-avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.admin-user-ref-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  width: 100%;
  min-width: 0;
}

.admin-user-ref-chip {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.08);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  text-align: center;
}

.admin-user-ref-chip-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(42, 31, 83, 0.52);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-ref-chip-value {
  font-size: 13px;
  font-weight: 780;
  color: #2a1f53;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.admin-user-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(130, 102, 216, 0.18);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.admin-user-footer-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-user-footer-note {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(42, 31, 83, 0.55);
  white-space: nowrap;
}

.admin-user-footer-value {
  font-size: 13px;
  font-weight: 740;
  color: #2a1f53;
  text-align: left;
  word-break: break-word;
}

.admin-user-edit {
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid rgba(92, 62, 168, 0.45);
  background: #f4efff;
  color: #3d2b6e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  margin: 0;
  flex-shrink: 0;
}

.admin-user-edit--ops {
  border-color: rgba(22, 136, 77, 0.45);
  background: rgba(102, 205, 136, 0.22);
  color: rgba(12, 86, 47, 0.95);
}

.admin-user-edit--ops:hover {
  background: rgba(102, 205, 136, 0.28);
  border-color: rgba(22, 136, 77, 0.65);
}

.admin-user-edit:hover {
  background: #ebe4ff;
  border-color: rgba(92, 62, 168, 0.65);
}

.admin-user-edit:active,
.admin-user-edit.is-pressed {
  transform: scale(0.94);
}

.admin-user-edit__label {
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
  line-height: 1;
}

.admin-user-tariff-line {
  display: none;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 760;
  color: #2a1f53;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-id,
.admin-user-email,
.admin-user-password {
  font-size: 12px;
  color: rgba(42, 31, 83, 0.74);
  line-height: 1.35;
}

.admin-user-password {
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.admin-user-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  margin-top: 0;
  width: fit-content;
  flex-shrink: 0;
  max-width: min(118px, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-status--active {
  color: #19764a;
  background: rgba(55, 184, 109, 0.14);
  border-color: rgba(55, 184, 109, 0.35);
}

.admin-user-status--inactive {
  color: #a73434;
  background: rgba(231, 88, 88, 0.12);
  border-color: rgba(231, 88, 88, 0.35);
}

.admin-user-tariff-label {
  display: none;
}

.admin-user-tariff-value {
  font-size: 12px;
  font-weight: 740;
  color: #2a1f53;
  white-space: normal;
  line-height: 1.25;
}

.admin-user-tariff-stack {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.admin-user-tariff-stack__empty {
  opacity: 0.65;
}

.admin-user-tariff-block {
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.24);
  background: linear-gradient(180deg, rgba(165, 130, 255, 0.09) 0%, rgba(255, 255, 255, 0.45) 100%);
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-user-tariff-block__title {
  font-size: 12px;
  font-weight: 780;
  color: #2a1f53;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-user-tariff-block__price {
  font-size: 13px;
  font-weight: 750;
  color: #3d2b6e;
  font-variant-numeric: tabular-nums;
}

.admin-user-tariff-block__exp {
  font-size: 11px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.72);
  font-variant-numeric: tabular-nums;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.admin-user-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-user-modal--stack {
  z-index: 130;
}

.admin-user-modal--revoke {
  z-index: 140;
}

.admin-user-modal--picksub {
  z-index: 142;
}

.admin-user-modal--subdelete {
  z-index: 150;
}

.admin-user-modal--sub-actions {
  z-index: 154;
}

/* Поверх «Действия с подпиской»: VPN / выдача плана / обновление / подтверждение / перевыпуски */
.admin-user-modal.admin-user-modal--stack.admin-user-modal--stack-rise {
  z-index: 170;
}

.admin-user-modal__post-pick-actions--solo {
  grid-area: unset;
  border-top: none;
  margin-top: 8px;
  padding-top: 0;
}

.admin-user-modal__post-pick-actions--solo > .admin-user-modal__action {
  justify-self: stretch;
}

.admin-user-modal__card--revoke {
  width: min(400px, 100%);
}

.admin-user-revoke-hint {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  color: rgba(42, 31, 83, 0.72);
}

.admin-user-revoke-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48vh, 320px);
  overflow-y: auto;
  margin-top: 4px;
  padding: 2px 2px 4px 0;
}

.admin-user-revoke-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.06);
}

.admin-user-revoke-row__text {
  flex: 1;
  min-width: 0;
}

.admin-user-revoke-row__title {
  font-size: 14px;
  font-weight: 780;
  color: #2a1f53;
  line-height: 1.25;
}

.admin-user-revoke-row__meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.65);
  line-height: 1.3;
}

.admin-user-revoke-del {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(183, 68, 68, 0.45);
  background: rgba(255, 236, 236, 0.95);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.admin-user-revoke-del:hover {
  border-color: rgba(183, 68, 68, 0.85);
  filter: brightness(1.02);
}

.admin-user-revoke-del:active {
  transform: scale(0.96);
}

.admin-user-sub-delete__text {
  white-space: pre-line;
}

.admin-user-plan-pick {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 380px);
  overflow-y: auto;
  margin-top: 10px;
  padding: 2px 2px 4px 0;
}

.admin-user-plan-pick-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.28);
  background: rgba(165, 130, 255, 0.1);
  color: #2a1f53;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.admin-user-plan-pick-btn:hover {
  background: rgba(165, 130, 255, 0.16);
  border-color: rgba(130, 102, 216, 0.42);
}

.admin-user-plan-pick-btn:active {
  transform: scale(0.99);
}

.admin-user-plan-pick-btn__title {
  font-size: 15px;
  font-weight: 780;
  line-height: 1.25;
}

.admin-user-plan-pick-btn__meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(42, 31, 83, 0.62);
  line-height: 1.3;
}

.admin-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 20, 0.55);
  backdrop-filter: blur(4px);
}

.admin-user-modal__card {
  position: relative;
  width: min(520px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  padding: 14px 14px 12px;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.admin-user-modal__card--notice {
  width: min(380px, 100%);
  padding: 16px 14px 14px;
  max-height: min(84vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

.admin-user-modal__card--notice .admin-user-modal__title {
  margin-right: 40px;
}

.admin-user-modal__card--notice .admin-user-modal__subtitle {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(42, 31, 83, 0.78);
}

.admin-user-modal__card--notice .admin-user-modal__actions {
  grid-template-columns: 1fr;
}

.admin-user-modal__actions--compact {
  margin-top: 8px;
}

.admin-user-modal.is-open .admin-user-modal__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.admin-user-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(165, 130, 255, 0.1);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: rgba(42, 31, 83, 0.85);
  transition: transform 0.12s ease;
}

.admin-user-modal__close:active {
  transform: scale(0.95);
}

.admin-user-modal__title {
  margin: 2px 42px 6px 2px;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
}

.admin-user-modal__subtitle {
  margin: 0 0 12px 2px;
  font-size: 12px;
  color: rgba(42, 31, 83, 0.65);
}

.admin-user-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* Сетка кнопок «Управление подпиской»: строка подписок + блок действий после выбора. */
.admin-user-modal__actions--subscription-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  grid-template-areas:
    "grant revoke"
    "subs subs";
}

.admin-user-modal__card--subscription .admin-user-modal__actions--subscription-grid #adminUserGrantBtn {
  grid-area: grant;
}

.admin-user-modal__card--subscription .admin-user-modal__actions--subscription-grid #adminUserRevokeBtn {
  grid-area: revoke;
}

.admin-user-modal__card--subscription .admin-user-modal__actions--subscription-grid #adminUserSubsBtn {
  grid-area: subs;
}

.admin-user-modal__post-pick-actions {
  grid-area: post;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid rgba(130, 102, 216, 0.2);
  margin-top: 2px;
}

.admin-user-modal__post-pick-actions #adminUserVpnBtn {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(220px, 100%);
  max-width: 100%;
  margin-top: 4px;
  box-shadow: 0 -1px 0 rgba(130, 102, 216, 0.15);
  padding-top: 12px;
}

.admin-user-modal__card--subscription .admin-user-modal__actions--subscription-grid > .admin-user-modal__action {
  align-self: stretch;
}

/* Модалка «Управление подпиской»: ровная сетка и читаемые кнопки */
.admin-user-modal__card--subscription {
  width: min(400px, calc(100vw - 24px));
  padding: 16px 14px 14px;
  min-width: 0;
}

.admin-user-modal__card--subscription .admin-user-modal__title {
  margin-bottom: 4px;
}

.admin-user-modal__card--subscription .admin-user-modal__subtitle {
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: pre-line;
}

.admin-user-modal__card--subscription .admin-user-modal__action {
  min-height: 48px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.22;
  text-align: center;
  border-radius: 14px;
  box-sizing: border-box;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.admin-user-modal__card--subscription .admin-user-modal__hint {
  margin-top: 10px;
  line-height: 1.35;
}

.admin-user-modal__action {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.12s ease, filter 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 0;
}

.admin-user-modal__action:active,
.admin-user-modal__action.is-pressed {
  transform: scale(0.98);
}

.admin-user-modal__action--primary {
  background: rgba(120, 79, 224, 0.95);
  color: #fff;
}

.admin-user-modal__action--secondary {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(42, 31, 83, 0.9);
}

.admin-user-modal__action--openlink {
  background: linear-gradient(180deg, rgba(99, 132, 255, 0.14), rgba(120, 79, 224, 0.1));
  border-color: rgba(104, 122, 228, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.admin-user-modal__action--openlink:hover {
  filter: brightness(1.02);
  border-color: rgba(104, 122, 228, 0.62);
}

.admin-user-modal__hint {
  margin: 12px 2px 0;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.55);
}

.admin-user-update-plan-hint {
  margin: 0 2px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(42, 31, 83, 0.62);
}

.admin-user-update-plan-field {
  margin-bottom: 10px;
}

.admin-user-update-plan-confirm__text {
  text-align: center;
  line-height: 1.45;
  white-space: pre-line;
}


.admin-empty {
  grid-column: 1 / -1;
  border-radius: 12px;
  border: 1px dashed rgba(130, 102, 216, 0.4);
  padding: 12px;
  text-align: center;
  color: rgba(42, 31, 83, 0.74);
  font-size: 13px;
}

@media (max-width: 400px) {
  .admin-user-card {
    padding: 8px 10px 8px;
  }

  .admin-user-card__identity {
    gap: 8px;
  }

  .admin-user-ref-chip {
    padding: 5px 6px;
  }

  .admin-user-ref-chip-label {
    font-size: 8px;
  }

  .admin-user-ref-chip-value {
    font-size: 12px;
  }
}

.support-faq-title {
  font-size: 24px;
  font-weight: 780;
}

.support-faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.faq-item.is-open {
  border-color: rgba(53, 163, 95, 0.35);
  box-shadow: 0 8px 18px rgba(39, 88, 52, 0.1);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  padding-right: 36px;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 18px;
  height: 18px;
  background: url("icon/checkbox.png") center / contain no-repeat;
  transition: transform 220ms ease, filter 220ms ease;
}

.faq-item.is-open summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.profile-panel {
  display: grid;
  gap: 12px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-loading {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 18px;
  background: rgba(9, 19, 13, 0.22);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.profile-loading.is-open {
  opacity: 1;
  pointer-events: auto;
}

.profile-loading-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 32px));
  border-radius: 18px;
  border: 1px solid rgba(53, 163, 95, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(26, 67, 38, 0.22);
  padding: 16px 14px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.profile-loading-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid rgba(53, 163, 95, 0.2);
  background: rgba(53, 163, 95, 0.08);
  display: grid;
  place-items: center;
}

.profile-loading-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.profile-loading-title {
  font-size: 20px;
  font-weight: 800;
}

.profile-loading-sub {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.profile-content {
  display: grid;
  gap: 12px;
}

.profile-main-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-user-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(53, 163, 95, 0.12);
}

.profile-user-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.profile-username {
  font-size: 24px;
  font-weight: 780;
}

.profile-status {
  color: var(--muted);
  font-size: 14px;
}

.profile-status.profile-status--active {
  color: #2f9f61 !important;
}

.profile-status.profile-status--inactive {
  color: #d64545 !important;
}

.profile-status.profile-status--trial {
  color: #55d0a6 !important;
}

.profile-trial-card {
  border: 1px solid rgba(110, 84, 214, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(110, 84, 214, 0.22), rgba(110, 84, 214, 0.12));
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.profile-trial-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(42, 31, 83, 0.72);
  font-weight: 700;
}

.profile-trial-meta {
  color: #55d0a6;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}

.profile-id {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.profile-block {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.profile-block-title {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.profile-block-value {
  font-size: 17px;
  color: #2f9f61;
  font-weight: 700;
}

.profile-block-subtitle {
  font-size: 22px;
  font-weight: 750;
}

.profile-block-text,
.profile-note,
.profile-mini-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.profile-email-input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 16px;
}

.profile-email-btn {
  min-height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 760;
}

.profile-link {
  color: #2f6dff;
  text-decoration: none;
  font-weight: 700;
}

.profile-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.profile-card h3 {
  font-size: 24px;
}

.profile-card p {
  color: var(--muted);
}

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

.profile-subscriptions-empty {
  color: var(--muted);
  font-size: 14px;
}

.profile-sub-card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: none;
  padding: 10px;
  display: grid;
  gap: 6px;
  position: relative;
  padding-right: 52px;
}

.profile-sub-card.profile-sub-card--key-bubble {
  border-color: rgba(56, 189, 198, 0.38);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 198, 0.08);
}

.profile-sub-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  word-break: break-all;
  margin-top: 2px;
}

body[data-theme="dark"] .profile-sub-token {
  color: rgba(200, 220, 230, 0.88);
}

.profile-sub-head {
  display: grid;
  gap: 3px;
}

.profile-sub-title {
  font-size: clamp(14px, 4.8vw, 20px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -0.02em;
}

.profile-sub-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.profile-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.profile-sub-meta--active {
  color: #2f9f61;
}

.profile-sub-meta--inactive {
  color: #d64545;
}

.profile-sub-key-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-sub-key-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.profile-sub-devices {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.profile-sub-devices-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.profile-sub-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  top: 10px;
  right: 10px;
  align-items: center;
}

.profile-sub-action {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(90, 211, 159, 0.55);
  background: rgba(90, 211, 159, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1fa463;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 180ms ease, border-color 180ms ease;
}

.profile-sub-action-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
}

.profile-sub-action.is-copied {
  border-color: #5ad39f;
  box-shadow: inset 0 0 0 1px rgba(90, 211, 159, 0.35);
}

.profile-sub-action:hover {
  border-color: #5ad39f;
  filter: brightness(0.98);
}

.profile-sub-action:active {
  transform: translateY(1px);
}

.profile-sub-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.profile-sub-action.profile-sub-action--accent {
  color: #1fa463;
  border-color: rgba(90, 211, 159, 0.55);
  background: rgba(90, 211, 159, 0.1);
}

.profile-sub-action.profile-sub-action--accent:hover {
  border-color: #5ad39f;
  filter: none;
}

.profile-sub-url {
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.3;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.02);
}

/* «Действия с подпиской»: сегментированный список как у референса, под светлую/тёмную тему */
.profile-sub-menu-modal .auth-code-modal__title {
  padding-right: 28px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.profile-sub-menu-modal .auth-code-modal__close {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.profile-sub-menu-modal .auth-code-modal__card {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
  margin: 50vh auto 0;
  transform: translateY(-50%);
}

.profile-sub-menu-modal .profile-sub-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.025);
}

.profile-sub-menu-modal .profile-sub-menu-btn {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.profile-sub-menu-modal .profile-sub-menu-btn:last-child {
  border-bottom: none;
}

.profile-sub-menu-modal .profile-sub-menu-btn:hover {
  background: rgba(47, 159, 97, 0.07);
}

.profile-sub-menu-modal .profile-sub-menu-btn:active {
  transform: translateY(1px);
}

.profile-sub-menu-modal .profile-sub-menu-btn__text {
  flex: 1;
  min-width: 0;
}

.profile-sub-menu-modal .profile-sub-menu-btn__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.profile-sub-menu-modal .profile-sub-menu-btn__icon--plus {
  color: #1fa463;
}

.profile-sub-menu-modal .profile-sub-menu-btn__icon--rotate {
  color: #1fa463;
  font-size: 18px;
}

.profile-sub-menu-modal .profile-sub-menu-btn__icon--renew {
  color: #1fa463;
  font-size: 18px;
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-list {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(126, 133, 150, 0.28);
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-btn {
  border-bottom-color: rgba(126, 133, 150, 0.22);
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-btn:hover {
  background: rgba(90, 211, 159, 0.08);
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-btn__icon--plus {
  color: #6fe8b0;
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-btn__icon--rotate {
  color: #6fe8b0;
}

body[data-theme="dark"] .profile-sub-menu-modal .profile-sub-menu-btn__icon--renew {
  color: #6fe8b0;
}

body[data-theme="dark"] .profile-sub-menu-modal .auth-code-modal__card {
  background: rgba(28, 31, 38, 0.98);
  border-color: rgba(126, 133, 150, 0.35);
}

.profile-sub-devices-list {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
}

.profile-sub-dev-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.profile-sub-dev-main {
  min-width: 0;
}

.profile-sub-dev-title {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
}

.profile-sub-dev-meta,
.profile-sub-dev-id {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.profile-sub-dev-del {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #db6f7b66;
  background: transparent;
  color: #d64545;
  cursor: pointer;
}

@media (max-width: 420px) {
  .profile-sub-card {
    padding: 9px;
    padding-right: 48px;
  }
  .profile-sub-key-head {
    gap: 6px;
  }
  .profile-sub-actions {
    top: 9px;
    right: 9px;
  }
  .profile-sub-action {
    min-width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .profile-sub-devices {
    font-size: 13px;
  }
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-stat b,
.profile-stat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  max-width: 100%;
  font-size: clamp(13px, 3.5vw, 18px);
  color: #2f9f61;
  line-height: 1.2;
  min-width: 0;
}

.profile-stat-num {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.profile-stat-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.profile-stat span {
  color: var(--muted);
  font-size: 12px;
}

.profile-ref-link {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 42px 10px 10px;
  font-size: 13px;
  word-break: break-all;
}

.profile-ref-link-wrap {
  position: relative;
}

.profile-copy-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease, filter 220ms ease, background-color 220ms ease;
}

.profile-copy-btn:hover {
  filter: brightness(0.95);
  background: rgba(53, 163, 95, 0.08);
}

.profile-copy-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.profile-copy-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.profile-copy-btn.is-copied .profile-copy-icon-default {
  display: none;
}

.profile-copy-btn:not(.is-copied) .profile-copy-icon-copied {
  display: none;
}

.faq-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease;
}

.faq-content p {
  overflow: hidden;
}

.faq-item.is-open .faq-content {
  max-height: var(--faq-open-height, 280px);
  opacity: 1;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  /* Выше админки и модалок профиля (14000), ниже экрана техработ (30000). */
  z-index: 20000;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease;
}

.purchase-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 13, 0.46);
}

.purchase-modal__card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  border-radius: 16px;
  border: 1px solid rgba(53, 163, 95, 0.45);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(26, 67, 38, 0.16);
  padding: 14px 12px 12px;
  display: grid;
  gap: 10px;
  transform: translateY(10px) scale(0.985);
  transition: transform 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.purchase-modal.is-open .purchase-modal__card {
  transform: translateY(0) scale(1);
}

.purchase-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 22, 18, 0.06);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.purchase-modal__close-svg {
  display: block;
  flex-shrink: 0;
}

body[data-theme="dark"] .purchase-modal__close {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fa;
}

.purchase-modal__title {
  font-size: 24px;
  font-weight: 780;
  line-height: 1.1;
  padding-right: 28px;
}

.purchase-modal__subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2px;
}

.purchase-modal__subtitle--spaced {
  margin: -4px 0 6px;
}

.purchase-modal__promo {
  display: grid;
  gap: 6px;
}

.purchase-modal__promo-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.purchase-modal__promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.purchase-modal__promo-input {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  padding: 0 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.purchase-modal__promo-check {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(53, 163, 95, 0.55);
  background: rgba(55, 184, 109, 0.12);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  color: rgba(19, 71, 37, 0.95);
  white-space: nowrap;
}

.purchase-modal__promo-hint {
  margin: 0;
  font-size: 12px;
  min-height: 1.2em;
  color: rgba(56, 53, 78, 0.72);
}

.purchase-modal__promo-hint.is-ok {
  color: rgba(25, 120, 65, 0.95);
}

.purchase-modal__promo-hint.is-err {
  color: rgba(180, 55, 55, 0.95);
}

.checkout-key-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 340px);
  overflow-y: auto;
  margin-bottom: 4px;
}

.checkout-renew-plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(48vh, 320px);
  overflow-y: auto;
  margin-bottom: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90, 211, 159, 0.7) rgba(22, 31, 49, 0.28);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.checkout-renew-plan-list::-webkit-scrollbar {
  width: 8px;
}

.checkout-renew-plan-list::-webkit-scrollbar-track {
  background: rgba(22, 31, 49, 0.22);
  border-radius: 999px;
}

.checkout-renew-plan-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(111, 232, 176, 0.95), rgba(90, 211, 159, 0.7));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body[data-theme="dark"] .checkout-renew-plan-list::-webkit-scrollbar-track {
  background: rgba(11, 16, 27, 0.62);
}

body[data-theme="dark"] .checkout-renew-plan-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(111, 232, 176, 0.92), rgba(47, 159, 97, 0.84));
  border-color: rgba(111, 232, 176, 0.28);
}

.checkout-renew-plan-list .checkout-renew-plan__btn.tariff-item {
  width: 100%;
  text-align: left;
  margin: 0;
}

.checkout-key-card {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 198, 0.42);
  background: rgba(255, 255, 255, 0.58);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 200ms ease;
}

.checkout-key-card:hover,
.checkout-key-card:focus-visible {
  outline: none;
  border-color: rgba(56, 189, 198, 0.72);
  box-shadow:
    0 0 0 3px rgba(56, 189, 198, 0.18),
    0 10px 28px rgba(56, 189, 198, 0.12);
}

.checkout-key-card__token {
  display: block;
  font-weight: 780;
  font-size: 13px;
  word-break: break-all;
  color: rgba(33, 28, 58, 0.96);
}

.checkout-key-card__meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(56, 53, 78, 0.62);
  line-height: 1.35;
}

.purchase-modal--checkout .purchase-modal__card {
  width: min(400px, calc(100vw - 24px));
  border-radius: 20px;
  padding: 18px 16px 16px;
  gap: 12px;
}

.purchase-modal--checkout .purchase-modal__title {
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  padding-right: 40px;
}

.purchase-modal--checkout .purchase-modal__subtitle--spaced {
  margin-top: 2px;
}

.purchase-modal--checkout .purchase-modal__loader {
  width: 42px;
  height: 42px;
  margin: 6px auto 2px;
  border-radius: 50%;
  border: 3px solid rgba(90, 211, 159, 0.22);
  border-top-color: rgba(47, 159, 97, 0.95);
  animation: payment-wait-spin 0.85s linear infinite;
}

.purchase-modal--checkout .purchase-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  margin: 0;
}

.purchase-modal--checkout .purchase-modal__action--primary {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 820;
  background: linear-gradient(100deg, #37b86d 0%, #2a9f5c 50%, #248a52 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 26px rgba(41, 137, 84, 0.32);
}

.purchase-modal--checkout .purchase-modal__action--outline {
  min-height: 54px;
  border-radius: 16px;
  font-weight: 780;
  border-width: 1.5px;
  border-color: rgba(56, 189, 198, 0.52);
}

.purchase-modal--checkout .purchase-modal__action--secondary {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 780;
  border: 1.5px solid rgba(56, 189, 198, 0.52);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text);
}

.purchase-modal__action--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(130, 102, 216, 0.42);
}

.purchase-modal__amount {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(55, 184, 109, 0.1);
  color: rgba(19, 71, 37, 0.95);
  font-weight: 760;
  font-size: 14px;
}

.purchase-methods {
  display: grid;
  gap: 8px;
}

.purchase-method {
  display: block;
  width: 100%;
  border: 1px solid rgba(130, 102, 216, 0.2);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 220ms ease, transform 120ms ease, background 220ms ease;
}

.purchase-method:hover {
  border-color: rgba(53, 163, 95, 0.6);
}

.purchase-method:active {
  transform: scale(0.994);
}

.purchase-method.is-active {
  border-color: #20ba64;
  background: linear-gradient(100deg, rgba(39, 191, 108, 0.15) 0%, rgba(44, 178, 102, 0.08) 100%);
  box-shadow: 0 0 0 2px rgba(44, 178, 102, 0.22), 0 6px 14px rgba(38, 151, 89, 0.16);
  animation: purchaseMethodSelect 220ms ease-out;
}

.purchase-method__title {
  display: block;
  font-weight: 820;
  color: rgba(33, 28, 58, 0.96);
}

.purchase-method__meta {
  display: block;
  margin-top: 2px;
  color: rgba(56, 53, 78, 0.64);
  font-size: 12px;
}

.purchase-modal__action {
  border: none;
  border-radius: 14px;
  min-height: 52px;
  font-size: 18px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 160ms ease, filter 220ms ease;
}

.purchase-modal__action:hover {
  filter: brightness(0.95);
}

.purchase-modal__action:active {
  transform: scale(0.985);
}

.purchase-modal__action--primary {
  background: linear-gradient(100deg, #37b86d 0%, #2f9f61 45%, #298954 100%);
  color: #fff;
}

.purchase-modal__action--secondary {
  background: #173147;
  color: #e8f0f8;
}

@media (max-width: 1100px) {
  .plan-header { font-size: 10px; }
  /* .state / .date: не трогаем глобально — главный экран задаётся в #appShell ниже */
  .state-icon { width: 34px; height: 34px; font-size: 18px; }
  .title { font-size: 16px; }
  .hint { font-size: 13px; }
  .mini-item .title { font-size: 15px; }
  .mini-item .hint { font-size: 12px; }
}

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

@keyframes logoDropIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top,
  .plan,
  .menu,
  .duo,
  .menu-item,
  .mini-item,
  .logo,
  .screen {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .theme-toggle {
    transition: none !important;
  }

  body,
  .card,
  .menu-item,
  .mini-item,
  .subtitle,
  .screen {
    transition: none !important;
  }

  .screen.is-active {
    animation: none !important;
  }
}

body[data-theme="dark"] {
  --bg: #1f2124;
  --card: #2a2d31;
  --text: #e9eef2;
  --muted: #a7aeb7;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.28);

  --app-bg: radial-gradient(circle at 50% -40%, #2c2f34 0%, #1b1d20 70%);
  --top-bg-url: url("icon/Dark%20Theme/backstage%20for%20logo%20dark.png");
  --top-soft: radial-gradient(circle at 40% 20%, rgba(24, 26, 28, 0.2) 0%, rgba(24, 26, 28, 0.35) 48%, rgba(24, 26, 28, 0.55) 100%);
  --top-overlay: linear-gradient(180deg, rgba(16, 18, 20, 0.2) 0%, rgba(16, 18, 20, 0.55) 100%);
}

body[data-theme="dark"] .menu-item:not(.menu-item--accent),
body[data-theme="dark"] .mini-item {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
}

body[data-theme="dark"] .tariff-item:not(.tariff-item--active),
body[data-theme="dark"] .card-lite {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="dark"] .devices-slider,
body[data-theme="dark"] .devices-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(95, 209, 154, 0.24) 0%, rgba(95, 209, 154, 0.08) 100%);
  border: 1px solid rgba(95, 209, 154, 0.24);
}

body[data-theme="dark"] .devices-slider::-webkit-slider-thumb {
}

body[data-theme="dark"] .devices-slider::-moz-range-track {
  background: linear-gradient(90deg, rgba(95, 209, 154, 0.24) 0%, rgba(95, 209, 154, 0.08) 100%);
  border-color: rgba(95, 209, 154, 0.24);
}

body[data-theme="dark"] .devices-slider::-moz-range-thumb {
}

body[data-theme="dark"] .slider-leaf {
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35));
}

body[data-theme="dark"] .tariff-item__badge {
  background: rgba(53, 163, 95, 0.2);
  border-color: rgba(53, 163, 95, 0.3);
  color: #5fd19a;
}

body[data-theme="dark"] .tariff-item__hint,
body[data-theme="dark"] .tariff-item__devices {
  color: #5fd19a;
}

body[data-theme="dark"] .tariff-item__selector {
  border-color: #5fd19a;
}

body[data-theme="dark"] .tariff-item--active {
  background: linear-gradient(100deg, rgba(34, 111, 72, 0.35) 0%, rgba(21, 90, 56, 0.26) 100%);
  border-color: rgba(95, 209, 154, 0.75);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

body[data-theme="dark"] .tariff-item--active .tariff-item__badge {
  background: rgba(95, 209, 154, 0.2);
  border-color: rgba(95, 209, 154, 0.34);
  color: #7be0b0;
}

body[data-theme="dark"] .tariff-item--active .tariff-item__hint,
body[data-theme="dark"] .tariff-item--active .tariff-item__devices {
  color: #7be0b0;
}

body[data-theme="dark"] .tariff-back {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
}

body[data-theme="dark"] .pay-btn {
  background: linear-gradient(100deg, #226f48 0%, #1b5f3d 45%, #144a30 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .support-chat-btn {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .support-chat-card,
body[data-theme="dark"] .faq-item {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
}

body[data-theme="dark"] .support-chat-icon-wrap {
  background: rgba(95, 209, 154, 0.16);
  border-color: rgba(95, 209, 154, 0.26);
}

body[data-theme="dark"] .support-chat-main-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
}

body[data-theme="dark"] .setup-platform-card {
  background: rgba(42, 45, 49, 0.92);
  border-color: rgba(95, 209, 154, 0.32);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .setup-platform-card__icon {
  color: #5fd19a;
}

body[data-theme="dark"] .setup-platform-card__label {
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-platform-card--active {
  background: linear-gradient(165deg, rgba(34, 111, 88, 0.42) 0%, rgba(21, 90, 64, 0.22) 100%);
  border-color: rgba(95, 209, 154, 0.72);
  box-shadow:
    0 0 0 1px rgba(95, 209, 154, 0.2),
    0 16px 36px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-platform-card--active .setup-platform-card__icon {
  color: #8af0c8;
}

body[data-theme="dark"] .setup-platform-card--native:not(.setup-platform-card--active) {
  border-color: rgba(232, 190, 90, 0.5);
  box-shadow:
    0 0 0 1px rgba(232, 190, 90, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .setup-platform-card__check {
  color: #8af0c8;
}

body[data-theme="dark"] .setup-step {
  background: rgba(95, 209, 154, 0.14);
  border-color: rgba(95, 209, 154, 0.38);
  color: #7be0b0;
}

body[data-theme="dark"] .setup-step--active {
  background: linear-gradient(135deg, #1f8f56 0%, #1b6f46 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(95, 209, 154, 0.25),
    0 10px 26px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-step--done {
  background: linear-gradient(135deg, #1f8f56 0%, #1b6f46 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .setup-step-line {
  background: rgba(95, 209, 154, 0.32);
}

body[data-theme="dark"] .setup-step-line--done {
  background: linear-gradient(90deg, #1f8f56 0%, #1b6f46 100%);
}

body[data-theme="dark"] .setup-step2-lead {
  color: rgba(244, 247, 250, 0.88);
}

body[data-theme="dark"] .setup-app-card {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(95, 209, 154, 0.3);
}

body[data-theme="dark"] .setup-app-card__desc {
  color: #7be0b0;
}

body[data-theme="dark"] .setup-app-card__mark {
  border-color: rgba(95, 209, 154, 0.45);
}

body[data-theme="dark"] .setup-app-card--active .setup-app-card__mark::after {
  color: #fff;
}

body[data-theme="dark"] .setup-app-card--active {
  border-color: rgba(95, 209, 154, 0.68);
  background: linear-gradient(100deg, rgba(34, 111, 80, 0.38) 0%, rgba(21, 90, 60, 0.2) 100%);
}

body[data-theme="dark"] .setup-step2-notice {
  background: rgba(42, 45, 49, 0.75);
  border-color: rgba(95, 209, 154, 0.35);
  color: rgba(244, 247, 250, 0.9);
}

body[data-theme="dark"] .setup-step2-install-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-step2-foot-btn {
  background: rgba(42, 45, 49, 0.88);
  border-color: rgba(95, 209, 154, 0.42);
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-step2-foot-btn--ghost {
  background: rgba(42, 45, 49, 0.62);
}

body[data-theme="dark"] .setup-step2-back-only {
  color: #8af0c8;
}

body[data-theme="dark"] .setup-step3-lead {
  color: rgba(244, 247, 250, 0.88);
}

body[data-theme="dark"] .setup-step3-key-card {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(95, 209, 154, 0.3);
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-step3-key-badge {
  background: rgba(95, 209, 154, 0.18);
  color: #7be0b0;
  border-color: rgba(95, 209, 154, 0.38);
}

body[data-theme="dark"] .setup-step3-key-badge--trial {
  background: rgba(232, 190, 90, 0.16);
  color: #f0d18a;
  border-color: rgba(232, 190, 90, 0.42);
}

body[data-theme="dark"] .setup-step3-key-card__exp {
  color: rgba(244, 247, 250, 0.68);
}

body[data-theme="dark"] .setup-step3-key-card__mark {
  border-color: rgba(95, 209, 154, 0.45);
}

body[data-theme="dark"] .setup-step3-key-card--active .setup-step3-key-card__mark::after {
  color: #fff;
}

body[data-theme="dark"] .setup-step3-key-card--active {
  border-color: rgba(95, 209, 154, 0.68);
  background: linear-gradient(100deg, rgba(34, 111, 80, 0.38) 0%, rgba(21, 90, 60, 0.2) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .setup-step3-empty {
  color: rgba(244, 247, 250, 0.65);
}

body[data-theme="dark"] .setup-step3-ready {
  background: linear-gradient(145deg, rgba(38, 42, 48, 0.96) 0%, rgba(28, 32, 40, 0.94) 100%);
  border-color: rgba(95, 209, 154, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-step3-ready-icon {
  color: #7be0b0;
  background: rgba(95, 209, 154, 0.12);
  border-color: rgba(95, 209, 154, 0.35);
}

body[data-theme="dark"] .setup-step3-ready-desc {
  color: rgba(244, 247, 250, 0.78);
}

body[data-theme="dark"] .setup-step3-add-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-step3-manual {
  background: rgba(42, 45, 49, 0.72);
  border-color: rgba(95, 209, 154, 0.28);
}

body[data-theme="dark"] .setup-step3-manual-toggle {
  background: rgba(42, 45, 49, 0.88);
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-step3-manual-toggle:hover {
  background: rgba(95, 209, 154, 0.08);
}

body[data-theme="dark"] .setup-step3-manual-chevron {
  border-color: rgba(123, 224, 176, 0.75);
}

body[data-theme="dark"] .setup-step3-manual-label {
  color: #7be0b0;
}

body[data-theme="dark"] .setup-step3-key-url {
  background: rgba(22, 24, 28, 0.92);
  border-color: rgba(95, 209, 154, 0.22);
  color: rgba(244, 247, 250, 0.88);
}

body[data-theme="dark"] .setup-step3-copy-btn {
  background: rgba(42, 45, 49, 0.88);
  border-color: rgba(95, 209, 154, 0.42);
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-step3-copy-btn:hover:not(:disabled) {
  background: rgba(95, 209, 154, 0.12);
}

body[data-theme="dark"] .setup-step3-how-list {
  color: rgba(244, 247, 250, 0.86);
}

body[data-theme="dark"] .setup-step3-how-list li::marker {
  color: #7be0b0;
}

body[data-theme="dark"] .setup-step3-done {
  background: linear-gradient(145deg, rgba(38, 42, 48, 0.96) 0%, rgba(28, 32, 40, 0.94) 100%);
  border-color: rgba(95, 209, 154, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-step3-done-title {
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-step3-done-text {
  color: rgba(244, 247, 250, 0.8);
}

body[data-theme="dark"] .setup-step3-done-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

body[data-theme="dark"] .setup-subtitle {
  color: #7be0b0;
}

body[data-theme="dark"] .setup-devices-title {
  color: #7be0b0;
}

body[data-theme="dark"] .setup-device-item {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(95, 209, 154, 0.3);
  color: #f4f7fa;
}

body[data-theme="dark"] .setup-device-item__check {
  border-color: rgba(95, 209, 154, 0.45);
}

body[data-theme="dark"] .setup-device-item--active {
  background: linear-gradient(100deg, rgba(34, 111, 80, 0.38) 0%, rgba(21, 90, 60, 0.22) 100%);
  border-color: rgba(95, 209, 154, 0.65);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .setup-device-item--native:not(.setup-device-item--active) {
  border-color: rgba(232, 190, 90, 0.48);
}

body[data-theme="dark"] .setup-placeholder-card {
  background: rgba(42, 45, 49, 0.88);
  border-color: rgba(95, 209, 154, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body[data-theme="dark"] .setup-placeholder-card__text {
  color: rgba(244, 247, 250, 0.86);
}

body[data-theme="dark"] .setup-next-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .admin-item {
  border-color: rgba(165, 130, 255, 0.42);
  background: linear-gradient(115deg, rgba(112, 78, 200, 0.44) 0%, rgba(78, 55, 140, 0.30) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .admin-catalog-card,
body[data-theme="dark"] .admin-subscriptions-add {
  border-color: rgba(165, 130, 255, 0.42);
  background: linear-gradient(115deg, rgba(112, 78, 200, 0.44) 0%, rgba(78, 55, 140, 0.3) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .admin-subscriptions-add {
  color: #d8c7ff;
}

body[data-theme="dark"] .admin-catalog-card__title,
body[data-theme="dark"] .admin-stock-placeholder__title,
body[data-theme="dark"] .admin-plan-card__title,
body[data-theme="dark"] .admin-plan-card__price {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-catalog-card__hint,
body[data-theme="dark"] .admin-stock-placeholder__text,
body[data-theme="dark"] .admin-plan-card__duration,
body[data-theme="dark"] .admin-plan-card__devices,
body[data-theme="dark"] .admin-plan-field__label,
body[data-theme="dark"] .tariff-list-empty {
  color: rgba(240, 233, 255, 0.76);
}

body[data-theme="dark"] .admin-plan-card,
body[data-theme="dark"] .admin-stock-placeholder,
body[data-theme="dark"] .admin-month-list__item,
body[data-theme="dark"] .admin-plan-input,
body[data-theme="dark"] .admin-plan-month-picker {
  background: rgba(42, 45, 49, 0.95);
  border-color: rgba(165, 130, 255, 0.28);
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-plan-card__duration-chip {
  color: #e6dcff;
  border-color: rgba(180, 153, 255, 0.5);
  background: rgba(180, 153, 255, 0.2);
}

body[data-theme="dark"] .admin-plan-card__drag {
  border-color: rgba(180, 153, 255, 0.28);
  background: rgba(180, 153, 255, 0.12);
}

body[data-theme="dark"] .admin-plan-card__drag span {
  background: rgba(230, 220, 255, 0.8);
}

body[data-theme="dark"] .admin-item__title {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-item__hint {
  color: rgba(240, 233, 255, 0.78);
}

body[data-theme="dark"] .admin-search-input {
  border-color: rgba(165, 130, 255, 0.42);
  background: rgba(42, 45, 49, 0.92);
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-search-input:focus {
  border-color: rgba(165, 130, 255, 0.62);
  box-shadow: 0 0 0 2px rgba(165, 130, 255, 0.18);
}

body[data-theme="dark"] .admin-search-table {
  border-color: rgba(165, 130, 255, 0.42);
  background: rgba(42, 45, 49, 0.94);
}

body[data-theme="dark"] .admin-search-table-label {
  color: rgba(240, 233, 255, 0.62);
}

body[data-theme="dark"] .admin-users-live-hint {
  color: rgba(240, 233, 255, 0.55);
}

body[data-theme="dark"] .admin-users-updated {
  color: rgba(240, 233, 255, 0.48);
}

body[data-theme="dark"] .admin-user-tariff {
  border-left-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .admin-user-card {
  border-color: rgba(165, 130, 255, 0.42);
  background: rgba(42, 45, 49, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

body[data-theme="dark"] .admin-user-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(186, 156, 255, 0.58);
}

body[data-theme="dark"] .admin-user-ref-chip {
  border-color: rgba(165, 130, 255, 0.32);
  background: rgba(165, 130, 255, 0.1);
}

body[data-theme="dark"] .admin-user-ref-chip-label {
  color: rgba(240, 233, 255, 0.55);
}

body[data-theme="dark"] .admin-user-ref-chip-value {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-user-avatar {
  background: rgba(165, 130, 255, 0.18);
}

body[data-theme="dark"] .admin-user-name,
body[data-theme="dark"] .admin-user-tariff-value {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-user-footer-note {
  color: rgba(240, 233, 255, 0.62);
}

body[data-theme="dark"] .admin-user-id,
body[data-theme="dark"] .admin-user-email,
body[data-theme="dark"] .admin-user-password,
body[data-theme="dark"] .admin-user-tariff-label,
body[data-theme="dark"] .admin-empty {
  color: rgba(240, 233, 255, 0.76);
}

body[data-theme="dark"] .admin-user-plan-pick-btn {
  border-color: rgba(165, 130, 255, 0.35);
  background: rgba(165, 130, 255, 0.12);
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-user-plan-pick-btn:hover {
  background: rgba(165, 130, 255, 0.2);
  border-color: rgba(165, 130, 255, 0.48);
}

body[data-theme="dark"] .admin-user-plan-pick-btn__meta {
  color: rgba(240, 233, 255, 0.65);
}

body[data-theme="dark"] .admin-user-edit {
  border-color: rgba(200, 175, 255, 0.55);
  background: rgba(55, 48, 78, 0.95);
  color: #f0e9ff;
  box-shadow: none;
}

body[data-theme="dark"] .admin-user-edit:hover {
  background: rgba(70, 60, 98, 0.98);
  border-color: rgba(220, 200, 255, 0.65);
}

body[data-theme="dark"] .admin-user-revoke-hint {
  color: rgba(240, 233, 255, 0.7);
}

body[data-theme="dark"] .admin-user-revoke-row {
  border-color: rgba(165, 130, 255, 0.32);
  background: rgba(165, 130, 255, 0.1);
}

body[data-theme="dark"] .admin-user-revoke-row__title {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-user-revoke-row__meta {
  color: rgba(240, 233, 255, 0.68);
}

body[data-theme="dark"] .admin-user-revoke-del {
  border-color: rgba(255, 140, 140, 0.42);
  background: rgba(70, 36, 36, 0.9);
}

body[data-theme="dark"] .admin-user-modal__card {
  background: rgba(28, 31, 36, 0.98);
  border-color: rgba(165, 130, 255, 0.34);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .admin-user-modal__title,
body[data-theme="dark"] .admin-user-modal__action--secondary {
  color: #f4f7fa;
}

body[data-theme="dark"] .admin-user-modal__subtitle,
body[data-theme="dark"] .admin-user-modal__hint,
body[data-theme="dark"] .admin-user-update-plan-hint,
body[data-theme="dark"] .admin-user-update-plan-confirm__text {
  color: rgba(240, 233, 255, 0.72);
}

body[data-theme="dark"] .admin-user-modal__close {
  color: #f4f7fa;
  background: rgba(165, 130, 255, 0.14);
  border-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .admin-user-modal__action--primary {
  background: rgba(120, 79, 224, 0.92);
  color: #fff;
}

body[data-theme="dark"] .admin-user-modal__action--secondary {
  background: rgba(42, 45, 49, 0.96);
  border-color: rgba(165, 130, 255, 0.28);
}

body[data-theme="dark"] .faq-item summary::after {
  background-image: url("icon/Dark%20Theme/checkbox%20dark.png");
}

body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .profile-main-card,
body[data-theme="dark"] .profile-block,
body[data-theme="dark"] .profile-loading,
body[data-theme="dark"] .profile-stat,
body[data-theme="dark"] .profile-ref-link,
body[data-theme="dark"] .profile-email-input {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
  color: var(--text);
}

body[data-theme="dark"] .profile-sub-card {
  background: rgba(42, 45, 49, 0.92);
  border-color: var(--line);
}

body[data-theme="dark"] .profile-sub-action {
  background: rgba(90, 211, 159, 0.12);
  border-color: rgba(111, 232, 176, 0.55);
  color: #6fe8b0;
}

body[data-theme="dark"] .profile-sub-action.profile-sub-action--accent {
  color: #6fe8b0;
  border-color: rgba(111, 232, 176, 0.58);
  background: rgba(90, 211, 159, 0.14);
}

body[data-theme="dark"] .profile-sub-action.profile-sub-action--accent:hover {
  border-color: #7fffc4;
}

body[data-theme="dark"] .profile-sub-devices-icon {
  filter: brightness(1.12) contrast(1.05);
}

body[data-theme="dark"] .profile-sub-action-icon {
  filter: none;
}

body[data-theme="dark"] .profile-sub-url {
  color: #b8bfd0;
  background: rgba(37, 40, 47, 0.65);
  border-color: rgba(126, 133, 150, 0.3);
}

body[data-theme="dark"] .profile-sub-dev-row {
  background: rgba(37, 40, 47, 0.82);
  border-color: rgba(126, 133, 150, 0.3);
}

body[data-theme="dark"] .profile-trial-card {
  border-color: rgba(144, 117, 255, 0.45);
  background: linear-gradient(180deg, rgba(105, 74, 217, 0.26), rgba(105, 74, 217, 0.14));
}

body[data-theme="dark"] .profile-trial-title {
  color: rgba(226, 216, 255, 0.78);
}

body[data-theme="dark"] .profile-loading {
  background: rgba(5, 6, 8, 0.48);
}

body[data-theme="dark"] .profile-loading-card {
  background: rgba(28, 31, 36, 0.96);
  border-color: rgba(95, 209, 154, 0.35);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .profile-loading-title {
  color: #f4f7fa;
}

body[data-theme="dark"] .profile-email-btn {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
}

body[data-theme="dark"] .profile-user-icon {
  background: rgba(95, 209, 154, 0.14);
}

body[data-theme="dark"] .profile-link {
  color: #7be0b0;
}

body[data-theme="dark"] .profile-stat b {
  color: #5fd19a;
}

body[data-theme="dark"] .profile-copy-btn:hover {
  background: rgba(95, 209, 154, 0.14);
}

body[data-theme="dark"] .purchase-modal__backdrop {
  background: rgba(5, 6, 8, 0.56);
}

body[data-theme="dark"] .purchase-modal__card {
  background: rgba(28, 31, 36, 0.98);
  border-color: rgba(95, 209, 154, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

body[data-theme="dark"] .purchase-modal__title {
  color: #f4f7fa;
}

body[data-theme="dark"] .purchase-modal__subtitle {
  color: #b5bfca;
}

body[data-theme="dark"] .purchase-modal__amount {
  background: rgba(34, 135, 83, 0.24);
  color: #d8f7e6;
}

body[data-theme="dark"] .purchase-modal__action--primary {
  background: linear-gradient(100deg, #1f6f46 0%, #1b5f3d 45%, #144a30 100%);
}

body[data-theme="dark"] .purchase-modal__action--secondary {
  background: #18293b;
  color: #dce6f0;
}

body[data-theme="dark"] .purchase-method {
  background: rgba(14, 17, 21, 0.92);
  border-color: rgba(122, 128, 178, 0.32);
}

body[data-theme="dark"] .purchase-method:hover {
  border-color: rgba(95, 209, 154, 0.66);
}

body[data-theme="dark"] .purchase-method.is-active {
  border-color: #40cd7f;
  background: linear-gradient(100deg, rgba(28, 117, 72, 0.32) 0%, rgba(26, 98, 62, 0.24) 100%);
  box-shadow: 0 0 0 2px rgba(64, 205, 127, 0.28), 0 8px 16px rgba(14, 45, 29, 0.42);
}

body[data-theme="dark"] .purchase-method__title {
  color: #eef2ff;
}

body[data-theme="dark"] .purchase-method__meta {
  color: #bcc6e3;
}

body[data-theme="dark"] .purchase-modal__promo-input {
  background: rgba(14, 17, 21, 0.92);
  border-color: rgba(122, 128, 178, 0.38);
  color: #f4f7fa;
}

body[data-theme="dark"] .purchase-modal__promo-check {
  border-color: rgba(95, 209, 154, 0.55);
  background: rgba(34, 135, 83, 0.22);
  color: #d8f7e6;
}

body[data-theme="dark"] .purchase-modal__promo-hint {
  color: #aab6c9;
}

body[data-theme="dark"] .checkout-key-card {
  background: rgba(14, 17, 21, 0.72);
  border-color: rgba(72, 200, 210, 0.42);
}

body[data-theme="dark"] .checkout-key-card:hover,
body[data-theme="dark"] .checkout-key-card:focus-visible {
  border-color: rgba(120, 235, 245, 0.62);
  box-shadow:
    0 0 0 3px rgba(72, 200, 210, 0.28),
    0 14px 40px rgba(0, 0, 0, 0.55);
}

body[data-theme="dark"] .checkout-key-card__token {
  color: #eef2ff;
}

body[data-theme="dark"] .checkout-key-card__meta {
  color: #bcc6e3;
}

body[data-theme="dark"] .purchase-modal__action--outline {
  border-color: rgba(95, 209, 154, 0.42);
  color: #eef2ff;
}

body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__card {
  background: linear-gradient(180deg, rgba(32, 30, 52, 0.99) 0%, rgba(18, 20, 34, 0.99) 100%);
  border: 1px solid rgba(72, 200, 210, 0.35);
  box-shadow:
    0 0 0 1px rgba(130, 110, 210, 0.2),
    0 22px 48px rgba(0, 0, 0, 0.62),
    0 0 40px rgba(55, 184, 109, 0.08);
}

body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__title {
  color: #f4f7ff;
}

body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__subtitle--spaced {
  color: #aab6cf;
}

body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__close {
  border-color: rgba(180, 170, 255, 0.28);
  background: rgba(0, 0, 0, 0.25);
  color: #e8ecff;
}

body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__action--outline,
body[data-theme="dark"] .purchase-modal--checkout .purchase-modal__action--secondary {
  border-color: rgba(72, 200, 210, 0.55);
  color: #f4f7ff;
  background: rgba(12, 16, 22, 0.55);
}

@keyframes purchaseMethodSelect {
  0% {
    transform: scale(0.985);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

body[data-theme="dark"] .menu-item.menu-item--accent {
  background: linear-gradient(100deg, #1f6f46 0%, #155a38 100%);
  border: none;
}

body[data-theme="dark"] .menu-item .title,
body[data-theme="dark"] .mini-item .title {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .menu-item .hint,
body[data-theme="dark"] .mini-item .hint {
  color: rgba(255, 255, 255, 0.9);
}

body[data-theme="dark"] .menu-item .icon,
body[data-theme="dark"] .mini-item .icon {
  background: transparent;
}

body[data-theme="dark"] .menu-item--accent .icon {
  background: transparent;
}

body[data-theme="dark"] .subtitle {
  color: rgba(233, 238, 242, 0.72);
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .plan-header-pill {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(180, 153, 255, 0.35);
  color: rgba(233, 238, 242, 0.78);
}

body[data-theme="dark"] .panel-section.plan .plan-bubble .main-tariff-name,
body[data-theme="dark"] .panel-section.plan .plan-bubble .main-tariff-expires {
  color: rgba(240, 233, 255, 0.92);
}

body[data-theme="dark"] .panel-section.plan .plan-bubble:not(.plan-bubble--main-metric) .state {
  font-size: 11px;
  font-weight: 600;
}

body[data-theme="dark"] .panel-section.plan .plan-header-pill {
  font-size: 9px;
}

body[data-theme="dark"] .admin-user-modal__post-pick-actions {
  border-top-color: rgba(180, 153, 255, 0.28);
}

body[data-theme="dark"] .admin-user-modal__post-pick-actions #adminUserVpnBtn {
  box-shadow: 0 -1px 0 rgba(180, 153, 255, 0.28);
}

body[data-theme="dark"] .admin-user-tariff-block {
  border-color: rgba(180, 153, 255, 0.32);
  background: linear-gradient(180deg, rgba(165, 130, 255, 0.12) 0%, rgba(30, 32, 36, 0.65) 100%);
}

body[data-theme="dark"] .admin-user-tariff-block__title {
  color: #f0e9ff;
}

body[data-theme="dark"] .admin-user-tariff-block__price {
  color: rgba(223, 210, 255, 0.98);
}

body[data-theme="dark"] .admin-user-tariff-block__exp {
  color: rgba(240, 233, 255, 0.65);
}

body[data-theme="dark"] .admin-search-table {
  background: rgba(38, 40, 44, 0.92);
  border-color: rgba(180, 153, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .admin-search-table-label {
  color: rgba(240, 233, 255, 0.6);
}

body[data-theme="dark"] .admin-search-input {
  background: rgba(26, 28, 31, 0.96);
  border-color: rgba(180, 153, 255, 0.24);
}

body[data-theme="dark"] .admin-user-modal__card--subscription .admin-user-modal__action {
  box-shadow: none;
}

body[data-theme="dark"] .browser-card {
  background: rgba(42, 45, 49, 0.94);
  border-color: rgba(180, 153, 255, 0.3);
}

body[data-theme="dark"] .browser-label {
  color: rgba(240, 233, 255, 0.92);
}

body[data-theme="dark"] .browser-input {
  background: rgba(20, 22, 30, 0.92);
  color: rgba(240, 233, 255, 0.96);
  border-color: rgba(180, 153, 255, 0.3);
}

body[data-theme="dark"] .browser-forgot-btn {
  color: #cbd1ff;
}

body[data-theme="dark"] .auth-code-modal__card {
  background: #181c2d;
  border-color: rgba(122, 128, 178, 0.35);
}

body[data-theme="dark"] .auth-code-modal__title {
  color: #f2f4ff;
}

body[data-theme="dark"] .auth-code-modal__subtitle {
  color: #b3b9e8;
}

body[data-theme="dark"] .auth-code-modal__input {
  background: #0f1323;
  border-color: rgba(122, 128, 178, 0.35);
  color: #f2f4ff;
}

body[data-theme="dark"] .plan-bubble {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(180, 153, 255, 0.28);
}

body[data-theme="dark"] .state-icon {
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .theme-toggle {
  background: rgba(0, 0, 0, 0.25);
}

body[data-theme="dark"] .theme-toggle::before {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  transform: translateX(22px);
}

body[data-theme="dark"] .theme-toggle__icon {
  transform: translateX(10px);
  color: rgba(233, 238, 242, 0.9);
}

/* Ensure admin button theme isn't overridden in dark mode */
body[data-theme="dark"] .menu-item.menu-item--admin {
  background: linear-gradient(100deg, rgba(112, 78, 200, 0.44) 0%, rgba(78, 55, 140, 0.30) 100%) !important;
  border-color: rgba(165, 130, 255, 0.46) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36) !important;
}

body[data-theme="dark"] .menu-item.menu-item--admin .icon {
  background: transparent !important;
}

.admin-income-panel {
  padding-bottom: 22px;
}

.admin-income-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.admin-income-card {
  padding: 14px;
}

.admin-income-card__label {
  font-size: 12px;
  color: rgba(42, 31, 83, 0.62);
  font-weight: 700;
}

.admin-income-card__value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.admin-income-card__hint {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.52);
}

.admin-income-list {
  margin-top: 12px;
  padding: 14px;
}

.admin-income-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-income-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.admin-icon-btn {
  width: 42px;
  padding: 8px 0;
  text-align: center;
}

.admin-income-list__title {
  font-weight: 900;
}

.admin-refresh-btn {
  border: 1px solid rgba(130, 102, 216, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(42, 31, 83, 0.9);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.admin-income-filters {
  margin-bottom: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.admin-income-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-income-filters__label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(42, 31, 83, 0.65);
}

.admin-income-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-income-chip {
  border: 1px solid rgba(130, 102, 216, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(42, 31, 83, 0.88);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.admin-income-chip.is-active {
  border-color: rgba(68, 180, 109, 0.55);
  background: rgba(102, 205, 136, 0.22);
  color: rgba(28, 72, 44, 0.95);
}

.admin-income-filters__custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.admin-income-filters__field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(42, 31, 83, 0.62);
}

.admin-income-filters__field input {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(130, 102, 216, 0.22);
  padding: 7px 10px;
  font-size: 13px;
}

body[data-theme="dark"] .admin-income-filters__label {
  color: rgba(226, 232, 255, 0.72);
}

body[data-theme="dark"] .admin-income-chip {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(180, 153, 255, 0.28);
  color: rgba(240, 243, 255, 0.9);
}

body[data-theme="dark"] .admin-income-chip.is-active {
  background: rgba(68, 180, 109, 0.18);
  border-color: rgba(120, 220, 160, 0.45);
  color: rgba(220, 255, 232, 0.98);
}

body[data-theme="dark"] .admin-income-filters__field {
  color: rgba(226, 232, 255, 0.72);
}

body[data-theme="dark"] .admin-income-filters__field input {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(180, 153, 255, 0.3);
  color: rgba(248, 250, 255, 0.95);
}

.admin-income-list__items {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.admin-income-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 102, 216, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.admin-income-row__meta {
  font-size: 11px;
  color: rgba(42, 31, 83, 0.56);
}

.admin-income-row__user {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.7);
  font-weight: 750;
}

.admin-income-row__ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  color: rgba(42, 31, 83, 0.52);
}

.admin-user-vpn-url {
  margin-top: 10px;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
  min-width: 0;
  border: 1px solid rgba(130, 102, 216, 0.24);
  background: rgba(165, 130, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: min(22vh, 160px);
  overflow: auto;
  user-select: text;
}

.admin-income-row__amount {
  font-weight: 900;
  white-space: nowrap;
}

.admin-income-row__pending-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(235, 173, 31, 0.2);
  color: rgba(110, 70, 6, 0.92);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body[data-theme="dark"] .admin-income-card__label,
body[data-theme="dark"] .admin-income-card__hint,
body[data-theme="dark"] .admin-income-row__meta,
body[data-theme="dark"] .admin-income-row__ref {
  color: rgba(226, 232, 255, 0.7);
}

body[data-theme="dark"] .admin-income-row__user {
  color: rgba(215, 224, 255, 0.92);
}

body[data-theme="dark"] .admin-income-row__amount {
  color: rgba(248, 250, 255, 0.96);
}

body[data-theme="dark"] .admin-income-row__pending-pill {
  background: rgba(255, 200, 71, 0.2);
  color: rgba(255, 222, 145, 0.96);
}

body[data-theme="dark"] .admin-income-row {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(180, 153, 255, 0.22);
}

body[data-theme="dark"] .admin-refresh-btn {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(180, 153, 255, 0.28);
  color: rgba(240, 243, 255, 0.9);
}

/* Главный экран: плотнее к шапке — меньше воздуха над «Текущий тариф / Дата окончания» */
#appShell #mainScreen .top {
  margin-bottom: 6px;
}

#appShell #mainScreen > .panel.card {
  padding-top: 8px;
}

#appShell #mainScreen .panel-section.plan {
  padding: 2px 6px 2px;
  margin-top: 0;
}

/* Главный экран: читаемый тариф/дата — без класса .date (иначе 42px), грид + ellipsis против вылезания */
#appShell .plan-bubbles--main {
  margin-top: -6px;
  column-gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#appShell .plan-bubble--main-metric {
  padding: 7px 6px 8px;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

#appShell .plan-bubble--main-metric .plan-header-pill {
  font-size: clamp(10px, 2.9vw, 12px) !important;
  font-weight: 700 !important;
  padding: 4px 9px !important;
  line-height: 1.2 !important;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

#appShell .panel-section.plan .plan-bubble--main-metric .state,
#appShell .panel-section.plan .plan-bubble--main-metric .state.state--main-tariff {
  display: block !important;
  font-size: clamp(11px, 3.5vw, 14px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  align-items: unset;
  justify-content: unset;
}

#appShell #mainScreen #mainCurrentTariff {
  display: block;
  font-size: clamp(10px, 3.1vw, 12px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  white-space: pre-line;
  text-align: center;
  max-height: none;
}

#appShell #mainScreen #mainTariffExpiresAt.main-tariff-expires--main {
  display: block;
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: clamp(10px, 3.1vw, 12px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  font-variant-numeric: tabular-nums;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: clip;
}

#appShell #mainScreen #mainCurrentTariff br,
#appShell #mainScreen #mainTariffExpiresAt br {
  content: "";
}

body[data-theme="dark"] #appShell #mainScreen #mainCurrentTariff,
body[data-theme="dark"] #appShell #mainScreen #mainTariffExpiresAt {
  color: rgba(240, 233, 255, 0.92) !important;
}

body[data-theme="dark"] #appShell .panel-section.plan .plan-bubble--main-metric .state {
  font-size: clamp(11px, 3.5vw, 14px) !important;
  font-weight: 600 !important;
}

/* --- Оплата: привязка email перед чекаутом (мини-апп) --- */
.pay-email-bind-modal .pay-email-bind-modal__card {
  max-width: 420px;
}
.pay-email-bind-modal .pay-email-bind-modal__sub {
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.pay-email-bind-modal .pay-email-bind-modal__input {
  margin-top: 8px;
}
.pay-email-bind-modal .pay-email-bind-modal__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #c44;
}
body[data-theme="dark"] .pay-email-bind-modal .pay-email-bind-modal__hint {
  color: #ff8a8a;
}
.pay-email-bind-modal .pay-email-bind-modal__actions {
  margin-top: 14px;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 400px) {
  .pay-email-bind-modal .pay-email-bind-modal__actions {
    flex-direction: row;
  }
}

/* --- Экран ожидания оплаты (после создания платежа YooKassa) --- */
.payment-wait-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 12px 24px;
  box-sizing: border-box;
}

.payment-wait-bubble {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 20px;
  border: 2px solid rgba(90, 211, 159, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(248, 255, 251, 0.58));
  padding: 14px 14px 18px;
  box-sizing: border-box;
  box-shadow: 0 16px 42px rgba(25, 60, 45, 0.2);
}

body[data-theme="dark"] .payment-wait-bubble {
  border-color: rgba(111, 232, 176, 0.5);
  background: linear-gradient(180deg, rgba(16, 28, 22, 0.88), rgba(13, 22, 19, 0.8));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

/* Single outer “bubble”: inner cards are sections, not separate floating tiles (web + mini-app). */
.payment-wait-bubble .payment-wait-card.card-lite,
.payment-wait-bubble .payment-wait-setup.card-lite {
  background: transparent;
  border: none;
  border-radius: 0;
  border-top: 1px solid rgba(90, 211, 159, 0.22);
  padding: 14px 2px 12px;
  margin-bottom: 0;
  box-shadow: none;
}

body[data-theme="dark"] .payment-wait-bubble .payment-wait-card.card-lite,
body[data-theme="dark"] .payment-wait-bubble .payment-wait-setup.card-lite {
  border-top-color: rgba(111, 232, 176, 0.2);
}

.payment-wait-bubble .payment-wait-hero + .payment-wait-card.card-lite {
  border-top: none;
  padding-top: 4px;
}

.payment-wait-bubble .payment-wait-actions {
  border-top: 1px solid rgba(90, 211, 159, 0.22);
  margin-top: 6px;
  padding-top: 14px;
}

body[data-theme="dark"] .payment-wait-bubble .payment-wait-actions {
  border-top-color: rgba(111, 232, 176, 0.2);
}

.payment-wait-narrative {
  margin: 14px auto 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(90, 211, 159, 0.08);
  border: 1px solid rgba(90, 211, 159, 0.2);
  text-align: left;
}

body[data-theme="dark"] .payment-wait-narrative {
  background: rgba(90, 211, 159, 0.1);
  border-color: rgba(111, 232, 176, 0.22);
}

.payment-wait-narrative__head {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.35;
}

.payment-wait-narrative__line {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.payment-wait-narrative__line:last-child {
  margin-bottom: 0;
}
.payment-wait-hero {
  text-align: center;
  margin: 8px 0 18px;
}
.payment-wait-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(90, 211, 159, 0.25);
  border-top-color: #f5a623;
  animation: payment-wait-spin 0.85s linear infinite;
}
.payment-wait-spinner.is-success {
  border: none;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #37b86d 0%, #2f9f61 60%, #278a53 100%);
  box-shadow: 0 10px 24px rgba(41, 137, 84, 0.28);
  animation: none;
  position: relative;
}
.payment-wait-spinner.is-success::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}
@keyframes payment-wait-spin {
  to {
    transform: rotate(360deg);
  }
}
.payment-wait-title {
  font-size: clamp(20px, 5.5vw, 24px);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.payment-wait-lead {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #5ad39f;
}
.payment-wait-status {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.payment-wait-timer {
  margin: 8px auto 0;
  padding: 8px 10px;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: center;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.28);
  color: var(--text);
}

body[data-theme="dark"] .payment-wait-timer {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.32);
}

.payment-wait-card {
  margin-bottom: 12px;
  padding: 14px;
}
.payment-wait-k {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f9f61;
  margin-bottom: 10px;
}
body[data-theme="dark"] .payment-wait-k {
  color: #6fe8b0;
}
.payment-wait-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.payment-wait-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.3;
}
.payment-wait-kk {
  color: var(--muted);
  flex-shrink: 0;
}
.payment-wait-vv {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.payment-wait-sbp {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.35;
  color: #2f9f61;
}
body[data-theme="dark"] .payment-wait-sbp {
  color: #7dffc8;
}
.payment-wait-key-msg {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.payment-wait-setup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}
.payment-wait-setup-ico {
  opacity: 0.85;
}
.payment-wait-setup-txt {
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.payment-wait-setup-after {
  color: var(--muted);
  font-size: 12px;
}
.payment-wait-setup-os {
  font-weight: 700;
  color: #2f9f61;
}
body[data-theme="dark"] .payment-wait-setup-os {
  color: #6fe8b0;
}
.payment-wait-bubble .payment-wait-setup.card-lite {
  border: 1px solid rgba(90, 211, 159, 0.58);
  border-radius: 14px;
  background: rgba(90, 211, 159, 0.12);
  box-shadow: inset 0 0 0 1px rgba(90, 211, 159, 0.14);
}
body[data-theme="dark"] .payment-wait-bubble .payment-wait-setup.card-lite {
  border-color: rgba(111, 232, 176, 0.62);
  background: rgba(37, 84, 64, 0.34);
  box-shadow: inset 0 0 0 1px rgba(111, 232, 176, 0.2);
}
.payment-wait-actions {
  display: grid;
  gap: 10px;
}
.payment-wait-open.pay-btn {
  width: 100%;
  justify-content: center;
}
.payment-wait-open-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.payment-wait-open-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.payment-wait-secondary {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 12px 14px;
  font-weight: 650;
  font-size: 15px;
  cursor: pointer;
}
.payment-wait-secondary:active {
  transform: translateY(1px);
}
.payment-wait-cancel {
  border: none;
  background: transparent;
  color: #e85d5d;
  padding: 10px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}
body[data-theme="dark"] .payment-wait-cancel {
  color: #ff9a9a;
}

.payment-wait-setup {
  cursor: default;
  transition: border-color 160ms ease, background 160ms ease;
}
.payment-wait-setup.is-ready {
  border-color: rgba(90, 211, 159, 0.75);
  background: rgba(90, 211, 159, 0.11);
  cursor: pointer;
}
.payment-wait-setup.is-ready:active {
  filter: none;
}

/* Web-only: avoid any visual "jitter" of setup row after payment success. */
body.mm-browser-web .payment-wait-setup,
body.mm-browser-web .payment-wait-setup.is-ready,
body.mm-browser-web .payment-wait-setup.is-ready:active {
  transform: none !important;
  filter: none !important;
}
body[data-theme="dark"] .payment-wait-setup.is-ready {
  border-color: rgba(111, 232, 176, 0.8);
  background: rgba(90, 211, 159, 0.14);
}

@media (max-width: 480px) {
  .payment-wait-panel {
    padding: 8px 10px 16px;
  }
  .payment-wait-title {
    font-size: 20px;
  }
  .payment-wait-lead {
    font-size: 12px;
  }
  .payment-wait-card {
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  .payment-wait-list li {
    font-size: 13px;
    gap: 8px;
  }
  .payment-wait-open.pay-btn {
    border-radius: 14px;
    padding: 12px 14px;
  }
  .payment-wait-open-title {
    font-size: 16px;
    gap: 6px;
    justify-content: center;
  }
  .payment-wait-open-icon {
    width: 14px;
    height: 14px;
  }
}
