:root {
  --bg: #06091a;
  --bg-deep: #040712;
  --surface: rgba(12, 18, 38, 0.78);
  --surface-strong: rgba(8, 12, 28, 0.94);
  --surface-muted: rgba(10, 14, 30, 0.84);
  --text: #eef2ff;
  --muted: #97a2c1;
  --muted-strong: #d5dcf5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --olive: #2dd4bf;
  --olive-soft: rgba(45, 212, 191, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.48);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.2), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, #06091a 0%, #080d1c 42%, #060818 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

#app-root {
  min-height: 100vh;
}

.site-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}

.bg-orb,
.bg-grid {
  position: fixed;
  pointer-events: none;
}

.bg-orb {
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.36;
  z-index: 0;
}

.orb-a {
  top: -12rem;
  left: -10rem;
  background: rgba(124, 58, 237, 0.26);
}

.orb-b {
  right: -12rem;
  bottom: -16rem;
  background: rgba(45, 212, 191, 0.18);
}

.bg-grid {
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
}

.site-header,
.hero-card,
.data-card,
.plan-card,
.status-banner,
.site-footer,
.stat-card,
.info-row,
.profile-pill {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.site-header,
.hero-card,
.data-card,
.plan-card,
.status-banner,
.site-footer {
  border-radius: var(--radius-xl);
}

.site-header {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 22px;
  z-index: 30;
}

.header-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.brand-button {
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
}

.brand-mark,
.avatar-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #f8f5ff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.26);
}

.avatar-badge.large {
  width: 64px;
  height: 64px;
  font-size: 1.15rem;
}

.avatar-frame {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 16px 30px rgba(124, 58, 237, 0.26);
}

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

.avatar-fallback {
  position: absolute;
  inset: 0;
}

.avatar-frame:not(.fallback) .avatar-fallback {
  display: none;
}

.avatar-frame.fallback .avatar-image {
  display: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong,
.hero-card h1,
.hero-card h2,
.data-card h2,
.data-card h3,
.plan-card h3,
.status-banner h3,
.empty-state h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  margin: 0;
}

.brand-copy strong {
  font-size: 1.08rem;
}

.brand-copy small,
.profile-pill-copy span,
.section-copy,
.hero-copy,
.field-help,
.card-caption,
.site-footer p,
.empty-state p,
.status-banner p,
.feature-list,
.feature-toggle small,
.telegram-panel p,
.profile-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-nav,
.header-actions,
.account-controls,
.choice-tabs,
.card-actions,
.chip-row,
.step-strip,
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-nav {
  justify-content: flex-start;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  flex-wrap: nowrap;
  position: relative;
  z-index: 31;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.header-actions {
  justify-content: flex-end;
}

.account-controls {
  justify-content: flex-end;
}

.nav-link,
.choice-tab,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.nav-link,
.choice-tab,
.ghost-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #f8f5ff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.danger-button {
  background: linear-gradient(135deg, #b91c1c, var(--danger));
  color: #fff6f3;
}

.nav-link.active,
.choice-tab.active {
  background: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.38);
  color: #efe7ff;
}

.nav-link:hover,
.choice-tab:hover,
.ghost-button:hover,
.primary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

button:disabled {
  opacity: 0.58;
  cursor: default;
  transform: none;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-toggle-track {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.admin-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.admin-toggle input:checked + .admin-toggle-track {
  background: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.36);
}

.admin-toggle input:checked + .admin-toggle-track::after {
  transform: translateX(22px);
}

.profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  user-select: none;
}

.profile-pill-copy {
  display: grid;
  gap: 2px;
}

.profile-pill-copy strong {
  font-size: 0.95rem;
}

.profile-menu {
  position: relative;
  z-index: 35;
}

.profile-menu[open] {
  z-index: 60;
}

.profile-menu summary {
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-caret {
  color: var(--muted);
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.profile-menu[open] .profile-caret {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(270px, calc(100vw - 24px));
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 8px;
  z-index: 80;
}

.profile-menu-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.profile-menu-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.profile-menu-item.danger {
  color: var(--danger);
}

.site-main,
.page-section,
.content-section,
.stack-grid {
  display: grid;
  gap: 18px;
}

.site-main {
  position: relative;
  z-index: 1;
}

.page-section {
  position: relative;
  z-index: 1;
}

.auth-page {
  min-height: calc(100vh - 240px);
  align-items: center;
}

.auth-card {
  width: min(640px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero-grid,
.grid-section,
.summary-grid,
.stats-grid,
.feature-grid,
.input-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.grid-section.two,
.auth-layout,
.grid-section.dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-section.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-section.cards,
.grid-section.plans {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.summary-grid.compact,
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.feature-grid,
.input-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card,
.data-card,
.plan-card,
.status-banner {
  padding: 24px;
}

.hero-card,
.data-card,
.plan-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-card {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(45, 212, 191, 0.08)),
    var(--surface);
}

.hero-aside,
.promo-aside {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-summary {
  display: flex;
  gap: 14px;
  align-items: center;
}

.section-kicker,
.switch-label,
.stat-label,
.info-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c7b8ff;
}

.hero-card h1 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  max-width: none;
  line-height: 1.1;
}

.data-card h2,
.data-card h3,
.plan-card h3,
.status-banner h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.24;
}

.step-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.83rem;
  font-weight: 700;
}

.chip.active {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.24);
  color: var(--success);
}

.chip.danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.24);
  color: var(--danger);
}

.chip.muted {
  color: var(--muted-strong);
}

.step-chip span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #efe7ff;
}

.stat-card,
.info-row {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
}

.stat-card strong,
.info-row strong {
  display: block;
  margin-top: 6px;
  font-size: 1.06rem;
  line-height: 1.4;
}

.stat-card.good {
  border-color: rgba(52, 211, 153, 0.2);
}

.stat-card.danger {
  border-color: rgba(248, 113, 113, 0.22);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.plan-price {
  margin: 0;
  font-size: 1.36rem;
  font-weight: 700;
  line-height: 1.25;
}

.plan-card.current {
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: var(--shadow-lg);
}

.plan-card-top,
.section-head,
.account-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.plan-card-top > div,
.section-head > div,
.account-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.plan-meta {
  color: var(--muted-strong);
  font-size: 0.92rem;
  gap: 14px;
  line-height: 1.45;
}

.status-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(124, 58, 237, 0.08)),
    var(--surface);
}

.status-banner.subtle {
  background: var(--surface-muted);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 600;
  color: var(--muted-strong);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
  transform: translateY(-1px);
}

.compact-field {
  min-width: min(320px, 100%);
}

.switch-row,
.switch-group,
.telegram-panel {
  display: grid;
  gap: 12px;
}

.telegram-widget-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), rgba(84, 169, 235, 0.08)),
    rgba(255, 255, 255, 0.03);
  text-align: center;
}

.telegram-widget-copy {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.telegram-widget-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.telegram-widget-copy span {
  max-width: 32rem;
  color: var(--muted);
  line-height: 1.6;
}

.choice-tabs {
  gap: 8px;
}

.checkbox-field {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.feature-toggle {
  display: grid;
  gap: 8px;
  min-height: 112px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  text-align: left;
}

.feature-toggle.enabled {
  background: var(--success-soft);
  border-color: rgba(52, 211, 153, 0.24);
}

.feature-title {
  font-weight: 700;
}

.feature-state {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.widget-shell {
  min-height: 56px;
}

.widget-shell-auth {
  width: 100%;
  display: flex;
  justify-content: center;
}

.widget-shell-auth iframe {
  max-width: 100%;
}

.inline-error {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: var(--danger-soft);
  color: var(--danger);
}

.suggestion-list,
.stack-grid {
  display: grid;
  gap: 12px;
}

.suggestion-list {
  margin-top: 4px;
}

.suggestion-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.owner-card .grid-section.cards {
  margin-top: 6px;
}

.grid-section.cards,
.accounts-list,
.admin-accounts-list {
  grid-template-columns: 1fr;
}

.admin-accounts-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 40vh;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

.site-footer {
  margin-top: 24px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #54a9eb;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.telegram-link:hover {
  transform: translateY(-1px);
  background: rgba(84, 169, 235, 0.12);
  border-color: rgba(84, 169, 235, 0.28);
}

.telegram-link svg {
  width: 22px;
  height: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(92vw, 560px);
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(10, 14, 28, 0.96);
  color: #fff;
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.36);
}

.toast.error {
  background: rgba(120, 20, 20, 0.95);
}

.mono {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1120px) {
  .header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions,
  .account-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .grid-section.two,
  .auth-layout,
  .grid-section.dashboard,
  .grid-section.three,
  .feature-grid,
  .input-grid.two {
    grid-template-columns: 1fr;
  }

  .status-banner,
  .section-head,
  .account-head,
  .plan-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 14px;
  }

  .site-header,
  .hero-card,
  .data-card,
  .plan-card,
  .status-banner,
  .site-footer {
    padding: 18px;
    border-radius: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    padding-top: 10px;
  }

  .profile-pill {
    width: 100%;
    border-radius: 22px;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 16px, 1280px);
  }

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

  .summary-grid.compact,
  .stats-grid,
  .grid-section.cards,
  .grid-section.plans {
    grid-template-columns: 1fr;
  }

  .brand-mark,
  .avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .avatar-frame {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-copy small,
  .profile-pill-copy span {
    font-size: 0.86rem;
  }

  .choice-tabs {
    width: 100%;
  }

  .choice-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

/* Mini App design sync */

:root {
  --bg: #050810;
  --bg-deep: #040712;
  --surface: rgba(12, 18, 38, 0.78);
  --surface-strong: rgba(8, 12, 28, 0.94);
  --surface-muted: rgba(10, 14, 30, 0.86);
  --text: #eef2ff;
  --muted: #97a2c1;
  --muted-strong: #d5dcf5;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --olive: #2dd4bf;
  --olive-soft: rgba(45, 212, 191, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --shadow-lg: 0 32px 84px rgba(0, 0, 0, 0.52);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.38);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 58, 237, 0.22), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.12), transparent 34%),
    linear-gradient(180deg, #06091a 0%, #080d1c 42%, #060818 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 12%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 88%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

.site-shell {
  position: relative;
  width: min(1360px, calc(100% - 32px));
  padding: 24px 0 42px;
}

.site-header,
.hero-card,
.data-card,
.plan-card,
.status-banner,
.site-footer,
.stat-card,
.info-row,
.profile-pill,
.profile-dropdown,
.feature-toggle,
.suggestion-list {
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
}

.site-header,
.hero-card,
.data-card,
.plan-card,
.status-banner,
.site-footer {
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.site-header {
  overflow: visible;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(45, 212, 191, 0.07) 100%),
    var(--surface-strong);
  border-color: rgba(167, 139, 250, 0.18);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(167, 139, 250, 0.76) 35%, rgba(45, 212, 191, 0.68) 65%, transparent 100%);
  opacity: 0.65;
}

.brand-button {
  gap: 16px;
}

.brand-mark,
.avatar-badge,
.avatar-frame {
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.3);
}

.brand-mark,
.avatar-badge,
.avatar-fallback {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #f8f5ff;
}

.brand-copy strong {
  font-size: 1.14rem;
}

.brand-copy small,
.profile-pill-copy span,
.section-copy,
.field-help,
.info-label,
.telegram-panel p,
.profile-summary p,
.plan-meta,
.card-caption,
.feature-toggle small {
  color: var(--muted);
}

.site-nav {
  gap: 12px;
  margin-top: 4px;
  padding: 10px;
  border-top: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-link,
.choice-tab,
.ghost-button,
.primary-button,
.danger-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-link,
.choice-tab,
.ghost-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-link.active,
.choice-tab.active {
  color: #f5efff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(167, 139, 250, 0.14));
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.18);
}

.primary-button {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 62%, #74c5ff 100%);
  color: #fcfbff;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.32);
}

.ghost-button:hover,
.primary-button:hover,
.danger-button:hover,
.nav-link:hover,
.choice-tab:hover,
.profile-pill:hover,
.support-rail:hover,
.telegram-link:hover {
  transform: translateY(-2px);
}

.danger-button {
  background: linear-gradient(135deg, #a61d33, #f87171);
  color: #fff4f5;
}

.compact {
  min-height: 42px;
  padding: 0 16px;
}

.profile-pill {
  padding: 8px 14px 8px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-dropdown {
  margin-top: 12px;
  border-radius: 22px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.profile-menu-item {
  border-radius: 16px;
}

.hero-card,
.data-card,
.plan-card,
.status-banner {
  padding: 24px;
}

.hero-card h1,
.hero-card h2,
.data-card h2,
.data-card h3,
.plan-card h3,
.status-banner h3,
.empty-state h2 {
  letter-spacing: -0.035em;
}

.hero-card h1 {
  max-width: 900px;
  font-size: clamp(2.05rem, 4vw, 3.35rem);
}

.section-kicker,
.step-chip,
.chip {
  letter-spacing: 0.16em;
}

.status-banner {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.11), rgba(45, 212, 191, 0.05)),
    var(--surface);
  border-color: rgba(167, 139, 250, 0.16);
}

.chip,
.step-chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.chip.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.26);
  color: #d7ffef;
}

.chip.muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.summary-grid.compact,
.stats-grid,
.grid-section.cards,
.grid-section.plans,
.grid-section.dashboard,
.feature-grid {
  gap: 18px;
}

.stat-card,
.info-row {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(12, 18, 38, 0.56);
}

.plan-card.current {
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 20px 44px rgba(124, 58, 237, 0.22);
}

.status-banner {
  align-items: center;
}

.section-head > .profile-summary,
.section-head > .chip-row,
.account-head > .chip-row {
  flex: 0 0 auto;
  margin-left: auto;
}

.section-head > .chip-row,
.account-head > .chip-row {
  justify-content: flex-end;
}

.plan-card {
  grid-template-rows: auto auto 1fr auto auto;
}

.plan-card .card-actions {
  margin-top: auto;
  padding-top: 8px;
  justify-content: center;
}

.status-banner .card-actions {
  align-self: center;
  padding-top: 0;
}

.plan-price {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.feature-list li::marker {
  color: #a78bfa;
}

.field input,
.field textarea,
.field select {
  min-height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.field textarea {
  min-height: 140px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.suggestion-list {
  margin-top: 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.suggestion-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.feature-toggle {
  min-height: 120px;
  align-content: start;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    rgba(12, 18, 38, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-toggle.enabled {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(45, 212, 191, 0.08)),
    rgba(12, 18, 38, 0.66);
  border-color: rgba(167, 139, 250, 0.24);
}

.feature-toggle.battle-toggle {
  position: relative;
  min-height: 148px;
  gap: 12px;
  padding: 22px 24px 24px;
  padding-right: 168px;
}

.feature-toggle.battle-toggle .feature-title {
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  line-height: 1.18;
}

.feature-toggle.battle-toggle .feature-state {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f4efff;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-toggle.battle-toggle.enabled .feature-state {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(45, 212, 191, 0.2));
  border-color: rgba(52, 211, 153, 0.34);
  color: #dcfff3;
}

.feature-toggle.battle-toggle small {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-title,
.feature-state {
  color: var(--muted-strong);
}

.support-footer {
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.support-rail {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 18px 26px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--surface);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.support-copy {
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  color: var(--muted-strong);
}

.telegram-link {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.telegram-link svg {
  width: 24px;
  height: 24px;
}

.widget-shell,
.telegram-widget-panel {
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(45, 212, 191, 0.05)),
    rgba(12, 18, 38, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toast {
  background: rgba(7, 11, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
  .site-nav,
  .status-banner,
  .section-head,
  .plan-card-top {
    gap: 12px;
  }
}

@media (max-width: 780px) {
  .site-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 16px;
  }

  .site-header,
  .hero-card,
  .data-card,
  .plan-card,
  .status-banner {
    padding: 18px;
  }

  .support-rail {
    border-radius: 28px;
    padding: 16px 16px 16px 18px;
  }

  .telegram-link {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: min(100% - 16px, 1360px);
  }

  .site-nav {
    padding: 8px;
    border-radius: 20px;
  }

  .support-rail {
    padding: 14px;
    gap: 12px;
  }

  .support-copy {
    font-size: 0.98rem;
    line-height: 1.45;
  }
}

/* Mobile usability hardening */

button,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-link,
.choice-tab,
.ghost-button,
.primary-button,
.danger-button,
.profile-menu-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.brand-button,
.brand-copy,
.profile-pill,
.profile-pill-copy,
.support-rail,
.support-copy,
.info-row strong,
.stat-card strong,
.hero-card h1,
.data-card h2,
.data-card h3,
.plan-card h3,
.status-banner h3,
.card-caption {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-button,
.profile-pill {
  min-width: 0;
}

@media (max-width: 900px) {
  .site-shell {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .header-main {
    gap: 12px;
  }

  .header-actions,
  .account-controls {
    width: 100%;
  }

  .account-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .admin-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .profile-menu {
    width: 100%;
  }

  .profile-pill {
    width: 100%;
    justify-content: space-between;
  }

  .profile-pill-copy {
    flex: 1 1 auto;
  }

  .profile-dropdown {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

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

  .nav-link {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .choice-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .choice-tab {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card-actions > * {
    width: 100%;
  }

  .status-banner .card-actions {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 14px, 1360px);
    padding-top: 12px;
  }

  .site-main,
  .page-section,
  .content-section,
  .stack-grid {
    gap: 14px;
  }

  .site-header,
  .hero-card,
  .data-card,
  .plan-card,
  .status-banner {
    padding: 16px;
    border-radius: 22px;
  }

  .brand-button {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy small {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .hero-card h1 {
    font-size: clamp(1.68rem, 8.5vw, 2.25rem);
    line-height: 1.08;
  }

  .data-card h2,
  .data-card h3,
  .plan-card h3,
  .status-banner h3 {
    font-size: clamp(1.08rem, 5.8vw, 1.34rem);
  }

  .section-head,
  .account-head,
  .plan-card-top,
  .status-banner,
  .profile-summary,
  .support-rail {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-summary {
    width: 100%;
  }

  .section-head > .profile-summary,
  .section-head > .chip-row,
  .account-head > .chip-row {
    width: 100%;
    margin-left: 0;
  }

  .section-head > .chip-row,
  .account-head > .chip-row {
    justify-content: flex-start;
  }

  .summary-grid.compact,
  .stats-grid,
  .grid-section.cards,
  .grid-section.plans,
  .grid-section.dashboard,
  .grid-section.two,
  .grid-section.three,
  .feature-grid,
  .input-grid.two {
    grid-template-columns: 1fr;
  }

  .site-nav {
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 20px;
  }

  .nav-link {
    min-height: 50px;
  }

  .choice-tabs {
    grid-template-columns: 1fr;
  }

  .field input,
  .field textarea,
  .field select,
  .profile-menu-item,
  .nav-link,
  .choice-tab,
  .ghost-button,
  .primary-button,
  .danger-button {
    font-size: 16px;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 52px;
    padding: 14px;
  }

  .field textarea {
    min-height: 120px;
  }

  .compact-field {
    min-width: 0;
  }

  .step-strip {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .step-chip {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .telegram-link {
    align-self: flex-end;
  }

  .support-rail {
    padding: 14px 14px 16px;
    border-radius: 24px;
  }

  .support-copy {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .feature-toggle {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .feature-toggle.battle-toggle {
    min-height: 144px;
    padding: 18px;
    padding-top: 80px;
  }

  .feature-toggle.battle-toggle .feature-title {
    font-size: 1.18rem;
  }

  .feature-toggle.battle-toggle .feature-state {
    top: 18px;
    right: 18px;
    min-width: 98px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .widget-shell-auth {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .widget-shell-auth iframe {
    max-width: none;
  }

  .empty-state {
    min-height: 30vh;
    padding: 20px;
  }

  .toast {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }
}

.chip.accent {
  background: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.28);
  color: #efe7ff;
}

.subscription-toolbar,
.subscription-filter-group {
  display: grid;
  gap: 12px;
}

.subscription-toolbar-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.subscription-user-card {
  width: 100%;
  display: grid;
  gap: 16px;
  padding: 18px;
  text-align: left;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.interactive-card {
  cursor: pointer;
}

.subscription-user-card:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.subscription-user-card .summary-grid {
  margin-top: 2px;
}

.subscription-user-head {
  align-items: flex-start;
}

.subscription-actions {
  display: flex;
  justify-content: center;
}

.subscription-actions.start {
  justify-content: flex-start;
}

.title-action-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.title-action-button:hover,
.title-action-button:focus-visible {
  color: #f5efff;
  text-shadow: 0 0 14px rgba(167, 139, 250, 0.24);
}

.title-action-button:focus-visible,
.info-action-row:focus-visible {
  outline: none;
}

.info-action-row {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.info-action-row:hover,
.info-action-row:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 139, 250, 0.34);
  box-shadow: 0 18px 34px rgba(124, 58, 237, 0.16);
}

.admin-referral-list,
.admin-referral-relations,
.admin-user-profile-accounts {
  display: grid;
  gap: 16px;
}

.subscription-empty-state {
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.subscription-empty-state h3,
.subscription-empty-state p {
  margin: 0;
}

@media (max-width: 540px) {
  .subscription-user-card {
    padding: 16px;
  }

  .subscription-actions {
    justify-content: stretch;
  }

  .subscription-actions .ghost-button {
    width: 100%;
  }
}

.header-actions,
.account-controls,
.profile-menu,
.profile-pill,
.profile-pill-copy {
  min-width: 0;
}

.account-controls {
  gap: 12px;
  align-items: stretch;
}

.profile-menu {
  width: min(100%, 420px);
  max-width: 100%;
}

.profile-pill {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
}

.profile-pill-copy {
  display: grid;
  gap: 4px;
}

.profile-pill-copy strong,
.profile-pill-copy span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.profile-caret {
  justify-self: end;
}

.telegram-widget-panel {
  justify-items: stretch;
  gap: 18px;
  padding: 22px;
  text-align: left;
}

.telegram-widget-panel-inline {
  align-content: start;
}

.telegram-widget-copy {
  width: 100%;
  justify-items: start;
  text-align: left;
}

.telegram-widget-copy span {
  max-width: none;
}

.widget-shell {
  width: min(100%, 420px);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 26px;
  overflow: hidden;
}

.widget-shell-auth {
  width: min(100%, 420px);
  justify-content: center;
  overflow: hidden;
}

.widget-shell > *,
.widget-shell-auth > * {
  max-width: 100%;
  margin-inline: auto;
}

.widget-shell iframe,
.widget-shell-auth iframe {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.telegram-widget-panel .card-actions {
  width: 100%;
  justify-content: center;
}

.support-copy {
  display: grid;
  gap: 6px;
}

.support-copy strong {
  color: var(--muted-strong);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.support-copy span {
  color: var(--muted);
  line-height: 1.55;
}

.support-links,
.support-info-value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.support-links {
  justify-content: flex-end;
}

.support-links-tight {
  gap: 8px;
  justify-content: flex-start;
}

.support-link-chip,
.support-inline-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.support-inline-link-chip {
  text-decoration: none;
}

.support-link-chip.tg,
.support-inline-link-chip.tg {
  border-color: rgba(84, 169, 235, 0.26);
  background: rgba(84, 169, 235, 0.14);
  color: #dff3ff;
}

.support-link-chip.vk,
.support-inline-link-chip.vk {
  border-color: rgba(74, 118, 168, 0.3);
  background: rgba(74, 118, 168, 0.16);
  color: #e5efff;
}

.support-link-chip:hover,
.support-inline-link-chip:hover {
  transform: translateY(-1px);
}

.support-inline-link {
  color: #dce8ff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.42);
  text-underline-offset: 0.18em;
}

.support-inline-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(116, 197, 255, 0.72);
}

.support-info-value {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .profile-menu {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .widget-shell,
  .widget-shell-auth {
    width: 100%;
    min-height: 82px;
    padding: 14px;
    border-radius: 22px;
  }

  .support-links {
    width: 100%;
    justify-content: flex-start;
  }

  .support-link-chip,
  .support-inline-link-chip {
    width: 100%;
  }
}
