/* Sky VPN Mini App — сине-фиолетовая система (как сайт / админка) + snappy-переходы */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap");

:root {
  --ma-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ma-ease-snap: cubic-bezier(0.34, 1.2, 0.64, 1);
  --ma-dur: 0.16s;
  --ma-dur-med: 0.22s;
  /* Сетка отступов — чуть просторнее для мини-приложения */
  --ma-space-1: 0.25rem;
  --ma-space-2: 0.5rem;
  --ma-space-3: 0.875rem;
  --ma-space-4: 1.125rem;
  --ma-space-5: 1.375rem;
  --ma-space-6: 1.625rem;
  /* Единый glass для карточек — чуть крупнее радиус, «жидкое» стекло */
  --ma-glass-radius: 1.35rem;
  --ma-glass-blur: 20px;
  --ma-glass-bg: rgba(12, 16, 34, 0.82);
  --ma-glass-border: rgba(132, 158, 255, 0.28);
  --ma-glass-inset: rgba(255, 255, 255, 0.085);
  --ma-glass-shadow: 0 16px 48px -14px rgba(0, 0, 0, 0.58), 0 6px 24px rgba(56, 70, 140, 0.22);
  /* Fallback, если landing.css не подгрузился */
  --ma-gradient-cta: linear-gradient(135deg, #5f7bff 0%, #7c5cff 52%, #8a54ff 100%);
}

html {
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

@keyframes ma-aurora-drift {
  0% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, -0.8%, 0) scale(1.02);
  }
}

@keyframes ma-aurora-drift-slow {
  0% {
    transform: translate3d(1%, 0.5%, 0) scale(1);
  }
  100% {
    transform: translate3d(-1.2%, -1%, 0) scale(1.03);
  }
}

@keyframes ma-pane-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ma-pane-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes ma-pane-enter-next {
  from {
    opacity: 0;
    transform: translate3d(14px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ma-pane-enter-prev {
  from {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ma-tab-liquid {
  0% {
    transform: translate(-50%, -50%) scale(0.12);
    opacity: 0.88;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes ma-shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

@keyframes ma-plan-select-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ma-copy-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.95;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ma-splash-fill {
  0% {
    width: 0%;
    opacity: 0.85;
  }
  100% {
    width: 92%;
    opacity: 1;
  }
}

@keyframes ma-splash-logo-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0));
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 28px rgba(99, 102, 241, 0.35));
  }
}

@keyframes ma-splash-status-dot {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.72);
    opacity: 0.42;
  }
  40% {
    transform: translateY(-4px) scale(1);
    opacity: 1;
  }
}

@keyframes ma-splash-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ma-pay-stagger-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes ma-header-sync {
  0% {
    transform: scaleX(0.2);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.35);
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ma-dur: 0.01ms;
    --ma-dur-med: 0.01ms;
  }

  .ma-body::before,
  .ma-body::after {
    animation: none !important;
  }

  .ma-pane.ma-pane--enter {
    animation: none !important;
  }

  .ma-pane.ma-pane--enter.ma-pane--dir-next,
  .ma-pane.ma-pane--enter.ma-pane--dir-prev {
    animation: none !important;
  }

  .ma-pane-track {
    transition: none !important;
  }

  .ma-pane.ma-pane--exit {
    animation: none !important;
  }

  .ma-tab:active::before {
    animation: none !important;
    opacity: 0 !important;
  }

  .ma-modal__backdrop,
  .ma-modal__card,
  .ma-toast {
    animation: none !important;
  }

  .ma-plan.is-pulse-select {
    animation: none !important;
  }

  .ma-stats--loading .ma-stat-pill__inner,
  .ma-stats--loading .ma-hero__stat-val,
  .ma-sub-card--loading .ma-url-text__inner {
    animation: none !important;
  }

  .ma-copy-success-ic,
  .ma-copy-success-overlay {
    animation: none !important;
  }

  .ma-splash__fill {
    animation: none !important;
    width: 70% !important;
  }

  .ma-pane[data-pane="pay"].ma-pane--pay-stagger .ma-pay-stagger-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ma-splash.ma-splash--go:not(.ma-splash--hide) .ma-splash__content {
    animation: none !important;
    opacity: 1 !important;
  }

  .ma-splash.ma-splash--go:not(.ma-splash--hide) .ma-splash__core {
    animation: none !important;
  }

  .ma-splash,
  .ma-splash.ma-splash--hide {
    transition: none !important;
  }

  .ma-chip-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Тонкий grain поверх фона (не «пластик») */
.ma-noise-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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='0.65'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.ma-body.theme-light .ma-noise-layer {
  opacity: 0.022;
  mix-blend-mode: multiply;
}

/* Стартовый экран (первый запуск) */
.ma-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse 120% 80% at 50% 18%, #121a38 0%, #070b18 42%, #020308 100%);
  transition:
    opacity 0.55s var(--ma-ease-out),
    visibility 0.55s;
}

.ma-body.theme-light .ma-splash {
  background: radial-gradient(ellipse 120% 85% at 50% 15%, #eef2fb 0%, #dce4f5 38%, #c9d4e8 100%);
}

.ma-body.theme-light .ma-splash__brand {
  color: rgba(30, 41, 59, 0.92);
}

.ma-body.theme-light .ma-splash__track {
  background: rgba(15, 23, 42, 0.12);
}

.ma-body.theme-light .ma-splash__status span {
  background: rgba(79, 70, 229, 0.74);
  box-shadow: 0 0 14px rgba(79, 70, 229, 0.22);
}

.ma-splash__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}

.ma-splash.ma-splash--go:not(.ma-splash--hide) .ma-splash__content {
  animation: ma-splash-fade-in 1.05s ease-out 0.25s forwards;
}

.ma-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ma-splash__bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.16), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(139, 92, 246, 0.14), transparent 40%),
    radial-gradient(circle at 50% 88%, rgba(95, 123, 255, 0.1), transparent 50%);
}

.ma-splash__dust {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0.5px, transparent 0.6px);
  background-size: 56px 64px;
}

.ma-splash__logo {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.25rem;
}

.ma-splash__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    rgba(56, 189, 248, 0.95),
    rgba(139, 92, 246, 0.9),
    rgba(95, 123, 255, 0.82),
    rgba(56, 189, 248, 0.95)
  );
  filter: blur(0.5px);
  box-shadow:
    0 0 32px rgba(56, 189, 248, 0.25),
    0 0 48px rgba(99, 102, 241, 0.15);
  animation: ma-aurora-drift-slow 14s ease-in-out infinite alternate;
}

.ma-splash__core {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(165deg, #0f172a 0%, #070b14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(224, 242, 254, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ma-splash__brand {
  margin: 0 0 1.35rem;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: clamp(0.98rem, 3.2vw, 1.12rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210, 224, 248, 0.94);
  text-shadow: 0 2px 24px rgba(99, 102, 241, 0.2);
}

.ma-splash__track {
  width: min(12rem, 72vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ma-splash__status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.95rem;
}

.ma-splash__status span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.88);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
  animation: ma-splash-status-dot 1.15s ease-in-out infinite;
}

.ma-splash__status span:nth-child(2) {
  animation-delay: 0.14s;
}

.ma-splash__status span:nth-child(3) {
  animation-delay: 0.28s;
}

.ma-splash__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #22d3ee, #38bdf8);
  background-size: 200% 100%;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
  animation: ma-splash-fill 2.35s var(--ma-ease-out) forwards;
  animation-play-state: paused;
}

.ma-splash.ma-splash--go:not(.ma-splash--hide) .ma-splash__core {
  animation: ma-splash-logo-pulse 2.2s ease-in-out infinite;
}

.ma-splash--go .ma-splash__fill {
  animation-play-state: running;
}

.ma-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100vw;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    var(--sv-font, "IBM Plex Sans", system-ui, sans-serif);
  color: var(--sv-text, #ececf1);
  background-color: #050816;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 24px 24px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 0.5s ease,
    color 0.45s ease;
}

/* Мягкое «сияние»: два слоя, низкая насыщенность, без резких искажений */
.ma-body::before {
  content: "";
  position: fixed;
  inset: -5%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background:
    radial-gradient(ellipse 95% 55% at 12% -5%, rgba(79, 123, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 75% 50% at 88% 8%, rgba(120, 73, 255, 0.11), transparent 55%),
    radial-gradient(ellipse 110% 65% at 48% 105%, rgba(56, 189, 248, 0.08), transparent 58%);
  animation: ma-aurora-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

.ma-body::after {
  content: "";
  position: fixed;
  inset: -5%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.5s ease;
  background: radial-gradient(ellipse 55% 38% at 72% 58%, rgba(139, 92, 246, 0.09), transparent 62%);
  animation: ma-aurora-drift-slow 30s ease-in-out infinite alternate;
  will-change: transform;
}

.ma-body.theme-light {
  color: #243044;
  background-color: #e8ecf3;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.028) 1px, transparent 0);
}

.ma-body.theme-light::before {
  opacity: 0.5;
  background:
    radial-gradient(ellipse 95% 55% at 10% -5%, rgba(14, 165, 233, 0.07), transparent 58%),
    radial-gradient(ellipse 75% 50% at 90% 10%, rgba(99, 102, 241, 0.06), transparent 55%),
    radial-gradient(ellipse 110% 65% at 50% 100%, rgba(20, 184, 166, 0.06), transparent 58%);
}

.ma-body.theme-light::after {
  opacity: 0.35;
  background: radial-gradient(ellipse 55% 38% at 70% 55%, rgba(99, 102, 241, 0.06), transparent 62%);
}

.ma-body.theme-light .ma-user-strip__name,
.ma-body.theme-light .ma-h2,
.ma-body.theme-light .ma-pay-title {
  color: #1a2333;
}

.ma-body.theme-light .ma-glass-card {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(252, 252, 253, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px -8px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

.ma-body.theme-light .ma-select,
.ma-body.theme-light .ma-icon-btn {
  border-color: rgba(0, 0, 0, 0.35);
  background-color: rgba(255, 255, 255, 0.95);
  color: #1a2333;
}

.ma-body.theme-light .ma-btn-outline {
  border-color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.5);
  color: #111827;
}

.ma-body.theme-light .ma-btn-outline:hover {
  border-color: rgba(0, 0, 0, 0.85);
  color: #0f172a;
}

.ma-body.theme-light .ma-chip-btn {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.55);
  color: #1e293b;
}

.ma-body.theme-light .ma-plan {
  border-color: rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.65);
}

.ma-body.theme-light .ma-url-box {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(248, 250, 252, 0.95);
}

.ma-body.theme-light .ma-mono,
.ma-body.theme-light .ma-url-text {
  color: #334155;
}

.ma-body.theme-light .ma-link-list a {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #4338ca;
}

.ma-body.theme-light .ma-tab.is-active {
  color: #3730a3;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.14));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.ma-body.theme-light .ma-tab:not(.is-active) {
  color: #64748b;
}

.ma-body.theme-light .ma-user-strip__sub,
.ma-body.theme-light .ma-muted,
.ma-body.theme-light .ma-copy-hint,
.ma-body.theme-light .ma-ref-bonus,
.ma-body.theme-light .ma-info-foot,
.ma-body.theme-light .ma-pay-note,
.ma-body.theme-light .ma-pay-foot,
.ma-body.theme-light .ma-settings-theme-note {
  color: #475569;
}

.ma-body.theme-light .ma-label,
.ma-body.theme-light .ma-section-title,
.ma-body.theme-light .ma-ref-label {
  color: #334155;
}

.ma-body.theme-light .ma-stat-label {
  color: #64748b;
}

.ma-body.theme-light .ma-stats .ma-stat-row {
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

.ma-body.theme-light .ma-stat-pill {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #1e293b;
}

.ma-body.theme-light .ma-badge-status {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.45);
  color: #166534;
}

.ma-body.theme-light .ma-badge-status.is-inactive {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}

.ma-body.theme-light .ma-pay-sub {
  color: #64748b;
}

.ma-body.theme-light .ma-pay-header__icon {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4338ca;
}

.ma-body.theme-light .ma-chip {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #475569;
}

.ma-body.theme-light .ma-plan {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #1e293b;
}

.ma-body.theme-light .ma-plan__hint {
  color: #64748b;
}

.ma-body.theme-light .ma-plan.is-selected {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.ma-body.theme-light .ma-plan--featured {
  border-color: rgba(99, 102, 241, 0.4);
}

.ma-body.theme-light .ma-plan__tag {
  background: rgba(99, 102, 241, 0.22);
  color: #0f172a;
}

.ma-body.theme-light .ma-chip-btn--outline {
  border-color: rgba(99, 102, 241, 0.55);
  color: #4338ca;
  background: rgba(255, 255, 255, 0.6);
}

.ma-body.theme-light .ma-footer-link {
  color: #4338ca;
}

.ma-body.theme-light .ma-pay-foot a {
  color: #4338ca;
}

.ma-body.theme-light .ma-warn-title {
  color: #b91c1c;
}

.ma-body.theme-light .ma-glass-card--warn {
  border-color: rgba(185, 28, 28, 0.35);
  background: rgba(254, 226, 226, 0.65);
}

.ma-body.theme-light .ma-acc__title {
  color: #0f172a;
}

.ma-body.theme-light .ma-acc__sub {
  color: #64748b;
}

.ma-body.theme-light .ma-acc__chev {
  border-right-color: #64748b;
  border-bottom-color: #64748b;
}

.ma-body.theme-light .ma-acc__panel {
  border-top-color: rgba(15, 23, 42, 0.1);
}

.ma-body.theme-light .ma-acc__icon--pink {
  border-color: rgba(190, 24, 93, 0.35);
  color: #be185d;
  background: rgba(251, 207, 232, 0.35);
}

.ma-body.theme-light .ma-acc__icon--teal {
  border-color: rgba(99, 102, 241, 0.45);
  color: #4338ca;
  background: rgba(204, 251, 241, 0.5);
}

.ma-body.theme-light .ma-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f766e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

.ma-body.theme-light .ma-proxy-hero__badge {
  color: #64748b;
}

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

.ma-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100vw;
  width: 100%;
  margin: 0 auto;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

.ma-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  touch-action: pan-y;
  /* Запас под таббар + поля по бокам (визуальный «воздух») */
  padding-top: calc(var(--ma-space-5) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(4.65rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 1;
  min-width: 0;
}

@media (min-width: 390px) {
  .ma-scroll {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 480px) {
  .ma-scroll {
    padding-left: max(1.35rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.35rem, env(safe-area-inset-right, 0px));
  }
}

/* Горизонтальная карусель вкладок: свайп тянет трек, отпускание — плавный доезд */
.ma-pane-viewport {
  overflow: hidden;
  overflow-x: clip;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  isolation: isolate;
}

.ma-pane-track {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.ma-pane-track.ma-pane-track--drag {
  transition: none !important;
}

.ma-pane-track .ma-pane[data-pane] {
  display: block !important;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 0;
  min-height: auto;
}

.ma-pane[hidden] {
  display: none !important;
}

.ma-pane.is-active:not([hidden]) {
  display: block;
  min-width: 0;
}

.ma-pane.ma-pane--enter:not([hidden]):not(.ma-pane--dir-next):not(.ma-pane--dir-prev) {
  animation: ma-pane-enter 0.2s var(--ma-ease-out) both;
}

.ma-pane.ma-pane--enter.ma-pane--dir-next:not([hidden]) {
  animation: ma-pane-enter-next 0.2s var(--ma-ease-out) both;
}

.ma-pane.ma-pane--enter.ma-pane--dir-prev:not([hidden]) {
  animation: ma-pane-enter-prev 0.2s var(--ma-ease-out) both;
}

.ma-pane.ma-pane--exit:not([hidden]) {
  animation: ma-pane-exit 0.13s ease-in forwards;
}

/* Шапка: лёгкий оттенок по статусу подписки */
.ma-header-zone {
  position: relative;
  border-radius: calc(var(--ma-glass-radius) - 0.2rem);
  padding: var(--ma-space-4) var(--ma-space-4);
  margin: 0 0 var(--ma-space-5);
  transition:
    background var(--ma-dur-med) var(--ma-ease-out),
    box-shadow var(--ma-dur-med) var(--ma-ease-out);
}

.ma-header-zone__sync {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  top: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(95, 123, 255, 0.85), transparent);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ma-header-zone--refreshing .ma-header-zone__sync {
  opacity: 1;
  animation: ma-header-sync 1.1s ease-in-out infinite;
}

.ma-header-zone--active {
  background: linear-gradient(
    135deg,
    rgba(95, 123, 255, 0.1) 0%,
    rgba(56, 189, 248, 0.06) 50%,
    transparent 100%
  );
  box-shadow: 0 0 0 1px rgba(95, 123, 255, 0.12);
}

.ma-header-zone--inactive {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.07) 0%,
    rgba(148, 163, 184, 0.05) 100%
  );
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.1);
}

.ma-body.theme-light .ma-header-zone--active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(14, 165, 233, 0.06));
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15);
}

.ma-body.theme-light .ma-header-zone--inactive {
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.35), rgba(226, 232, 240, 0.5));
  box-shadow: 0 0 0 1px rgba(252, 165, 165, 0.35);
}

/* —— User strip —— */
.ma-user-strip {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-width: 0;
  margin-bottom: 0;
}

.ma-user-strip--hero {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

/* Скелетоны статистики / подписки */
.ma-stats--loading {
  pointer-events: none;
}

.ma-stats--loading .ma-stat-pill__inner {
  display: inline-block;
  min-width: 2.5rem;
  min-height: 1em;
  color: transparent !important;
  border-radius: 0.35rem;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 220% 100%;
  animation: ma-shimmer 1.05s ease-in-out infinite;
}

.ma-stats--loading .ma-hero__stat-val {
  display: inline-block;
  min-width: 2.8rem;
  min-height: 1em;
  color: transparent !important;
  border-radius: 0.35rem;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 220% 100%;
  animation: ma-shimmer 1.05s ease-in-out infinite;
}

.ma-stats--loading .ma-hero__stat--traffic .ma-hero__stat-val {
  min-width: 6.6rem;
}

.ma-stats--loading .ma-stat-pill--wide .ma-stat-pill__inner {
  min-width: 8rem;
}

.ma-body.theme-light .ma-stats--loading .ma-stat-pill__inner {
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.11) 45%,
    rgba(15, 23, 42, 0.06) 90%
  );
  background-size: 220% 100%;
}

.ma-body.theme-light .ma-stats--loading .ma-hero__stat-val {
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.12) 45%,
    rgba(15, 23, 42, 0.06) 90%
  );
  background-size: 220% 100%;
}

.ma-sub-card--loading .ma-url-text__inner {
  display: block;
  min-height: 3.25rem;
  color: transparent !important;
  border-radius: 0.35rem;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 220% 100%;
  animation: ma-shimmer 1.05s ease-in-out infinite;
}

.ma-body.theme-light .ma-sub-card--loading .ma-url-text__inner {
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.06) 0%,
    rgba(15, 23, 42, 0.1) 45%,
    rgba(15, 23, 42, 0.06) 90%
  );
  background-size: 220% 100%;
}

.ma-stat-label--icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ma-stat-label__ic {
  display: flex;
  color: var(--sv-mint);
  opacity: 0.85;
  flex-shrink: 0;
}

.ma-body.theme-light .ma-stat-label__ic {
  color: #4338ca;
}

/* Прогресс оставшегося срока */
.ma-sub-progress-wrap {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-body.theme-light .ma-sub-progress-wrap {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.ma-sub-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ma-body.theme-light .ma-sub-progress-track {
  background: rgba(15, 23, 42, 0.1);
}

.ma-sub-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(95, 123, 255, 0.92), rgba(56, 189, 248, 0.88));
  transition: width 0.45s var(--ma-ease-out);
}

/* Настройки: группы */
.ma-settings-group-title {
  margin: 1rem 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sv-muted, #9898a3);
}

.ma-settings-group-title:first-child {
  margin-top: 0;
}

.ma-settings-group-note {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
}

/* Копирование: успех */
.ma-btn-outline.is-copy-success,
.ma-icon-btn.is-copy-success {
  border-color: rgba(34, 197, 94, 0.55) !important;
  background: rgba(34, 197, 94, 0.12) !important;
  color: #86efac !important;
}

.ma-copy-success-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  vertical-align: middle;
  animation: ma-copy-pulse 0.45s var(--ma-ease-out) 1;
}

.ma-body.theme-light .ma-btn-outline.is-copy-success,
.ma-body.theme-light .ma-icon-btn.is-copy-success {
  border-color: rgba(22, 163, 74, 0.45) !important;
  background: rgba(22, 163, 74, 0.1) !important;
  color: #166534 !important;
}

.ma-copy-success-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: ma-copy-pulse 0.45s var(--ma-ease-out) 1;
}

.ma-icon-btn.is-copy-success > svg {
  opacity: 0.22;
  transition: opacity 0.15s var(--ma-ease-out);
}

/* Тариф: выбор */
.ma-plan.is-pulse-select {
  animation: ma-plan-select-pop 0.38s var(--ma-ease-snap) 1;
}

.ma-user-strip__text {
  flex: 1;
  min-width: 0;
}

.ma-user-strip__name {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-user-strip__sub {
  font-size: 0.8125rem;
  color: var(--sv-muted, #9898a3);
  margin-top: 0.15rem;
}

.ma-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #f7f9ff;
  background: var(--sv-gradient-cta, var(--ma-gradient-cta));
  flex-shrink: 0;
  box-shadow: 0 6px 18px -6px rgba(95, 123, 255, 0.45);
}

.ma-avatar--lg {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.35rem;
}

.ma-badge-status {
  flex-shrink: 0;
  max-width: 42%;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.ma-badge-status.is-inactive {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* —— Glass cards —— */
.ma-glass-card {
  border-radius: var(--ma-glass-radius);
  border: 1px solid var(--ma-glass-border);
  background: var(--ma-glass-bg);
  backdrop-filter: blur(var(--ma-glass-blur));
  -webkit-backdrop-filter: blur(var(--ma-glass-blur));
  padding: var(--ma-space-5) var(--ma-space-6);
  margin-bottom: var(--ma-space-5);
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    var(--ma-glass-shadow);
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    color 0.45s ease,
    transform var(--ma-dur) var(--ma-ease-out);
}

.ma-glass-card--flush-top {
  margin-top: 0;
}

.ma-glass-card--warn {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(80, 20, 20, 0.35);
  backdrop-filter: blur(var(--ma-glass-blur));
  -webkit-backdrop-filter: blur(var(--ma-glass-blur));
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    var(--ma-glass-shadow);
}

.ma-stats .ma-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-stats .ma-stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ma-stats.ma-glass-card {
  margin-bottom: var(--ma-space-5);
}

/* Главная: раскрывающийся блок «Подключение и трафик» */
.ma-glass-card--fold {
  padding: 0;
  overflow: hidden;
  border-color: rgba(139, 158, 255, 0.36);
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    0 20px 50px -18px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ma-body.theme-light .ma-glass-card--fold {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 14px 36px -12px rgba(15, 23, 42, 0.14);
}

.ma-home-fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ma-home-fold > summary::-webkit-details-marker {
  display: none;
}

.ma-home-fold__lead-icon {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 123, 255, 0.18);
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #c7d2fe;
}

.ma-body.theme-light .ma-home-fold__lead-icon {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.35);
  color: #4f46e5;
}

.ma-home-fold__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.ma-home-fold__title {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: rgba(248, 250, 255, 0.96);
}

.ma-body.theme-light .ma-home-fold__title {
  color: rgba(15, 23, 42, 0.94);
}

.ma-home-fold__preview {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-body.theme-light .ma-home-fold__preview {
  color: rgba(71, 85, 105, 0.92);
}

.ma-home-fold__chev {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.ma-home-fold__chev::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(203, 213, 245, 0.75);
  border-bottom: 2px solid rgba(203, 213, 245, 0.75);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s var(--ma-ease-out);
}

.ma-home-fold[open] .ma-home-fold__chev::after {
  transform: translate(-50%, -30%) rotate(225deg);
}

.ma-home-fold__body {
  padding: 0.35rem 1.1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: ma-pane-enter 0.2s var(--ma-ease-out) both;
}

.ma-body.theme-light .ma-home-fold__body {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.ma-stat-row--tight {
  padding: 0.5rem 0 0.35rem;
}

.ma-home-fold__meta {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.ma-fold-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ma-body.theme-light .ma-fold-limit-row {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.08);
}

.ma-fold-limit-label {
  font-size: 0.8rem;
  color: var(--sv-muted, #9898a3);
}

.ma-fold-limit-val {
  font-weight: 700;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #e8e9ed;
}

.ma-body.theme-light .ma-fold-limit-val {
  color: #0f172a;
}

.ma-devices-teaser--fold {
  margin-top: 0.35rem;
}

.ma-home-fold__section--traffic {
  margin-bottom: 0;
}

.ma-home-fold__spacer--before-devices {
  height: 1rem;
}

.ma-home-fold__devices-block {
  margin: 0 0 0.15rem;
}

.ma-home-fold__subhead {
  margin: 0 0 0.35rem;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(165, 180, 252, 0.88);
}

.ma-body.theme-light .ma-home-fold__subhead {
  color: rgba(67, 56, 202, 0.88);
}

.ma-home-fold__devices-hint {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.ma-home-fold__spacer {
  height: 0.75rem;
  flex-shrink: 0;
}

.ma-home-fold__spacer--after-list {
  height: 1rem;
}

.ma-fold-devices-host {
  position: relative;
  min-height: 0;
}

.ma-fold-devices-placeholder {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ma-fold-devices-placeholder[hidden] {
  display: none !important;
}

.ma-fold-device-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ma-fold-device-empty {
  margin: 0;
  font-size: 0.82rem;
}

.ma-fold-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.72rem;
  border-radius: 0.95rem;
  background: rgba(8, 12, 28, 0.48);
  border: 1px solid rgba(124, 150, 255, 0.16);
}

.ma-body.theme-light .ma-fold-device-row {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(15, 23, 42, 0.1);
}

.ma-fold-device-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ma-fold-device-row__titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: rgba(248, 250, 255, 0.96);
}

.ma-body.theme-light .ma-fold-device-row__titleline {
  color: rgba(15, 23, 42, 0.94);
}

.ma-fold-device-row__br {
  font-weight: 600;
  opacity: 0.45;
  font-size: 0.78rem;
  user-select: none;
}

.ma-fold-device-row__titlecore {
  font-weight: 700;
  word-break: break-word;
}

.ma-fold-device-row__title {
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  color: rgba(248, 250, 255, 0.96);
}

.ma-body.theme-light .ma-fold-device-row__title {
  color: rgba(15, 23, 42, 0.94);
}

.ma-fold-device-row__sub {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ma-fold-device-row__btn {
  flex-shrink: 0;
  margin: 0;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.42);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.ma-fold-device-row__btn:active {
  transform: scale(0.97);
}

.ma-body.theme-light .ma-fold-device-row__btn {
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.48);
  background: rgba(254, 202, 202, 0.38);
}

.ma-fold-device-row__off {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.78);
}

.ma-fold-limit-row--bottom {
  margin-bottom: 0.65rem;
}

.ma-stat-label {
  font-size: 0.875rem;
  color: var(--sv-muted, #9898a3);
}

.ma-stat-pill {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

.ma-stat-pill--wide {
  max-width: 65%;
  text-align: right;
  word-break: break-word;
}

/* CTA — «островок» под главной (тот же glass, что у карточек) */
.ma-cta-island {
  padding: var(--ma-space-4) var(--ma-space-5) var(--ma-space-5);
  margin-bottom: var(--ma-space-5);
  border-radius: var(--ma-glass-radius);
  background: var(--ma-glass-bg);
  border: 1px solid var(--ma-glass-border);
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    var(--ma-glass-shadow);
  backdrop-filter: blur(var(--ma-glass-blur));
  -webkit-backdrop-filter: blur(var(--ma-glass-blur));
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  position: sticky;
  bottom: calc(5.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 16;
}

.ma-body.theme-light .ma-cta-island {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(var(--ma-glass-blur));
  -webkit-backdrop-filter: blur(var(--ma-glass-blur));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px -14px rgba(15, 23, 42, 0.12);
}

.ma-cta-island .ma-cta-block {
  margin-bottom: 0.55rem;
}

.ma-cta-island .ma-pill-actions {
  margin-bottom: 0;
}

/* CTA */
.ma-cta-block {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.55rem;
  min-width: 0;
}

.ma-btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  min-height: 3.2rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: #f7f9ff;
  background: var(--sv-gradient-cta, var(--ma-gradient-cta));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 10px 28px -10px rgba(95, 123, 255, 0.5);
  transition:
    transform 0.22s var(--ma-ease-snap),
    box-shadow 0.22s var(--ma-ease-out),
    filter 0.22s var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-btn-gradient:hover {
  filter: brightness(1.07);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 12px 32px -8px rgba(95, 123, 255, 0.55);
}

.ma-btn-gradient:active,
a.ma-btn-gradient:active {
  transform: scale(0.97);
  filter: brightness(0.96);
}

.ma-btn-gradient--block {
  flex: 1;
  min-width: 0;
}

a.ma-btn-gradient--block {
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.ma-btn-download {
  margin-top: 0.15rem;
}

/* Ссылка «Скачать» и прочие вторичные кнопки (раньше классов не было в CSS) */
.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--ma-dur) var(--ma-ease-out),
    border-color var(--ma-dur) var(--ma-ease-out),
    color var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-snap);
  touch-action: manipulation;
}

.ma-btn--ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
}

.ma-btn--ghost:hover {
  border-color: rgba(95, 123, 255, 0.4);
  color: var(--sv-mint);
}

.ma-btn--ghost:active {
  background: rgba(95, 123, 255, 0.08);
  transform: scale(0.98);
}

.ma-cta-icons {
  display: flex;
  gap: 0.4rem;
}

.ma-icon-btn {
  position: relative;
  width: 3rem;
  min-width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--sv-mint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--ma-dur) var(--ma-ease-snap),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    box-shadow var(--ma-dur) var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-icon-btn:hover {
  border-color: rgba(95, 123, 255, 0.35);
  background: rgba(95, 123, 255, 0.08);
}

.ma-icon-btn:active {
  background: rgba(95, 123, 255, 0.14);
  transform: scale(0.94);
}

.ma-pill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.ma-chip-btn {
  flex: 1 1 calc(50% - 0.225rem);
  min-width: 0;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4ea;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    transform 0.2s var(--ma-ease-snap),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    color var(--ma-dur) var(--ma-ease-out),
    box-shadow 0.22s var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
}

.ma-chip-btn:active {
  transform: scale(0.97);
}

.ma-chip-btn--outline {
  border-color: rgba(95, 123, 255, 0.45);
  color: var(--sv-mint);
  background: transparent;
}

.ma-chip-btn--outline:hover {
  background: rgba(95, 123, 255, 0.08);
}

.ma-setup-anchor {
  scroll-margin-top: 0.5rem;
}

.ma-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sv-muted, #9898a3);
}

.ma-h2 {
  margin: 0 0 0.85rem;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fafafa;
}

.ma-h2--compact {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.ma-label {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #a8b0c0;
}

.ma-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%235f7bff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1.1rem;
  color: #ececf1;
  font-size: 0.9375rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.45s ease,
    color 0.45s ease;
}

.ma-select:focus {
  outline: none;
  border-color: rgba(95, 123, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(95, 123, 255, 0.15);
}

.ma-muted {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sv-muted, #9898a3);
}

.ma-sub-lead {
  margin-bottom: 0.65rem;
}

.ma-url-box {
  border-radius: 0.75rem;
  border: 1px solid rgba(95, 123, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}

.ma-url-box--sm {
  margin-bottom: 0.65rem;
}

.ma-mono,
.ma-url-text {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
  color: #c5cdd8;
}

.ma-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Отступ над основной кнопкой «Подключить» (Happ / клиент) */
.ma-btn-stack--after-client {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.ma-settings-theme-note {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.ma-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fafafa;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--ma-dur) var(--ma-ease-snap),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    color var(--ma-dur) var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-btn-outline:hover {
  border-color: rgba(95, 123, 255, 0.4);
  color: var(--sv-mint);
}

.ma-btn-outline:active {
  transform: scale(0.98);
}

.ma-btn--block {
  width: 100%;
  box-sizing: border-box;
}

.ma-copy-hint {
  margin-top: 0.45rem;
  min-height: 1.1rem;
}

.ma-warn-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #fecaca;
}

.ma-footer-link {
  display: block;
  text-align: center;
  margin: var(--ma-space-5) 0 var(--ma-space-6);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sv-mint);
  text-decoration: none;
  transition:
    color var(--ma-dur) var(--ma-ease-out),
    opacity var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-snap);
}

.ma-footer-link:active {
  opacity: 0.85;
  transform: scale(0.98);
}

/* Pay tab */
.ma-pay-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.ma-pay-header__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(95, 123, 255, 0.12);
  border: 1px solid rgba(95, 123, 255, 0.28);
  color: var(--sv-mint);
  transition:
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-out);
}

.ma-pay-title {
  margin: 0;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fafafa;
}

.ma-pay-sub {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--sv-muted, #9898a3);
}

.ma-pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.ma-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c4cad4;
  transition:
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out);
}

.ma-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.ma-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 5.5rem;
  min-width: 0;
  padding: 0.5rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fafafa;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  transition:
    transform var(--ma-dur) var(--ma-ease-snap),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    box-shadow var(--ma-dur) var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-plan:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.ma-plan:active {
  transform: scale(0.96);
}

.ma-plan.is-selected {
  border-color: rgba(95, 123, 255, 0.55);
  background: rgba(95, 123, 255, 0.1);
  box-shadow:
    0 0 0 2px rgba(95, 123, 255, 0.4),
    0 0 22px -6px rgba(95, 123, 255, 0.32);
}

.ma-plan--featured {
  border-color: rgba(95, 123, 255, 0.35);
  padding-top: 1.15rem;
}

.ma-plan__tag {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(95, 123, 255, 0.25);
  color: #e8ecff;
}

.ma-plan__emoji {
  font-size: 1.25rem;
}

.ma-plan__dur {
  font-weight: 700;
  font-size: 0.8125rem;
}

.ma-plan__hint {
  font-size: 0.65rem;
  color: var(--sv-muted, #9898a3);
  text-align: center;
}

.ma-pay-note {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
}

.ma-pay-cta {
  margin-top: 0.5rem;
}

.ma-pay-foot {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
}

.ma-pay-foot a {
  color: var(--sv-mint);
}

/* Оплата: появление блоков и кнопок по очереди */
.ma-pane[data-pane="pay"] .ma-pay-stagger-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ma-pane[data-pane="pay"].ma-pane--pay-stagger .ma-pay-stagger-item {
  animation: ma-pay-stagger-in 0.38s var(--ma-ease-out) both;
}

/* Подсказки (i) */
.ma-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
}

.ma-label-row--tight {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.ma-label--row {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ma-hint-btn {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--sv-muted, #9898a3);
  font-size: 0.7rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  transition:
    color var(--ma-dur) var(--ma-ease-out),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-snap);
  touch-action: manipulation;
}

.ma-hint-btn:hover {
  color: var(--sv-mint);
  border-color: rgba(95, 123, 255, 0.35);
  background: rgba(95, 123, 255, 0.08);
}

.ma-hint-btn:active {
  transform: scale(0.92);
}

.ma-hint-btn[aria-expanded="true"] {
  color: #f7f9ff;
  background: rgba(95, 123, 255, 0.35);
  border-color: rgba(95, 123, 255, 0.5);
}

.ma-body.theme-light .ma-hint-btn {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.6);
  color: #64748b;
}

.ma-hint-pop {
  clear: both;
  margin: 0.15rem 0 1.05rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #c5cdd8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.7rem;
}

#card-sub .ma-hint-pop {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.ma-pane[data-pane="pay"] .ma-hint-pop {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.ma-body.theme-light .ma-hint-pop {
  color: #334155;
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(15, 23, 42, 0.1);
}

/* Accordions */
.ma-acc {
  padding: 0 !important;
  overflow: hidden;
}

.ma-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 0.65rem;
  transition: background var(--ma-dur) var(--ma-ease-out);
  touch-action: manipulation;
}

.ma-acc__trigger:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ma-acc__trigger:active {
  background: rgba(95, 123, 255, 0.06);
}

.ma-acc__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
}

.ma-acc__icon--pink {
  border-color: rgba(244, 114, 182, 0.45);
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.1);
}
.ma-acc__icon--teal {
  border-color: rgba(124, 150, 255, 0.45);
  color: #a5b4fc;
  background: rgba(95, 123, 255, 0.12);
}

.ma-acc__titles {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ma-acc__title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fafafa;
}

.ma-acc__sub {
  font-size: 0.8125rem;
  color: var(--sv-muted, #9898a3);
}

.ma-acc__chev {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--sv-muted, #9898a3);
  border-bottom: 2px solid var(--sv-muted, #9898a3);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: -0.2rem;
  transition: transform var(--ma-dur-med) var(--ma-ease-out);
}

.ma-acc.is-open .ma-acc__chev {
  transform: rotate(-135deg);
  margin-top: 0.1rem;
}

.ma-acc__panel {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#acc-referral .ma-acc__panel .ma-url-box {
  margin-top: 0.55rem;
}

#acc-info .ma-acc__panel .ma-link-list {
  margin-top: 0.55rem;
}

/* Настройки профиля: больше воздуха под заголовком и между группами */
#acc-settings .ma-acc__titles {
  gap: 0.45rem;
}

#acc-settings .ma-acc__panel {
  padding: 1.2rem 1.05rem 1.15rem;
}

#acc-settings .ma-settings-group-title {
  margin: 1.35rem 0 0.55rem;
}

#acc-settings .ma-settings-group-title:first-child {
  margin-top: 0;
}

#acc-settings .ma-settings-group-title + .ma-label {
  margin-top: 0.7rem;
}

#acc-settings .ma-settings-theme-note {
  margin-top: 0.45rem;
  margin-bottom: 0.9rem;
}

.ma-acc__panel[hidden] {
  display: none !important;
}

.ma-ref-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sv-muted, #9898a3);
  text-transform: uppercase;
}

.ma-ref-desc {
  margin-bottom: 0.5rem;
}

.ma-ref-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.ma-ref-bonus {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
}

.ma-info-foot {
  font-size: 0.8125rem;
  margin: 0.5rem 0 0;
}

.ma-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ma-link-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #7dd3fc;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    transform var(--ma-dur) var(--ma-ease-snap),
    border-color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    color var(--ma-dur) var(--ma-ease-out);
}

.ma-link-list a:hover {
  border-color: rgba(95, 123, 255, 0.35);
  color: var(--sv-mint-bright);
}

.ma-link-list a:active {
  transform: scale(0.99);
}

/* Таббар — плавающий «островок» над контентом */
.ma-tabbar-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding-top: 0.25rem;
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
  pointer-events: none;
}

.ma-tabbar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.48rem 0.32rem 0.44rem;
  border-radius: 1.35rem;
  background: rgba(10, 12, 22, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(124, 150, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 40px -8px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.35);
  min-width: 0;
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.ma-body.theme-light .ma-tabbar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 32px -6px rgba(15, 23, 42, 0.12),
    0 3px 12px rgba(15, 23, 42, 0.06);
}

.ma-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.45rem;
  min-width: 0;
  padding: 0.15rem 0.08rem;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--sv-muted, #9898a3);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--ma-dur) var(--ma-ease-out),
    background var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-snap),
    border-radius var(--ma-dur-med) var(--ma-ease-out);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* «Пузырь» при нажатии (в духе жидкого таб-бара iOS) */
.ma-tab::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  aspect-ratio: 1;
  max-width: 5.5rem;
  border-radius: 42%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(
    circle at 50% 45%,
    rgba(122, 142, 255, 0.48) 0%,
    rgba(138, 84, 255, 0.18) 40%,
    transparent 68%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ma-tab:active::before {
  animation: ma-tab-liquid 0.48s var(--ma-ease-out) forwards;
}

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

.ma-body.theme-light .ma-tab::before {
  background: radial-gradient(
    circle at 50% 45%,
    rgba(99, 102, 241, 0.38) 0%,
    rgba(139, 92, 246, 0.14) 40%,
    transparent 68%
  );
}

.ma-tab__icon {
  display: flex;
  opacity: 0.85;
  transform: scale(1.08);
  transition:
    opacity var(--ma-dur) var(--ma-ease-out),
    transform var(--ma-dur) var(--ma-ease-snap);
}

.ma-tab:not(.is-active):hover .ma-tab__icon {
  transform: translateY(-2px);
}

.ma-tab:active {
  transform: scale(0.972);
}

.ma-tab.is-active {
  color: #d8e2ff;
  background: linear-gradient(135deg, rgba(95, 123, 255, 0.3), rgba(138, 84, 255, 0.22));
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 4px 18px rgba(95, 123, 255, 0.22);
}

.ma-tab.is-active .ma-tab__icon {
  opacity: 1;
  transform: scale(1.05);
}

.ma-tab__label {
  font-size: 0.6rem;
  line-height: 1.12;
  max-width: 100%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  hyphens: auto;
  padding: 0 0.05rem;
}

.ma-modal[hidden],
.ma-toast[hidden] {
  display: none !important;
}

.ma-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
}

.ma-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.75);
  backdrop-filter: blur(5px);
  animation: ma-backdrop-in var(--ma-dur-med) var(--ma-ease-out) both;
}

@keyframes ma-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ma-modal__card {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 24, 0.95);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  padding: 1rem;
  animation: ma-modal-pop var(--ma-dur-med) var(--ma-ease-snap) both;
}

@keyframes ma-modal-pop {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.ma-modal__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fafafa;
}

.ma-modal__sub {
  margin: 0 0 0.45rem;
  color: #c2c7d0;
  font-size: 0.86rem;
}

.ma-modal__meta {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #9db0c7;
  word-break: break-word;
}

.ma-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.ma-toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.45rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: calc(100vw - 1.8rem);
  z-index: 170;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f7f9ff;
  background: var(--sv-gradient-cta, var(--ma-gradient-cta));
  box-shadow: 0 10px 28px -12px rgba(95, 123, 255, 0.5);
  animation: ma-toast-in var(--ma-dur-med) var(--ma-ease-snap) both;
}

@keyframes ma-toast-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, 10px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

/* Extra safety for small Telegram WebApp viewports */
@media (max-width: 420px) {
  .ma-user-strip {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ma-user-strip__text {
    min-width: 0;
    flex-basis: calc(100% - 3.5rem);
  }

  .ma-user-strip__sub {
    overflow-wrap: anywhere;
  }

  .ma-badge-status {
    max-width: 100%;
    margin-left: 0;
    order: 3;
  }

  .ma-cta-block {
    flex-wrap: wrap;
  }

  .ma-btn-gradient--block {
    flex: 1 1 100%;
  }

  .ma-cta-icons {
    width: 100%;
    justify-content: space-between;
  }

  .ma-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-plan {
    min-height: 5rem;
  }

  .ma-plan__tag {
    font-size: 0.58rem;
  }
}

@media (max-width: 360px) {
  .ma-scroll {
    padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
  }

  .ma-glass-card {
    padding: 0.85rem 0.85rem;
  }

  .ma-avatar {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }

  .ma-avatar--lg {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }

  .ma-badge-status {
    margin-left: 0;
    font-size: 0.7rem;
  }

  .ma-ref-btns {
    grid-template-columns: 1fr;
  }
}

/* Вкладка Proxy */
.ma-proxy-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 1.5rem 1rem 1.1rem;
  min-height: 12rem;
  border: 1px solid rgba(132, 158, 255, 0.22);
  border-radius: var(--ma-glass-radius);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(22, 18, 54, 0.72)),
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.2), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(168, 85, 247, 0.2), transparent 36%);
  box-shadow: var(--ma-glass-shadow);
}

.ma-proxy-hero__glow {
  position: absolute;
  inset: -10% 10% auto;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(129, 140, 248, 0.35), transparent 70%);
  pointer-events: none;
  filter: blur(12px);
}

.ma-proxy-hero__badge {
  position: relative;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sv-muted, #9898a3);
  margin: 0 0 0.75rem;
}

.ma-proxy-hero__title {
  position: relative;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  background: var(--sv-gradient-text, linear-gradient(110deg, #fff 0%, #a8b9ff 45%, #c4b5fd 75%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ma-body.theme-light .ma-proxy-hero__title {
  background: linear-gradient(105deg, #1e1b4b 0%, #4338ca 55%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ma-proxy-hero__text {
  position: relative;
  margin: 0 auto 1.35rem;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sv-muted, #9898a3);
}

.ma-body.theme-light .ma-proxy-hero__text {
  color: #475569;
}

.ma-body.theme-light .ma-proxy-hero {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 242, 255, 0.82)),
    radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.14), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(124, 58, 237, 0.14), transparent 36%);
}

.ma-proxy-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0 auto 0.9rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.08);
  color: rgba(254, 240, 138, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
}

.ma-proxy-status__dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.36);
  animation: ma-proxy-pulse 1.8s ease-out infinite;
}

.ma-proxy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.ma-proxy-card,
.ma-proxy-preview {
  position: relative;
  overflow: hidden;
}

.ma-proxy-card {
  padding: 0.9rem;
  border: 1px solid var(--ma-glass-border);
  border-radius: 1.1rem;
  background: rgba(12, 16, 34, 0.72);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.75);
}

.ma-proxy-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  height: 2.15rem;
  margin-bottom: 0.65rem;
  padding: 0 0.42rem;
  border-radius: 0.82rem;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(168, 85, 247, 0.2));
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ma-proxy-card__title {
  margin: 0 0 0.32rem;
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 800;
}

.ma-proxy-card__text {
  margin: 0;
  color: var(--sv-muted, #9898a3);
  font-size: 0.86rem;
  line-height: 1.52;
}

.ma-body.theme-light .ma-proxy-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(79, 70, 229, 0.14);
}

.ma-body.theme-light .ma-proxy-card__title,
.ma-body.theme-light .ma-proxy-preview__title,
.ma-body.theme-light .ma-proxy-preview__row strong {
  color: #0f172a;
}

.ma-body.theme-light .ma-proxy-card__text,
.ma-body.theme-light .ma-proxy-preview__eyebrow,
.ma-body.theme-light .ma-proxy-preview__row {
  color: #64748b;
}

.ma-proxy-preview {
  margin-top: 0.85rem;
}

.ma-proxy-preview__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.ma-proxy-preview__eyebrow {
  margin: 0 0 0.18rem;
  color: var(--sv-muted, #9898a3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ma-proxy-preview__title {
  margin: 0;
  color: #f8fafc;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.15rem;
}

.ma-proxy-preview__tag {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.16);
  color: #c7d2fe;
  font-size: 0.72rem;
  font-weight: 800;
}

.ma-proxy-preview__rows {
  display: grid;
  gap: 0.5rem;
}

.ma-proxy-preview__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--sv-muted, #9898a3);
  font-size: 0.86rem;
}

.ma-proxy-preview__row strong {
  color: #f8fafc;
  font-weight: 800;
  text-align: right;
}

.ma-proxy-pay-section {
  margin-top: 0.85rem;
}

.ma-proxy-plan-grid .ma-plan {
  cursor: not-allowed;
}

.ma-proxy-plan-grid .ma-plan:disabled,
.ma-proxy-pay-method .ma-select:disabled {
  opacity: 0.72;
}

.ma-proxy-pay-cta {
  margin-top: 0.9rem;
  cursor: not-allowed;
}

.ma-proxy-pay-cta:disabled {
  opacity: 0.68;
  filter: saturate(0.7);
}

.ma-proxy-pay-cta small {
  display: block;
  margin-top: 0.16rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.82;
  text-transform: uppercase;
}

.ma-proxy-active-preview {
  margin-top: 0.9rem;
  border-style: dashed;
}

.ma-proxy-included-text,
.ma-proxy-country-meta {
  margin: 0;
}

.ma-proxy-country-select-wrap {
  margin: 0.35rem 0 0.5rem;
}

.ma-proxy-active-preview__lock {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--sv-muted, #9898a3);
  font-size: 0.72rem;
  font-weight: 800;
}

.ma-proxy-active-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ma-proxy-connect-preview {
  margin-top: 0.8rem;
  opacity: 0.62;
  cursor: not-allowed;
}

/* Proxy: polished purchase + active states */
.ma-pane[data-pane="proxy"] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ma-pane[data-pane="proxy"] > * {
  width: 100%;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero {
  min-height: auto;
  padding: 1.15rem 1rem;
  text-align: left;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__badge,
.ma-pane[data-pane="proxy"] .ma-proxy-hero__title,
.ma-pane[data-pane="proxy"] .ma-proxy-hero__text,
.ma-pane[data-pane="proxy"] .ma-proxy-status,
.ma-pane[data-pane="proxy"] .ma-proxy-hero__mini-grid {
  position: relative;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__badge {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(129, 140, 248, 0.24);
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.1);
  color: #c7d2fe;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__title {
  margin-bottom: 0.55rem;
  font-size: clamp(1.45rem, 7vw, 2rem);
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__text {
  margin: 0 0 0.85rem;
  max-width: none;
  color: rgba(226, 232, 240, 0.78);
}

.ma-proxy-hero__mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.42rem;
  margin-top: 0.85rem;
}

.ma-proxy-hero__mini-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 0.82rem;
  background: rgba(2, 6, 23, 0.28);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.ma-proxy-state {
  display: grid;
  gap: 0.75rem;
}

.ma-proxy-pay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ma-glass-border);
  border-radius: var(--ma-glass-radius);
  background: linear-gradient(145deg, rgba(12, 16, 34, 0.82), rgba(20, 24, 48, 0.62));
  box-shadow: var(--ma-glass-shadow);
}

.ma-proxy-pay-head__title {
  margin: 0;
  color: #f8fafc;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
}

.ma-pane[data-pane="proxy"] .ma-pay-section,
.ma-pane[data-pane="proxy"] .ma-pay-total {
  margin-top: 0;
}

.ma-proxy-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ma-proxy-plan-grid .ma-plan {
  min-height: 6.05rem;
  cursor: pointer;
}

.ma-proxy-plan-grid .ma-plan.is-selected {
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 16px 38px -24px rgba(96, 165, 250, 0.95);
}

.ma-proxy-pay-method .ma-select {
  opacity: 1;
}

.ma-proxy-pay-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  margin-top: 0;
  min-height: 3.8rem;
  border-radius: 1.25rem;
}

.ma-proxy-pay-cta:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  filter: saturate(0.86);
}

.ma-proxy-pay-cta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.8;
  text-transform: uppercase;
}

.ma-proxy-bottom-note {
  margin: -0.2rem 0 0;
  padding: 0 0.15rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ma-proxy-active-preview {
  border-style: solid;
  background:
    linear-gradient(145deg, rgba(12, 16, 34, 0.88), rgba(11, 35, 45, 0.68)),
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.16), transparent 38%);
}

.ma-proxy-connect-preview {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 420px) {
  .ma-proxy-plan-grid,
  .ma-proxy-hero__mini-grid {
    grid-template-columns: 1fr;
  }

  .ma-proxy-plan-grid .ma-plan {
    min-height: auto;
  }
}

/* Proxy clean pass: no visual noise, sharp cards */
.ma-pane[data-pane="proxy"] {
  gap: 0.65rem;
}

.ma-pane[data-pane="proxy"] > * {
  max-width: 36rem;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero {
  padding: 1rem;
  border-color: rgba(96, 165, 250, 0.22);
  background: rgba(10, 14, 30, 0.9);
  box-shadow: none;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__glow {
  display: none;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__badge {
  margin-bottom: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: #93c5fd;
  font-size: 0.68rem;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__title {
  margin-bottom: 0.4rem;
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero__text {
  margin-bottom: 0.7rem;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ma-pane[data-pane="proxy"] .ma-proxy-status {
  margin: 0;
  padding: 0.34rem 0.55rem;
  background: rgba(250, 204, 21, 0.08);
  font-size: 0.74rem;
}

.ma-pane[data-pane="proxy"] .ma-pay-section,
.ma-pane[data-pane="proxy"] .ma-pay-total {
  border-color: rgba(96, 165, 250, 0.18);
  background: rgba(10, 14, 30, 0.78);
  box-shadow: none;
}

.ma-proxy-plan-grid {
  gap: 0.55rem;
}

.ma-proxy-plan-grid .ma-plan {
  min-height: 5.25rem;
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(8, 11, 26, 0.72);
  box-shadow: none;
}

.ma-proxy-plan-grid .ma-plan.is-selected {
  border-color: rgba(56, 189, 248, 0.64);
  background: rgba(14, 41, 64, 0.62);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.14);
}

.ma-proxy-plan-grid .ma-plan__emoji {
  font-size: 0.88rem;
}

.ma-proxy-plan-grid .ma-plan__price {
  color: #e2e8f0;
}

.ma-proxy-pay-cta {
  min-height: 3.35rem;
  box-shadow: none;
}

.ma-proxy-pay-cta:disabled {
  opacity: 0.82;
}

.ma-proxy-pay-cta small {
  margin-top: 0.1rem;
  font-size: 0.68rem;
}

@media (max-width: 420px) {
  .ma-proxy-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Proxy single-column quality pass */
.ma-pane[data-pane="proxy"] {
  gap: 0;
}

.ma-pane[data-pane="proxy"] > * {
  max-width: 34rem;
}

.ma-proxy-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.ma-proxy-shell .ma-proxy-hero {
  min-height: auto;
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(12, 17, 34, 0.96), rgba(8, 12, 25, 0.96));
}

.ma-proxy-shell .ma-proxy-state {
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 1.2rem;
  background: rgba(8, 12, 25, 0.92);
}

.ma-proxy-shell .ma-proxy-hero__badge {
  margin-bottom: 0.45rem;
}

.ma-proxy-shell .ma-proxy-hero__title {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}

.ma-proxy-shell .ma-proxy-hero__text {
  max-width: none;
  font-size: 0.88rem;
}

.ma-proxy-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ma-proxy-plan {
  min-height: 4.65rem;
  padding: 0.72rem 0.5rem;
  border-radius: 0.9rem;
  background: rgba(5, 8, 18, 0.86);
}

.ma-proxy-plan.is-selected {
  background: rgba(10, 35, 54, 0.88);
}

.ma-proxy-total {
  padding: 0.78rem 0.9rem;
  border-radius: 0.95rem;
}

.ma-proxy-shell .ma-proxy-pay-cta {
  min-height: 3.1rem;
  border-radius: 0.95rem;
}

@media (max-width: 420px) {
  .ma-pane[data-pane="proxy"] > * {
    max-width: none;
  }

  .ma-proxy-plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Proxy final layout */
.ma-pane[data-pane="proxy"] {
  gap: 0;
}

.ma-pane[data-pane="proxy"] > * {
  max-width: 58rem;
}

.ma-proxy-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.ma-proxy-shell .ma-proxy-hero,
.ma-proxy-shell .ma-proxy-state,
.ma-proxy-active-preview {
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 1.35rem;
  background: rgba(9, 13, 28, 0.86);
  box-shadow: none;
}

.ma-proxy-shell .ma-proxy-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 20rem;
  padding: 1.15rem;
}

.ma-proxy-shell .ma-proxy-hero__badge {
  margin: 0 0 0.75rem;
  color: #60a5fa;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.ma-proxy-shell .ma-proxy-hero__title {
  margin: 0 0 0.65rem;
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1;
}

.ma-proxy-shell .ma-proxy-hero__text {
  margin: 0;
  max-width: 21rem;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ma-proxy-shell .ma-proxy-status {
  align-self: flex-start;
  margin: 1rem 0 0;
}

.ma-proxy-shell .ma-proxy-state {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.ma-proxy-section {
  display: grid;
  gap: 0.65rem;
}

.ma-proxy-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e5e7eb;
}

.ma-proxy-section__head span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  background: #38bdf8;
  color: #06111f;
  font-size: 0.78rem;
  font-weight: 900;
}

.ma-proxy-section__head strong {
  font-size: 0.93rem;
}

.ma-proxy-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.ma-proxy-plan {
  display: grid;
  gap: 0.2rem;
  min-height: 5.2rem;
  padding: 0.85rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(6, 9, 22, 0.74);
  color: #f8fafc;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.ma-proxy-plan span {
  font-weight: 850;
}

.ma-proxy-plan strong {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.82rem;
}

.ma-proxy-plan.is-selected {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(12, 36, 56, 0.76);
}

.ma-proxy-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 1rem;
  background: rgba(8, 20, 34, 0.82);
}

.ma-proxy-total span,
.ma-proxy-total small {
  display: block;
}

.ma-proxy-total span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.ma-proxy-total small {
  margin-top: 0.16rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.74rem;
}

.ma-proxy-total strong {
  color: #f8fafc;
  font-size: 1.15rem;
}

.ma-proxy-shell .ma-proxy-pay-cta {
  min-height: 3.25rem;
  margin: 0;
  border-radius: 1rem;
}

.ma-proxy-shell .ma-proxy-pay-cta:not(:disabled) {
  cursor: pointer;
}

.ma-proxy-included-text {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.46);
  line-height: 1.55;
}

.ma-proxy-active-preview {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.ma-proxy-active-preview__head {
  margin-bottom: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ma-proxy-country-select-wrap {
  margin: -0.25rem 0 0;
}

.ma-proxy-country-meta {
  padding: 0.72rem 0.85rem;
  border-radius: 0.95rem;
  background: rgba(56, 189, 248, 0.08);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ma-proxy-preview__rows {
  gap: 0.6rem;
}

.ma-proxy-preview__row {
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  background: rgba(6, 9, 22, 0.36);
}

.ma-proxy-connect-preview {
  margin-top: 0.1rem;
}

.ma-proxy-active-preview #proxy-copy-btn {
  margin-top: -0.35rem;
}

@media (max-width: 760px) {
  .ma-proxy-shell {
    grid-template-columns: 1fr;
  }

  .ma-proxy-shell .ma-proxy-hero {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .ma-proxy-plan-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes ma-proxy-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.36);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(250, 204, 21, 0);
  }
}

/* —— Подключение: сегмент клиента + одна раскрывающаяся инструкция —— */
.ma-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ma-app-seg-label {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ma-app-client-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ma-app-client-platform-hint {
  margin: 0 0 1rem;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.ma-app-client-seg__btn {
  flex: 1 1 28%;
  min-width: 5.5rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(7, 8, 20, 0.45);
  color: #e2e8f0;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s var(--ma-ease-out),
    border-color 0.2s var(--ma-ease-out),
    color 0.2s var(--ma-ease-out);
}

.ma-app-client-seg__btn.is-active {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.35), rgba(34, 211, 238, 0.2));
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25) inset;
}

.ma-body.theme-light .ma-app-client-seg__btn {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(99, 102, 241, 0.22);
  color: #334155;
}

.ma-body.theme-light .ma-app-client-seg__btn.is-active {
  background: linear-gradient(145deg, rgba(199, 210, 254, 0.85), rgba(186, 230, 253, 0.55));
  color: #0f172a;
  border-color: rgba(99, 102, 241, 0.45);
}

.ma-sub-card__lead {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.ma-url-box--sub {
  margin-bottom: 1.15rem;
}

.ma-instr-panel {
  margin: 1rem 0 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(129, 140, 248, 0.32);
  background: rgba(7, 8, 20, 0.38);
  overflow: hidden;
}

.ma-instr-panel__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.95rem;
  cursor: pointer;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.ma-instr-panel__summary::-webkit-details-marker {
  display: none;
}

.ma-instr-panel__summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid rgba(129, 140, 248, 0.9);
  border-bottom: 2px solid rgba(56, 189, 248, 0.85);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ma-ease-out);
  justify-self: end;
}

.ma-instr-panel[open] .ma-instr-panel__summary::after {
  transform: rotate(-135deg);
}

.ma-instr-panel[open] .ma-instr-panel__summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(99, 102, 241, 0.1);
}

.ma-instr-panel__inner {
  padding: 1rem 0.95rem 1rem;
}

.ma-instr-panel__inner .ma-step-list {
  margin-top: 0.25rem;
}

.ma-instr-lead {
  margin: 0 0 0.95rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ma-body.theme-light .ma-instr-panel {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(99, 102, 241, 0.2);
}

.ma-body.theme-light .ma-instr-panel__summary {
  color: #0f172a;
}

.ma-body.theme-light .ma-instr-panel[open] .ma-instr-panel__summary {
  background: rgba(224, 231, 255, 0.55);
  border-bottom-color: rgba(99, 102, 241, 0.1);
}

.ma-body.theme-light .ma-instr-lead {
  color: #475569;
}

.ma-connect-guide {
  position: relative;
  margin: 1.15rem 0 0.35rem;
  padding: 0.9rem 0.95rem 0.8rem 0.95rem;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(10, 14, 34, 0.72);
  border: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 10px 26px -20px rgba(15, 23, 42, 0.8);
}

.ma-connect-guide.ma-connect-guide--accordion {
  overflow: visible;
}

.ma-connect-guide__ribbon {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #818cf8 0%, #22d3ee 50%, #a78bfa 100%);
  border-radius: 4px 0 0 4px;
  opacity: 0.65;
}

.ma-connect-guide__head {
  position: relative;
  padding-left: 0.45rem;
  margin-bottom: 0.15rem;
}

.ma-connect-guide__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(73, 95, 214, 0.34);
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.28);
  box-shadow: none;
}

.ma-connect-guide__title {
  margin: 0 0 0.45rem;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f1f5f9;
}

.ma-connect-guide__lead {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.88);
}

.ma-step-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ma-step-list > li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.5rem 0.55rem 0.5rem 0.45rem;
  border-radius: 0.7rem;
  background: rgba(6, 10, 26, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ma-step-num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  color: #eef2ff;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.85), rgba(56, 189, 248, 0.65));
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.32);
}

.ma-step-body {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #e2e8f0;
}

.ma-step-or {
  display: inline-block;
  margin: 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(251, 191, 36, 0.95);
}

.ma-ui-pill {
  display: inline;
  padding: 0.12em 0.38em;
  margin: 0 0.06em;
  font-weight: 700;
  font-size: 0.92em;
  color: #f1f5f9;
  background: rgba(30, 41, 59, 0.75);
  border-radius: 0.35rem;
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ma-connect-guide__tip {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0.62rem 0.72rem 0.62rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 0.75rem;
}

.ma-connect-guide__tip-ic {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  color: #0f172a;
  background: linear-gradient(145deg, #fcd34d, #f59e0b);
  border-radius: 50%;
}

.ma-body.theme-light .ma-connect-guide {
  background: rgba(248, 250, 255, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 24px -18px rgba(30, 41, 59, 0.28);
}

.ma-body.theme-light .ma-connect-guide__badge {
  color: #3730a3;
  background: rgba(199, 210, 254, 0.72);
  border-color: rgba(99, 102, 241, 0.22);
}

.ma-body.theme-light .ma-connect-guide__title {
  color: #0f172a;
}

.ma-body.theme-light .ma-connect-guide__lead {
  color: #475569;
}

.ma-body.theme-light .ma-step-list > li {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(99, 102, 241, 0.14);
}

.ma-body.theme-light .ma-step-body {
  color: #1e293b;
}

.ma-body.theme-light .ma-step-or {
  color: #b45309;
}

.ma-body.theme-light .ma-ui-pill {
  color: #1e1b4b;
  background: rgba(224, 231, 255, 0.95);
  border-color: rgba(99, 102, 241, 0.35);
}

.ma-body.theme-light .ma-connect-guide__tip {
  color: #78350f;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.35));
  border-color: rgba(245, 158, 11, 0.4);
}

.ma-body.theme-light .ma-connect-guide__tip-ic {
  color: #fff;
  background: linear-gradient(145deg, #f59e0b, #d97706);
}

/* —— v31: «жидкое» стекло, пузыри, чуть больше воздуха (только визуал) —— */
.ma-glass-card {
  position: relative;
  overflow: hidden;
  padding: calc(var(--ma-space-5) + 2px) calc(var(--ma-space-5) + 3px) var(--ma-space-5);
  margin-bottom: var(--ma-space-5);
}

.ma-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    transparent 52%
  );
  opacity: 0.55;
}

.ma-glass-card > * {
  position: relative;
  z-index: 1;
}

.ma-stats.ma-glass-card .ma-stat-pill {
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  background: rgba(8, 12, 28, 0.55);
  border: 1px solid rgba(148, 163, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.ma-tabbar {
  padding: 0.48rem 0.32rem 0.42rem;
  border-radius: 1.55rem;
  border: 1px solid rgba(140, 165, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 18px 50px -12px rgba(0, 0, 0, 0.62),
    0 6px 22px rgba(30, 40, 90, 0.28);
}

.ma-tab.is-active {
  border-radius: 1.05rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 6px 22px rgba(95, 123, 255, 0.28);
}

.ma-chip-btn,
.ma-chip {
  border-radius: 999px;
}

.ma-plan {
  border-radius: 1.15rem;
}

.ma-scroll {
  padding-top: calc(var(--ma-space-5) + env(safe-area-inset-top, 0px));
  padding-left: max(1.15rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.15rem, env(safe-area-inset-right, 0px));
}

.ma-user-strip .ma-avatar {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
}

.ma-h2 {
  letter-spacing: -0.02em;
}

/* Вкладки: вертикальная прокрутка только внутри активной панели */
.ma-shell .ma-scroll {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ma-pane-viewport {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 4.6rem - env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  box-sizing: border-box;
}
.ma-pane-track .ma-pane[data-pane]:not(.is-active) {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.ma-pane-track .ma-pane[data-pane].is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  height: auto;
  max-height: calc(100dvh - 4.6rem - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  padding-bottom: var(--ma-space-5);
}

.ma-support-head {
  margin-bottom: 0.75rem;
}
.ma-support-card {
  padding: 1rem 1.05rem;
}
.ma-support-lead {
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.ma-support-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  line-height: 1.5;
  color: rgba(226, 232, 255, 0.88);
}
body.theme-light .ma-support-list {
  color: rgba(28, 32, 48, 0.88);
}
.ma-support-foot {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.ma-ios-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.ma-ios-toggle__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.ma-ios-toggle__title {
  font-weight: 600;
  font-size: 0.95rem;
}
.ma-ios-toggle__sub {
  font-size: 0.78rem;
  opacity: 0.72;
  line-height: 1.35;
}
.ma-ios-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ma-ios-toggle__track {
  flex-shrink: 0;
  width: 2.9rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  position: relative;
  transition: background 0.2s var(--ma-ease-out);
}
.ma-ios-toggle__track::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s var(--ma-ease-snap);
}
.ma-ios-toggle__input:checked + .ma-ios-toggle__track {
  background: linear-gradient(135deg, #34c759 0%, #30b350 100%);
}
.ma-ios-toggle__input:checked + .ma-ios-toggle__track::after {
  transform: translateX(1.22rem);
}
.ma-ios-toggle__input:focus-visible + .ma-ios-toggle__track {
  outline: 2px solid rgba(95, 123, 255, 0.65);
  outline-offset: 2px;
}

.ma-proxy-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ma-proxy-fake:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}
.ma-proxy-hint {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Устройства / подключения */
.ma-devices-teaser {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ma-glass-border);
  border-radius: var(--ma-glass-radius);
  background: var(--ma-glass-bg);
  box-shadow: var(--ma-glass-shadow);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s var(--ma-ease-out), box-shadow 0.18s;
}
.ma-devices-teaser:active {
  transform: scale(0.99);
}
.ma-devices-teaser__ic {
  flex-shrink: 0;
  opacity: 0.9;
  color: rgba(147, 197, 253, 0.95);
}
.ma-devices-teaser__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ma-devices-teaser__title {
  font-weight: 600;
  font-size: 0.95rem;
}
.ma-devices-teaser__sub {
  font-size: 0.78rem;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ma-devices-teaser__chev {
  opacity: 0.45;
  font-size: 1.25rem;
  font-weight: 300;
}
.ma-devices-teaser--profile {
  margin: 0;
  box-shadow: none;
}
#acc-devices.ma-glass-card {
  padding: 0;
  overflow: hidden;
}

.ma-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}
.ma-modal[hidden] {
  display: none !important;
}
.ma-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.72);
  backdrop-filter: blur(6px);
}
.ma-modal__sheet {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: min(88dvh, 40rem);
  overflow: auto;
  margin: 0 auto;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-radius: 1.35rem 1.35rem 0 0;
  background: rgba(10, 14, 32, 0.96);
  border: 1px solid rgba(132, 158, 255, 0.3);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.55);
  animation: ma-pane-enter 0.22s var(--ma-ease-out) both;
}
.ma-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.ma-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.ma-modal__x {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ma-modal__note {
  font-size: 0.78rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.ma-devices-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.ma-device-row {
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}
.ma-device-row__hdr {
  font-weight: 600;
  margin-bottom: 0.35rem;
  opacity: 0.95;
}
.ma-device-row__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  opacity: 0.85;
  word-break: break-all;
}
.ma-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Поддержка: CTA на страницу тикетов */
.ma-support-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  margin: 0 0 0.85rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(124, 150, 255, 0.38);
  background: linear-gradient(
    135deg,
    rgba(95, 123, 255, 0.32) 0%,
    rgba(124, 92, 255, 0.2) 50%,
    rgba(56, 189, 248, 0.1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 12px 36px -14px rgba(56, 70, 140, 0.5);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.ma-support-cta:active {
  transform: scale(0.99);
}
.ma-support-cta__ic {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 28, 0.45);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.32);
}
.ma-support-cta__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}
.ma-support-cta__title {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(248, 250, 255, 0.98);
}
.ma-support-cta__sub {
  font-size: 0.8rem;
  color: rgba(203, 213, 245, 0.72);
  line-height: 1.35;
}
.ma-support-cta__arrow {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 300;
  opacity: 0.65;
  line-height: 1;
}
.ma-body.theme-light .ma-support-cta {
  border-color: rgba(99, 102, 241, 0.32);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.18) 0%,
    rgba(14, 165, 233, 0.1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 28px -10px rgba(15, 23, 42, 0.12);
}
.ma-body.theme-light .ma-support-cta__ic {
  background: rgba(255, 255, 255, 0.9);
  color: #4f46e5;
  border-color: rgba(99, 102, 241, 0.28);
}
.ma-body.theme-light .ma-support-cta__title {
  color: rgba(15, 23, 42, 0.95);
}
.ma-body.theme-light .ma-support-cta__sub {
  color: rgba(71, 85, 105, 0.85);
}
.ma-support-list--compact {
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
}
.ma-btn-stack--tight {
  gap: 0.45rem;
}

/* Модалка устройств — светлая тема */
.ma-body.theme-light .ma-modal__backdrop {
  background: rgba(15, 23, 42, 0.35);
}
.ma-body.theme-light .ma-modal__sheet {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.92);
}
.ma-body.theme-light .ma-modal__x {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
}
.ma-body.theme-light .ma-device-row {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(30, 41, 59, 0.92);
}
.ma-body.theme-light .ma-device-row__mono {
  color: rgba(51, 65, 85, 0.9);
}

.ma-device-node {
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
}
.ma-body.theme-light .ma-device-node {
  background: rgba(248, 250, 252, 0.98);
  border-color: rgba(15, 23, 42, 0.08);
}
.ma-device-node__hdr {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  color: rgba(248, 250, 255, 0.95);
}
.ma-body.theme-light .ma-device-node__hdr {
  color: rgba(15, 23, 42, 0.92);
}
.ma-device-node__meta {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  opacity: 0.82;
  margin-bottom: 0.45rem;
  word-break: break-all;
}
.ma-device-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
  border-radius: 0.5rem;
  background: rgba(95, 123, 255, 0.12);
  border: 1px solid rgba(124, 150, 255, 0.22);
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
}
.ma-body.theme-light .ma-device-ip {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.22);
  color: rgba(30, 41, 59, 0.92);
}
.ma-btn--sm {
  margin-top: 0.55rem;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.78rem !important;
  border-radius: 0.75rem !important;
  width: 100%;
}
.ma-device-total {
  margin-bottom: 0.75rem;
}

/* =========================================================
 * Sky VPN mini-app v48 — home hero, pay flow, toasts, splash
 * (перекрывает старые sticky-кнопки, чтобы они не наезжали на контент)
 * ========================================================= */

/* Удаляем старый «остров» — теперь CTA встроен в hero главной */
.ma-cta-island {
  display: none !important;
}

/* -------- Hero на главной -------- */
.ma-hero {
  position: relative;
  padding: 1.2rem 1.25rem 1.4rem;
  border-radius: calc(var(--ma-glass-radius) + 0.1rem);
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.22) 0%, rgba(14, 165, 233, 0.12) 55%, rgba(12, 16, 34, 0.94) 100%);
  border: 1px solid var(--ma-glass-border);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    0 20px 52px -18px rgba(79, 70, 229, 0.5),
    var(--ma-glass-shadow);
  margin-bottom: var(--ma-space-4);
}

.ma-hero__aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 220px;
  background:
    radial-gradient(60% 80% at 15% 10%, rgba(99, 102, 241, 0.55), transparent 60%),
    radial-gradient(55% 65% at 85% 5%, rgba(14, 165, 233, 0.4), transparent 60%),
    radial-gradient(50% 60% at 50% 90%, rgba(168, 85, 247, 0.25), transparent 70%);
  filter: blur(22px);
  opacity: 0.7;
  z-index: -1;
  animation: ma-aurora-drift 12s ease-in-out infinite alternate;
}

.ma-hero--active .ma-hero__aurora {
  opacity: 0.85;
}
.ma-hero--inactive .ma-hero__aurora {
  opacity: 0.4;
  filter: blur(28px) saturate(0.8);
}

.ma-body.theme-light .ma-hero {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.14) 0%, rgba(14, 165, 233, 0.08) 55%, rgba(255, 255, 255, 0.88) 100%);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 52px -22px rgba(79, 70, 229, 0.22);
}

.ma-hero__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ma-avatar--hero {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1rem;
  border-radius: 0.95rem;
  flex-shrink: 0;
}

.ma-hero__who {
  min-width: 0;
  flex: 1;
}
.ma-hero__name {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: rgba(244, 246, 255, 0.98);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ma-hero__id {
  font-size: 0.74rem;
  color: rgba(203, 213, 245, 0.72);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ma-body.theme-light .ma-hero__name {
  color: rgba(15, 23, 42, 0.96);
}
.ma-body.theme-light .ma-hero__id {
  color: rgba(71, 85, 105, 0.85);
}

.ma-badge-status--hero {
  flex-shrink: 0;
}

.ma-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.ma-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0.55rem 0.35rem 0.6rem;
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 255, 0.18);
  min-height: 3.4rem;
  transition: transform 0.22s var(--ma-ease-snap);
}

.ma-body.theme-light .ma-hero__stat {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

.ma-hero__stat-ic {
  color: rgba(165, 180, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.05rem;
}
.ma-body.theme-light .ma-hero__stat-ic {
  color: #6366f1;
}
.ma-hero__stat-val {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(240, 246, 255, 0.98);
  line-height: 1.15;
  text-align: center;
  word-break: keep-all;
  white-space: pre-line;
}

.ma-hero__stat--traffic .ma-hero__stat-val {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ma-hero__stat-lbl {
  font-size: 0.7rem;
  color: rgba(191, 200, 230, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ma-body.theme-light .ma-hero__stat-val {
  color: rgba(15, 23, 42, 0.95);
}
.ma-body.theme-light .ma-hero__stat-lbl {
  color: rgba(71, 85, 105, 0.82);
}

.ma-hero__progress {
  margin: 0 0 0.85rem;
}
.ma-hero__progress-track {
  height: 4px;
  width: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 255, 0.16);
  overflow: hidden;
}
.ma-hero__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  transition: width 0.45s var(--ma-ease-out);
}
.ma-hero__progress-meta {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: rgba(191, 200, 230, 0.78);
  text-align: right;
}
.ma-body.theme-light .ma-hero__progress-meta {
  color: rgba(71, 85, 105, 0.82);
}

.ma-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ma-btn--hero {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem !important;
  min-height: 3.6rem;
  text-align: left;
  width: 100%;
}

.ma-btn--hero__ic {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f7f9ff;
}

.ma-btn--hero__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: #fff;
}
.ma-btn--hero__title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.05;
}
.ma-btn--hero__sub {
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ma-btn--hero__chev {
  font-size: 1.45rem;
  opacity: 0.85;
  font-weight: 300;
  flex-shrink: 0;
}

.ma-hero__cta-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}
.ma-hero__cta-row .ma-icon-btn {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
}
.ma-hero__cta-row .ma-chip-btn {
  flex: 1;
}

.ma-chip-btn--pay {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.22));
  border-color: rgba(148, 210, 255, 0.28);
  color: #e6f4ff;
}
.ma-chip-btn--pay:hover {
  filter: brightness(1.08);
}

.ma-home-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 var(--ma-space-5);
}
.ma-home-chips .ma-chip-btn {
  flex: 1 1 auto;
}

/* -------- Segmented client selector (два варианта) -------- */
.ma-app-client-seg--two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.ma-app-client-seg--two .ma-app-client-seg__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
  min-height: 3rem;
}
.ma-app-client-seg__ttl {
  font-weight: 700;
  font-size: 0.95rem;
}
.ma-app-client-seg__sub {
  font-size: 0.7rem;
  opacity: 0.72;
}

/* -------- Toasts -------- */
.ma-toast-host {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.6rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 250;
  padding: 0 0.9rem;
}

.ma-toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.58rem 0.85rem;
  min-height: 2.5rem;
  max-width: min(26rem, 92vw);
  border-radius: 999px;
  background: rgba(12, 16, 34, 0.95);
  border: 1px solid rgba(132, 158, 255, 0.28);
  color: rgba(240, 246, 255, 0.96);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 12px 40px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-18px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.34s var(--ma-ease-snap),
    opacity 0.28s var(--ma-ease-out);
}
.ma-toast.is-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.ma-toast.is-out {
  transform: translateY(-12px) scale(0.96);
  opacity: 0;
}

.ma-toast__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #93c5fd;
}
.ma-toast__text {
  min-width: 0;
  line-height: 1.25;
}

.ma-toast--success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border-color: rgba(74, 222, 128, 0.45);
  color: #f0fff6;
}
.ma-toast--success .ma-toast__ic {
  color: #a7f3d0;
}

.ma-toast--warn {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.95), rgba(202, 138, 4, 0.95));
  border-color: rgba(253, 224, 71, 0.45);
  color: #fff9db;
}
.ma-toast--warn .ma-toast__ic {
  color: #fde68a;
}

.ma-toast--error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  border-color: rgba(254, 202, 202, 0.45);
  color: #fff5f5;
}
.ma-toast--error .ma-toast__ic {
  color: #fecaca;
}

.ma-body.theme-light .ma-toast {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 23, 42, 0.95);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 14px 42px -12px rgba(15, 23, 42, 0.22);
}
.ma-body.theme-light .ma-toast__ic {
  color: #4f46e5;
}
.ma-body.theme-light .ma-toast--success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #064e3b;
  border-color: #6ee7b7;
}
.ma-body.theme-light .ma-toast--warn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border-color: #fcd34d;
}
.ma-body.theme-light .ma-toast--error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #7f1d1d;
  border-color: #fca5a5;
}

/* -------- Splash tagline -------- */
.ma-splash__tagline {
  margin: -0.35rem 0 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(210, 224, 248, 0.75);
  letter-spacing: 0.02em;
  transition: opacity 0.26s ease;
}
.ma-body.theme-light .ma-splash__tagline {
  color: rgba(30, 41, 59, 0.72);
}

/* -------- Pay redesign -------- */
.ma-pay-section {
  background: var(--ma-glass-bg);
  border: 1px solid var(--ma-glass-border);
  border-radius: var(--ma-glass-radius);
  padding: 1rem 1.1rem 1.1rem;
  margin-bottom: var(--ma-space-3);
  box-shadow:
    0 1px 0 var(--ma-glass-inset) inset,
    var(--ma-glass-shadow);
  backdrop-filter: blur(var(--ma-glass-blur));
  -webkit-backdrop-filter: blur(var(--ma-glass-blur));
}

.ma-body.theme-light .ma-pay-section {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 12px 28px -14px rgba(15, 23, 42, 0.1);
}

.ma-pay-section__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.ma-pay-section__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.55rem;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #051028;
}
.ma-pay-section__title {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(240, 246, 255, 0.95);
}
.ma-body.theme-light .ma-pay-section__title {
  color: rgba(15, 23, 42, 0.95);
}

/* plan grid — новая сетка, с ценами */
.ma-pay-section .ma-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.ma-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
  min-height: 6.2rem;
  border-radius: 1rem;
  background: rgba(12, 16, 34, 0.55);
  border: 1px solid rgba(148, 163, 255, 0.22);
  color: rgba(244, 246, 255, 0.95);
  cursor: pointer;
  transition:
    transform 0.2s var(--ma-ease-snap),
    border-color 0.2s var(--ma-ease-out),
    background 0.2s var(--ma-ease-out);
}
.ma-plan:hover {
  border-color: rgba(148, 210, 255, 0.45);
}
.ma-plan:active {
  transform: scale(0.97);
}
.ma-plan.is-selected {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.22));
  border-color: rgba(148, 210, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}
.ma-plan__emoji {
  font-size: 1.15rem;
}
.ma-plan__dur {
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.15rem;
}
.ma-plan__price {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 800;
  font-size: 0.92rem;
  color: #e6fcff;
}
.ma-plan__hint {
  font-size: 0.66rem;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ma-plan__tag {
  position: absolute;
  top: -0.4rem;
  right: 0.35rem;
  left: auto;
  transform: none;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(239, 68, 68, 0.55);
  white-space: nowrap;
  pointer-events: none;
}
.ma-plan--featured {
  border-color: rgba(251, 146, 60, 0.45);
}

.ma-body.theme-light .ma-plan {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.92);
}
.ma-body.theme-light .ma-plan.is-selected {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.12));
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}
.ma-body.theme-light .ma-plan__price {
  color: #4f46e5;
}

/* pay methods */
.ma-pay-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.78rem 0.85rem;
  border-radius: 1rem;
  background: rgba(12, 16, 34, 0.55);
  border: 1px solid rgba(148, 163, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ma-pay-select-wrap__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.72rem;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(148, 163, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a5b4fc;
}

.ma-pay-select {
  flex: 1;
  min-width: 0;
  margin: 0;
  min-height: 2.75rem;
  border-radius: 0.8rem;
  background-color: rgba(6, 10, 26, 0.64);
}

.ma-body.theme-light .ma-pay-select-wrap {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
}

.ma-body.theme-light .ma-pay-select-wrap__icon {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.ma-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ma-pay-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 1rem;
  background: rgba(12, 16, 34, 0.55);
  border: 1px solid rgba(148, 163, 255, 0.22);
  color: rgba(240, 246, 255, 0.95);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s var(--ma-ease-out),
    background 0.2s var(--ma-ease-out),
    transform 0.2s var(--ma-ease-snap);
}
.ma-pay-method:active {
  transform: scale(0.98);
}
.ma-pay-method.is-active {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.22));
  border-color: rgba(148, 210, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}
.ma-pay-method.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ma-pay-method__ic {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(148, 163, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a5b4fc;
}
.ma-pay-method__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
.ma-pay-method__ttl {
  font-weight: 700;
  font-size: 0.96rem;
}
.ma-pay-method__sub {
  font-size: 0.76rem;
  opacity: 0.76;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-body.theme-light .ma-pay-method {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.92);
}
.ma-body.theme-light .ma-pay-method.is-active {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(14, 165, 233, 0.12));
  border-color: rgba(99, 102, 241, 0.42);
}
.ma-body.theme-light .ma-pay-method__ic {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

/* pay total */
.ma-pay-total {
  padding: 0.8rem 1rem 0.9rem;
  border-radius: var(--ma-glass-radius);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(148, 210, 255, 0.35);
  margin-bottom: var(--ma-space-3);
}
.ma-pay-total__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.ma-pay-total__lbl {
  font-size: 0.88rem;
  color: rgba(210, 224, 248, 0.88);
  font-weight: 600;
}
.ma-pay-total__val {
  font-family: var(--sv-display, "Sora", sans-serif);
  font-weight: 800;
  font-size: 1.35rem;
  color: #f0faff;
}
.ma-pay-total__meta {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: rgba(191, 200, 230, 0.72);
}
.ma-body.theme-light .ma-pay-total {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(14, 165, 233, 0.1));
  border-color: rgba(99, 102, 241, 0.22);
}
.ma-body.theme-light .ma-pay-total__lbl {
  color: rgba(71, 85, 105, 0.9);
}
.ma-body.theme-light .ma-pay-total__val {
  color: #1e1b4b;
}
.ma-body.theme-light .ma-pay-total__meta {
  color: rgba(71, 85, 105, 0.72);
}

.ma-pay-cta {
  margin-bottom: 0.5rem;
}
.ma-pay-cta[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.ma-pay-note {
  margin-top: 0.55rem;
  font-size: 0.78rem;
}

/* Прячем старые заголовки pay / pay-chips — новая шапка и секции уже всё охватывают */
.ma-pane[data-pane="pay"] .ma-pay-chips {
  display: none;
}

/* Final Proxy override: always one clean column */
.ma-pane[data-pane="proxy"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

.ma-pane[data-pane="proxy"] > * {
  width: 100% !important;
  max-width: 34rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ma-pane[data-pane="proxy"] .ma-proxy-shell {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  width: 100% !important;
  max-width: 34rem !important;
}

.ma-pane[data-pane="proxy"] .ma-proxy-hero,
.ma-pane[data-pane="proxy"] .ma-proxy-state {
  width: 100% !important;
  min-height: auto !important;
}

