/* ============================================================
   Академия Проксима — Менеджер маркетплейсов Webapp
   ============================================================ */

:root {
  --primary:       #503755;
  --accent:        #882de5;
  --accent-light:  #b369ff;
  --accent-glow:   rgba(136, 45, 229, 0.12);
  --bg:            #ffffff;
  --card:          #ffffff;
  --surface:       #f8f8f8;
  --text:          #19291f;
  --text-dim:      #818181;
  --text-secondary:#4a4a4a;
  --text-muted:    #818181;
  --border:        #ededed;
  --coin:          #d8f26c;
  --coin-dark:     #19291f;
  --coin-light:    #edf7c7;
  --green:         #10B981;
  --red:           #EF4444;
  --pink:          #c790ff;
  --gold:          #19291f;
  --radius-pill:   50px;
  --radius-card:   16px;
  --radius-lg:     24px;
  --nav-h:         64px;
  --font-display:  'Russo One', Arial, sans-serif;
}

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

html, body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  height: 100%;
  overflow: hidden;
}

/* ─── SCREEN SYSTEM ─── */
.screen {
  position: fixed;
  inset: 0;
  bottom: var(--nav-h);
  background: var(--bg);
  overflow: hidden;
  display: none;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .25s;
  z-index: 1;
}
.screen.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
}
.screen.slide-back { transform: translateX(-30%); }
.screen.slide-in-back { transform: translateX(0); }

/* welcome & avatar fullscreen */
#screen-welcome, #screen-avatar { bottom: 0; z-index: 2; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.content-pad { padding: 0 16px 24px; }

/* ─── TOP BAR ─── */
.top-bar {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-bar-title { flex: 1; font-weight: 700; font-size: 15px; color: var(--primary); }
.back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--accent); padding: 2px; display: flex; align-items: center;
}
.xp-badge {
  background: var(--coin-light);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--coin);
}

/* ─── BOTTOM NAV ─── */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-btn {
  flex: 1; background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  color: var(--text-muted);
  font-size: 10px; font-family: inherit; font-weight: 600;
  transition: color .2s;
}
.nav-btn svg { stroke: currentColor; }
.nav-btn.active { color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
  display: block; width: 100%;
  background: var(--coin);
  color: var(--text);
  border: none; border-radius: var(--radius-pill);
  padding: 16px 24px;
  font-size: 16px; font-weight: 800; font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(216,242,108,.5);
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 20px; font-size: 14px; width: auto; display: inline-block; }
.btn-ghost {
  background: none; border: none; color: var(--text-muted);
  font-size: 13px; font-family: inherit; cursor: pointer;
  padding: 8px; text-decoration: underline; display: block; width: 100%; text-align: center;
}
.btn-fire {
  background: linear-gradient(135deg, #EF4444, #F59E0B);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239,68,68,.35);
}
.btn-coin {
  background: var(--coin);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(216,242,108,.5);
}
.btn-outline {
  background: none; border: 2px solid var(--accent); color: var(--accent);
  box-shadow: none;
}
.btn-welcome {
  font-size: 17px;
  padding: 18px 28px;
  background: var(--coin);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(216,242,108,.5);
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(25,41,31,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 500; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 20px 60px rgba(25,41,31,.18);
}
.modal-icon { font-size: 48px; margin-bottom: 12px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.modal-text { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }

/* ─── WELCOME SCREEN ─── */
.welcome-bg {
  min-height: 100vh;
  background: linear-gradient(160deg, #ffffff 0%, #f4ebff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}
.welcome-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(136,45,229,.35);
  animation: particleFloat 4s ease-in-out infinite;
}
@keyframes particleFloat {
  0%,100% { transform: translateY(0) scale(1); opacity: .4; }
  50% { transform: translateY(-30px) scale(1.2); opacity: .8; }
}
.welcome-logo-row {
  padding: 52px 24px 0;
  display: flex; align-items: center; gap: 10px;
}
.welcome-logo-badge {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 400; letter-spacing: 2px;
  padding: 5px 14px; border-radius: 8px;
}
.welcome-logo-sub { color: var(--text-muted); font-size: 12px; }
.welcome-hero-wb {
  margin: 32px auto 0;
  width: 180px; height: 180px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.welcome-hero-circle {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(136,45,229,.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 3s ease-in-out infinite;
}
@keyframes heroGlow {
  0%,100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.1); opacity: 1; }
}
.welcome-wb-icon {
  font-size: 80px;
  filter: drop-shadow(0 8px 32px rgba(136,45,229,.45));
  animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.welcome-level-badge {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--coin);
  color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 20px;
  white-space: nowrap;
}
.welcome-content {
  padding: 40px 24px 32px;
  color: var(--text);
}
.welcome-online-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  font-size: 13px; color: var(--text-muted);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.welcome-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 400; line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.welcome-title span { color: var(--accent); }
.welcome-subtitle {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 24px;
}
.welcome-stats-row {
  display: flex; gap: 8px; margin-bottom: 28px;
}
.welcome-stat-wb {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 8px; text-align: center;
}
.ws-num { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--accent); letter-spacing: 0.5px; }
.ws-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.welcome-fine { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 12px; }

/* ─── AVATAR SCREEN ─── */
.avatar-screen {
  padding: 24px 16px 40px;
  min-height: 100vh;
}
.avatar-header {
  text-align: center; margin-bottom: 28px;
  padding-top: 16px;
}
.avatar-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.avatar-header p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.avatar-roles { display: flex; flex-direction: column; gap: 16px; }
.role-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 20px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.role-card:active { transform: scale(.98); }
.role-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.role-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}
.role-avatar-analyst  { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); }
.role-avatar-marketer { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }
.role-avatar-manager  { background: linear-gradient(135deg, #FEF3C7, #FDE68A); }
.avatar-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.ap-head {
  width: 34px; height: 34px; border-radius: 50%;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
}
.analyst-ph .ap-head  { background: #93C5FD; }
.marketer-ph .ap-head { background: #F9A8D4; }
.manager-ph .ap-head  { background: #FCD34D; }
.ap-body {
  width: 60px; height: 40px; border-radius: 30px 30px 0 0;
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
}
.analyst-ph .ap-body  { background: #3B82F6; }
.marketer-ph .ap-body { background: #EC4899; }
.manager-ph .ap-body  { background: #D97706; }
.ap-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 28px;
}
.role-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
.tag {
  background: var(--accent-glow); color: var(--accent);
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
}
.tag-pink     { background: rgba(236,72,153,.1); color: var(--pink); }
.tag-gold     { background: rgba(217,119,6,.1); color: var(--gold); }
.tag-analyst  { background: rgba(99,102,241,.15); color: #818cf8; }
.tag-marketer { background: rgba(236,72,153,.15); color: var(--pink); }
.tag-manager  { background: rgba(245,158,11,.15); color: var(--gold); }
.role-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.role-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.skill-bar {
  height: 4px; background: var(--border); border-radius: 4px;
  margin-bottom: 2px; margin-top: 6px;
}
.sb-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .6s ease;
}
.sb-pink { background: linear-gradient(90deg, var(--pink), #F9A8D4); }
.sb-gold { background: linear-gradient(90deg, var(--gold), var(--coin)); }
.skill-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-secondary);
  margin-bottom: 4px;
}
.skill-label span { color: var(--coin); }

/* ─── OVERVIEW SCREEN ─── */
.ov-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.ov-header-left { display: flex; align-items: center; gap: 10px; }
.ov-avatar-mini {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-glow); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.ov-greeting { font-weight: 700; font-size: 15px; }
.ov-level-label { font-size: 11px; color: var(--text-muted); }
.ov-coins-badge {
  display: flex; align-items: center; gap: 4px;
  background: var(--coin-light); border: 1px solid var(--coin);
  border-radius: 20px; padding: 6px 12px; cursor: pointer;
}
.coin-icon { font-size: 16px; }
.ov-coins-badge > span:nth-child(2) { font-weight: 800; font-size: 15px; color: var(--text); }
.coin-label { font-size: 10px; color: var(--text); }

/* Career Progress */
.career-progress-block {
  background: linear-gradient(135deg, #f8ecff 0%, #ffffff 100%);
  padding: 16px 16px 20px;
  border-bottom: 1px solid var(--border);
}
.career-stages {
  display: flex; align-items: flex-start;
  margin-bottom: 12px;
}
.cs-stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 50px;
}
.cs-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: #e8dbf7; border: 2px solid #d3bff0;
  transition: all .4s;
}
.cs-dot.active { background: var(--coin); border-color: var(--coin); box-shadow: 0 0 10px rgba(216,242,108,.6); }
.cs-dot.done   { background: var(--accent); border-color: var(--accent); }
.cs-name { font-size: 9px; color: var(--text-muted); text-align: center; font-weight: 600; }
.cs-line {
  flex: 1; height: 2px; background: #e8dbf7;
  margin-top: 9px; border-radius: 2px; overflow: hidden;
}
.cs-line-fill { height: 100%; background: var(--accent); width: 0%; transition: width .6s ease; }
.career-bar-wrap {
  display: flex; align-items: center; gap: 10px;
}
.career-bar {
  flex: 1; height: 8px; background: #e8dbf7;
  border-radius: 8px; overflow: hidden;
}
.career-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--coin));
  border-radius: 8px; width: 0%;
  transition: width .6s ease;
}
.career-pct { color: var(--text); font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }

/* Streak */
.streak-banner {
  background: linear-gradient(135deg, var(--coin-light), #dbedac);
  border: 1px solid var(--coin);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 0;
}
.streak-fire { font-size: 24px; }
.streak-title { font-size: 13px; font-weight: 700; color: var(--text); }
.streak-sub { font-size: 11px; color: var(--text-secondary); }
.streak-days {
  display: flex; gap: 4px; margin-left: auto;
}
.streak-day {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(25,41,31,.08); border: 1.5px solid var(--coin);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.streak-day.done { background: var(--text); color: var(--coin); border-color: var(--text); }

/* Daily Task */
.daily-block {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 14px;
  margin-top: 12px;
}
.daily-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.daily-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px;
}
.daily-reward { font-size: 14px; font-weight: 700; color: var(--accent); }
.daily-task { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.btn-daily {
  background: linear-gradient(135deg, var(--green), #34D399);
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
}
.daily-done { opacity: .5; pointer-events: none; }
.daily-done-label {
  font-size: 13px; color: var(--green); font-weight: 600;
  padding: 8px 0 2px;
}

/* Section title */
.section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400; margin: 20px 0 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Lessons Map */
.lessons-map { display: flex; flex-direction: column; gap: 12px; }
.lesson-map-item {
  background: var(--card);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.lesson-map-item:active { transform: scale(.98); }
.lesson-map-item.available {
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.lesson-map-item.available::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
}
.lesson-map-item.completed { border-color: var(--green); }
.lesson-map-item.completed::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--green);
}
.lesson-map-item.locked { opacity: .5; cursor: not-allowed; }
.lmi-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.lmi-icon-1 { background: rgba(136,45,229,.12); }
.lmi-icon-2 { background: rgba(199,144,255,.20); }
.lmi-icon-3 { background: rgba(216,242,108,.45); }
.lmi-icon-web { background: rgba(239,68,68,.1); }
.lmi-webinar.available { border-color: #EF4444; }
.lmi-webinar.available::before { background: #EF4444; }
.lmi-live { background: rgba(239,68,68,.1) !important; color: #EF4444 !important; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.lmi-info { flex: 1; }
.lmi-level { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.lmi-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.lmi-meta { display: flex; gap: 8px; align-items: center; }
.lmi-coins { font-size: 12px; color: var(--accent); font-weight: 600; }
.lmi-status {
  font-size: 11px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px;
}
.status-available { background: var(--accent-glow); color: var(--accent); }
.status-done { background: rgba(16,185,129,.1); color: var(--green); }
.status-locked { background: var(--border); color: var(--text-muted); }
.lmi-arrow { color: var(--text-muted); font-size: 18px; }

/* Stats grid */
.ov-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px; margin-top: 16px;
}
.ov-stat {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 12px 6px;
  text-align: center;
  border: 1px solid var(--border);
}
.ost-ico { font-size: 20px; margin-bottom: 4px; }
.ost-val { font-size: 16px; font-weight: 800; }
.ost-lbl { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ─── LESSON SCREEN ─── */
.les-header-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  margin-top: 16px;
}
.les-level-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 20px;
  display: inline-block; margin-bottom: 10px;
}
.les-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 8px; letter-spacing: 0.5px; }
.les-coins-row { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255,255,255,.8); }
.les-coin-badge {
  background: var(--coin); color: var(--text);
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
}
.les-video-wrap {
  background: #000; border-radius: var(--radius-card);
  aspect-ratio: 16/9; overflow: hidden;
  margin-bottom: 20px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.les-video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); text-align: center; padding: 20px;
  cursor: pointer; width: 100%; height: 100%;
  transition: background 0.2s;
}
.les-video-placeholder:hover { background: rgba(255,255,255,.05); }
.les-play-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(136,45,229,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 10px;
  box-shadow: 0 4px 20px rgba(136,45,229,.5);
}
.les-play-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.les-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.les-video-wrap video, .les-video-wrap iframe {
  width: 100%; height: 100%; border: none;
}
.les-body h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400; margin: 20px 0 10px;
  color: var(--text);
  letter-spacing: 0.3px;
}
.les-body p {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 14px;
}
.les-body ul { padding-left: 18px; margin-bottom: 14px; }
.les-body li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 6px;
}
.les-fact-card {
  background: var(--accent-glow); border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 12px 14px; margin: 16px 0;
}
.les-fact-card p { color: var(--text); font-weight: 600; margin: 0; }
.les-complete-btn { margin-top: 28px; }
.les-quiz-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  margin-top: 12px;
}

/* ─── QUIZ SCREEN ─── */
.quiz-progress-row {
  display: flex; gap: 6px; margin-bottom: 20px; margin-top: 16px;
}
.qp-dot {
  flex: 1; height: 4px; border-radius: 4px;
  background: var(--border); transition: background .3s;
}
.qp-dot.done { background: var(--accent); }
.qp-dot.active { background: var(--accent-light); }
.quiz-q-num { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.quiz-q-text { font-size: 17px; font-weight: 700; margin-bottom: 20px; line-height: 1.4; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-card); padding: 14px 16px;
  font-size: 14px; font-family: inherit; font-weight: 500;
  color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  text-align: left;
}
.quiz-opt:active { transform: scale(.98); }
.quiz-opt.correct { border-color: var(--green); background: rgba(16,185,129,.08); }
.quiz-opt.wrong   { border-color: var(--red); background: rgba(239,68,68,.08); }
.quiz-opt.selected { border-color: var(--accent); background: var(--accent-glow); }
.quiz-result-banner {
  border-radius: var(--radius-card); padding: 16px;
  text-align: center; margin: 20px 0;
}
.quiz-result-banner.good { background: rgba(16,185,129,.1); border: 1px solid var(--green); }
.quiz-result-banner.bad  { background: rgba(239,68,68,.08); border: 1px solid var(--red); }
.quiz-result-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.quiz-result-banner p  { font-size: 13px; color: var(--text-secondary); }
.quiz-coins-earned {
  font-size: 28px; font-weight: 900; color: var(--gold); margin: 8px 0;
}

/* ─── SHOP SCREEN ─── */
.shop-sub {
  font-size: 13px; color: var(--text-secondary);
  line-height: 1.6; margin: 12px 0 16px;
  background: var(--coin-light); border-radius: 12px;
  padding: 12px; border: 1px solid var(--coin);
}
.shop-list { display: flex; flex-direction: column; gap: 16px; }
.shop-item {
  background: var(--card); border-radius: var(--radius-card);
  border: 1px solid var(--border); overflow: hidden;
}
.shop-item-header {
  padding: 16px 16px 12px;
  display: flex; align-items: flex-start; gap: 12px;
}
.shop-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  background: var(--accent-glow);
}
.shop-item-info { flex: 1; }
.shop-item-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.shop-item-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.shop-item-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.shop-price-block { }
.shop-price-rub { font-size: 18px; font-weight: 800; color: var(--text); }
.shop-price-rub.striked { text-decoration: line-through; color: var(--text-muted); font-size: 14px; }
.shop-price-coins {
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.shop-item-btns { display: flex; gap: 8px; }
.btn-shop-rub {
  background: var(--accent); color: #fff;
  border: none; border-radius: 20px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--accent-glow);
}
.btn-shop-coins {
  background: var(--coin-light); color: var(--text);
  border: 1px solid var(--coin); border-radius: 20px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; font-family: inherit;
  cursor: pointer;
}
.shop-item.unlocked .shop-item-footer {
  background: rgba(16,185,129,.05);
}
.shop-unlocked-label {
  color: var(--green); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.shop-secret {
  border-color: var(--coin);
  box-shadow: 0 0 0 2px rgba(216,242,108,.3);
}
.shop-secret-badge {
  background: var(--coin);
  color: var(--text); font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px; letter-spacing: 1px;
  display: inline-block; margin-bottom: 4px;
}

/* ─── WEBINAR SCREEN ─── */
.wb-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 32px 20px 24px;
  color: #fff;
  text-align: center;
}
.wb-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(239,68,68,.2); border: 1px solid rgba(239,68,68,.4);
  border-radius: 20px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #FCA5A5;
  margin-bottom: 14px;
}
.wb-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 8px; line-height: 1.3; letter-spacing: 0.5px; }
.wb-title span { color: var(--coin); }
.wb-hero-sub { font-size: 13px; color: rgba(255,255,255,.85); }

/* Countdown card */
.wb-date-card {
  background: var(--card); border: 2px solid var(--accent);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(136,45,229,.15);
}
.wb-date-card .wb-icon { font-size: 48px; margin-bottom: 10px; }
.wb-date-card .wb-day { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 4px; text-transform: capitalize; }
.wb-date-card .wb-time { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--accent); margin-bottom: 16px; letter-spacing: 1px; }
.wb-countdown { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.wb-cd-item { background: var(--accent-glow); border-radius: var(--radius-card); padding: 12px 14px; min-width: 64px; text-align: center; border: 1px solid rgba(136,45,229,.2); }
.wb-cd-item .wb-cd-val { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--accent); font-variant-numeric: tabular-nums; }
.wb-cd-item .wb-cd-lbl { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.wb-live-now { font-size: 16px; font-weight: 900; color: #EF4444; padding: 12px; animation: pulse 1s infinite; }

/* Sections */
.wb-section { margin: 28px 0 0; }
.wb-sec-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--text); margin-bottom: 4px; text-align: center; letter-spacing: 0.5px; }
.wb-sec-sub { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }

/* What you'll learn */
.wb-learn-grid { display: flex; flex-direction: column; gap: 10px; }
.wb-learn-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
}
.wb-learn-ico { font-size: 28px; flex-shrink: 0; }
.wb-learn-txt strong { display: block; font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.wb-learn-txt p { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Gifts grid */
.wb-gifts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.wb-gift {
  background: linear-gradient(145deg, #f4ebff 0%, #e6d4fa 100%);
  border: 1.5px solid rgba(136,45,229,.25);
  border-radius: 14px; padding: 16px 14px;
  text-align: center;
}
.wb-gift-ico { font-size: 32px; margin-bottom: 6px; }
.wb-gift-name { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
.wb-gift-desc { font-size: 10px; color: var(--text-muted); line-height: 1.4; }

/* Coins card */
.wb-coins-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--coin-light), #c9e08a);
  border: 1.5px solid var(--coin); border-radius: 16px; padding: 18px 16px;
}
.wb-coins-ico { font-size: 36px; flex-shrink: 0; }
.wb-coins-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.wb-coins-val { font-size: 13px; color: var(--text-secondary); }

/* Reviews */
.wb-reviews { display: flex; flex-direction: column; gap: 12px; }
.wb-review {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  position: relative;
}
.wb-review::before {
  content: '"'; position: absolute;
  top: 6px; left: 14px; font-size: 54px;
  font-family: Georgia, serif; color: rgba(136,45,229,.15);
  line-height: 1; font-weight: 700;
}
.wb-review-stars { color: #F59E0B; font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.wb-review-txt { font-size: 13px; color: var(--text-secondary); line-height: 1.55; font-style: italic; margin: 0 0 8px; }
.wb-review-author { font-size: 12px; font-weight: 700; color: var(--text); }

/* CTA */
.wb-cta-block {
  background: linear-gradient(135deg, var(--accent-glow), rgba(216,242,108,.3));
  border: 1px solid rgba(136,45,229,.2);
  border-radius: var(--radius-card); padding: 24px;
  text-align: center; margin: 28px 0 8px;
}
.wb-cta-block h3 { font-family: var(--font-display); font-size: 19px; font-weight: 400; margin-bottom: 6px; color: var(--text); letter-spacing: 0.3px; }
.wb-cta-block p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }

/* ─── SALES SCREEN ─── */
.offer-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg); padding: 24px;
  color: #fff; margin-top: 16px; margin-bottom: 20px;
}
.offer-tag {
  background: var(--coin); color: var(--text);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 12px; border-radius: 20px; display: inline-block;
  margin-bottom: 12px;
}
.offer-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 8px; letter-spacing: 0.5px; }
.offer-sub { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.5; margin-bottom: 16px; }
.offer-discount-row {
  background: rgba(255,255,255,.14); border-radius: 12px;
  padding: 14px; margin-bottom: 16px;
}
.offer-coins-line {
  font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 4px;
}
.offer-coins-saved { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--coin); letter-spacing: 0.5px; }
.offer-price-row { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.offer-price-old { font-size: 18px; color: rgba(255,255,255,.55); text-decoration: line-through; }
.offer-price-new { font-family: var(--font-display); font-size: 34px; font-weight: 400; color: #fff; letter-spacing: 0.5px; }
.offer-timer-block {
  background: var(--card); border-radius: var(--radius-card);
  padding: 16px; margin-bottom: 20px;
  border: 1px solid var(--border);
  text-align: center;
}
.offer-timer-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.offer-timer { font-size: 36px; font-weight: 900; color: var(--red); letter-spacing: 2px; }
.offer-features { margin-bottom: 24px; }
.offer-feature {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.offer-feature:last-child { border-bottom: none; }
.offer-feature-icon { font-size: 20px; flex-shrink: 0; }
.offer-feature-text { font-size: 13px; color: var(--text-secondary); }
.offer-feature-text b { color: var(--text); font-weight: 700; }

/* ─── PROFILE SCREEN ─── */
.profile-hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg); padding: 24px;
  margin-top: 16px; margin-bottom: 20px;
  display: flex; flex-direction: column; align-items: center;
  color: #fff; text-align: center;
}
.profile-name-row {
  display: flex; flex-direction: column; align-items: center;
  margin-top: 8px; margin-bottom: 16px; text-align: center;
}
.profile-avatar-big {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 3px solid var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; margin-bottom: 12px;
}
.profile-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.profile-role-badge {
  background: var(--accent); font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 12px;
  display: inline-block;
}
.profile-level-badge {
  background: var(--coin); color: var(--text);
  font-size: 12px; font-weight: 800; padding: 4px 14px;
  border-radius: 20px; display: inline-block;
}
.profile-stats-row {
  display: flex; gap: 10px;
}
.profile-stat {
  background: var(--card); border-radius: var(--radius-card);
  padding: 14px; text-align: center; flex: 1;
  border: 1px solid var(--border);
}
.pst-ico  { font-size: 24px; margin-bottom: 4px; }
.pst-val  { font-size: 20px; font-weight: 800; }
.pst-lbl  { font-size: 11px; color: var(--text-muted); }
.profile-ach-section { margin-top: 20px; }
.ach-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 12px;
}
.ach-item {
  background: var(--card); border-radius: var(--radius-card);
  padding: 14px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  transition: opacity .3s;
}
.ach-item.locked { opacity: .4; filter: grayscale(1); }
.ach-icon { font-size: 28px; }
.ach-name { font-size: 12px; font-weight: 700; }
.ach-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── FOMO OVERLAY ─── */
.fomo-overlay {
  position: fixed; inset: 0; background: rgba(25,41,31,.7);
  display: none; align-items: center; justify-content: center;
  z-index: 600; padding: 24px;
}
.fomo-overlay.show { display: flex; }
.fomo-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 28px 24px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 20px 60px rgba(239,68,68,.2);
  border: 2px solid #FCA5A5;
}
.fomo-fire { font-size: 48px; margin-bottom: 8px; }
.fomo-card h3 { font-size: 22px; font-weight: 900; margin-bottom: 8px; color: var(--red); }
.fomo-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.fomo-timer {
  font-size: 44px; font-weight: 900; color: var(--red);
  letter-spacing: 2px; margin: 8px 0; font-variant-numeric: tabular-nums;
}
.fomo-sub { font-size: 13px; line-height: 1.5; margin-bottom: 16px !important; }
.fomo-overlay .btn-fire { margin-bottom: 8px; }

/* ─── TRIPWIRE OVERLAY ─── */
.trip-overlay {
  position: fixed; inset: 0; background: rgba(25,41,31,.7);
  display: none; align-items: center; justify-content: center;
  z-index: 550; padding: 24px;
}
.trip-overlay.show { display: flex; }
.trip-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: 0 20px 60px rgba(25,41,31,.2);
  border: 2px solid var(--coin);
}
.trip-badge {
  background: var(--coin);
  color: var(--text); font-size: 11px; font-weight: 900; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 20px; display: inline-block; margin-bottom: 12px;
}
.trip-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.trip-card > p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.trip-options {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px;
}
.trip-opt {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .2s, background .2s;
}
.trip-opt-coins { border-color: var(--coin); background: var(--coin-light); }
.trip-opt-save  { border-color: var(--border); }
.trip-opt-icon { font-size: 28px; }
.trip-opt span:last-child { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.trip-opt span:last-child b { color: var(--text); font-size: 14px; }
.trip-hint { font-size: 12px; color: var(--text-muted); }
.trip-opt.disabled { opacity: .4; pointer-events: none; }

/* ─── ACHIEVEMENT UNLOCK TOAST ─── */
.ach-unlock {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 16px; right: 16px; bottom: auto;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 800; color: #fff;
  transform: translateY(calc(-100% - 20px));
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 8px 32px rgba(136,45,229,.35);
  border: 1px solid rgba(255,255,255,.15);
  pointer-events: none;
}
.ach-unlock.show { transform: translateY(0); pointer-events: auto; }
.ach-unlock-icon { font-size: 32px; }
.ach-unlock-title { font-size: 11px; color: var(--coin); font-weight: 700; letter-spacing: 1px; }
.ach-unlock-name  { font-size: 15px; font-weight: 800; }

/* ─── LEVEL UP OVERLAY ─── */
.levelup-overlay {
  position: fixed; inset: 0; background: rgba(25,41,31,.75);
  display: none; align-items: center; justify-content: center;
  z-index: 700; padding: 24px;
}
.levelup-overlay.show { display: flex; animation: fadeIn .3s; }
.levelup-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; max-width: 320px; width: 100%;
  color: #fff;
  box-shadow: 0 20px 60px rgba(136,45,229,.4);
  border: 1px solid rgba(255,255,255,.15);
}
.levelup-stars { font-size: 32px; margin-bottom: 8px; letter-spacing: 4px; }
.levelup-label {
  font-size: 11px; font-weight: 800; letter-spacing: 3px;
  color: var(--coin); margin-bottom: 12px;
}
.levelup-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 8px; color: var(--coin); letter-spacing: 0.5px; }
.levelup-desc  { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 24px; }

/* ─── ACH OVERLAY ─── */
.ach-overlay {
  position: fixed; inset: 0; background: rgba(25,41,31,.55);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 400; padding: 0;
}
.ach-overlay.show { display: flex; }
.ach-panel {
  background: var(--card); border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px; width: 100%;
  max-height: 70vh; overflow-y: auto;
}
.ach-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.ach-close {
  display: block; width: 100%; margin-top: 20px;
  background: var(--border); border: none; border-radius: 20px;
  padding: 12px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; font-family: inherit;
}

/* ─── NOTIFICATIONS ─── */
#notif-box { position: fixed; bottom: calc(var(--nav-h) + 12px); left: 16px; right: 16px; z-index: 300; pointer-events: none; }
.notif {
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: 12px 16px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  animation: notifIn .3s ease;
  box-shadow: 0 4px 20px rgba(136,45,229,.35);
}
@keyframes notifIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.notif-coin { background: var(--coin); color: var(--text); }

/* ─── CONFETTI ─── */
.confetti-box {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: confettiFall 1.5s ease-in forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ─── FINALE SCREEN ─── */
.finale-hero {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-light) 100%);
  min-height: 100vh; padding: 60px 24px 40px;
  color: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.finale-trophy { font-size: 80px; margin-bottom: 16px; animation: heroFloat 3s ease-in-out infinite; }
.finale-badge {
  background: var(--coin); color: var(--text);
  font-size: 11px; font-weight: 900; letter-spacing: 2px;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
  display: inline-block;
}
.finale-title { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.2; margin-bottom: 12px; letter-spacing: 0.5px; }
.finale-sub { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 8px; line-height: 1.6; }
.finale-coins-big { font-family: var(--font-display); font-size: 52px; font-weight: 400; color: var(--coin); margin: 20px 0; letter-spacing: 1px; }
.finale-coins-label { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 32px; }
.finale-btns { width: 100%; max-width: 340px; }
.finale-btns .btn { margin-bottom: 10px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ─── UTILS ─── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ============================================================
   ОНБОРДИНГ: АНКЕТА + СЛАЙДЕР АВАТАРОВ
   ============================================================ */

.onb-wrap {
  min-height: 100vh;
  padding: 0 0 40px;
}
.onb-header {
  padding: 52px 24px 20px;
  text-align: center;
}
.onb-step-dots {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 10px;
}
.onb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: all .3s;
}
.onb-dot.active { background: var(--accent); transform: scale(1.3); }
.onb-dot.done   { background: var(--accent-light); }
.onb-step-label {
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}

/* Один шаг вопроса */
.onb-question {
  padding: 0 20px 24px;
  animation: slideUp .3s ease;
}
.onb-q-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; margin-bottom: 6px; text-align: center;
  color: var(--text); letter-spacing: 0.3px;
}
.onb-q-sub {
  font-size: 14px; color: var(--text-secondary); text-align: center;
  margin-bottom: 24px; line-height: 1.5;
}
.onb-options {
  display: flex; flex-direction: column; gap: 12px;
}
.onb-opt {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-card); padding: 16px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: border-color .2s, background .15s, transform .1s;
  text-align: left;
}
.onb-opt:active { transform: scale(.98); }
.onb-opt.selected { border-color: var(--accent); background: var(--accent-glow); }
.onb-opt-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  background: var(--bg);
}
.onb-opt-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.onb-opt-desc  { font-size: 12px; color: var(--text-secondary); }

/* Слайдер аватаров */
.onb-avatar-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 400; text-align: center;
  padding: 0 20px; margin-bottom: 6px;
  color: var(--text); letter-spacing: 0.3px;
}
.onb-avatar-sub {
  font-size: 13px; color: var(--text-secondary); text-align: center;
  padding: 0 20px; margin-bottom: 20px; line-height: 1.5;
}
.onb-slider-wrap {
  position: relative; overflow: hidden;
}
.onb-slider {
  display: flex;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.onb-slide {
  min-width: 100%; padding: 0 32px;
  display: flex; flex-direction: column; align-items: center;
}
.onb-avatar-img-wrap {
  width: 200px; height: 280px;
  position: relative;
  margin-bottom: 16px;
}
.onb-avatar-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 8px 32px rgba(136,45,229,.2));
  transition: transform .3s;
}
.onb-slide.active .onb-avatar-img {
  transform: scale(1.05);
}
.onb-avatar-name {
  font-size: 20px; font-weight: 800; margin-bottom: 4px;
}
.onb-avatar-tagline {
  font-size: 13px; color: var(--text-secondary); text-align: center;
  margin-bottom: 16px; line-height: 1.5;
}
.onb-avatar-tags {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 20px;
}
.onb-slider-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 0 20px 4px;
}
.onb-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.onb-nav-btn:active { background: var(--accent-glow); border-color: var(--accent); }
.onb-slider-dots {
  display: flex; gap: 8px; align-items: center;
}
.onb-sdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all .3s; cursor: pointer;
}
.onb-sdot.active { background: var(--accent); width: 20px; border-radius: 4px; }
.onb-select-btn {
  padding: 0 20px 24px;
  margin-top: 4px;
}

/* Рекомендованный аватар */
.onb-rec-badge {
  background: var(--coin);
  color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
  display: inline-block;
}

/* ============================================================
   ИНТЕРАКТИВНЫЕ ЗАДАНИЯ ДНЯ
   ============================================================ */

.daily-quiz-opts {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.daily-opt {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .2s, background .15s;
}
.daily-opt:active { transform: scale(.98); }
.daily-opt.correct { border-color: var(--green); background: rgba(16,185,129,.08); color: var(--green); font-weight: 700; }
.daily-opt.wrong   { border-color: var(--red);   background: rgba(239,68,68,.06); color: var(--red); }
.daily-opt.disabled { pointer-events: none; }

/* multiselect */
.daily-multiselect-opts {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px;
}
.daily-ms-opt {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  color: var(--text); cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 10px;
  transition: border-color .2s, background .15s;
}
.daily-ms-opt.selected { border-color: var(--accent); background: var(--accent-glow); }
.daily-ms-opt.correct  { border-color: var(--green); background: rgba(16,185,129,.08); }
.daily-ms-opt.wrong    { border-color: var(--red);   background: rgba(239,68,68,.06); }
.daily-ms-check {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: var(--card);
  transition: all .2s;
}
.daily-ms-opt.selected .daily-ms-check { border-color: var(--accent); background: var(--accent); color: #fff; }
.daily-ms-opt.correct  .daily-ms-check { border-color: var(--green); background: var(--green); color: #fff; }
.daily-ms-btn-row { margin-top: 10px; }

/* calc input */
.daily-calc-row {
  display: flex; gap: 8px; align-items: stretch; margin-top: 10px;
}
.daily-calc-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 16px; font-family: inherit; font-weight: 700;
  background: var(--bg); color: var(--text);
  outline: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.daily-calc-input:focus { border-color: var(--accent); }
.daily-calc-input.correct { border-color: var(--green); background: rgba(16,185,129,.08); }
.daily-calc-input.wrong   { border-color: var(--red);   background: rgba(239,68,68,.06); }
.daily-calc-btn {
  padding: 10px 18px; border-radius: 10px;
  background: var(--accent); color: #fff;
  border: none; font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.daily-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.daily-result {
  margin-top: 8px; padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 700; text-align: center;
}
.daily-result.ok  { background: rgba(16,185,129,.1); color: var(--green); }
.daily-result.bad { background: rgba(239,68,68,.08); color: var(--red); }

/* ============================================================
   АВАТАР СО СКИЛЛАМИ (профиль)
   ============================================================ */

.avatar-skills-wrap {
  position: relative;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-light) 100%);
  padding: 24px 16px 32px;
  overflow: visible;
}
.ask-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.ask-avatar-img {
  width: 180px; height: 250px;
  object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 12px 40px rgba(25,41,31,.35));
  position: relative; z-index: 2;
}
.ask-level-badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coin); color: var(--text);
  font-size: 12px; font-weight: 800; padding: 5px 18px;
  border-radius: 20px; white-space: nowrap; z-index: 3;
  box-shadow: 0 4px 12px rgba(216,242,108,.6);
}

/* Пузыри скиллов вокруг аватара */
.ask-skill {
  position: absolute;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px; padding: 7px 11px;
  color: #fff; z-index: 4;
  text-align: center; min-width: 80px;
  animation: skillPop .4s ease backwards;
}
.ask-skill.locked { opacity: .3; filter: grayscale(1); }
.ask-skill-icon { font-size: 16px; }
.ask-skill-name { font-size: 10px; font-weight: 600; margin-top: 2px; line-height: 1.2; }
.ask-skill-val  { font-family: var(--font-display); font-size: 14px; font-weight: 400; color: var(--coin); letter-spacing: 0.3px; }

/* Позиции пузырей (6 штук) */
.ask-skill-0 { top: 10px;  left: 4px; }
.ask-skill-1 { top: 10px;  right: 4px; }
.ask-skill-2 { top: 45%;   left: 0px;  transform: translateY(-50%); }
.ask-skill-3 { top: 45%;   right: 0px; transform: translateY(-50%); }
.ask-skill-4 { bottom: 30px; left: 8px; }
.ask-skill-5 { bottom: 30px; right: 8px; }

@keyframes skillPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.ask-skill-2.locked, .ask-skill-3.locked { transform: translateY(-50%); }

/* Имя + роль поверх секции */
.ask-name-row {
  margin-top: 28px; text-align: center; color: #fff;
}
.ask-user-name { font-size: 20px; font-weight: 800; }
.ask-role-pill {
  background: var(--accent); font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  display: inline-block; margin-top: 6px;
}

/* ─── INSTALL BANNER (PWA) ─── */
.install-banner {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border: 1.5px solid rgba(216,242,108,0.5);
  border-radius: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(136,45,229,0.35);
  animation: ibPulse 2.6s ease-in-out infinite;
}
.install-banner::before {
  content: '';
  position: absolute;
  top: -24px; right: -24px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(216,242,108,0.35) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
@keyframes ibPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(136,45,229,0.35); }
  50%      { box-shadow: 0 10px 30px rgba(216,242,108,0.3), 0 8px 24px rgba(136,45,229,0.35); }
}
.ib-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}
.ib-gift {
  font-size: 34px; flex-shrink: 0;
  animation: ibGiftBounce 2s ease-in-out infinite;
}
@keyframes ibGiftBounce {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-3px) rotate(3deg); }
}
.ib-head-txt { flex: 1; min-width: 0; }
.ib-title { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.35; }
.ib-title b { color: var(--coin); }
.ib-sub { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.85); margin-top: 3px; }
.ib-chevron { color: var(--coin); flex-shrink: 0; transition: transform 0.3s; }
.install-banner.open .ib-chevron { transform: rotate(180deg); }
.ib-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative; z-index: 1;
}
.install-banner.open .ib-body { max-height: 600px; }
.ib-divider {
  height: 1px; margin: 0 18px;
  background: linear-gradient(90deg, transparent, rgba(216,242,108,0.4), transparent);
}
.ib-gift-details {
  display: flex; align-items: flex-start; gap: 12px;
  margin: 14px 18px 4px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(216,242,108,0.35);
  border-radius: 12px;
}
.ib-gift-ico { font-size: 28px; flex-shrink: 0; }
.ib-gift-name { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.ib-gift-desc { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.ib-steps { margin: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.ib-step { display: flex; align-items: flex-start; gap: 12px; }
.ib-num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--coin);
  color: var(--text); font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(216,242,108,0.5);
}
.ib-txt { flex: 1; font-size: 12px; color: rgba(255,255,255,0.92); line-height: 1.5; padding-top: 3px; }
.ib-txt b { color: var(--coin); font-weight: 800; }
.ib-bonus-note {
  margin: 10px 18px 16px;
  padding: 10px 12px;
  background: rgba(216,242,108,0.18);
  border-left: 3px solid var(--coin);
  border-radius: 0 8px 8px 0;
  font-size: 11px; color: rgba(255,255,255,0.85); line-height: 1.5;
}

/* ─── MATERIAL CARDS (bonuses) ─── */
.material-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.material-card:not(.locked):hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(25,41,31,0.1); }
.material-card.locked { opacity: 0.75; cursor: default; }
.material-card-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
}
.mat-ico { font-size: 32px; flex-shrink: 0; }
.mat-info { flex: 1; min-width: 0; }
.mat-tag-inline {
  display: inline-block;
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; padding: 3px 8px; border-radius: 6px; margin-bottom: 4px;
}
.mat-name { font-size: 14px; font-weight: 700; color: var(--text); }
.material-card:not(.locked) .mat-name { color: var(--text); }
.mat-status { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.material-card:not(.locked) .mat-status { color: #4caf50; }
.mat-value { color: var(--accent); font-weight: 800; }
.mat-chevron { color: var(--text-dim); transition: transform 0.3s; flex-shrink: 0; }
.material-card.open .mat-chevron { transform: rotate(180deg); }
.material-card-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.material-card.open .material-card-body { max-height: 400px; }
.mat-body-inner {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.mat-body-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.mat-why {
  padding: 10px 12px;
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}
.mat-why-label { font-size: 10px; font-weight: 800; color: var(--accent); letter-spacing: 0.8px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.mat-why-txt { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.mat-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-dim); }
.mat-body-inner .btn { margin-top: 12px; width: 100%; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent); font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 12px; cursor: pointer; width: 100%; margin-top: 12px;
}

/* ─── EXCLUSIVE BANNER ─── */
.exclusive-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 20px; padding: 24px 22px;
  margin: 28px 0 16px; color: #fff;
  border: 1px solid rgba(216,242,108,0.35);
  box-shadow: 0 14px 36px rgba(136,45,229,0.35);
}
.exclusive-banner::before {
  content: ''; position: absolute;
  top: -40px; right: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(216,242,108,0.3) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.exclusive-banner > * { position: relative; z-index: 1; }
.excl-badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--coin);
  color: var(--text); padding: 6px 14px;
  border-radius: 20px; margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(216,242,108,0.5);
}
.excl-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.25; margin: 0 0 6px; letter-spacing: 0.4px; }
.excl-title span { color: var(--coin); }
.excl-sub { font-size: 12px; color: rgba(255,255,255,0.88); line-height: 1.5; margin-bottom: 16px; }
.excl-stats { display: flex; gap: 8px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.25); }
.excl-stat { flex: 1; text-align: center; }
.excl-stat-v { font-size: 15px; font-weight: 900; color: #fff; }
.excl-stat-l { font-size: 9px; color: rgba(255,255,255,0.72); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 3px; font-weight: 700; }
.material-card.exclusive { border-color: rgba(136,45,229,0.3); background: linear-gradient(180deg, var(--card) 0%, rgba(136,45,229,0.04) 100%); }

/* ─── CERTIFICATE ─── */
.cert-locked {
  background: var(--card); border: 2px dashed var(--border);
  border-radius: 16px; padding: 20px; text-align: center;
}
.cert-locked-icon { font-size: 36px; margin-bottom: 10px; }
.cert-locked-preview {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  filter: blur(2px); user-select: none;
}
.cert-locked-title { font-size: 11px; font-weight: 900; letter-spacing: 3px; color: var(--coin); text-transform: uppercase; }
.cert-locked-sub { font-size: 10px; color: rgba(255,255,255,0.85); margin: 4px 0; }
.cert-locked-name { font-size: 14px; font-weight: 800; color: #fff; }
.cert-locked-info { font-size: 13px; color: var(--text-dim); margin: 12px 0 10px; }
.cert-locked-progress { display: flex; align-items: center; gap: 10px; }
.cert-locked-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cert-locked-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 3px; transition: width 0.5s; }
.cert-locked-progress span { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.cert-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 16px; padding: 28px 24px; text-align: center; color: #fff;
  border: 2px solid rgba(216,242,108,0.5);
  box-shadow: 0 8px 32px rgba(136,45,229,0.35);
}
.cert-label { font-size: 9px; letter-spacing: 3px; font-weight: 800; text-transform: uppercase; color: var(--coin); margin-bottom: 8px; }
.cert-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin-bottom: 4px; letter-spacing: 0.4px; }
.cert-sub { font-size: 12px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.cert-name { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--coin); margin: 12px 0; border-top: 1px solid rgba(216,242,108,0.5); border-bottom: 1px solid rgba(216,242,108,0.5); padding: 10px 0; letter-spacing: 0.5px; }
.cert-desc { font-size: 11px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.cert-stamp { font-size: 40px; margin: 16px 0 8px; }

/* ─── PARTICIPANTS BAR ─── */
.participants-bar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.participants-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.participants-label { font-size: 12px; color: var(--text-dim); }
.participants-count { font-size: 18px; font-weight: 900; color: var(--text); }
.participants-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.participants-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width 0.8s ease; }
.participants-goal { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-dim); }

/* ─── REFERRAL BLOCK ─── */
.referral-block {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 18px; padding: 20px;
  margin-bottom: 20px; color: #fff;
  border: 1px solid rgba(216,242,108,0.3);
}
.ref-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.ref-icon { font-size: 36px; flex-shrink: 0; }
.ref-title { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.ref-sub { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.4; }
.ref-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.ref-stat { flex: 1; text-align: center; background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 8px; }
.ref-stat-v { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--coin); letter-spacing: 0.5px; }
.ref-stat-l { font-size: 10px; color: rgba(255,255,255,.75); text-transform: uppercase; margin-top: 2px; font-weight: 700; }
.ref-link-wrap { margin-bottom: 12px; }
.ref-link {
  background: rgba(0,0,0,.2); border: 1px solid rgba(216,242,108,.3);
  border-radius: 10px; padding: 10px 12px;
  font-size: 11px; color: rgba(255,255,255,.85);
  word-break: break-all; user-select: all;
  font-family: monospace;
}
.ref-btns { display: flex; gap: 10px; margin-bottom: 10px; }
.ref-btn-copy, .ref-btn-share {
  flex: 1; font-size: 13px; padding: 12px 8px;
}
.ref-btn-copy { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.ref-btn-copy:hover { background: rgba(255,255,255,.28); }
.ref-hint { font-size: 11px; color: rgba(255,255,255,.7); line-height: 1.4; text-align: center; }

/* ─── SKILL MAP ─── */
.skmap-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; margin-bottom: 20px; overflow: hidden;
}
.skmap-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; cursor: pointer;
  transition: background 0.2s;
}
.skmap-header:hover { background: rgba(0,0,0,.02); }
.skmap-title { font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--text); letter-spacing: 0.3px; }
.skmap-total { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.skmap-total b { color: var(--accent); font-weight: 800; }
.skmap-chevron { color: var(--text-muted); transition: transform 0.3s; flex-shrink: 0; }
.skmap-wrap.open .skmap-chevron { transform: rotate(180deg); }
.skmap-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 18px;
}
.skmap-wrap.open .skmap-body { max-height: 2000px; padding: 0 18px 16px; }
.skmap-cat { margin-bottom: 20px; }
.skmap-cat-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  margin: 12px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.skmap-row { margin-bottom: 14px; }
.skmap-row-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.skmap-icon { font-size: 16px; flex-shrink: 0; }
.skmap-name { flex: 1; font-size: 13px; font-weight: 700; color: var(--text); }
.skmap-pct { font-size: 13px; font-weight: 800; color: var(--accent); min-width: 36px; text-align: right; }
.skmap-bar {
  height: 8px; border-radius: 4px;
  background: var(--border); overflow: hidden;
  display: flex;
}
.skmap-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.skmap-fill-ghost { height: 100%; background: transparent; }
.skmap-desc { font-size: 11px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.skmap-unlock-hint {
  font-size: 12px; color: var(--text-muted); text-align: center;
  padding: 10px 0 4px; border-top: 1px solid var(--border); margin-top: 6px;
}

/* ─── COURSE RECOMMENDATION ─── */
.course-rec-block {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 20px; padding: 24px 20px;
  margin-bottom: 20px; color: #fff;
  border: 1px solid rgba(216,242,108,0.35);
}
.course-rec-badge {
  display: inline-block; font-size: 9px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  background: var(--coin); color: var(--text);
  padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.course-rec-meter {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.course-rec-meter-bar {
  flex: 1; height: 10px; background: rgba(255,255,255,.2);
  border-radius: 5px; overflow: hidden; display: flex;
}
.course-rec-meter-fill {
  height: 100%; background: var(--coin);
  border-radius: 5px; transition: width 1s ease;
}
.course-rec-meter-gap {
  flex: 1;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0px, rgba(255,255,255,.12) 4px, transparent 4px, transparent 8px);
}
.course-rec-meter-pct { font-family: var(--font-display); font-size: 14px; font-weight: 400; color: var(--coin); white-space: nowrap; letter-spacing: 0.3px; }
.course-rec-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 8px; letter-spacing: 0.3px; }
.course-rec-text { font-size: 13px; color: rgba(255,255,255,.88); line-height: 1.6; margin-bottom: 16px; }
.course-rec-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.crf-item { font-size: 13px; color: rgba(255,255,255,.92); }
.course-rec-coins { text-align: center; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 8px; }

/* ─── AUTOWEBINAR ─── */
.aw-block {
  margin-bottom: 24px;
  background: linear-gradient(180deg, var(--primary) 0%, #2d1d32 100%);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(80,55,85,0.45);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.aw-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.aw-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e53935;
  color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.8px;
  padding: 6px 12px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(229,57,53,0.4);
  animation: awLivePulse 1.2s ease-in-out infinite;
}
.aw-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s infinite;
}
@keyframes awLivePulse {
  0%, 100% { box-shadow: 0 3px 10px rgba(229,57,53,0.4); }
  50%      { box-shadow: 0 4px 16px rgba(229,57,53,0.65); }
}
.aw-viewers {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.82);
  display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.aw-eye { font-size: 12px; }
.aw-player {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.aw-video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.aw-play-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  z-index: 5;
  cursor: pointer;
  transition: opacity 0.3s;
}
.aw-play-overlay.hidden { opacity: 0; pointer-events: none; }
.aw-play-btn {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #e8d8ff 100%);
  border: none;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
  animation: awPlayPulse 2.2s ease-in-out infinite;
}
.aw-play-ico { font-size: 30px; margin-left: 5px; line-height: 1; }
@keyframes awPlayPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 0 16px rgba(255,255,255,0); }
}
.aw-play-label {
  font-size: 12px; font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
.aw-cta-floating {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  z-index: 4;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.aw-cta-pop {
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(80,55,85,0.92), rgba(136,45,229,0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(216,242,108,0.6);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px; font-weight: 700;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: awCtaSlideIn 0.4s ease;
  transition: opacity 0.8s, transform 0.8s;
  cursor: pointer;
}
.aw-cta-pop.hl {
  background: linear-gradient(135deg, #e53935 0%, #7B1FA2 100%);
  border-color: rgba(255,255,255,0.5);
}
.aw-cta-pop.fade { opacity: 0; transform: translateY(-12px); }
.aw-cta-pop span { font-size: 16px; }
@keyframes awCtaSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aw-chat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 14px;
}
.aw-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.aw-chat-count {
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.aw-chat-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding: 10px 6px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.aw-chat-scroll::-webkit-scrollbar { width: 4px; }
.aw-chat-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.aw-msg {
  display: flex; align-items: flex-start; gap: 10px;
  animation: awMsgIn 0.35s ease;
}
.aw-msg.instant { animation: none; }
.aw-msg.host .aw-msg-author { color: var(--coin); }
.aw-msg-avatar {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase;
}
.aw-msg-body { flex: 1; min-width: 0; }
.aw-msg-author {
  font-size: 11px; font-weight: 800;
  color: var(--coin);
  line-height: 1.2;
  margin-bottom: 2px;
}
.aw-msg-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  word-wrap: break-word;
}
@keyframes awMsgIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.aw-chat-input-wrap {
  display: flex; gap: 6px;
  padding: 10px 6px 4px;
  border-top: 1px dashed rgba(255,255,255,0.12);
  margin-top: 6px;
}
.aw-chat-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 12px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.aw-chat-input:focus {
  border-color: var(--coin);
  background: rgba(255,255,255,0.12);
}
.aw-chat-input::placeholder { color: rgba(255,255,255,0.4); }
.aw-chat-send {
  width: 38px; height: 38px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  border: 1px solid rgba(255,185,0,0.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.aw-chat-send:hover { transform: translateY(-1px); }
.aw-chat-send:active { transform: scale(0.95); }
.aw-cta-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.aw-cta-panel-head {
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-left: 4px;
}
.aw-cta-panel-list { display: flex; flex-direction: column; gap: 8px; }
.aw-cta-empty {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  padding: 8px 6px;
  text-align: center;
}
.aw-cta-chip {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,185,0,0.3);
  border-radius: 12px;
  padding: 12px 12px 12px 14px;
  color: #fff;
  font-family: var(--font);
  transition: all 0.3s;
  text-align: left;
  animation: awChipIn 0.45s ease;
  position: relative;
  overflow: hidden;
}
.aw-cta-chip.instant { animation: none; }
.aw-cta-chip.hl {
  background: linear-gradient(135deg, rgba(229,57,53,0.2) 0%, rgba(123,31,162,0.35) 100%);
  border-color: #FFB900;
  animation: awChipIn 0.45s ease, awChipGlow 2.2s ease-in-out infinite 0.5s;
}
.aw-cta-chip.urgent {
  border-color: #ff6b3d;
  animation: awChipIn 0.45s ease, awChipUrgent 1s ease-in-out infinite;
}
.aw-cta-chip.expired {
  opacity: 0;
  transform: scale(0.94);
  filter: grayscale(0.7);
  transition: all 0.6s;
}
.aw-cta-chip.claimed {
  background: linear-gradient(135deg, rgba(30,150,50,0.2), rgba(50,200,80,0.18));
  border-color: rgba(50,200,80,0.5);
  cursor: pointer;
}
@keyframes awChipIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes awChipGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,185,0,0); }
  50%      { box-shadow: 0 0 0 5px rgba(255,185,0,0.18); }
}
@keyframes awChipUrgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,61,0); }
  50%      { box-shadow: 0 0 0 6px rgba(255,107,61,0.3); }
}
.aw-cta-ico { font-size: 26px; flex-shrink: 0; }
.aw-cta-txt {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding-right: 4px;
}
.aw-cta-txt b { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 2px; line-height: 1.25; }
.aw-cta-txt span { font-size: 10px; color: rgba(255,255,255,0.65); }
.aw-cta-claimed-lbl { color: #4caf50 !important; font-weight: 700; }
.aw-cta-arr { font-size: 16px; color: var(--coin); flex-shrink: 0; }
.aw-cta-chip-timer {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 11px; font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.aw-cta-chip.urgent .aw-cta-chip-timer {
  background: rgba(255,107,61,0.3);
  border-color: #ff6b3d;
  color: var(--coin);
}
.aw-cta-chip-timer-ico { font-size: 11px; }
.aw-cta-claim {
  background: var(--coin);
  color: var(--text);
  border: none;
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 11px; font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}
.aw-cta-claim:hover { transform: translateY(-1px); }
.aw-cta-claim:active { transform: scale(0.95); }
.aw-cta-chip.urgent .aw-cta-claim {
  animation: awClaimShake 0.6s ease-in-out infinite;
}
@keyframes awClaimShake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-2px); }
  75%      { transform: translateX(2px); }
}
.aw-watched-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,185,0,0.18) 100%);
  border: 1.5px solid rgba(255,185,0,0.5);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  animation: awWatchedIn 0.5s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
@keyframes awWatchedIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aw-watched-ico { font-size: 36px; flex-shrink: 0; }
.aw-watched-txt { flex: 1; min-width: 0; }
.aw-watched-txt strong { display: block; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.aw-watched-txt span { font-size: 11px; color: rgba(255,255,255,0.7); line-height: 1.4; }
.aw-actions {
  display: flex; flex-direction: column; gap: 8px;
}
#aw-actions .btn {
  max-width: 340px; width: 100%;
  margin: 0 auto;
  background: var(--coin);
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(216,242,108,0.5);
}
/* wb-hero on webinar page */
.wb-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  padding: 28px 20px 32px;
  text-align: center;
}
.wb-live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: #ffdada;
  background: rgba(229,57,53,0.22);
  border: 1px solid rgba(229,57,53,0.5);
  border-radius: 50px; padding: 6px 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.wb-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.25; margin-bottom: 10px; letter-spacing: 0.4px; }
.wb-title span { color: var(--coin); }
.wb-hero-sub { font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.55; }
.wb-speaker-img {
  width: 112px; height: 112px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--coin);
  box-shadow: 0 8px 24px rgba(25,41,31,0.25);
  margin: 0 auto 14px; display: block;
  background: var(--surface);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e53935;
  animation: blink 1s infinite;
}
/* coins card on webinar */
.wb-coins-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, var(--coin-light), #c9e08a);
  border-radius: 16px; padding: 16px 20px;
  border: 1px solid var(--coin);
}
.wb-coins-ico { font-size: 28px; flex-shrink: 0; }
.wb-coins-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.wb-coins-val { font-size: 12px; color: var(--text-secondary); }
.wb-coins-val b { color: var(--accent); font-weight: 900; }

/* ── CONTACT STEP ── */
.contact-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 100vh;
  padding: 40px 24px; text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f4ebff 100%);
}
.contact-icon { font-size: 52px; margin-bottom: 16px; }
.contact-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin-bottom: 10px; color: var(--text); letter-spacing: 0.4px; }
.contact-sub { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 28px; max-width: 300px; }
.contact-inp {
  width: 100%; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 14px 18px; color: var(--text); font-size: 17px;
  font-family: inherit; outline: none; margin-bottom: 14px;
  transition: border-color 0.2s; text-align: center; letter-spacing: 1px;
}
.contact-inp:focus { border-color: var(--accent); }
.contact-btn { width: 100%; margin-bottom: 12px; }
.btn-text-link {
  background: none; border: none; color: var(--text-muted);
  font-size: 13px; cursor: pointer; font-family: inherit;
  padding: 8px; text-decoration: underline;
}
