/* mm.defer.cabinet */

:root {
  --bg: #0a0a10;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(90, 200, 250, 0.35);
  --text: #f2f4f8;
  --text-muted: #9aa3b5;
  --green: #39ff14;
  --cyan: #5ac8fa;
  --gold: #ffd700;
  --sidebar-w: 260px;
  --radius: 18px;
  --glass-blur: blur(40px) saturate(180%);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::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(135deg, var(--green), #2dd410);
  color: #000;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.2);
}
.btn--primary:hover { box-shadow: 0 0 36px rgba(57, 255, 20, 0.35); 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: 24px;
  background: radial-gradient(ellipse at top, rgba(0,229,255,0.08), transparent 60%), var(--bg);
}

.login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.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-size: 1.6rem; margin-bottom: 8px; }
.login-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.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; }

.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: rgba(57, 255, 20, 0.1);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 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 { margin-bottom: 10px; }
.user-badge__name { display: block; font-weight: 600; font-size: 0.9rem; }
.user-badge__plan { font-size: 0.75rem; color: var(--cyan); }

.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-size: 1.2rem; font-weight: 700; flex: 1; }
.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: 24px; flex: 1; }

.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(57,255,20,0.1), rgba(0,229,255,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: 1.5rem; margin-bottom: 6px; font-family: var(--font-display); }
.welcome-banner p { color: var(--text-muted); font-size: 0.9rem; }

.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: 1.8rem; font-weight: 700; color: var(--cyan); }
.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 { border-radius: 16px; margin-bottom: 16px; }
.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-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__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; }

.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; }
}

/* 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(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(12, 14, 22, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  color: #9aa3b5;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.08);
  pointer-events: none;
  user-select: none;
}

.visitor-counter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.14), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.visitor-counter__icon img {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

.visitor-counter__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}

.visitor-counter__val {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #00e5ff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.visitor-counter__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
  font-size: 0.72rem;
  color: #8b92a8;
}

.visitor-counter__label {
  color: #c8ced9;
  font-weight: 600;
}

.visitor-counter__period {
  color: #6b7280;
}

.visitor-counter--in-footer {
  position: static;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.6) 0%, rgba(6, 8, 14, 0.98) 100%);
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.visitor-counter--in-footer .visitor-counter__body {
  align-items: center;
}

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

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