/* Money Maker Shell — критический путь: каркас + меню + мобилка (синхронно) */

html {
  background: #0a0a10;
  overflow-x: clip;
  max-width: 100%;
  scrollbar-width: none;
  overscroll-behavior-y: auto;
  --scroll-a: #5ac8fa;
  --scroll-b: #39ff14;
  --mm-header-h: 72px;
  --mm-header-offset: calc(var(--mm-header-h) + env(safe-area-inset-top));
  --mm-page-top: calc(var(--mm-header-offset) + 16px);
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Кастомный scrollbar — цвет меняется по разделу */
.mm-scrollbar {
  position: fixed;
  top: calc(72px + env(safe-area-inset-top));
  right: 10px;
  bottom: 20px;
  width: 11px;
  z-index: 9999;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  opacity: 1;
  visibility: visible;
}

.mm-scrollbar__thumb {
  position: absolute;
  left: 2px;
  right: 2px;
  width: auto;
  min-height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--scroll-a, #5ac8fa), var(--scroll-b, #39ff14));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--scroll-a, #5ac8fa) 55%, transparent),
    0 0 10px color-mix(in srgb, var(--scroll-b, #39ff14) 45%, transparent);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  will-change: top, height;
}

@media (max-width: 900px) {
  .mm-scrollbar {
    right: 6px;
    width: 8px;
  }
}

html.mm-loading body {
  opacity: 1;
}

html.mm-ready:not(.mm-lite) body {
  animation: mm-fadein 0.15s ease;
}

html.mm-lite .glow,
html.mm-lite .noise {
  display: none !important;
}

html.mm-lite .mm-nav-zone-hero .nav__group--home::before,
html.mm-lite .mm-nav-zone-hero .header__chips-group--home::before,
html.mm-lite .mm-nav-zone-pages .nav__group--pages::before,
html.mm-lite .mm-nav-zone-pages .header__chips-group--pages::before {
  animation: none !important;
  opacity: 0 !important;
}

@keyframes mm-fadein {
  from { opacity: 0.97; }
  to { opacity: 1; }
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: linear-gradient(165deg, #0c0c12 0%, #101018 40%, #0a0e16 100%);
  color: #f2f4f8;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
  overscroll-behavior-y: auto;
}

/* Каркас до полного CSS — убирает «чёрный текст без стилей» */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  background: transparent;
  padding-top: env(safe-area-inset-top);
  transform: none !important;
  will-change: auto;
  isolation: isolate;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 16, 24, 0.72) 0%, rgba(10, 12, 18, 0.55) 100%);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: -1;
  pointer-events: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header--scrolled::before {
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.88) 0%, rgba(8, 10, 16, 0.78) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

/* header + nav — src/core/nav.css */

.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
a { color: #5ac8fa; text-decoration: none; }

/* Nav — src/core/nav.css (включается в mm.shell.css при сборке) */

.footer__links a {
  display: inline-flex;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f2f4f8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.section { padding: 48px 0; position: relative; z-index: 1; }
.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5ac8fa;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section__desc { color: #9aa3b5; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn--primary { background: #39ff14; color: #000; }
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: #f2f4f8; border: 1px solid rgba(255, 255, 255, 0.12); }
.btn--outline { background: transparent; color: #39ff14; border: 1px solid rgba(57, 255, 20, 0.35); }

section[id] {
  scroll-margin-top: calc(76px + env(safe-area-inset-top));
}

img,
video,
svg,
iframe {
  max-width: 100%;
  height: auto;
}

main,
section,
.header,
.footer,
.container {
  max-width: 100%;
}

.glow,
.glow-1,
.glow-2,
.glow-3,
.noise,
.tools-bg,
.tools-glow {
  max-width: 100vw;
  overflow: hidden;
}

.hidden { display: none !important; }

html.mm-authed [data-auth="login"],
html.mm-authed [data-auth="register"] {
  display: none !important;
}

html.mm-menu-open,
html.mm-menu-open body {
  overflow: hidden;
  touch-action: none;
}

/* Overlay — !important чтобы async CSS не перебивал */
.mm-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9000 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mm-overlay.mm-overlay--visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Drawer — вне header (menu.js переносит в body) */
body > #mobileNav,
body > .mm-drawer,
#mobileNav.mm-drawer,
.mm-drawer {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(320px, 86vw) !important;
  z-index: 9100 !important;
  flex-direction: column;
  gap: 8px;
  padding: calc(68px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 22, 0.92);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translate3d(110%, 0, 0);
  -webkit-transform: translate3d(110%, 0, 0);
  transition: transform 0.28s ease;
  pointer-events: none;
  visibility: hidden;
}

#mobileNav.is-open,
.mm-drawer.is-open,
.mm-drawer.open,
.mm-drawer.mm-drawer--open {
  transform: translate3d(0, 0, 0) !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

#mobileNav a,
.mm-drawer > a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f2f4f8;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.mm-drawer .mobile-nav__actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mm-drawer .mobile-nav__actions .btn {
  min-height: 48px;
  justify-content: center;
}

/* Бургер */
#burger,
.burger {
  display: none;
  position: relative;
  z-index: 9200 !important;
  border: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

#burger span,
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f2f4f8;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

#burger.is-open span:nth-child(1),
.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#burger.is-open span:nth-child(2),
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
#burger.is-open span:nth-child(3),
.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Скрытое меню внутри header до переноса в body */
.header > .mobile-nav,
.header > #mobileNav {
  display: none !important;
}

@media (max-width: 900px) {
  .hero--compact,
  .sub-hero,
  .rec-hero,
  .tools-hero {
    padding-top: var(--mm-page-top);
  }
}

/* Touch-устройства — см. core/mobile.css */
@media (hover: none) and (pointer: coarse) {
  .container {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .glow-1,
  .glow-2 {
    width: min(480px, 90vw) !important;
    height: min(480px, 90vw) !important;
  }

  .hub-grid,
  .how__steps,
  .how__steps--compact,
  .pain__grid,
  .program__grid,
  .shop__grid,
  .ecosystem__card,
  .tools-hero__grid,
  .tools-list,
  .trust-strip__inner {
    grid-template-columns: 1fr !important;
  }

  .how__steps--compact {
    grid-template-columns: 1fr !important;
  }

  .hero__visual,
  .sub-hero__img,
  .subscribe__visual {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .ticker {
    margin-top: calc(60px + env(safe-area-inset-top));
  }

  .reviews__stats {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .hero--compact,
  .sub-hero,
  .rec-hero,
  .tools-hero {
    padding-top: var(--mm-page-top);
  }

  .hero__grid,
  .sub-hero__grid,
  .subscribe__inner,
  .reviews__card,
  .pitch__grid,
  .pitch__inner {
    grid-template-columns: 1fr !important;
  }

  .pricing__grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .directions__grid,
  .how__steps,
  .how__steps--compact {
    grid-template-columns: 1fr !important;
  }

  .hero__cta,
  .pitch__actions {
    flex-direction: column;
  }

  .hero__cta .btn,
  .pitch__actions .btn {
    width: 100%;
  }

  .modal__content {
    width: calc(100% - 24px) !important;
    max-width: none !important;
    margin: 16px auto;
  }

  /* blur и декор дорогие на iPhone */
  .noise,
  .glow,
  .glow-1,
  .glow-2,
  .glow-3 {
    display: none !important;
  }

  .glass,
  .glass-panel,
  .hero__content--glass,
  .price-card,
  .checkout,
  .reviews__card,
  .trust-strip--glass {
    backdrop-filter: blur(12px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
  }

  .hero__bg,
  .tools-hero__bg {
    opacity: 0.35 !important;
  }
}

/* Верхняя полоса прогресса отключена — оформлен ползунок справа */
.scroll-progress {
  display: none !important;
}

/* Узкий экран — см. core/mobile.css */

/* Единая навигация — одинаковая на всех страницах (только shell.css) */

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 16px);
  height: 72px;
  min-height: 60px;
  position: relative;
  z-index: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  text-decoration: none;
  color: #f2f4f8;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.1vw, 1.05rem);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.logo__mark {
  width: clamp(40px, 5vw, 48px);
  height: clamp(40px, 5vw, 48px);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.logo__text {
  white-space: nowrap;
}

.logo .accent {
  color: #ffd700;
}

.nav.nav--slim {
  flex: 1 1 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 2px !important;
  flex-wrap: nowrap;
  padding: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(36px) saturate(175%);
  -webkit-backdrop-filter: blur(36px) saturate(175%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04);
  max-width: min(100%, 720px);
  min-width: max-content;
}

.nav.nav--slim .nav__group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  position: relative;
}

.nav__droplet {
  position: absolute;
  border-radius: 999px;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.nav__droplet-trail {
  z-index: 0;
}

.nav.nav--slim .nav__group--droplet a.active,
.nav.nav--slim .nav__group--droplet a[data-mm-nav].active,
.header__chips-group.nav__group--droplet .header__chip.active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.nav.nav--slim .nav__group a,
.header__chips-group a {
  position: relative;
  z-index: 1;
}

.nav.nav--slim .nav__group--home {
  background: rgba(90, 200, 250, 0.08);
  border: 1px solid rgba(90, 200, 250, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.nav.nav--slim .nav__group--pages {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav.nav--slim .nav__divider {
  width: 2px;
  height: 26px;
  margin: 0 6px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(90, 200, 250, 0.45) 25%,
    rgba(255, 215, 0, 0.5) 50%,
    rgba(168, 85, 247, 0.45) 75%,
    transparent 100%
  );
  flex-shrink: 0;
  opacity: 0.9;
}

.nav.nav--slim a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  color: #9aa3b5;
  font-size: clamp(0.68rem, 0.72vw + 0.5rem, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__actions .btn--sm {
  padding: 8px 14px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.header__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(238, 241, 246, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(110, 181, 217, 0.28);
  color: #eef1f6;
  transform: translateY(-1px);
}

.header__actions .btn--outline {
  background: rgba(61, 214, 140, 0.06);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(61, 214, 140, 0.22);
  color: #3dd68c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header__actions .btn--outline:hover {
  background: rgba(61, 214, 140, 0.12);
  border-color: rgba(61, 214, 140, 0.38);
  box-shadow: 0 4px 18px rgba(61, 214, 140, 0.12);
}

.header__actions .header__cta.btn--primary {
  background: linear-gradient(145deg, rgba(69, 201, 150, 0.95) 0%, rgba(61, 214, 140, 0.88) 50%, rgba(46, 184, 114, 0.92) 100%);
  border: 1px solid rgba(61, 214, 140, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(61, 214, 140, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header__actions .header__cta.btn--primary:hover {
  box-shadow: 0 6px 24px rgba(61, 214, 140, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.burger {
  display: none;
  flex-shrink: 0;
}

/* Цвета разделов — hover = active */
.nav.nav--slim a[data-mm-nav="pricing"]:hover,
.nav.nav--slim a[data-mm-nav="pricing"].active,
#mobileNav > a[data-mm-nav="pricing"]:hover,
#mobileNav > a[data-mm-nav="pricing"].active,
.nav.nav--slim a.active[href*="shop.html"],
#mobileNav > a.active[href*="shop.html"],
.nav.nav--slim a[data-mm-nav="shop"]:hover,
.nav.nav--slim a[data-mm-nav="shop"].active,
#mobileNav > a[data-mm-nav="shop"]:hover,
#mobileNav > a[data-mm-nav="shop"].active,
html[data-mm-section="pricing"] .nav.nav--slim a.active,
html[data-mm-section="pricing"] #mobileNav > a.active,
html[data-mm-section="shop"] .nav.nav--slim a.active,
html[data-mm-section="shop"] #mobileNav > a.active {
  color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.14) !important;
  border-color: rgba(255, 215, 0, 0.42) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="reviews"]:hover,
.nav.nav--slim a[data-mm-nav="reviews"].active,
#mobileNav > a[data-mm-nav="reviews"]:hover,
#mobileNav > a[data-mm-nav="reviews"].active,
html[data-mm-section="reviews"] .nav.nav--slim a.active,
html[data-mm-section="reviews"] #mobileNav > a.active {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.42) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.22) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="tools"]:hover,
.nav.nav--slim a[data-mm-nav="tools"].active,
#mobileNav > a[data-mm-nav="tools"]:hover,
#mobileNav > a[data-mm-nav="tools"].active,
html[data-mm-section="tools"] .nav.nav--slim a.active,
html[data-mm-section="tools"] #mobileNav > a.active {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.42) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.22) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="pitch"]:hover,
.nav.nav--slim a[data-mm-nav="pitch"].active,
#mobileNav > a[data-mm-nav="pitch"]:hover,
#mobileNav > a[data-mm-nav="pitch"].active,
html[data-mm-section="pitch"] .nav.nav--slim a.active,
html[data-mm-section="pitch"] #mobileNav > a.active {
  color: #39ff14 !important;
  background: rgba(57, 255, 20, 0.14) !important;
  border-color: rgba(57, 255, 20, 0.4) !important;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.18) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="faq"]:hover,
.nav.nav--slim a[data-mm-nav="faq"].active,
#mobileNav > a[data-mm-nav="faq"]:hover,
#mobileNav > a[data-mm-nav="faq"].active,
html[data-mm-section="faq"] .nav.nav--slim a.active,
html[data-mm-section="faq"] #mobileNav > a.active {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.38) !important;
  box-shadow: 0 0 18px rgba(148, 163, 184, 0.15) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="news"]:hover,
.nav.nav--slim a[data-mm-nav="news"].active,
#mobileNav > a[data-mm-nav="news"]:hover,
#mobileNav > a[data-mm-nav="news"].active,
html[data-mm-section="news"] .nav.nav--slim a.active,
html[data-mm-section="news"] #mobileNav > a.active {
  color: #5ac8fa !important;
  background: rgba(90, 200, 250, 0.14) !important;
  border-color: rgba(90, 200, 250, 0.4) !important;
  box-shadow: 0 0 20px rgba(90, 200, 250, 0.18) !important;
  transform: translateY(-1px);
}

.nav.nav--slim a[data-mm-nav="program"]:hover,
.nav.nav--slim a[data-mm-nav="program"].active,
#mobileNav > a[data-mm-nav="program"]:hover,
#mobileNav > a[data-mm-nav="program"].active,
.nav.nav--slim a.active[href*="program.html"],
#mobileNav > a.active[href*="program.html"],
html[data-mm-section="program"] .nav.nav--slim a.active,
html[data-mm-section="program"] #mobileNav > a.active,
html[data-mm-section="top"] .nav.nav--slim a.active,
html[data-mm-section="top"] #mobileNav > a.active {
  color: #5ac8fa !important;
  background: rgba(90, 200, 250, 0.14) !important;
  border-color: rgba(90, 200, 250, 0.4) !important;
  box-shadow: 0 0 20px rgba(90, 200, 250, 0.18) !important;
  transform: translateY(-1px);
}

.header__chip[data-mm-nav="pricing"]:hover,
.header__chip[data-mm-nav="shop"]:hover {
  color: #e8c547 !important;
  background: rgba(232, 197, 71, 0.14) !important;
  border-color: rgba(232, 197, 71, 0.38) !important;
  box-shadow: 0 0 16px rgba(232, 197, 71, 0.16) !important;
}

.header__chip[data-mm-nav="reviews"]:hover,
.header__chip[data-mm-nav="tools"]:hover {
  color: #b794f6 !important;
  background: rgba(183, 148, 246, 0.14) !important;
  border-color: rgba(183, 148, 246, 0.36) !important;
  box-shadow: 0 0 16px rgba(183, 148, 246, 0.16) !important;
}

.header__chip[data-mm-nav="pitch"]:hover {
  color: #3dd68c !important;
  background: rgba(61, 214, 140, 0.12) !important;
  border-color: rgba(61, 214, 140, 0.34) !important;
  box-shadow: 0 0 16px rgba(61, 214, 140, 0.14) !important;
}

.header__chip[data-mm-nav="faq"]:hover {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.14) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
}

.header__chip[data-mm-nav="news"]:hover,
.header__chip[data-mm-nav="program"]:hover {
  color: #6eb5d9 !important;
  background: rgba(110, 181, 217, 0.14) !important;
  border-color: rgba(110, 181, 217, 0.36) !important;
  box-shadow: 0 0 16px rgba(110, 181, 217, 0.14) !important;
}

.nav.nav--slim a.active,
#mobileNav > a.active,
.mm-drawer > a.active {
  border: 1px solid transparent;
}

.mm-drawer__label {
  display: block;
  margin: 14px 8px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Hero-зона главной: все 4 пункта «Главная» светятся вместе */
@keyframes mm-home-glow-rise {
  0% {
    opacity: 0.45;
    transform: translateY(6px) scaleY(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.mm-nav-zone-hero .nav.nav--slim .nav__group--home,
.mm-nav-zone-hero .header__chips-group--home {
  position: relative;
  overflow: visible;
}

.mm-nav-zone-hero .nav.nav--slim .nav__group--home::before,
.mm-nav-zone-hero .header__chips-group--home::before {
  content: '';
  position: absolute;
  inset: -3px -6px;
  border-radius: 999px;
  background: linear-gradient(
    0deg,
    rgba(255, 55, 55, 0.42) 0%,
    rgba(255, 90, 90, 0.18) 38%,
    transparent 72%
  );
  animation: mm-home-glow-rise 2.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

.mm-nav-zone-hero .nav.nav--slim .nav__group--home a:not(:hover):not(.active):not([aria-current="page"]),
.mm-nav-zone-hero .header__chips-group--home .header__chip:not(:hover):not(.active):not([aria-current="page"]),
.mm-nav-zone-hero #mobileNav > a[data-mm-nav="pricing"]:not(:hover):not(.active),
.mm-nav-zone-hero #mobileNav > a[data-mm-nav="reviews"]:not(:hover):not(.active),
.mm-nav-zone-hero #mobileNav > a[data-mm-nav="pitch"]:not(:hover):not(.active),
.mm-nav-zone-hero #mobileNav > a[data-mm-nav="faq"]:not(:hover):not(.active) {
  color: #9aa3b5 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Страницы меню: подсветка снизу вверх (как hero), цвет плавно меняется */
@keyframes mm-pages-glow-color {
  0%, 100% {
    background: linear-gradient(
      0deg,
      rgba(90, 200, 250, 0.42) 0%,
      rgba(90, 200, 250, 0.16) 38%,
      transparent 72%
    );
  }
  33% {
    background: linear-gradient(
      0deg,
      rgba(255, 200, 0, 0.42) 0%,
      rgba(255, 215, 0, 0.16) 38%,
      transparent 72%
    );
  }
  66% {
    background: linear-gradient(
      0deg,
      rgba(168, 85, 247, 0.42) 0%,
      rgba(192, 132, 252, 0.16) 38%,
      transparent 72%
    );
  }
}

.mm-nav-zone-pages .nav.nav--slim .nav__group--pages,
.mm-nav-zone-pages .header__chips-group--pages {
  position: relative;
  overflow: visible;
}

.mm-nav-zone-pages .nav.nav--slim .nav__group--pages::before,
.mm-nav-zone-pages .header__chips-group--pages::before {
  content: '';
  position: absolute;
  inset: -3px -6px;
  border-radius: 999px;
  background: linear-gradient(
    0deg,
    rgba(90, 200, 250, 0.42) 0%,
    rgba(90, 200, 250, 0.16) 38%,
    transparent 72%
  );
  animation:
    mm-home-glow-rise 2.2s ease-in-out infinite alternate,
    mm-pages-glow-color 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
}

.mm-nav-zone-pages .nav.nav--slim .nav__group--pages:has(a:hover)::before,
.mm-nav-zone-pages .nav.nav--slim .nav__group--pages:has(a.active)::before,
.mm-nav-zone-pages .header__chips-group--pages:has(.header__chip:hover)::before,
.mm-nav-zone-pages .header__chips-group--pages:has(.header__chip.active)::before {
  opacity: 0;
  animation: none;
}

.mm-nav-zone-pages .nav.nav--slim .nav__group--pages a:not(:hover):not(.active):not([aria-current="page"]),
.mm-nav-zone-pages .header__chips-group--pages .header__chip:not(:hover):not(.active):not([aria-current="page"]),
.mm-nav-zone-pages #mobileNav > a[data-mm-nav="program"]:not(:hover):not(.active),
.mm-nav-zone-pages #mobileNav > a[data-mm-nav="shop"]:not(:hover):not(.active),
.mm-nav-zone-pages #mobileNav > a[data-mm-nav="tools"]:not(:hover):not(.active),
.mm-nav-zone-pages #mobileNav > a[data-mm-nav="news"]:not(:hover):not(.active) {
  color: #9aa3b5 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.header__chip:hover,
.header__chip.active,
.header__chip[aria-current="page"] {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .mm-nav-zone-hero .nav.nav--slim .nav__group--home::before,
  .mm-nav-zone-hero .header__chips-group--home::before,
  .mm-nav-zone-pages .nav.nav--slim .nav__group--pages::before,
  .mm-nav-zone-pages .header__chips-group--pages::before {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .header__actions .btn--outline { display: none; }
}

@media (max-width: 1080px) {
  .header__actions .header__cta { display: none; }
  .nav.nav--slim a { padding: 6px 7px; }
  .nav.nav--slim .nav__divider { margin: 0 4px; height: 24px; }
}

/* Мобильная версия — shell + навигация (синхронно) */

.header__mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .container {
    width: min(100% - 20px, 1200px) !important;
  }

  .header__inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: auto;
    min-height: 52px;
    padding: 6px 0;
    gap: 8px;
  }

  .logo {
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
  }

  .logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .logo__text {
    display: inline !important;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    line-height: 1.15;
    white-space: nowrap;
  }

  .header__mobile-nav {
    display: block;
    padding: 0 0 10px;
    position: relative;
    z-index: 1;
  }

  .header__mobile-nav__inner {
    padding-bottom: 2px;
  }

  .header__chips {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 24px rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 10px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 10px), transparent 100%);
  }

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

  .header__chips-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 5px;
    border-radius: 999px;
    flex-shrink: 0;
    position: relative;
  }

  .header__chips-group .nav__droplet {
    position: absolute;
    border-radius: 999px;
    border: 1px solid transparent;
    pointer-events: none;
    z-index: 0;
  }

  .header__chips-group a {
    position: relative;
    z-index: 1;
  }

  .header__chips-group--home {
    background: rgba(90, 200, 250, 0.08);
    border: 1px solid rgba(90, 200, 250, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  }

  .header__chips-group--pages {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .header__chips-divider {
    width: 2px;
    height: 22px;
    margin: 0 2px;
    border-radius: 2px;
    flex-shrink: 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(90, 200, 250, 0.45) 25%,
      rgba(255, 215, 0, 0.5) 50%,
      rgba(168, 85, 247, 0.45) 75%,
      transparent 100%
    );
    opacity: 0.9;
  }

  .header__chip {
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: #9aa3b5;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  }

  .header__chips-group:not(.nav__group--droplet) .header__chip.active,
  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="pricing"].active {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.14) !important;
    border-color: rgba(255, 215, 0, 0.38) !important;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
  }

  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="reviews"].active,
  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="tools"].active {
    color: #c084fc !important;
    background: rgba(168, 85, 247, 0.16) !important;
    border-color: rgba(168, 85, 247, 0.38) !important;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.18);
  }

  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="pitch"].active {
    color: #39ff14 !important;
    background: rgba(57, 255, 20, 0.14) !important;
    border-color: rgba(57, 255, 20, 0.38) !important;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.15);
  }

  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="faq"].active {
    color: #cbd5e1 !important;
    background: rgba(148, 163, 184, 0.16) !important;
    border-color: rgba(148, 163, 184, 0.36) !important;
  }

  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="program"].active,
  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="shop"].active,
  .header__chips-group:not(.nav__group--droplet) .header__chip[data-mm-nav="news"].active {
    color: #5ac8fa !important;
    background: rgba(90, 200, 250, 0.14) !important;
    border-color: rgba(90, 200, 250, 0.38) !important;
    box-shadow: 0 0 14px rgba(90, 200, 250, 0.15);
  }

  .header__chips-group.nav__group--droplet .header__chip.active {
    color: #f2f4f8 !important;
  }

  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="pricing"].active { color: #ffd700 !important; }
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="reviews"].active,
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="tools"].active { color: #c084fc !important; }
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="pitch"].active { color: #39ff14 !important; }
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="faq"].active { color: #cbd5e1 !important; }
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="program"].active,
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="shop"].active,
  .header__chips-group.nav__group--droplet .header__chip[data-mm-nav="news"].active { color: #5ac8fa !important; }

  .nav.nav--slim {
    display: none !important;
  }

  .header__actions {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: 4px;
  }

  .header__actions .btn--sm {
    padding: 7px 9px;
    font-size: 0.62rem;
    font-weight: 600;
    min-height: 34px;
    white-space: nowrap;
    line-height: 1.1;
    border-radius: 999px;
  }

  .header__actions .btn--ghost,
  .header__actions .btn--outline,
  .header__actions .header__cta {
    display: inline-flex !important;
  }

  #burger,
  .burger,
  .mobile-nav.mm-drawer,
  #mobileNav {
    display: none !important;
  }

  .mm-scrollbar {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mm-scrollbar {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .logo__text {
    display: none !important;
  }

  .header__actions .btn--sm {
    padding: 6px 7px;
    font-size: 0.58rem;
    min-height: 32px;
  }

  .header__actions .btn--outline {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .header__chip {
    padding: 6px 7px;
    font-size: 0.62rem;
  }
}

/* Drawer — мобильное меню */
#mobileNav.mm-drawer a[data-mm-nav],
.mm-drawer > a[data-mm-nav] {
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#mobileNav > a[data-mm-nav="pricing"]:hover,
#mobileNav > a[data-mm-nav="pricing"].active,
#mobileNav > a[data-mm-nav="shop"]:hover,
#mobileNav > a[data-mm-nav="shop"].active {
  color: #ffd700 !important;
  background: rgba(255, 215, 0, 0.14) !important;
  border-color: rgba(255, 215, 0, 0.42) !important;
}

#mobileNav > a[data-mm-nav="reviews"]:hover,
#mobileNav > a[data-mm-nav="reviews"].active,
#mobileNav > a[data-mm-nav="tools"]:hover,
#mobileNav > a[data-mm-nav="tools"].active {
  color: #c084fc !important;
  background: rgba(168, 85, 247, 0.16) !important;
  border-color: rgba(168, 85, 247, 0.42) !important;
}

#mobileNav > a[data-mm-nav="pitch"]:hover,
#mobileNav > a[data-mm-nav="pitch"].active {
  color: #39ff14 !important;
  background: rgba(57, 255, 20, 0.14) !important;
  border-color: rgba(57, 255, 20, 0.4) !important;
}

#mobileNav > a[data-mm-nav="faq"]:hover,
#mobileNav > a[data-mm-nav="faq"].active {
  color: #cbd5e1 !important;
  background: rgba(148, 163, 184, 0.16) !important;
  border-color: rgba(148, 163, 184, 0.38) !important;
}

#mobileNav > a[data-mm-nav="program"]:hover,
#mobileNav > a[data-mm-nav="program"].active {
  color: #5ac8fa !important;
  background: rgba(90, 200, 250, 0.14) !important;
  border-color: rgba(90, 200, 250, 0.4) !important;
}

/* Рекомендации — мобильная вёрстка */
@media (max-width: 900px) {
  .rec-hero {
    padding-top: var(--mm-page-top);
    padding-bottom: 36px;
  }

  .rec-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .rec-hero__copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .rec-hero__copy p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .rec-hero__chips {
    justify-content: center;
  }

  .rec-hero__brand {
    order: 0;
    max-width: min(240px, 72vw);
    margin: 0 auto;
    padding: 12px;
  }

  .rec-card {
    grid-template-columns: 1fr;
  }

  .rec-card__visual {
    order: -1;
    min-height: auto;
    padding: 8px;
  }

  .rec-card__visual img {
    min-height: 0;
    max-height: none;
    height: auto;
    object-fit: contain;
  }

  .rec-card__top {
    flex-wrap: wrap;
  }

  .rec-card__badge {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .rec-card__actions {
    flex-direction: column;
  }

  .rec-card__actions .btn {
    width: 100%;
  }

  .rec-capital-steps {
    grid-template-columns: 1fr;
  }
}


/* mm.defer.cabinet */

:root {
  --bg: #0a0a10;
  --bg-card: rgba(255, 255, 255, 0.055);
  --bg-hover: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(110, 181, 217, 0.28);
  --text: #eef1f6;
  --text-muted: #a8b0be;
  --green: #3dd68c;
  --green-dim: #2eb872;
  --cyan: #6eb5d9;
  --gold: #e8c547;
  --sidebar-w: 272px;
  --radius: 18px;
  --glass-blur: blur(36px) saturate(165%);
  --glass-shadow: 0 10px 36px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}

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

body {
  font-family: var(--font);
  background: linear-gradient(165deg, #0c0c12 0%, #101018 40%, #0a0e16 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.app::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/cabinet-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

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

.hidden { display: none !important; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
  font-family: var(--font);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(145deg, #45c996 0%, var(--green) 42%, var(--green-dim) 100%);
  color: #0a1210;
  box-shadow: 0 4px 22px rgba(61, 214, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  box-shadow: 0 6px 26px rgba(61, 214, 140, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}
.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  color: var(--green);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.btn--sm { padding: 8px 14px; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* LOGIN */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 40px);
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(110, 181, 217, 0.1), transparent 55%), var(--bg);
}

.login-card {
  width: min(440px, 100%);
  background: rgba(14, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 40px) clamp(22px, 4vw, 34px);
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 24px;
}

.login-logo img { border-radius: 12px; }

.login-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.login-card > p {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  line-height: 1.55;
  margin-bottom: 22px;
}

.login-card label { display: block; text-align: left; margin-bottom: 14px; }
.login-card label span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }

.login-card input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.login-card input:focus { outline: none; border-color: var(--cyan); }

.login-error { color: #ff6b6b; font-size: 0.85rem; margin-top: 12px; min-height: 20px; }

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

#loginSubmitBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.auth-btn__spinner[hidden] { display: none; }

.login-card--loading {
  opacity: 0.94;
}

.login-card--loading form label,
.login-card--loading form input:not(:disabled) {
  opacity: 0.72;
}

.login-card--loading .login-demo {
  opacity: 0.5;
}

.login-api-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
}

.login-demo {
  margin-top: 24px;
  padding: 14px;
  background: rgba(57,255,20,0.06);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-demo code { color: var(--green); font-size: 0.75rem; }

.login-admin {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--font);
}
.login-admin:hover { color: var(--cyan); }

.login-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

/* APP LAYOUT */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
}

.sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.sidebar__logo img { border-radius: 6px; }
.sidebar__nav { flex: 1; padding: 12px 8px; overflow-y: auto; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: 0.15s;
  font-family: var(--font);
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.14), rgba(110, 181, 217, 0.08));
  color: var(--green);
  border: 1px solid rgba(61, 214, 140, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: currentColor;
  opacity: 0.85;
}

.nav-item.active .nav-icon { color: var(--green); opacity: 1; }

.nav-icon svg,
[data-icon] svg,
.quick-action__icon svg,
.panel__title-icon svg,
.community-card__icon svg,
.resource-card__icon svg,
.continue-item__icon svg,
.module-block__icon svg,
.lesson-row__check svg,
.video-card__thumb svg,
.youtube-banner__icon svg,
.video-placeholder__icon svg {
  display: block;
}

.sidebar__foot { padding: 16px; border-top: 1px solid var(--border); }

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.user-badge__avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(90, 200, 250, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.user-badge__text { min-width: 0; }
.user-badge__name { display: block; font-weight: 600; font-size: 0.9rem; }
.user-badge__plan { font-size: 0.75rem; color: var(--cyan); }

.nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 100px;
  background: rgba(90, 200, 250, 0.2);
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.sidebar__close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.sidebar__close:hover { color: var(--text); }
.topbar__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  flex: 1;
  letter-spacing: -0.02em;
}
.topbar__nav { display: flex; align-items: center; gap: 20px; }
.topbar__link {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: 0.2s;
}
.topbar__link:hover { color: var(--cyan); }
.topbar__link--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__link--icon svg { color: var(--cyan); opacity: 0.9; }
.topbar__support { color: var(--cyan); text-decoration: none; font-size: 0.85rem; font-weight: 500; }

.content {
  padding: clamp(18px, 3vw, 28px) clamp(16px, 3.5vw, 32px) 32px;
  flex: 1;
  max-width: 1280px;
  width: 100%;
}

.tab { display: none; }
.tab.active { display: block; animation: fadeIn 0.25s ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tab-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }

/* DASHBOARD */
.welcome-banner {
  position: relative;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  box-shadow: var(--glass-shadow);
}

.welcome-banner--premium { min-height: 140px; }

.welcome-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 214, 140, 0.1), rgba(110, 181, 217, 0.08));
}

.welcome-banner__content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  gap: 24px;
}

.welcome-banner__badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.welcome-banner h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 6px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.welcome-banner p {
  color: var(--text-muted);
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  line-height: 1.5;
}

.progress-ring {
  position: relative;
  width: 88px; height: 88px;
  flex-shrink: 0;
}

.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.progress-ring__bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8;
}

.progress-ring__fill {
  fill: none; stroke: var(--green); stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
  filter: drop-shadow(0 0 6px rgba(57,255,20,0.5));
}

.progress-ring__val {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--green);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: 0.2s; text-decoration: none;
  font-family: var(--font);
}

.quick-action__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  margin-bottom: 2px;
}

.quick-action:hover .quick-action__icon {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
}

.quick-action:hover {
  border-color: var(--cyan);
  background: rgba(0,229,255,0.06);
  transform: translateY(-2px);
}

.stat-card--glow:hover {
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 4px 20px rgba(0,229,255,0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card--accent { border-color: rgba(57,255,20,0.3); }
.stat-card__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.stat-card--accent .stat-card__val { color: var(--green); }
.stat-card__label { font-size: 0.75rem; color: var(--text-muted); }

.panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(32px) saturate(170%);
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  box-shadow: var(--glass-shadow);
}

.panel h4 { margin-bottom: 16px; font-size: 1rem; }

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
}

.panel__title-icon {
  display: inline-flex;
  color: var(--cyan);
}
.panel--wide { max-width: 640px; }
.panel p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

/* MODULES */
.modules-list { display: flex; flex-direction: column; gap: 16px; }

.module-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.module-block__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: rgba(0,229,255,0.04);
  border-bottom: 1px solid var(--border);
}

.module-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
}
.module-block__head h4 { flex: 1; font-size: 1.05rem; }
.module-block__count { font-size: 0.8rem; color: var(--text-muted); }

.lesson-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: 0.15s;
}

.lesson-row:last-child { border-bottom: none; }
.lesson-row:hover { background: var(--bg-hover); }
.lesson-row.done .lesson-row__title { color: var(--green); }
.lesson-row__check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.lesson-row.done .lesson-row__check { background: var(--green); border-color: var(--green); color: #000; }
.lesson-row__title { flex: 1; font-size: 0.9rem; }
.lesson-row__dur { font-size: 0.75rem; color: var(--text-muted); }

/* YOUTUBE */
.youtube-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255,0,0,0.1), rgba(255,0,0,0.03));
  border: 1px solid rgba(255,0,0,0.25);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 24px;
  transition: 0.2s;
}

.youtube-banner:hover { border-color: rgba(255,0,0,0.5); transform: translateY(-2px); }
.youtube-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 0, 0, 0.12);
  color: #ff4444;
  flex-shrink: 0;
}
.youtube-banner strong { display: block; margin-bottom: 2px; }
.youtube-banner span { font-size: 0.85rem; color: var(--text-muted); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.video-card:hover { border-color: var(--border-bright); }
.video-card__thumb {
  aspect-ratio: 16/9;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  opacity: 0.75;
  position: relative;
}

.video-card__thumb iframe { width: 100%; height: 100%; border: none; }
.video-card__body { padding: 14px 16px; }
.video-card__body h5 { font-size: 0.9rem; margin-bottom: 4px; }
.video-card__body span { font-size: 0.75rem; color: var(--text-muted); }

/* MANUALS */
.manuals-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.manual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: 0.2s;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.manual-card:hover { border-color: var(--cyan); }
.manual-card h5 { margin-bottom: 6px; }
.manual-card p { font-size: 0.85rem; color: var(--text-muted); }
.manual-card__tag { display: inline-block; margin-top: 10px; font-size: 0.7rem; padding: 3px 8px; background: rgba(0,229,255,0.1); color: var(--cyan); border-radius: 100px; }

/* QUESTIONS */
.question-form label { display: block; margin-bottom: 14px; }
.question-form label span { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.question-form select, .question-form textarea, .panel select, .panel textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.question-form textarea:focus, .panel textarea:focus, .panel select:focus { outline: none; border-color: var(--cyan); }

.form-msg { margin-top: 12px; font-size: 0.85rem; color: var(--green); min-height: 20px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-link {
  padding: 10px 16px;
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
}

/* NOTES */
.notes-history { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.note-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.note-item__title { font-weight: 600; font-size: 0.85rem; color: var(--cyan); margin-bottom: 6px; }
.note-item__text { font-size: 0.85rem; color: var(--text-muted); white-space: pre-wrap; }

/* RESOURCES */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.resource-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.resource-card:hover { border-color: var(--border-bright); }

.resource-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  flex-shrink: 0;
}
.resource-card strong { display: block; font-size: 0.9rem; }
.resource-card small { font-size: 0.75rem; color: var(--text-muted); }

/* COMMUNITY */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.community-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: 0.2s;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.community-card:hover { border-color: var(--green); transform: translateY(-3px); }

.community-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(57, 255, 20, 0.08);
  color: var(--green);
  margin-bottom: 12px;
}
.community-card h4 { margin-bottom: 6px; }
.community-card p { font-size: 0.85rem; color: var(--text-muted); }

/* PROFILE */
.profile-card {
  max-width: 420px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

.profile-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid rgba(90, 200, 250, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(90, 200, 250, 0.12);
}

.profile-avatar__upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(90, 200, 250, 0.08);
  border: 1px solid rgba(90, 200, 250, 0.25);
  border-radius: 100px;
  cursor: pointer;
  transition: 0.2s;
}

.profile-avatar__upload:hover {
  background: rgba(90, 200, 250, 0.16);
  border-color: rgba(90, 200, 250, 0.45);
}

.profile-avatar__hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.profile-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.profile-plan {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.profile-plan--guest {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.profile-plan--expired {
  background: rgba(255, 107, 107, 0.12);
  color: #ff8a8a;
}

.profile-password__hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 12px;
  text-align: left;
}

.profile-password__hint a {
  color: var(--cyan);
}

.profile-entitlements {
  width: 100%;
  margin: 0 0 20px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.profile-entitlements h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.profile-entitlements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-entitlements li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.profile-entitlements li:last-child { border-bottom: none; }

.profile-entitlements em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

#app.app--booting {
  position: relative;
}

#app.app--booting .main {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#app.app--booting::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 16, 0.35);
  pointer-events: none;
}

#app.app--booting::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: auth-spin 0.75s linear infinite;
  z-index: 201;
  pointer-events: none;
}

html.mm-lite #app.app--booting::before {
  animation: none;
}

.profile-info { list-style: none; text-align: left; margin-bottom: 24px; }
.profile-info li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.profile-info span { color: var(--text-muted); }

.profile-password { margin: 24px 0; text-align: left; }
.profile-password h4 { margin-bottom: 12px; font-size: 0.95rem; }
.profile-password input {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
}

.profile-actions { display: flex; flex-direction: column; gap: 10px; }

/* CONTINUE / ANNOUNCEMENTS */
.continue-list { display: flex; flex-direction: column; gap: 8px; }
.continue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-hover);
  border-radius: 8px;
  cursor: pointer;
  transition: 0.15s;
}
.continue-item:hover { background: rgba(57,255,20,0.08); }

.continue-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  flex-shrink: 0;
}

.continue-item:hover .continue-item__icon {
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}

.lesson-row__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: var(--green);
}

.video-placeholder__icon {
  display: flex;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 8px;
}

.lesson-module-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--cyan);
}

.btn [data-icon] {
  display: inline-flex;
  margin-right: 4px;
}

.panel--changelog { border-color: rgba(0,229,255,0.15); }

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

.panel__hint { font-size: 0.72rem; color: var(--text-muted); }

.changelog-timeline { position: relative; padding-left: 24px; }

.changelog-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--cyan), transparent);
}

.changelog-item {
  position: relative;
  padding: 0 0 24px 20px;
}

.changelog-item:last-child { padding-bottom: 0; }

.changelog-item__marker {
  position: absolute; left: -24px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
}

.changelog-item--new .changelog-item__marker {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 12px rgba(57,255,20,0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,20,0.5); }
  50% { box-shadow: 0 0 16px rgba(57,255,20,0.8); }
}

.changelog-item__time {
  display: block;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 6px;
}

.changelog-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.changelog-item__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-item__list li {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.changelog-item__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
}

.changelog-empty { color: var(--text-muted); font-size: 0.85rem; }

/* LESSON MODAL */
.lesson-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.lesson-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
}

.lesson-modal__panel {
  position: relative;
  width: min(800px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  margin: 40px 0;
  overflow: hidden;
}

.lesson-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: 0.2s;
}

.lesson-modal__close:hover {
  color: var(--text);
  border-color: var(--border-bright);
}

.lesson-modal__header { padding: 24px 24px 0; }
.lesson-modal__module { font-size: 0.8rem; color: var(--cyan); }
.lesson-modal__header h3 { font-size: 1.3rem; margin-top: 4px; }

.lesson-modal__video {
  margin: 20px 24px 0;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.lesson-modal__video iframe { width: 100%; height: 100%; border: none; }

.lesson-modal__video .video-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.lesson-modal__video .video-placeholder a { color: var(--cyan); }

.lesson-modal__body {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.lesson-modal__body h3 { color: var(--text); margin: 20px 0 10px; font-size: 1.1rem; }
.lesson-modal__body h3:first-child { margin-top: 0; }
.lesson-modal__body ul, .lesson-modal__body ol { margin: 10px 0 10px 20px; }
.lesson-modal__body li { margin: 6px 0; }
.lesson-modal__body blockquote { border-left: 3px solid var(--green); padding-left: 16px; margin: 16px 0; color: var(--green); font-style: italic; }
.lesson-modal__body .tip { background: rgba(57,255,20,0.08); padding: 12px 16px; border-radius: 8px; margin: 12px 0; }

.lesson-modal__footer {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}

/* SHOP & TOOLS */
.shop__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.shop__filter {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
}
.shop__filter.active, .shop__filter:hover { border-color: var(--cyan); color: var(--cyan); }
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shop-card {
  position: relative; padding: 20px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.shop-card__badge {
  position: absolute; top: 12px; right: 12px; font-size: 0.7rem; padding: 3px 10px;
  border-radius: 999px; background: rgba(57,255,20,0.15); color: var(--green);
}
.shop-card__cat { font-size: 0.75rem; color: var(--cyan); margin-bottom: 6px; }
.shop-card h3 { font-size: 1rem; margin-bottom: 4px; }
.shop-card__sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.shop-card__price { font-size: 1.3rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tool-card { padding: 16px; border-radius: 12px; border: 1px solid var(--border); }
.tool-card__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tool-card__tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; background: rgba(168,85,247,0.15); color: #c084fc; }
.tool-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.capital-guide { border-color: rgba(57,255,20,0.25) !important; }
.capital-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.capital-step { padding: 14px; border-radius: 10px; border: 1px solid var(--border); }
.capital-step__num { font-size: 1.4rem; color: var(--green); opacity: 0.5; }
.capital-step__potential { font-size: 0.78rem; color: var(--gold); font-weight: 600; }

/* AUTH TABS */
.login-card--wide { width: min(460px, 100%); }

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-tabs__btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  transition: 0.2s;
}

.auth-tabs__btn.active {
  background: rgba(57, 255, 20, 0.12);
  color: var(--green);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.08);
}

.pwd-field { position: relative; }
.pwd-field input { padding-right: 44px !important; }
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.pwd-toggle:hover { color: var(--cyan); }

.auth-panel { display: none; text-align: left; }
.auth-panel.active { display: block; }
.auth-panel h1 { text-align: center; font-size: 1.4rem; }
.auth-panel > p { text-align: center; }

.auth-hint {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-link-row { margin-top: 12px; text-align: center; }
.auth-link {
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: underline;
  padding: 0;
}
.auth-link:hover { color: var(--green); }

.auth-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 0;
  font-family: var(--font);
}
.auth-back:hover { color: var(--cyan); }

.auth-success {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--green);
  text-align: center;
  line-height: 1.5;
}

.auth-optional {
  font-weight: 400;
  opacity: 0.75;
}

.auth-turnstile {
  display: flex;
  justify-content: center;
  margin: 14px 0 6px;
  min-height: 68px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.btn--google::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn--google:hover {
  background: #f5f5f5;
  color: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Страница входа — мобильная и скролл длинных форм */
.login-screen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  padding: max(20px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.login-card--wide {
  width: min(480px, 100%);
  margin: auto 0;
}

@media (max-width: 520px) {
  .login-card {
    padding: 28px 18px 24px;
    border-radius: 20px;
  }

  .auth-tabs {
    flex-wrap: wrap;
    border-radius: 16px;
    gap: 4px;
  }

  .auth-tabs__btn {
    flex: 1 1 calc(33.33% - 4px);
    min-width: 0;
    padding: 9px 6px;
    font-size: 0.72rem;
  }

  .login-card h1,
  .auth-panel h1 {
    font-size: 1.25rem;
  }

  .login-demo {
    font-size: 0.78rem;
  }
}

body.cabinet-auth-page .visitor-counter {
  display: none !important;
}

/* GUEST MODE */
.guest-banner {
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 229, 255, 0.04));
}

.guest-banner__icon { color: var(--gold); flex-shrink: 0; }
.guest-banner strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.guest-banner p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.guest-banner .btn { margin-left: auto; }

.guest-locks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lock-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}

.lock-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 215, 0, 0.04));
  pointer-events: none;
}

.lock-card:hover {
  border-color: rgba(255, 215, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lock-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  flex-shrink: 0;
}

.lock-card__body { flex: 1; min-width: 0; }
.lock-card__body h4 { font-size: 0.92rem; margin-bottom: 4px; }
.lock-card__body p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.4; }
.lock-card__plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}
.lock-card__arrow { color: var(--text-muted); opacity: 0.5; }

.nav-item { position: relative; }
.nav-item--locked { opacity: 0.72; }
.nav-item--locked .nav-lock {
  margin-left: auto;
  color: var(--gold);
  display: inline-flex !important;
}

.nav-lock { display: none !important; }

/* LOCK SCREENS */
.lock-screen {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lock-screen__inner {
  max-width: 480px;
  width: 100%;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: var(--bg-card);
  position: relative;
}

.lock-screen__icon { color: var(--gold); margin-bottom: 12px; }
.lock-screen__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.lock-screen__inner h3 { font-size: 1.35rem; margin-bottom: 8px; }
.lock-screen__inner p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.lock-screen__meta { margin: 16px 0; font-size: 0.85rem; color: var(--text-muted); }
.lock-screen__meta strong { color: var(--green); }

.lock-screen__blur {
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  filter: blur(0);
}

.lock-fake-row {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  margin-bottom: 8px;
}
.lock-fake-row.short { width: 60%; margin: 0 auto; }

.lock-screen__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* PLAN CARDS (guest shop) */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.plan-card {
  padding: 22px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.plan-card--featured {
  border-color: rgba(57, 255, 20, 0.35);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.08);
}

.plan-card--current {
  border-color: rgba(0, 212, 255, 0.35);
}

.plan-card__badge--current {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
}

.cabinet-shop__subtitle {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* CABINET CHECKOUT SHEET */
body.cab-checkout-open {
  overflow: hidden;
}

.cab-checkout {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: env(safe-area-inset-top) 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.cab-checkout:not([hidden]) {
  pointer-events: auto;
}

.cab-checkout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.cab-checkout:not([hidden]) .cab-checkout__backdrop {
  opacity: 1;
}

.cab-checkout__sheet {
  position: relative;
  width: min(480px, 100%);
  max-height: min(88vh, 640px);
  overflow-y: auto;
  border-radius: 22px 22px 18px 18px;
  padding: 22px 22px 18px;
  background: linear-gradient(165deg, rgba(22, 26, 38, 0.94) 0%, rgba(12, 14, 22, 0.97) 100%);
  border: 1px solid rgba(90, 200, 250, 0.28);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(57, 255, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  transform: translateY(110%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.cab-checkout:not([hidden]) .cab-checkout__sheet {
  transform: translateY(0);
}

.cab-checkout__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.35), rgba(57, 255, 20, 0.2), rgba(168, 85, 247, 0.15));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  pointer-events: none;
  opacity: 0.85;
}

.cab-checkout__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.cab-checkout__close:hover {
  color: var(--text);
  border-color: rgba(90, 200, 250, 0.4);
  background: rgba(90, 200, 250, 0.1);
}

.cab-checkout__head {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
  padding-top: 4px;
}

.cab-checkout__eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(90, 200, 250, 0.1);
  border: 1px solid rgba(90, 200, 250, 0.25);
  margin-bottom: 12px;
}

.cab-checkout__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
}

.cab-checkout__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.cab-checkout__buyer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cab-checkout__buyer-icon {
  flex-shrink: 0;
  color: var(--cyan);
}

.cab-checkout__field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cab-checkout__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cab-checkout__field input:focus {
  outline: none;
  border-color: rgba(90, 200, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.12);
}

.cab-checkout__submit {
  margin-top: 16px;
  gap: 8px;
}

.cab-checkout__msg {
  text-align: center;
  min-height: 1.2em;
  margin-top: 10px;
}

.cab-checkout__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 560px) {
  .cab-checkout {
    align-items: center;
    padding: 24px;
  }

  .cab-checkout__sheet {
    border-radius: 22px;
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  }

  .cab-checkout:not([hidden]) .cab-checkout__sheet {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.plan-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
  font-weight: 700;
}

.plan-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.plan-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 14px;
}

.plan-card ul {
  list-style: none;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-card li {
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.plan-card li::before { content: '✓ '; color: var(--green); }

.shop-guest-note {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid var(--border);
}

.user-badge__plan--guest { color: var(--gold) !important; }

/* PURCHASE BANNER (dashboard) */
.purchase-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 200, 250, 0.35);
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.12), rgba(57, 255, 20, 0.06));
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.purchase-banner__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
  animation: purchase-shine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes purchase-shine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.purchase-banner__icon {
  color: var(--cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(90, 200, 250, 0.5));
}

.purchase-banner__body { flex: 1; min-width: 180px; }
.purchase-banner__body strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.purchase-banner__body p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.purchase-banner .btn { margin-left: auto; }

/* PURCHASES TAB */
.purchases-hero {
  position: relative;
  margin-bottom: 24px;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 200, 250, 0.3);
  background: linear-gradient(160deg, rgba(90, 200, 250, 0.1) 0%, rgba(10, 10, 16, 0.85) 55%);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.purchases-hero__smoke {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(56, 132, 255, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(90, 200, 250, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 110%, rgba(37, 99, 235, 0.22) 0%, transparent 55%);
  animation: purchases-smoke-rise 6s ease-in-out infinite alternate;
  pointer-events: none;
  filter: blur(8px);
}

.purchases-hero__glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes purchases-smoke-rise {
  0% { transform: translateY(8%) scale(1); opacity: 0.75; }
  100% { transform: translateY(-6%) scale(1.05); opacity: 1; }
}

.purchases-hero__inner { position: relative; z-index: 1; }
.purchases-hero__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.purchases-hero h3 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.purchases-hero p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 520px;
  line-height: 1.55;
}

.purchases-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.purchases-hero__stat {
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  min-width: 88px;
}

.purchases-hero__stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--cyan);
  line-height: 1.1;
}

.purchases-hero__stat span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.purchases-hero__stat--plan strong { color: var(--gold); }
.purchases-hero__stat--product strong { color: var(--green); }

.purchases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.purchases-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
}

.purchase-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: 0.25s;
  overflow: hidden;
}

.purchase-card:hover {
  border-color: rgba(90, 200, 250, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.purchase-card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(90, 200, 250, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.purchase-card--plan {
  border-color: rgba(255, 215, 0, 0.28);
}

.purchase-card--plan .purchase-card__glow {
  background: linear-gradient(0deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

.purchase-card--featured {
  border-color: rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.08);
}

.purchase-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.purchase-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.purchase-card__cat--plan { color: var(--gold); }

.purchase-card__badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(90, 200, 250, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(90, 200, 250, 0.25);
}

.purchase-card__badge--plan {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.3);
}

.purchase-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.purchase-card__price { font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.purchase-card__sub { font-size: 0.82rem; color: var(--cyan); margin-bottom: 8px; }
.purchase-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

.purchase-card__includes {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.purchase-card__includes li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.purchase-card__includes li::before { content: '✓ '; color: var(--green); }

.purchase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.purchase-card__meta strong { color: var(--text); }
.purchase-card__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

/* FULLSCREEN PURCHASE CELEBRATION */
body.mm-celebration-lock { overflow: hidden; }

.purchase-celebration {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.purchase-celebration.hidden { display: none !important; }

.purchase-celebration__smoke-ring {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.purchase-celebration__smoke {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.85;
  mix-blend-mode: screen;
}

.purchase-celebration__smoke--bottom {
  left: -15%;
  bottom: -28%;
  width: 130%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.7) 0%, rgba(56, 132, 255, 0.35) 35%, transparent 68%);
  animation: celebration-smoke-bottom 7s ease-in-out infinite alternate;
}

.purchase-celebration__smoke--top {
  left: -10%;
  top: -32%;
  width: 120%;
  height: 48%;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.55) 0%, rgba(90, 200, 250, 0.28) 40%, transparent 70%);
  animation: celebration-smoke-top 8s ease-in-out infinite alternate;
}

.purchase-celebration__smoke--left {
  left: -35%;
  top: 10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse at 0% 50%, rgba(37, 99, 235, 0.6) 0%, rgba(56, 132, 255, 0.25) 42%, transparent 72%);
  animation: celebration-smoke-left 9s ease-in-out infinite alternate;
}

.purchase-celebration__smoke--right {
  right: -35%;
  top: 8%;
  width: 55%;
  height: 82%;
  background: radial-gradient(ellipse at 100% 50%, rgba(90, 200, 250, 0.58) 0%, rgba(37, 99, 235, 0.22) 45%, transparent 74%);
  animation: celebration-smoke-right 8.5s ease-in-out infinite alternate;
}

@keyframes celebration-smoke-bottom {
  0% { transform: translateY(6%) scale(1); opacity: 0.65; }
  100% { transform: translateY(-8%) scale(1.06); opacity: 0.95; }
}

@keyframes celebration-smoke-top {
  0% { transform: translateY(-4%) scale(1.02); opacity: 0.55; }
  100% { transform: translateY(10%) scale(1.08); opacity: 0.88; }
}

@keyframes celebration-smoke-left {
  0% { transform: translateX(4%) scale(1); opacity: 0.6; }
  100% { transform: translateX(-6%) scale(1.05); opacity: 0.9; }
}

@keyframes celebration-smoke-right {
  0% { transform: translateX(-5%) scale(1.01); opacity: 0.58; }
  100% { transform: translateX(7%) scale(1.06); opacity: 0.92; }
}

.purchase-celebration__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(90, 200, 250, 0.5), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(56, 132, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(147, 197, 253, 0.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(90, 200, 250, 0.35), transparent);
  animation: celebration-particles 12s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes celebration-particles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8%); }
}

.purchase-celebration__panel {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: calc(100% - 40px);
  padding: 40px 32px 36px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(90, 200, 250, 0.35);
  background: linear-gradient(165deg, rgba(20, 30, 50, 0.9), rgba(8, 12, 22, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(37, 99, 235, 0.15);
}

.purchase-celebration__logo {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin-bottom: 16px;
  animation: celebration-logo-shake 0.45s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(90, 200, 250, 0.45));
}

@keyframes celebration-logo-shake {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  25% { transform: rotate(1.8deg) scale(1.02); }
  50% { transform: rotate(-2deg) scale(0.98); }
  75% { transform: rotate(1.2deg) scale(1.01); }
}

.purchase-celebration__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.purchase-celebration__panel h2,
#celebrationTitle {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-family: var(--font-display);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.purchase-celebration__thanks {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.purchase-celebration__timer {
  font-size: 0.78rem;
  color: rgba(90, 200, 250, 0.7);
  font-variant-numeric: tabular-nums;
}

.purchase-celebration__timer::before {
  content: 'Закроется через ';
}

@media (prefers-reduced-motion: reduce) {
  .purchase-celebration__logo,
  .purchase-celebration__smoke,
  .purchases-hero__smoke,
  .purchase-banner__shine {
    animation: none;
  }
}

/* BAN FX — при входе забаненного пользователя */
body.mm-ban-fx-lock {
  overflow: hidden;
}

.ban-fx {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ban-fx.hidden {
  display: none !important;
}

.ban-fx__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 0, 0.92);
  animation: ban-fx-flash 0.45s ease-out;
}

.ban-fx__smoke {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(220, 38, 38, 0.38) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 20% 80%, rgba(127, 29, 29, 0.42) 0%, transparent 65%),
    radial-gradient(ellipse 50% 35% at 80% 75%, rgba(185, 28, 28, 0.3) 0%, transparent 68%);
  filter: blur(22px);
  animation: ban-fx-smoke 2s ease-in-out infinite alternate;
}

@keyframes ban-fx-smoke {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.06); }
}

.ban-fx__stage {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 36px 28px;
  max-width: 92vw;
}

.ban-fx__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(252, 165, 165, 0.8);
  margin-bottom: 12px;
}

.ban-fx__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 11vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ff3b3b;
  text-shadow:
    0 0 48px rgba(255, 59, 59, 0.55),
    0 4px 0 #7f1d1d,
    0 8px 24px rgba(0, 0, 0, 0.6);
  margin: 0 0 14px;
  animation:
    ban-fx-slam 0.5s cubic-bezier(0.2, 1.35, 0.35, 1) both,
    ban-fx-shake 0.32s ease-in-out 0.52s 4;
}

.ban-fx__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 14px;
  line-height: 1.5;
}

.ban-fx__user {
  font-size: 1.05rem;
  color: #fecaca;
  margin: 0;
  animation: ban-fx-user-fly 0.85s cubic-bezier(0.4, 0, 0.8, 1) 0.75s forwards;
  display: inline-block;
}

.ban-fx__boot {
  position: absolute;
  right: -8%;
  bottom: 16%;
  font-size: clamp(3rem, 14vw, 5rem);
  line-height: 1;
  animation: ban-fx-kick 0.65s cubic-bezier(0.3, 0, 0.2, 1.2) 0.38s both;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.ban-fx__timer {
  margin-top: 18px;
  font-size: 0.75rem;
  color: rgba(252, 165, 165, 0.65);
  font-variant-numeric: tabular-nums;
}

.ban-fx__timer::before {
  content: 'Закроется через ';
}

@keyframes ban-fx-flash {
  0% { background: rgba(255, 40, 40, 0.65); }
  100% { background: rgba(10, 0, 0, 0.92); }
}

@keyframes ban-fx-slam {
  from { transform: scale(2.8); opacity: 0; filter: blur(6px); }
  to { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes ban-fx-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-10px) rotate(-2deg); }
  40% { transform: translateX(10px) rotate(2deg); }
  60% { transform: translateX(-6px) rotate(-1deg); }
  80% { transform: translateX(6px) rotate(1deg); }
}

@keyframes ban-fx-kick {
  0% { transform: translateX(140px) rotate(-40deg) scale(0.6); opacity: 0; }
  55% { transform: translateX(-24px) rotate(18deg) scale(1.1); opacity: 1; }
  100% { transform: translateX(0) rotate(0deg) scale(1); }
}

@keyframes ban-fx-user-fly {
  0% { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-130vw) rotate(-28deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ban-fx__title,
  .ban-fx__user,
  .ban-fx__boot,
  .ban-fx__smoke,
  .ban-fx__backdrop {
    animation: none;
  }
}

.profile-upgrade {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(57, 255, 20, 0.25);
  background: rgba(57, 255, 20, 0.05);
}

.profile-upgrade__icon { color: var(--green); }
.profile-upgrade h4 { font-size: 1rem; margin-bottom: 4px; }
.profile-upgrade p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.profile-upgrade .btn { margin-left: auto; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar__close { display: block; }
  .main { margin-left: 0; }
  .topbar__burger { display: block; }
  .topbar__nav .topbar__link { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr; }
  .welcome-banner__content { flex-direction: column; text-align: center; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
}

/* ═══ CABINET V2 — полный редизайн ═══ */
.cabinet-v2 .noise {
  position: fixed;
  inset: 0;
  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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.cabinet-v2 .glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.cabinet-v2 .glow-1 {
  width: 520px;
  height: 520px;
  background: rgba(110, 181, 217, 0.14);
  top: -140px;
  right: -80px;
}

.cabinet-v2 .glow-2 {
  width: 440px;
  height: 440px;
  background: rgba(61, 214, 140, 0.1);
  bottom: 10%;
  left: -120px;
}

@keyframes cabinet-auth-smoke-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.38; }
  33% { transform: translate(14px, -20px) scale(1.1); opacity: 0.55; }
  66% { transform: translate(-10px, 12px) scale(0.94); opacity: 0.32; }
}

@keyframes cabinet-auth-glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.cabinet-v2 .cabinet-auth-glow {
  animation: cabinet-auth-glow-pulse 9s ease-in-out infinite;
}

.cabinet-v2 .cabinet-auth-smoke {
  position: fixed;
  border-radius: 50%;
  filter: blur(88px);
  pointer-events: none;
  z-index: 0;
  animation: cabinet-auth-smoke-drift 16s ease-in-out infinite;
}

.cabinet-v2 .cabinet-auth-smoke--blue {
  width: 400px;
  height: 400px;
  background: rgba(66, 133, 244, 0.16);
  top: 8%;
  left: -10%;
  animation-duration: 17s;
}

.cabinet-v2 .cabinet-auth-smoke--red {
  width: 340px;
  height: 340px;
  background: rgba(234, 67, 53, 0.13);
  bottom: 12%;
  right: -6%;
  animation-delay: -5s;
  animation-duration: 19s;
}

.cabinet-v2 .cabinet-auth-smoke--white {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.09);
  top: 42%;
  right: 18%;
  animation-delay: -9s;
  animation-duration: 15s;
}

.cabinet-v2 .login-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse 90% 65% at 50% -12%, rgba(110, 181, 217, 0.16), transparent 52%),
    radial-gradient(ellipse 55% 45% at 100% 60%, rgba(234, 67, 53, 0.07), transparent 48%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(66, 133, 244, 0.08), transparent 45%),
    linear-gradient(168deg, #14141e 0%, #1a1a26 42%, #12121a 100%);
}

.cabinet-v2 .cabinet-auth {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 420px);
  gap: clamp(20px, 4vw, 48px);
  width: min(920px, 100%);
  margin: auto;
  align-items: center;
}

.cabinet-v2 .cabinet-auth__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
}

.cabinet-v2 .cabinet-auth__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.cabinet-v2 .cabinet-auth__brand img {
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.cabinet-v2 .cabinet-auth__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cabinet-v2 .cabinet-auth__brand-sub {
  font-size: clamp(0.88rem, 1.5vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28ch;
}

.cabinet-v2 .cabinet-auth__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cabinet-v2 .cabinet-auth__card {
  position: relative;
  background: rgba(26, 28, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 32px);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 48px rgba(110, 181, 217, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cabinet-auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cabinet-auth-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cabinet-v2 .cabinet-auth-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cabinet-v2 .cabinet-auth-home-btn__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.cabinet-v2 .cabinet-auth-home-btn:hover {
  color: var(--text);
  border-color: rgba(110, 181, 217, 0.38);
  background: linear-gradient(145deg, rgba(110, 181, 217, 0.14) 0%, rgba(66, 133, 244, 0.07) 100%);
  box-shadow: 0 0 22px rgba(110, 181, 217, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.cabinet-v2 .cabinet-auth-home-btn:active {
  transform: translateY(0);
}

.cabinet-v2 .auth-head {
  margin-bottom: 20px;
  text-align: left;
}

.cabinet-v2 .auth-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  text-align: left;
}

.cabinet-v2 .auth-head p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

.cabinet-v2 .auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cabinet-v2 .auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  text-align: left;
}

.cabinet-v2 .auth-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cabinet-v2 .auth-field__input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.94rem;
  font-family: var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cabinet-v2 .auth-field__input::placeholder {
  color: rgba(168, 176, 190, 0.55);
}

.cabinet-v2 .auth-field__input:focus {
  outline: none;
  border-color: rgba(110, 181, 217, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 181, 217, 0.12);
}

.cabinet-v2 .auth-submit {
  margin-top: 4px;
  min-height: 46px;
}

.cabinet-v2 .auth-tabs {
  margin-bottom: 22px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cabinet-v2 .auth-tabs__btn {
  padding: 9px 12px;
  font-size: 0.82rem;
}

.cabinet-v2 .auth-tabs__btn.active {
  background: rgba(61, 214, 140, 0.14);
  color: var(--green);
  box-shadow: none;
}

.cabinet-v2 .auth-panel h1,
.cabinet-v2 .auth-panel > p {
  text-align: left;
}

.cabinet-v2 .login-error {
  min-height: 0;
  margin: 0;
  font-size: 0.82rem;
  text-align: left;
}

.cabinet-v2 .auth-link-row {
  margin: 4px 0 0;
  text-align: left;
}

.cabinet-v2 .auth-forgot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cabinet-v2 .auth-forgot-btn__icon {
  flex-shrink: 0;
  opacity: 0.8;
}

.cabinet-v2 .auth-forgot-btn:hover {
  color: var(--text);
  border-color: rgba(110, 181, 217, 0.38);
  background: linear-gradient(145deg, rgba(110, 181, 217, 0.12) 0%, rgba(66, 133, 244, 0.06) 100%);
  box-shadow: 0 0 20px rgba(110, 181, 217, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.cabinet-v2 .auth-forgot-btn:active {
  transform: translateY(0);
}

.cabinet-v2 .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cabinet-v2 .auth-back:hover {
  color: var(--cyan);
  border-color: rgba(110, 181, 217, 0.3);
  background: rgba(110, 181, 217, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-v2 .cabinet-auth-smoke,
  .cabinet-v2 .cabinet-auth-glow,
  .cabinet-v2 .cabinet-auth__card {
    animation: none;
  }
}

/* App shell v2 */
.cabinet-v2 .sidebar {
  background: rgba(8, 10, 16, 0.88);
  border-right-color: rgba(255, 255, 255, 0.08);
}

.cabinet-v2 .sidebar__head {
  padding: 18px 16px;
}

.cabinet-v2 .sidebar__logo {
  font-size: 0.92rem;
  gap: 10px;
}

.cabinet-v2 .sidebar__logo img {
  border-radius: 10px;
}

.cabinet-v2 .nav-item {
  padding: 10px 12px;
  font-size: 0.86rem;
  border-radius: 11px;
  margin-bottom: 2px;
}

.cabinet-v2 .topbar {
  padding: 12px 20px;
  background: rgba(8, 10, 16, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.cabinet-v2 .welcome-banner {
  border-color: rgba(255, 255, 255, 0.1);
}

.cabinet-v2 .stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 16px 18px;
}

.cabinet-v2 .panel,
.cabinet-v2 .guest-banner,
.cabinet-v2 .purchase-banner {
  border-radius: 16px;
}

@media (max-width: 768px) {
  .cabinet-v2 .cabinet-auth {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .cabinet-v2 .cabinet-auth__aside {
    padding: 8px 4px 0;
    align-items: center;
    text-align: center;
  }

  .cabinet-v2 .cabinet-auth__brand {
    align-items: center;
    text-align: center;
  }

  .cabinet-v2 .cabinet-auth__brand-sub {
    max-width: none;
  }
}

/* Money Maker — мобильная адаптация + liquid glass */

.hidden { display: none !important; }

html.mm-authed [data-auth="login"],
html.mm-authed [data-auth="register"] {
  display: none !important;
}

/* Мобильное меню и бургер — только в critical-mobile.css (синхронно на iPhone) */

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 165;
  background: rgba(4, 4, 10, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .container {
    width: min(1200px, 100% - 24px);
  }

  .hero,
  .sub-hero,
  .rec-hero {
    padding-top: var(--mm-page-top);
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.15;
  }

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

  .hero__cta .btn { width: 100%; }

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

  .section { padding: 48px 0; }

  .directions__grid,
  .how__steps--compact {
    grid-template-columns: 1fr !important;
  }

  .pricing__grid { max-width: 100% !important; }

  .pitch__inner {
    grid-template-columns: 1fr !important;
  }

  .pitch__visual {
    order: -1;
    max-height: 220px;
    object-fit: cover;
    border-radius: 18px;
  }

  .section-visual {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin-bottom: 20px;
  }

  .section-visual img {
    width: 100%;
    height: auto;
    display: block;
  }

  .modal__content {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    margin: 20px 14px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    padding-bottom: 8px;
  }

  .footer__brand {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer__brand > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer__links {
    justify-content: center;
    width: 100%;
  }

  .footer__bar {
    text-align: center;
  }

  .footer__copy {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .subscribe__channels { flex-direction: column; }
  .subscribe__channels .btn { width: 100%; }
}

/* ── Кабинет ── */
@media (max-width: 900px) {
  .sidebar {
    width: min(300px, 86vw);
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(48px) saturate(190%);
    -webkit-backdrop-filter: blur(48px) saturate(190%);
    z-index: 170;
    padding-top: env(safe-area-inset-top);
  }

  .sidebar-backdrop { z-index: 165; }

  .main { margin-left: 0; }

  .topbar__burger { display: flex; }

  .topbar__nav .topbar__link { display: none; }

  .content {
    padding: 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .video-grid,
  .manuals-list,
  .resources-grid,
  .community-grid,
  .shop__grid,
  .plan-cards {
    grid-template-columns: 1fr !important;
  }

  .lesson-modal { padding: 0; }
  .lesson-modal__panel {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .guest-banner { flex-direction: column; text-align: center; }
  .guest-banner .btn { margin-left: 0; width: 100%; }
}

@media (max-width: 380px) {
  .logo__text { display: none; }
  .quick-actions { grid-template-columns: 1fr !important; }
}

/* Секции с иллюстрациями */
.section-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.section-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.pricing__banner {
  margin-bottom: 28px;
}

.pitch__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.faq__banner {
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.directions__banner,
.how__banner {
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.directions__banner img,
.how__banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Money Maker — unified liquid glass (desktop ≈ mobile), link chips, Apple-ish UX */

:root {
  --mm-glass: rgba(255, 255, 255, 0.06);
  --mm-glass-hover: rgba(255, 255, 255, 0.11);
  --mm-glass-border: rgba(255, 255, 255, 0.14);
  --mm-glass-blur: blur(36px) saturate(175%);
  --mm-chip-radius: 999px;
  --mm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mm-pink: #ff6bcb;
  --mm-lime: #b8ff3c;
}

/* Навигация — src/core/nav.css */

/* ── Универсальные glass-чипы для ссылок ── */
.link-chip,
.pricing__more a,
.footer__links a,
.faq__item p a,
.sub-hero p a:not(.btn),
.login-back,
.login-admin,
.topbar__link,
.topbar__support,
.quick-link,
.cc-link,
.tools-error a,
main p a.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--mm-chip-radius);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--mm-glass);
  border: 1px solid var(--mm-glass-border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.22s var(--mm-ease), border-color 0.22s, background 0.22s, box-shadow 0.22s, color 0.22s;
}

.tools-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.link-chip:hover,
.pricing__more a:hover,
.footer__links a:hover,
.faq__item p a:hover,
.sub-hero p a:not(.btn):hover,
.login-back:hover,
.login-admin:hover,
.topbar__link:hover,
.topbar__support:hover,
.quick-link:hover,
.cc-link:hover,
.tools-error a:hover,
main p a.link-inline:hover {
  background: var(--mm-glass-hover);
  border-color: rgba(90, 200, 250, 0.4);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 24px rgba(90, 200, 250, 0.08);
}

/* Варианты акцентов — «по-хулигански», но читаемо */
.link-chip--cyan,
.pricing__more a:first-child {
  border-color: rgba(90, 200, 250, 0.35);
  color: var(--cyan);
}

.link-chip--gold,
.pricing__more a:last-child {
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--gold);
}

.link-chip--purple { border-color: rgba(168, 85, 247, 0.35); color: var(--purple); }
.link-chip--lime { border-color: rgba(184, 255, 60, 0.35); color: var(--mm-lime); }

/* Footer: чипы в ряд */
.footer {
  background: rgba(8, 8, 14, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.footer__links {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .footer__links {
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  .footer__links a {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer__links a:nth-child(3n+1) { border-color: rgba(90, 200, 250, 0.28); }
.footer__links a:nth-child(3n+2) { border-color: rgba(57, 255, 20, 0.28); }
.footer__links a:nth-child(3n) { border-color: rgba(168, 85, 247, 0.28); }

/* Pricing «ещё» — кнопки, не голый текст */
.pricing__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0;
}

.pricing__more::before {
  content: none;
}

.pricing__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.5;
  user-select: none;
}

/* FAQ ссылки */
.faq__item p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.faq__item p .faq__sep {
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.45;
}

/* Topbar кабинета — как header главной */
.topbar__link,
.topbar__support {
  padding: 8px 14px;
  font-size: 0.8rem;
}

.topbar__nav {
  gap: 8px;
  padding: 4px;
  border-radius: var(--mm-chip-radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-links {
  gap: 8px;
}

.quick-link:nth-child(1) { border-color: rgba(90, 200, 250, 0.32); }
.quick-link:nth-child(2) { border-color: rgba(57, 255, 20, 0.32); }
.quick-link:nth-child(3) { border-color: rgba(255, 215, 0, 0.32); }

/* Coop / community — усиленный glass */
.coop-item,
.community-card {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--mm-glass-blur);
  -webkit-backdrop-filter: var(--mm-glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--mm-ease), border-color 0.25s, box-shadow 0.25s;
}

.coop-item:hover,
.community-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 28px rgba(90, 200, 250, 0.1);
}

/* Desktop: те же glass-панели, что на touch (без урезания blur) */
@media (hover: hover) and (pointer: fine) {
  .hero__content--glass,
  .glass-panel,
  .price-card,
  .checkout,
  .reviews__card,
  .trust-strip--glass,
  .faq--glass .faq__item,
  .modal__content,
  .login-card,
  .panel,
  .tools-hero__visual {
    backdrop-filter: var(--mm-glass-blur);
    -webkit-backdrop-filter: var(--mm-glass-blur);
  }

  .price-card:hover {
    transform: translateY(-4px) rotate(0.3deg);
    box-shadow: var(--shadow), 0 0 32px rgba(90, 200, 250, 0.08);
  }

  .direction-card:hover,
  .how__step:hover {
    transform: translateY(-2px);
    border-color: rgba(90, 200, 250, 0.3);
  }
}

/* Sub-hero страницы — glass как hero главной */
.sub-hero__grid > div:first-child {
  padding: 28px 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mm-glass-border);
  backdrop-filter: var(--mm-glass-blur);
  -webkit-backdrop-filter: var(--mm-glass-blur);
  box-shadow: var(--shadow);
}

.sub-hero--shop .sub-hero__grid > div:first-child {
  border-color: rgba(255, 215, 0, 0.25);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.06), rgba(255, 255, 255, 0.04));
}

.login-screen .login-card {
  backdrop-filter: var(--mm-glass-blur);
  -webkit-backdrop-filter: var(--mm-glass-blur);
  border: 1px solid rgba(90, 200, 250, 0.2);
  box-shadow: var(--shadow), 0 0 40px rgba(90, 200, 250, 0.06);
}

/* Секции: лёгкий «спектр» как на mobile CTA */
.section:nth-of-type(odd) .section__label { text-shadow: 0 0 24px rgba(90, 200, 250, 0.2); }
.section:nth-of-type(even) .section__label { text-shadow: 0 0 24px rgba(168, 85, 247, 0.15); }

.cta--spectrum .cta__inner {
  background: linear-gradient(
    135deg,
    rgba(57, 255, 20, 0.1) 0%,
    rgba(90, 200, 250, 0.08) 35%,
    rgba(168, 85, 247, 0.08) 70%,
    rgba(255, 215, 0, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Кнопки: чуть Apple — мягкий press */
.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible,
.nav a:focus-visible,
.link-chip:focus-visible,
.footer__links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Drawer links sync with desktop nav */
#mobileNav a,
.mm-drawer > a {
  font-weight: 600;
  border-radius: 14px;
  transition: transform 0.2s var(--mm-ease), background 0.2s, border-color 0.2s;
}

#mobileNav a:active,
.mm-drawer > a:active {
  transform: scale(0.98);
}

.visitor-counter {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  border-radius: 999px;
  background: rgba(10, 12, 20, 0.55);
  border: 1px solid rgba(90, 200, 250, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem;
  color: rgba(154, 163, 181, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  animation: visitor-counter-in 0.7s ease forwards;
}

@keyframes visitor-counter-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.visitor-counter__pulse {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(90, 200, 250, 0.22);
  opacity: 0;
  animation: visitor-counter-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes visitor-counter-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.03); }
}

.visitor-counter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(90, 200, 250, 0.08);
  border: 1px solid rgba(90, 200, 250, 0.18);
}

.visitor-counter__icon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ac8fa;
  box-shadow: 0 0 10px rgba(90, 200, 250, 0.65);
  animation: visitor-counter-dot 2.4s ease-in-out infinite;
}

@keyframes visitor-counter-dot {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

.visitor-counter__body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
  min-width: 0;
}

.visitor-counter__val {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(90, 200, 250, 0.92);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.visitor-counter__caption {
  display: inline;
  font-size: 0.68rem;
  color: rgba(139, 146, 168, 0.85);
  white-space: nowrap;
}

.visitor-counter__label { color: rgba(200, 206, 217, 0.75); }
.visitor-counter__period { color: rgba(107, 114, 128, 0.8); }

.visitor-counter--in-footer {
  position: static;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(90, 200, 250, 0.1);
  background: rgba(6, 8, 14, 0.72);
  justify-content: center;
  text-align: center;
  box-shadow: none;
  animation: none;
  opacity: 1;
  transform: none;
}

.visitor-counter--in-footer .visitor-counter__body {
  justify-content: center;
}

@media (max-width: 900px) {
  .visitor-counter:not(.visitor-counter--in-footer) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visitor-counter,
  .visitor-counter__pulse,
  .visitor-counter__icon-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

