/* ============================================================
   ЮЛБ School · Богатый бухгалтер ИП и маркетплейсов
   Palette: teal/mint + gold on light bg
   ============================================================ */

:root {
  /* Canonical Figma palette */
  --color-bg: #F7F7F7;
  --color-bg-card: #FFFFFF;
  --color-primary: #064E3B;
  --color-primary-dark: #022C22;
  --color-primary-soft: #10B981;
  --color-text: #373737;
  --color-text-muted: #818181;
  --color-white: #FFFFFF;
  --color-gold-from: #F59E0B;
  --color-gold-to: #FBBF24;
  --color-gold-border: #B45309;
  --color-gold-soft: #FFF4DC;
  --color-card-border: #E0E0E0;
  --color-danger: #E05252;
  --radius-btn: 35px;
  --radius-card: 16px;
  --radius-badge: 20px;
  --radius-input: 10px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lift: 0 6px 24px rgba(0,0,0,0.10);
  --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-sub: 'Oswald', 'Manrope', sans-serif;
  --font-body: 'Manrope', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.5px; color: var(--color-text); }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }

button { font-family: var(--font-body); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font-body); font-size: 15px; color: var(--color-text); }

/* ============ SCREENS ============ */
.screen {
  position: fixed; inset: 0;
  background: var(--color-bg);
  display: none;
  flex-direction: column;
  z-index: 1;
}
.screen.active { display: flex; }

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px;
}
.screen-scroll.has-countdown { padding-top: 0; }

.content-pad { padding: 16px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
  text-align: center;
  line-height: 1.2;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #000;
  box-shadow: 0 4px 14px rgba(215,182,121,0.35);
}
.btn-gold:hover { box-shadow: 0 6px 20px rgba(215,182,121,0.45); }

.btn-teal {
  background: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 3px 10px rgba(34,176,137,0.25);
}
.btn-teal:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn.btn-locked {
  background: #d8d8d8;
  border-color: #c8c8c8;
  color: #757575;
  box-shadow: none;
  cursor: pointer;
}
.btn.btn-locked:hover { background: #d0d0d0; border-color: #bcbcbc; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary-soft); }

.btn-block { width: 100%; display: flex; }

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-btn);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:disabled, .btn.disabled {
  background: #D9D9D9 !important;
  border-color: #D9D9D9 !important;
  color: #888 !important;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-skip {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
  text-decoration: none;
}
.btn-skip:hover { background: var(--color-primary-soft); }

.back-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  color: var(--color-text);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.back-btn-light {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: var(--color-white);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-card-border);
  position: sticky; top: 0; z-index: 5;
}
.top-bar-plain { justify-content: space-between; }
.top-bar-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.5px;
}

.coin-pill {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1px solid var(--color-gold-border);
  color: #000;
  border-radius: var(--radius-badge);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============ THANKS SCREEN ============ */
.thanks-wrap {
  padding: 8px 20px 24px;
  text-align: center;
}
.brand-logo {
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--color-primary-dark);
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.brand-logo span {
  color: var(--color-primary);
  font-size: 18px;
  letter-spacing: 1px;
}
.brand-logo-img {
  display: block;
  height: 30px;
  width: auto;
  margin: 0 auto 14px;
}
.oksana-avatar {
  width: 130px !important;
  height: 130px !important;
  min-width: 130px;
  max-width: 130px;
  min-height: 130px;
  max-height: 130px;
  flex: 0 0 130px;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 16px;
  border: 5px solid var(--color-gold-from);
  box-shadow: 0 16px 40px rgba(0,98,96,0.35), 0 0 0 10px rgba(34,176,137,0.12);
  overflow: hidden !important;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.oksana-avatar img {
  width: 115% !important;
  height: 115% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 12%;
  display: block;
  border-radius: 50%;
  position: absolute;
  top: -7%;
  left: -7%;
}

/* ============ HERO BANNER (course + expert) ============ */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: 22px;
  padding: 22px 18px 18px;
  margin: 0 0 18px;
  overflow: hidden;
  min-height: 260px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  color: var(--color-white);
}
.hb-decor {
  position: absolute; inset: 0;
  background-image: url('../img/pattern.png');
  background-size: 220px;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hb-glow {
  position: absolute;
  width: 320px; height: 320px;
  bottom: -120px; left: -100px;
  background: radial-gradient(circle, rgba(241,193,101,0.45) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hb-content {
  position: relative;
  z-index: 2;
  max-width: 62%;
}
.hb-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 14px;
}
.hb-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 1px;
  margin: 0 0 4px;
  color: #FFFFFF;
}
.hb-sub {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--color-gold-to);
  margin-bottom: 16px;
}
.hb-expert {
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 8px 12px;
  display: inline-block;
  border-left: 3px solid var(--color-gold-from);
}
.hb-expert-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--color-gold-to);
  margin-bottom: 1px;
}
.hb-expert-name {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}
.hb-expert-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-top: 1px;
}
.hb-photo {
  position: absolute;
  right: -18px; bottom: 0;
  height: 100%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
  filter: drop-shadow(-4px 6px 12px rgba(0,0,0,0.25));
}
@media (max-width: 360px) {
  .hb-title { font-size: 36px; }
  .hb-content { max-width: 60%; }
}

/* Speaker badge inside webinar player */
.wr-speaker-badge {
  position: absolute;
  bottom: 12px; left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 4;
}
.wr-speaker-badge img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold-from);
}
.wsp-name {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1;
}
.wsp-role {
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.oksana-caption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}
.oksana-caption span { display: block; font-size: 11px; margin-top: 2px; }

.thanks-title {
  font-size: 34px;
  margin-bottom: 8px;
  line-height: 1.1;
}
.thanks-title span { color: var(--color-primary); }
.emoji-large { font-size: 30px; }
.thanks-sub {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}
.thanks-sub b { color: var(--color-text); font-weight: 600; }

.thanks-step {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-card-border);
  padding: 20px 18px;
  margin-bottom: 18px;
  text-align: left;
}
.step-badge {
  display: inline-block;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  margin-bottom: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.thanks-step h3 { font-size: 22px; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--color-text-muted); }
.step-desc b { color: var(--color-primary); font-weight: 600; }

.messengers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.msg-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border: 2px solid var(--color-card-border);
  border-radius: var(--radius-card);
  transition: all .15s;
}
.msg-btn:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.msg-btn.selected { border-color: var(--color-primary); background: var(--color-primary-soft); }
.msg-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.msg-vk { background: #0077FF; }
.msg-tg { background: #2AABEE; }
.msg-max { background: linear-gradient(135deg, #7B3FE4, #3D78F5); }
.msg-label { flex: 1; text-align: left; font-weight: 500; }
.msg-reward {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1px solid var(--color-gold-border);
  color: #000;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 600;
}

.thanks-connecting, .thanks-success {
  display: none;
  padding: 20px;
  text-align: center;
  animation: fadeIn .3s;
}
.thanks-connecting.show, .thanks-success.show { display: block; }
.dots { display: inline-flex; gap: 6px; margin-bottom: 10px; }
.dots span {
  width: 10px; height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-8px); opacity: 1; }
}
.success-check {
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  animation: pop .4s;
}
.success-check img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(215,182,121,0.4));
}
@keyframes pop {
  0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); }
}

/* ============ ONBOARDING ============ */
.onb-wrap { padding: 24px 20px; }
.onb-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 24px;
}
.onb-dot {
  width: 30px; height: 4px;
  border-radius: 2px;
  background: var(--color-card-border);
  transition: all .2s;
}
.onb-dot.active { background: var(--color-primary); width: 40px; }
.onb-dot.done { background: var(--color-primary-dark); }

.onb-body { text-align: center; }
.onb-question {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 20px;
  padding: 0 10px;
}
.onb-options { display: flex; flex-direction: column; gap: 10px; }
.onb-opt {
  padding: 14px 18px;
  background: var(--color-white);
  border: 2px solid var(--color-card-border);
  border-radius: var(--radius-card);
  text-align: left;
  font-size: 15px;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.onb-opt:hover { border-color: var(--color-primary); }
.onb-opt.selected { border-color: var(--color-primary); background: var(--color-primary-soft); }
.onb-opt-icon { font-size: 22px; }

.onb-reward {
  text-align: center;
  padding: 40px 20px;
}
.onb-reward-big {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 10px;
  animation: pop .5s;
}
.onb-reward p { color: var(--color-text-muted); }

/* ============ COUNTDOWN BAR ============ */
.countdown-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  position: sticky; top: 0; z-index: 5;
}
.cd-icon { font-size: 16px; }
.cd-time {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 1px;
}

/* ============ OVERVIEW HEADER ============ */
.ov-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-card-border);
}
.ov-header-left { display: flex; align-items: center; gap: 10px; }
.ov-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ov-greeting { font-size: 14px; color: var(--color-text-muted); }
.ov-greeting b { color: var(--color-text); font-weight: 600; }
.ov-profile-line {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  margin-top: 2px;
}

.coins-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #000;
  border-radius: var(--radius-badge);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(215,182,121,0.3);
}
.coin-icon { font-size: 16px; }

.coins-badge.flash { animation: coin-flash .6s; }
@keyframes coin-flash {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); filter: brightness(1.2); }
  100% { transform: scale(1); }
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.social-proof b { color: var(--color-primary); font-weight: 600; }

.live-dot {
  width: 8px; height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 20px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.section-title-icon .sti-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,98,96,0.18));
}
.section-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* ============ COIN INLINE ICON ============ */
.coin {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url('../img/coin.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: -0.18em;
  flex-shrink: 0;
  font-style: normal;
}
.coin-lg { width: 1.3em; height: 1.3em; vertical-align: -0.25em; }
.coin-xl { width: 1.6em; height: 1.6em; vertical-align: -0.3em; }

/* ============ PROGRAM CARDS ============ */
.program-cards { display: flex; flex-direction: column; gap: 10px; }
.program-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}
.pc-day {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(180deg, #e36b66 0%, #c84d48 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  box-shadow:
    0 6px 14px rgba(200,77,72,0.35),
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -2px 0 rgba(0,0,0,0.10);
  border: 1px solid rgba(200,77,72,0.85);
}
.pc-day small {
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.92;
}
.pc-day b {
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}
/* Active day — ярче и с glow */
.program-day--active .pc-day {
  background: linear-gradient(180deg, #ed7773 0%, #d4534e 100%);
  box-shadow:
    0 8px 20px rgba(212,83,78,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 0 3px rgba(237,119,115,0.18);
}
.pc-info { flex: 1; min-width: 0; }
.pc-title { font-weight: 600; font-size: 14px; color: var(--color-text); margin-bottom: 2px; }
.pc-date { font-size: 12px; color: var(--color-text-muted); }
.pc-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  white-space: nowrap;
}
.pc-status.soon { background: var(--color-primary-soft); color: var(--color-primary-dark); }
.pc-status.live { background: #ffe0e0; color: #c23; }
.pc-status.done { background: #e8e8e8; color: #666; }
.pc-status.locked { background: #f0f0f0; color: #aaa; }
.pc-chevron {
  color: var(--color-text-muted);
  transition: transform .2s;
  font-size: 14px;
}
.program-card.open .pc-chevron { transform: rotate(180deg); }

.pc-body {
  display: none;
  padding: 0 14px 14px;
  font-size: 13px;
  color: var(--color-text);
  border-top: 1px solid var(--color-card-border);
  padding-top: 12px;
}
.program-card.open .pc-body { display: block; }
.pc-body ul { padding-left: 18px; margin-top: 8px; }
.pc-body li { margin-bottom: 4px; color: var(--color-text-muted); }

/* ============ WARMUP CARDS ============ */
.warmup-cards { display: flex; flex-direction: column; gap: 10px; }
.wu-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .15s;
}
.wu-card:not(.locked):hover { transform: translateY(-1px); }
.wu-card.locked { opacity: 0.55; cursor: not-allowed; }
.wu-card.done { background: var(--color-primary-soft); }
.wu-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.wu-card.locked .wu-icon { background: #ccc; }
.wu-card.done .wu-icon { background: var(--color-primary-dark); }
.wu-info { flex: 1; min-width: 0; }
.wu-title { font-weight: 600; font-size: 14px; }
.wu-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }
.wu-reward {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.wu-card.done .wu-reward { color: #fff; }
.wu-card.done .wu-sub { color: rgba(255,255,255,0.85); }
.wu-card.done .wu-title { color: #fff; }
.wu-card.done .wu-reward::after { content: ' ✓'; }

/* Spacing between balance card and slider sections on overview */
.balance-card + #ov-reviews-mount { display: block; margin-top: 18px; }
.ov-slider-section { margin-top: 18px; }

/* Channels + ask-question section */
.ov-channels-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 4px 0 10px;
  line-height: 1.45;
}
.ov-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.ov-ch-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-card-border);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
}
.ov-ch-card:hover {
  transform: translateY(-1px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0,98,96,0.10);
}
.ov-ch-ico {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ov-ch-tg .ov-ch-ico { background: linear-gradient(135deg, #2aabee, #229ed9); }
.ov-ch-max .ov-ch-ico { background: linear-gradient(135deg, #1a1a1a, #0a0a0a); }
.ov-ch-text { flex: 1; min-width: 0; }
.ov-ch-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  color: var(--color-text);
}
.ov-ch-tag {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.ov-ch-arr {
  color: var(--color-primary);
  font-size: 16px;
  flex-shrink: 0;
}
.ov-ask-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov-ask-btn {
  text-decoration: none;
  text-align: center;
}

/* ============ BALANCE CARD ============ */
.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(215,182,121,0.25);
}
.bal-label { font-size: 12px; color: #fff; font-weight: 600; letter-spacing: 0.5px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.bal-amount { font-family: var(--font-heading); font-size: 26px; color: #fff; margin-top: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.22); }
.bal-amount span { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.9); }
.balance-card .btn-small { background: var(--color-white); border-color: #fff; color: var(--color-primary-dark); }

/* ============ STREAK BANNER ============ */
.streak-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  margin-top: 14px;
  box-shadow: var(--shadow-card);
}
.streak-fire { font-size: 28px; }
.streak-title { font-size: 14px; font-weight: 500; }
.streak-title b { color: var(--color-primary); font-weight: 700; }
.streak-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* ============ WEBINARS LIST ============ */
.webinars-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.web-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.web-card.live { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(34,176,137,0.15), var(--shadow-card); }
.web-card.locked { opacity: 0.55; }
.web-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.web-num {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 3px 10px;
  border-radius: var(--radius-badge);
}
.web-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 6px;
}
.web-date { font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; }
.web-desc { font-size: 13px; color: var(--color-text); margin-bottom: 12px; }

/* ============ WEBINAR LANDING (упрощённая лендинговая вкладка эфиров) ============ */
.wl-plate {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 10px 0 16px;
  box-shadow: var(--shadow-card);
}
.wl-plate-urgent {
  background: linear-gradient(135deg, #E05252, #C33232);
  color: #fff;
  animation: wlPulse 2s ease-in-out infinite;
}
.wl-plate-rec {
  background: var(--color-primary-soft);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  cursor: pointer;
}
.wl-plate-rec:hover { transform: translateY(-1px); transition: transform .15s; }
.wl-plate-ico { font-size: 32px; flex-shrink: 0; }
.wl-plate-body { flex: 1; }
.wl-plate-title { font-family: var(--font-heading); font-size: 18px; line-height: 1.1; margin-bottom: 4px; letter-spacing: 0.5px; }
.wl-plate-text { font-size: 13px; opacity: 0.92; line-height: 1.4; }
.wl-plate-arr { font-size: 24px; flex-shrink: 0; }
@keyframes wlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,82,82,0.5), var(--shadow-card); }
  50% { box-shadow: 0 0 0 8px rgba(224,82,82,0), var(--shadow-card); }
}

.wl-hero {
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  border-radius: var(--radius-card);
  padding: 22px 18px;
  margin: 8px 0 22px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.wl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/pattern.png') center/200px repeat;
  opacity: 0.08;
  pointer-events: none;
}
.wl-hero > * { position: relative; }
.wl-hero-pill {
  display: inline-block;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 12px;
}
.wl-hero-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.6px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
  margin: 0 0 8px;
}
.wl-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.wl-hero-date {
  display: inline-block;
  background: rgba(255,255,255,0.92);
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 16px;
}
.wl-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 18px;
}
.wl-cd-seg {
  background: var(--color-white);
  border-radius: 12px;
  padding: 10px 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.wl-cd-seg b {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  color: var(--color-primary-dark);
}
.wl-cd-seg small {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.wl-hero-tag {
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-top: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.wl-section {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}
.wl-section-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.wl-section-h {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: 0.4px;
}
.wl-section-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-top: 12px;
}

.wl-bullets { display: flex; flex-direction: column; gap: 10px; }
.wl-bullet {
  display: flex; gap: 12px;
  background: var(--color-primary);
  border-radius: 12px;
  padding: 12px 14px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.wl-bullet-num {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-primary-dark);
  background: var(--color-white);
  border-radius: 10px;
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wl-bullet-text {
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  font-weight: 500;
}

.wl-why-section { background: linear-gradient(180deg, #fff, var(--color-primary-soft)); }
.wl-why-grid { display: flex; flex-direction: column; gap: 10px; }
.wl-why-card {
  display: flex; gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 14px;
  align-items: flex-start;
}
.wl-why-ico { font-size: 28px; flex-shrink: 0; }
.wl-why-text { font-size: 13px; line-height: 1.5; color: var(--color-text); }

.wl-rewards-section {
  background: linear-gradient(180deg, var(--color-gold-soft), #fff);
}
.wl-rewards { display: flex; flex-direction: column; gap: 10px; }
.wl-reward {
  display: flex; gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 14px;
  align-items: flex-start;
}
.wl-reward--cert { border-color: var(--color-gold-border); background: var(--color-gold-soft); }
.wl-reward--coins { border-color: var(--color-gold-border); }
.wl-reward--hw { border-color: var(--color-primary); background: var(--color-primary-soft); }
.wl-reward-ico { font-size: 30px; flex-shrink: 0; }
.wl-reward-body { flex: 1; }
.wl-reward-title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.wl-reward-hl {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  font-family: var(--font-heading);
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 13px;
  margin-left: 6px;
}
.wl-reward-text { font-size: 12px; line-height: 1.5; color: var(--color-text-muted); }

.wl-final-cta {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-card);
  padding: 26px 20px;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-white);
  box-shadow: var(--shadow-lift);
}
.wl-final-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--color-white);
}
.wl-final-sub {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* ============ REPLAY (повторы пропущенного эфира) ============ */
.rp-hero {
  background: linear-gradient(135deg, #E05252, #C33232);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  margin: 8px 0 16px;
  box-shadow: var(--shadow-lift);
}
.rp-hero-emoji { font-size: 48px; margin-bottom: 6px; }
.rp-hero-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  color: var(--color-white);
}
.rp-hero-sub {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
}
.rp-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.rp-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-card);
  border: 2px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
}
.rp-slot:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.rp-slot--now {
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  border-color: var(--color-gold-border);
}
.rp-slot-body { flex: 1; }
.rp-slot-label {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--color-text);
}
.rp-slot-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.rp-slot--now .rp-slot-sub { color: var(--color-primary-dark); }
.rp-slot-arr {
  font-size: 22px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.rp-slot:hover .rp-slot-arr { color: var(--color-primary); }
.rp-info {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.rp-info-title {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.6px;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}
.rp-info-list {
  list-style: none;
  padding: 0; margin: 0;
}
.rp-info-list li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-text);
}
.rp-info-list li::before {
  content: '•';
  position: absolute;
  left: 4px; top: 4px;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
}

.rp-scheduled {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  margin: 8px 0 16px;
  box-shadow: var(--shadow-lift);
}
.rp-sch-pill {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 14px;
}
.rp-sch-title {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--color-white);
}
.rp-sch-sub {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 18px;
}
.rp-sch-time {
  font-family: var(--font-heading);
  font-size: 38px;
  letter-spacing: 0.5px;
  color: var(--color-gold-from);
  margin-bottom: 12px;
}
.rp-sch-countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}
.rp-sch-cd-seg {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-radius: 10px;
  padding: 8px 4px;
}
.rp-sch-cd-seg b {
  font-family: var(--font-heading);
  font-size: 22px;
  display: block;
  line-height: 1;
}
.rp-sch-cd-seg small {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ============ MISS ALERT (компактный баннер на главной) ============ */
.miss-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #E05252, #C33232);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 8px 0 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  animation: missPulse 2.4s ease-in-out infinite;
}
.miss-alert--scheduled {
  background: linear-gradient(90deg, #C33232, #E05252);
  animation: missPulse 2.4s ease-in-out infinite;
}
.miss-alert-ico { font-size: 28px; flex-shrink: 0; }
.miss-alert-body { flex: 1; min-width: 0; }
.miss-alert-title {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}
.miss-alert-text { font-size: 12px; opacity: 0.92; line-height: 1.35; }
.miss-alert-arr { font-size: 22px; flex-shrink: 0; }
@keyframes missPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(224,82,82,0.3); }
  50% { box-shadow: 0 4px 24px rgba(224,82,82,0.55); }
}

/* Replay dot in webinar room top-bar */
.live-dot.is-replay { background: #888 !important; animation: none !important; }

/* ============ REPLAY COUNTDOWN PIN (фикс. красная плашка сверху до старта повтора) ============ */
.replay-countdown-pin {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, #C33232 0%, #E05252 50%, #C33232 100%);
  color: var(--color-white);
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  z-index: 1600;
  box-shadow: 0 2px 12px rgba(195,50,50,0.4);
  animation: rcpPulse 2.4s ease-in-out infinite;
}
.replay-countdown-pin.visible { display: flex; }
.rcp-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--color-gold-from);
  box-shadow: 0 0 0 3px rgba(241,193,101,0.4);
  flex-shrink: 0;
}
.rcp-text { font-weight: 600; letter-spacing: 0.2px; }
.rcp-text b {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--color-gold-from);
  margin-left: 2px;
}
.rcp-arr { font-size: 16px; opacity: 0.85; }
@keyframes rcpPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(195,50,50,0.35); }
  50% { box-shadow: 0 4px 24px rgba(195,50,50,0.6); }
}

/* When pin is visible, push screens down so they don't get hidden */
body:has(.replay-countdown-pin.visible) .screen { padding-top: 38px; }
/* Hide regular countdown bar when replay pin is active — no duplicate timers */
body:has(.replay-countdown-pin.visible) #countdown-bar { display: none; }

/* ============ ACTIVE ROOM FAB (плавающая плашка «идёт эфир / повтор») ============ */
.active-room-fab {
  position: fixed;
  left: 50%;
  bottom: 88px; /* чуть выше нижнего меню (нав ~70px) */
  transform: translateX(-50%) translateY(20px);
  display: none;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  transition: opacity .25s, transform .25s;
}
.active-room-fab.visible {
  display: inline-flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.arf-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff4848;
  box-shadow: 0 0 0 4px rgba(255,72,72,0.25);
  animation: arfPulse 1.6s ease-in-out infinite;
}
.arf-dot.is-replay {
  background: var(--color-gold-from);
  box-shadow: 0 0 0 4px rgba(241,193,101,0.3);
  animation: none;
}
@keyframes arfPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,72,72,0.55); }
  50% { box-shadow: 0 0 0 8px rgba(255,72,72,0); }
}
.arf-text { text-align: left; line-height: 1.1; }
.arf-title {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-gold-from);
  margin-bottom: 1px;
}
.arf-sub { font-size: 12px; opacity: 0.92; }
.arf-arr { font-size: 18px; margin-left: 4px; }
@media (max-width: 380px) {
  .active-room-fab { padding: 9px 14px 9px 12px; }
  .arf-sub { font-size: 11px; }
}

/* Stub-экран на вкладке Эфиры пока идёт активная комната */
.ar-stub {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  text-align: center;
  margin: 8px 0 16px;
  box-shadow: var(--shadow-lift);
}
.ar-stub-pill {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 12px;
}
.ar-stub-title {
  font-family: var(--font-heading);
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--color-white);
}
.ar-stub-sub {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  opacity: 0.92;
}

/* ============ POST-WEBINAR CTA (промежуточная страница 1ч после эфира) ============ */
.pw-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 26px 20px 22px;
  text-align: center;
  margin: 8px 0 18px;
  box-shadow: var(--shadow-lift);
}
.pw-hero-pill {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 12px;
}
.pw-hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  color: var(--color-white);
}
.pw-hero-sub {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  margin: 0;
}

.pw-cta-card {
  background: linear-gradient(180deg, var(--color-gold-soft), #fff);
  border: 2px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.pw-cta-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.pw-cta-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.4px;
  color: var(--color-text);
  margin: 0 0 12px;
}
.pw-cta-text {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 14px;
}
.pw-cta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  text-align: left;
  display: inline-block;
}
.pw-cta-list li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}
.pw-cta-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pw-recap {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.pw-recap-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.pw-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pw-recap-card {
  display: flex;
  gap: 10px;
  background: var(--color-primary-soft);
  border-radius: 12px;
  padding: 12px;
  align-items: center;
}
.pw-recap-ico { font-size: 26px; flex-shrink: 0; }
.pw-recap-card b {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 2px;
}
.pw-recap-card span {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.pw-next {
  background: var(--color-bg);
  border: 1px dashed var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}
.pw-next-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.pw-next-text b {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
}

/* ============ WEBINAR ROOM ============ */
.webinar-room {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #1a1a1a;
  color: var(--color-white);
}
.wr-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #000;
}
.wr-live {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 1.5px;
}
.wr-timer {
  font-family: var(--font-heading);
  font-size: 18px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3px 12px;
  border-radius: var(--radius-badge);
  letter-spacing: 1px;
}

.wr-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}
.wr-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wr-player-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  gap: 10px;
  background: radial-gradient(circle at center, #1a3a33 0%, #000 100%);
  transition: opacity 0.25s;
}
.wr-play-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(34,176,137,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  padding-left: 4px;
}
.wr-player-label {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.wr-stars-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: var(--color-gold-from);
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(241,193,101,0.4);
}
.wr-stars-counter .divider { opacity: 0.5; }

/* Grab star floating button */
.grab-star-wrap {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px;
  background: #0c1614;
  align-items: center;
  animation: slideUp .3s;
}
.grab-star-wrap.show { display: flex; }
.grab-star-info { text-align: center; max-width: 380px; }
.grab-star-info-title {
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--color-gold-from);
  margin-bottom: 4px;
}
.grab-star-info-text {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
}
.grab-star-btn {
  position: relative;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 2px solid var(--color-gold-border);
  color: #000;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(241,193,101,0.4);
  animation: pulse-gold 1.4s infinite;
  overflow: hidden;
}
@keyframes pulse-gold {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(241,193,101,0.4); }
  50% { transform: scale(1.05); box-shadow: 0 4px 30px rgba(241,193,101,0.7); }
}
.grab-star-timer {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--color-primary-dark);
  width: 100%;
  transform-origin: left;
  animation: grabTimer 15s linear forwards;
}
@keyframes grabTimer {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* Gifts — vertical list */
.wr-gifts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 12px;
  background: #0c1614;
}
.gift-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a2a28;
  border: 1px solid #2a3a38;
  border-radius: var(--radius-card);
  padding: 7px 10px;
  text-align: left;
  transition: all .3s;
  overflow: hidden;
}
.gift-slot.unlocked {
  background: linear-gradient(135deg, rgba(241,193,101,0.2), rgba(252,221,148,0.08));
  border-color: var(--color-gold-border);
  animation: pop .5s;
}
.gift-icon {
  font-size: 24px;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.5;
  width: 32px;
  text-align: center;
}
.gift-slot.unlocked .gift-icon { filter: none; opacity: 1; }
.gift-body { flex: 1; min-width: 0; }
.gift-name {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}
.gift-slot.unlocked .gift-name { color: var(--color-gold-from); }
.gift-countdown {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.2px;
}
.gift-slot.unlocked .gift-countdown {
  color: var(--color-gold-from);
  font-weight: 700;
}
.gift-btn {
  flex-shrink: 0;
  padding: 6px 13px;
  font-size: 11px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  background: #2a3a38;
  color: #777;
  cursor: not-allowed;
  border: none;
  white-space: nowrap;
}
.gift-slot.unlocked .gift-btn {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  color: #000;
  cursor: pointer;
  border: 1px solid var(--color-gold-border);
}
.gift-slot .gift-btn.claimed {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary-dark);
  opacity: 0.85;
  cursor: default;
}

/* Chat */
.wr-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #111;
  min-height: 0;
}
.wr-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-msg {
  animation: fadeInUp .3s;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  word-wrap: break-word;
}
.chat-msg .cm-name {
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 6px;
}
.chat-msg.is-me .cm-name { color: var(--color-gold-from); }
.chat-msg.system {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 12px;
  text-align: center;
}

.wr-chat-input {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #0a0a0a;
  border-top: 1px solid #222;
}
.wr-chat-input input {
  flex: 1;
  background: #222;
  border: 1px solid #333;
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  color: var(--color-white);
  font-size: 13px;
}
.wr-chat-input input:focus { outline: none; border-color: var(--color-primary); }
.wr-chat-input input::placeholder { color: #666; }
.wr-chat-input button {
  width: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 18px;
  flex-shrink: 0;
}

/* ============ HOMEWORKS ============ */
.homeworks-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.hw-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  cursor: pointer;
  transition: transform .15s;
}
.hw-card:hover { transform: translateY(-1px); }
.hw-card.locked { opacity: 0.75; cursor: pointer; }
.hw-theory-hint { font-size: 11px; color: var(--color-primary); font-weight: 600; margin-top: 6px; padding-left: 50px; }
.hw-card.done { background: var(--color-primary-soft); border-color: var(--color-primary); }
.hw-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.hw-num {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px;
  flex-shrink: 0;
}
.hw-card.locked .hw-num { background: #ccc; }
.hw-card.done .hw-num { background: var(--color-primary-dark); }
.hw-title { flex: 1; font-family: var(--font-heading); font-size: 19px; line-height: 1.1; }
.hw-status { font-size: 12px; color: var(--color-text-muted); }
.hw-status.ready { color: var(--color-primary); font-weight: 600; }
.hw-status.done { color: var(--color-primary-dark); font-weight: 600; }
.hw-desc { font-size: 13px; color: var(--color-text-muted); padding-left: 50px; }

.debug-hw {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* ============ HOMEWORK FORM ============ */
.hwf-accordion {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  overflow: hidden;
}
.hwf-acc-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 14px;
}
.hwf-acc-head span { font-size: 12px; }
.hwf-acc-body {
  display: none;
  padding: 0 14px 14px;
  font-size: 13px;
  line-height: 1.55;
}
.hwf-accordion.open .hwf-acc-body { display: block; }
.hwf-acc-body p { margin-bottom: 8px; }
.hwf-acc-body b { color: var(--color-primary-dark); }
.hwf-acc-body .hwf-th-h {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 16px 0 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(34,176,137,0.30);
}
.hwf-acc-body .hwf-th-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.hwf-acc-body .hwf-th-list {
  margin: 0 0 10px 18px;
  padding: 0;
}
.hwf-acc-body .hwf-th-list li {
  margin-bottom: 5px;
  list-style: disc;
  color: var(--color-text);
}
.hwf-acc-body .hwf-th-callout {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.65);
  border-left: 3px solid var(--color-gold-from);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text);
}

/* ============ WORKBOOK HERO BANNER (screen-homeworks) ============ */
.wb-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: 20px;
  padding: 22px 18px 20px;
  margin: 0 0 18px;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}
.wb-hero-decor {
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(241,193,101,0.32) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.wb-hero-glow {
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.wb-hero-icon {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 34px;
  filter: drop-shadow(0 4px 10px rgba(241,193,101,0.45));
  margin-bottom: 8px;
}
.wb-hero-eyebrow {
  position: relative;
  z-index: 1;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--color-gold-to);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.wb-hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.5px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: #fff;
  text-transform: uppercase;
}
.wb-hero-sub {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  line-height: 1.55;
  color: #fff;
  margin: 0 0 16px;
}
.wb-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.22);
}
.wb-hero-stat {
  flex: 1;
  text-align: center;
}
.wb-hero-stat-v {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wb-hero-stat-v .coin { width: 0.85em; height: 0.85em; vertical-align: middle; }
.wb-hero-stat-l {
  font-family: var(--font-sub);
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
  font-weight: 600;
}

.hwf-block {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.hwf-block-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
}

.hwf-field { margin-bottom: 12px; }
.hwf-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}
.hwf-input, .hwf-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-input);
  background: var(--color-white);
  font-size: 14px;
  transition: border-color .15s;
}
.hwf-input:focus, .hwf-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(34,176,137,0.12);
}
.hwf-textarea { min-height: 80px; resize: vertical; font-family: var(--font-body); }

.hwf-radio-group { display: flex; gap: 6px; flex-wrap: wrap; }
.hwf-radio {
  padding: 8px 14px;
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.hwf-radio.selected { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.hwf-empty-flash, .hwf-empty-flash.hwf-radio-group .hwf-radio { border-color: var(--color-danger) !important; box-shadow: 0 0 0 3px rgba(224,82,82,0.18); }
.hwf-radio.correct { background: #2A9D5C; color: #fff; border-color: #2A9D5C; cursor: default; pointer-events: none; }
.hwf-radio.wrong { background: #fde8e8; color: var(--color-danger); border-color: var(--color-danger); animation: quizShake .35s ease; }
@keyframes quizShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.hwf-submit {
  width: 100%;
  margin-top: 8px;
}

/* ============ PROFILE ============ */
.profile-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-family: var(--font-heading); font-size: 22px; line-height: 1; }
.profile-level { font-size: 12px; color: var(--color-primary); font-weight: 500; margin-top: 3px; }
.profile-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-badge);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 5px;
}

.pf-section {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 16px;
}
.pf-section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Certificates */
.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-card-border);
  background: #fafafa;
}
.cert-item.unlocked {
  border-color: var(--color-gold-border);
  background: linear-gradient(135deg, rgba(241,193,101,0.08), rgba(252,221,148,0.05));
}
.cert-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cert-item.unlocked .cert-icon {
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
}
.cert-info { flex: 1; min-width: 0; }
.cert-name { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.cert-prog { font-size: 11px; color: var(--color-text-muted); }
.cert-item.unlocked .cert-prog { color: var(--color-primary-dark); font-weight: 600; }
.cert-progbar {
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.cert-progbar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width .3s;
}

/* Sliders */
.slider-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  -webkit-overflow-scrolling: touch;
}
.slider-scroll::-webkit-scrollbar { display: none; }
.slider-wrap {
  position: relative;
}
.slider-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.95);
  color: var(--color-primary-dark);
  font-size: 22px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,98,96,0.20);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.slider-arr:hover { background: var(--color-primary); color: #fff; }
.slider-arr:active { transform: translateY(-50%) scale(0.92); }
.slider-arr[style*="opacity: 0"] { pointer-events: none; }
.slider-arr-left { left: -2px; }
.slider-arr-right { right: -2px; }

/* Empty state for "Мои бонусы" */
.mb-empty-cta {
  background: linear-gradient(135deg, #FFFEFA 0%, #FFF4DC 100%);
  border: 1.5px solid var(--color-gold-border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(241,193,101,0.18);
  transition: transform 0.15s, box-shadow 0.2s;
}
.mb-empty-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(241,193,101,0.30);
}
.mb-empty-ico { font-size: 36px; margin-bottom: 6px; }
.mb-empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.4px;
  color: #5a3f0c;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.mb-empty-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b5026;
}
.slide-card {
  flex-shrink: 0;
  width: 170px;
  aspect-ratio: 3/4;
  background: linear-gradient(180deg, #e8e8e8 0%, #f5f5f5 100%);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  gap: 6px;
}
.slide-card .si { font-size: 36px; opacity: 0.5; }
.slide-card--img { padding: 0; background: transparent; width: 349px; aspect-ratio: auto; }

/* Cases slider — full-width slides preserving original 1:1 aspect of cards */
.cases-scroll {
  gap: 12px;
  scroll-snap-type: x mandatory;
}
.case-slide {
  flex-shrink: 0;
  width: 349px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  background: #0d3a36;
}
.case-slide img {
  display: block;
  width: 100%;
  height: auto;
}

/* Referral */
.ref-block {
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 10px;
}
.ref-link {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-input);
  padding: 8px 10px;
  font-size: 12px;
  margin: 10px 0;
  gap: 6px;
  overflow: hidden;
}
.ref-link input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--color-text);
  min-width: 0;
}
.ref-btns { display: flex; gap: 8px; }
.ref-btns .btn-small { flex: 1; }
.ref-stats {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}
.ref-stats b { color: var(--color-primary-dark); font-family: var(--font-heading); font-size: 18px; }

/* Shop */
.shop-list { display: flex; flex-direction: column; gap: 10px; }
.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
}
.shop-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.shop-info { flex: 1; min-width: 0; }
.shop-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.shop-desc { font-size: 11px; color: var(--color-text-muted); line-height: 1.3; }
.shop-prices { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.shop-prices .btn-small { padding: 4px 10px; font-size: 11px; min-height: 28px; }
.shop-prices .price-rub {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
}
.shop-prices .price-coin {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1px solid var(--color-gold-border);
  color: #000;
}

/* Stream switcher */
.stream-switch { display: flex; gap: 8px; }
.stream-opt {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-card);
  background: var(--color-white);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.stream-opt.selected { border-color: var(--color-primary); background: var(--color-primary-soft); color: var(--color-primary-dark); }
.stream-opt small { display: block; font-size: 11px; color: var(--color-text-muted); font-weight: 400; margin-top: 2px; }
.stream-opt.selected small { color: var(--color-primary-dark); }

/* Debug panel */
.debug-panel {
  background: #2b2b2b;
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 16px;
  color: var(--color-white);
}
.debug-panel h3 { color: var(--color-white); margin-bottom: 10px; font-size: 16px; }
.debug-panel .btn-small { background: #444; color: white; border: 1px solid #555; }
.debug-panel .btn-small:hover { background: #555; }
.debug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* ============ CERTIFICATE CANVAS ============ */
#cert-canvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  background: var(--color-white);
}

/* ============ SALES ============ */
.sales-wrap { text-align: center; }
.sales-hero {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}
.sales-sub { color: var(--color-text-muted); font-size: 14px; margin-bottom: 20px; }
.sales-card {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lift);
}
.sales-card-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: 8px; }
.sales-price-old { text-decoration: line-through; opacity: 0.7; font-size: 16px; }
.sales-price-new { font-family: var(--font-heading); font-size: 40px; margin: 4px 0; }
.sales-price-new span { font-size: 18px; }
.sales-discount {
  display: inline-block;
  background: var(--color-gold-from);
  color: #000;
  padding: 4px 14px;
  border-radius: var(--radius-badge);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.sales-timer {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 16px 0;
}
.timer-seg {
  background: var(--color-white);
  color: var(--color-primary-dark);
  padding: 8px 10px;
  border-radius: 10px;
  min-width: 52px;
  text-align: center;
}
.timer-seg b { font-family: var(--font-heading); font-size: 22px; display: block; }
.timer-seg small { font-size: 10px; color: var(--color-text-muted); }

.sales-bullets { list-style: none; padding: 0; text-align: left; margin: 16px 0; }
.sales-bullets li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 13px;
  color: var(--color-text);
}
.sales-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sales-discount-note {
  background: var(--color-gold-soft);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-card);
  padding: 12px;
  font-size: 13px;
  margin-bottom: 14px;
  color: #6b5a2a;
}
.sales-discount-note b { color: #000; }

/* ============ SALES — новый лендинг (sl-*) ============ */
.sl-wrap { padding-bottom: 16px; }

.sl-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 26px 20px 24px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.sl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/pattern.png') center/220px repeat;
  opacity: 0.06;
  pointer-events: none;
}
.sl-hero > * { position: relative; }
.sl-hero-pill {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  margin-bottom: 14px;
}
.sl-hero-title {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--color-white);
  letter-spacing: 0.5px;
}
.sl-hero-accent { color: var(--color-gold-from); }
.sl-hero-sub {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 18px;
}
.sl-hero-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-gold-from);
  margin-bottom: 8px;
}
.sl-hero-author {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.sl-timer {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 6px;
}
.sl-timer-label { font-size: 12px; margin-bottom: 8px; opacity: 0.95; }
.sl-timer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sl-timer-seg {
  background: var(--color-white);
  color: var(--color-primary-dark);
  border-radius: 10px;
  padding: 8px 4px;
}
.sl-timer-seg b {
  font-family: var(--font-heading);
  font-size: 22px;
  display: block;
  line-height: 1;
}
.sl-timer-seg small {
  font-size: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.sl-section {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.sl-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.sl-h {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--color-text);
  letter-spacing: 0.4px;
}

.sl-stats { background: linear-gradient(135deg, var(--color-gold-soft), #fff); }
.sl-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sl-stat { text-align: center; padding: 8px 4px; }
.sl-stat-num {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.sl-stat-label { font-size: 11px; color: var(--color-text-muted); line-height: 1.3; }

.sl-audience { display: flex; flex-direction: column; gap: 8px; }
.sl-audience-card {
  display: flex; gap: 12px;
  background: var(--color-primary-soft);
  border-radius: 12px;
  padding: 12px 14px;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}
.sl-aud-ico { font-size: 26px; flex-shrink: 0; }

.sl-track {
  background: var(--color-bg);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 12px;
  border-left: 4px solid var(--color-primary);
}
.sl-track-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  margin-bottom: 6px;
}
.sl-track-pill--green { background: var(--color-primary); color: var(--color-white); }
.sl-track-pill--gold { background: var(--color-gold-from); color: var(--color-text); }
.sl-track-pill--teal { background: var(--color-primary-dark); color: var(--color-white); }
.sl-track-sub { font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.sl-track-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sl-track-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.4;
}
.sl-track-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 5px;
  color: var(--color-primary);
  font-weight: 700;
}

.sl-included { background: linear-gradient(180deg, #fff, var(--color-primary-soft)); }
.sl-incl-grid { display: flex; flex-direction: column; gap: 10px; }
.sl-incl-card {
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
}
.sl-incl-ico { font-size: 30px; display: block; margin-bottom: 6px; }
.sl-incl-card b { display: block; font-size: 14px; color: var(--color-text); margin-bottom: 4px; }
.sl-incl-card span { display: block; font-size: 12px; color: var(--color-text-muted); line-height: 1.45; }

.sl-tariff {
  background: var(--color-white);
  border: 2px solid var(--color-card-border);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
  position: relative;
}
.sl-tariff-name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-text);
  letter-spacing: 0.4px;
}
.sl-tariff-tag {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.sl-tariff-old {
  text-decoration: line-through;
  font-size: 14px;
  color: var(--color-text-muted);
}
.sl-tariff-new {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 10px;
}
.sl-tariff-save {
  display: inline-block;
  background: var(--color-gold-from);
  color: var(--color-text);
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sl-tariff-list { list-style: none; padding: 0; margin: 0 0 14px; }
.sl-tariff-list li {
  position: relative;
  padding: 4px 0 4px 22px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}
.sl-tariff-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 4px;
  color: var(--color-primary);
  font-weight: 700;
}
.sl-tariff--featured {
  border-color: var(--color-gold-border);
  background: linear-gradient(180deg, var(--color-gold-soft), #fff);
}
.sl-tariff-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: var(--radius-badge);
  white-space: nowrap;
  border: 1px solid var(--color-gold-border);
}
.sl-coins-note {
  background: var(--color-gold-soft);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: #6b5a2a;
  margin-top: 8px;
}
.sl-coins-note b { color: #000; }

.sl-installment {
  background: linear-gradient(135deg, #f3eef9, #fff);
  text-align: center;
}
.sl-install-ico { font-size: 40px; margin-bottom: 8px; }
.sl-install-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-text);
}

.sl-bonuses { background: linear-gradient(180deg, var(--color-gold-soft), #fff); }
.sl-bonus-list { display: flex; flex-direction: column; gap: 10px; }
.sl-bonus {
  display: flex; gap: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gold-border);
  border-radius: 12px;
  padding: 12px 14px;
  align-items: center;
  font-size: 13px;
  line-height: 1.45;
}
.sl-bonus-ico { font-size: 24px; flex-shrink: 0; }

.sl-final {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-lift);
}
.sl-final-title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--color-white);
}
.sl-final-sub {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ============ REPLAY ============ */
.replay-slots { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.replay-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.replay-time {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-primary-dark);
}
.replay-info { flex: 1; }
.replay-info small { display: block; font-size: 11px; color: var(--color-text-muted); }

/* ============ BOTTOM NAV ============ */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: none;
  background: var(--color-white);
  border-top: 1px solid var(--color-card-border);
  z-index: 10;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
#bottom-nav.visible { display: flex; }
.nav-btn {
  flex: 1;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text-muted);
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.nav-btn.active { color: var(--color-primary); }
.nav-btn svg { transition: transform .15s; }
.nav-btn.active svg { transform: translateY(-2px); }

.screen.has-nav .screen-scroll { padding-bottom: 90px; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lift);
  animation: modalUp .3s;
}
@keyframes modalUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-icon { font-size: 44px; margin-bottom: 10px; }
.modal-title { font-family: var(--font-heading); font-size: 24px; margin-bottom: 8px; }
.modal-text { color: var(--color-text-muted); font-size: 14px; margin-bottom: 18px; }
.modal-card .btn { width: 100%; }

/* ============ TOAST ============ */
#toast-box {
  position: fixed;
  bottom: 80px;
  right: 12px;
  left: 12px;
  z-index: 50;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.toast {
  pointer-events: auto;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  max-width: 340px;
  animation: slideIn .3s;
}
.toast.toast-gold { border-left-color: var(--color-gold-border); }
.toast.toast-danger { border-left-color: var(--color-danger); }
.toast-icon { font-size: 22px; flex-shrink: 0; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13px; font-weight: 600; }
.toast-text { font-size: 12px; color: var(--color-text-muted); margin-top: 2px; }

/* ============ LIVE NOTIF BUBBLES ============ */
#live-notif-box {
  position: fixed;
  bottom: 86px;
  left: 12px;
  z-index: 40;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
}
.live-notif {
  background: rgba(0,98,96,0.95);
  color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: var(--shadow-card);
  animation: slideIn .3s;
  line-height: 1.35;
}
.live-notif b { color: var(--color-gold-from); }

/* ============ CONFETTI ============ */
.confetti-box {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px; height: 16px;
  top: -20px;
  animation: confettiFall 2.4s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0.5; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
/* Mobile (default, < 768px): edge-to-edge — no overrides needed */

/* Tablet & Desktop (>= 768px): centered phone-frame with decorative background */
@media (min-width: 768px) {
  body {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-gold-to) 100%);
    background-attachment: fixed;
  }

  /* Each screen becomes a centered "phone" card */
  .screen {
    inset: auto;
    top: 24px;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30), 0 4px 12px rgba(0,0,0,0.15);
  }

  /* Bottom nav stays inside the phone-frame */
  #bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    max-width: 440px;
    bottom: 24px;
    border-radius: 0 0 28px 28px;
  }

  /* Sticky countdown rounds top corners of the frame */
  .countdown-bar {
    border-radius: 28px 28px 0 0;
  }

  /* Modals span the whole viewport, above everything */
  .modal-overlay,
  .levelup-overlay,
  .ach-overlay,
  .fomo-overlay,
  .trip-overlay,
  .ach-unlock,
  #notif-box,
  .confetti-box {
    z-index: 1000;
  }
}

/* Larger desktop: more breathing room around the phone */
@media (min-width: 1100px) {
  .screen,
  #bottom-nav {
    max-width: 460px;
  }
}

/* ============================================================
   BRAND UTILITIES (Figma-driven)
   Hexagon polygon decor, teal glow ellipse, pattern texture
   ============================================================ */

.hexagon-decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}
.hexagon-decor polygon {
  opacity: 0.40;
}

.glow-teal {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(34,176,137,0.55) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern.png');
  background-size: 220px;
  mix-blend-mode: overlay;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

/* ============ THANKS hero (canonical composition) ============ */
.thanks-hero {
  position: relative;
  padding: 28px 20px 22px;
  background: var(--color-bg);
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  margin-bottom: 8px;
}
.thanks-hero .glow-teal {
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
}
.thanks-hero .hexagon-decor { opacity: 0.85; }
.thanks-hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

/* ============ HERO CLASSIC (1:1 from handoff bundle, 1920x1080) ============ */
.hero-classic {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 1080/1920 — responsive 16:9 box */
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  margin: 0 0 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.hc-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  transform: scale(var(--hc-scale, 0.22));
  font-kerning: normal;
}
/* Background bokeh */
.hc-bokeh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hc-bg-tint {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 0%, rgba(14,124,106,0.04) 100%);
  mix-blend-mode: multiply;
}
/* Speaker photo */
.hc-photo-wrap {
  position: absolute;
  right: 0;
  bottom: -60px;
  width: 1100px;
  height: 1240px;
  pointer-events: none;
}
.hc-photo-glow {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 75%; height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,124,106,0.10) 0%, rgba(14,124,106,0) 70%);
  filter: blur(8px);
}
.hc-photo {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: top right;
  filter: drop-shadow(-30px 30px 60px rgba(20,50,45,0.18));
}
/* Big speaker chip on photo side */
.hc-chip {
  position: absolute;
  bottom: 90px;
  right: 120px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 44px 16px 16px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    0 18px 50px rgba(14,124,106,0.20),
    inset 0 2px 0 rgba(0,0,0,0.04);
  border: 1px solid rgba(14,124,106,0.14);
}
.hc-chip-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a36a 0%, #b08a52 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.10);
}
.hc-chip-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #1a2e2a;
  line-height: 1;
}
.hc-chip-tag {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: rgba(14,124,106,0.9);
  margin-top: 4px;
}
/* Text column */
.hc-col {
  position: absolute;
  top: 90px;
  left: 120px;
  bottom: 100px;
  width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 2;
}
/* Free badge */
.hc-free {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border: 2px solid #0e7c6a;
  border-radius: 999px;
  color: #0e7c6a;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
  white-space: nowrap;
  align-self: flex-start;
}
.hc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #0e7c6a;
  display: inline-block;
}
/* Eyebrow */
.hc-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3d4f4b;
  margin-top: 8px;
  white-space: nowrap;
}
/* Title with vertical gradient */
.hc-title {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 168px;
  line-height: 1.18;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
  padding: 24px 0 0;
  white-space: nowrap;
  background-image: linear-gradient(180deg, #4eb09d 0%, #0e7c6a 50%, #094e44 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hc-title-sub {
  display: block;
  font-size: 108px;
  white-space: nowrap;
  background-image: linear-gradient(180deg, #2a3f3a 0%, #1a2e2a 60%, #0e1a17 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Gold pills */
.hc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.hc-pill {
  display: inline-flex;
  align-items: center;
  padding: 18px 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a37e4a 0%, #c8a06a 12%, #e6c98c 30%, #f7e3b0 48%, #f0d49c 60%, #d3aa70 78%, #a37e4a 100%);
  color: #3a2c14;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.005em;
  box-shadow:
    0 14px 32px rgba(58,44,20,0.22),
    inset 0 1px 0 rgba(255,245,220,0.9),
    inset 0 -2px 6px rgba(58,44,20,0.14);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255,245,220,0.5);
}

/* ============ EXPANDABLE BONUS CARD (Keshyu-style) ============ */
.bn-card {
  position: relative;
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  box-shadow: 0 2px 10px rgba(0,98,96,0.05);
}
.bn-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,98,96,0.10);
}
.bn-card.locked {
  opacity: 0.78;
  background: #FBFBFB;
}
.bn-card.locked:hover { transform: none; }
.bn-card.bn-highlight {
  animation: bnHighlight 1.6s ease-out;
}
@keyframes bnHighlight {
  0%   { box-shadow: 0 0 0 0 rgba(34,176,137,0.6); border-color: var(--color-primary); }
  40%  { box-shadow: 0 0 0 10px rgba(34,176,137,0.18); border-color: var(--color-primary); }
  100% { box-shadow: 0 0 0 0 rgba(34,176,137,0); }
}
.bn-head {
  display: flex; align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 12px;
}
.bn-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary-soft), #fff);
  border: 1px solid rgba(34,176,137,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.bn-card.locked .bn-ico {
  background: linear-gradient(135deg, #f0f0f0, #fafafa);
  border-color: var(--color-card-border);
  filter: grayscale(0.5);
}
.bn-info { flex: 1; min-width: 0; }
.bn-tag {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.bn-card.locked .bn-tag { color: var(--color-text-muted); background: #f0f0f0; }
.bn-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 4px;
}
.bn-card:not(.locked) .bn-name {
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bn-status {
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-primary);
  text-transform: uppercase;
}
.bn-card.locked .bn-status { color: var(--color-text-muted); }
.bn-value { color: var(--color-gold-border); font-weight: 700; }
.bn-chev {
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  margin-top: 4px;
}
.bn-card.open .bn-chev { transform: rotate(180deg); }
.bn-card.locked .bn-chev { color: var(--color-text-muted); }
.bn-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.bn-card.open .bn-body { max-height: 900px; }
.bn-video { width: 100%; border-radius: 10px; display: block; margin-top: 10px; background: #000; }
.bn-body-inner {
  padding: 4px 14px 14px;
  border-top: 1px dashed rgba(34,176,137,0.22);
  margin-top: 4px;
  padding-top: 12px;
}
.bn-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 10px;
}
.bn-why {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, #d8efe7 100%);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.bn-why-l {
  display: block;
  font-family: var(--font-sub);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 3px;
}
.bn-why-t {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.5;
}
.bn-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.bn-reward-pill {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  color: #2a1f08;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid var(--color-gold-border);
}
.bn-body-inner .btn-sm {
  width: 100%;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}
.btn-sm.btn-gold {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #2a1f08;
  box-shadow: 0 4px 14px rgba(241,193,101,0.35);
}
.btn-sm.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
}

/* ============ EXCLUSIVE BONUSES BANNER ============ */
.exclusive-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-dark) 100%);
  border-radius: 20px;
  padding: 22px 20px;
  margin: 28px 0 16px;
  color: #fff;
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
}
.exclusive-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(241,193,101,0.30) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.exclusive-banner::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(34,176,137,0.32) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.exclusive-banner > * { position: relative; z-index: 1; }
.excl-badge {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--color-gold-from), var(--color-gold-to));
  color: #2a1f08;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-gold-border);
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(241,193,101,0.45);
}
.excl-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
  text-transform: uppercase;
}
.excl-title span {
  background: linear-gradient(180deg, var(--color-gold-to) 0%, var(--color-gold-from) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.excl-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  margin: 0 0 16px;
}
.excl-stats {
  display: flex; gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255,255,255,0.22);
}
.excl-stat { flex: 1; text-align: center; }
.excl-stat-v {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.5px;
  color: #fff;
}
.excl-stat-l {
  font-family: var(--font-sub);
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 3px;
  font-weight: 600;
}

/* Эксклюзивные карточки: золотая обводка */
.bn-card.exclusive {
  background: linear-gradient(180deg, #fffefa 0%, #fff8e8 100%);
  border-color: rgba(215,182,121,0.55);
  box-shadow: 0 4px 14px rgba(241,193,101,0.18);
}
.bn-card.exclusive .bn-ico {
  background: linear-gradient(135deg, #fff4dc, #fae5b4);
  border-color: rgba(215,182,121,0.5);
}
.bn-card.exclusive .bn-tag {
  background: rgba(241,193,101,0.18);
  color: #8a6620;
}

/* ============ FIGMA HERO (1:1 from node 19:142) ============ */
.figma-hero {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 18px;
  padding: 18px 16px;
  margin: 0 0 18px;
  overflow: hidden;
  min-height: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.fh-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.fh-halftone {
  position: absolute;
  right: -40px;
  top: -20px;
  width: 65%;
  height: 95%;
  background:
    radial-gradient(circle at 30% 50%, rgba(34,176,137,0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(241,193,101,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}
.fh-photo {
  position: absolute;
  right: -22px;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: 50%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  filter: drop-shadow(-6px 8px 14px rgba(0,98,96,0.12));
  pointer-events: none;
}
.fh-content {
  position: relative;
  z-index: 4;
  max-width: 60%;
  padding-top: 4px;
}
.fh-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3px;
  color: #030D09;
  margin: 0 0 12px;
  line-height: 1.3;
}
.fh-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.0;
  letter-spacing: 0.4px;
  color: var(--color-primary-dark);
  margin: 0;
  padding-top: 6px;
  text-transform: lowercase;
}
.fh-name {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--color-primary-dark);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}
@media (max-width: 360px) {
  .figma-hero { min-height: 280px; }
  .fh-title { font-size: 22px; }
  .fh-content { max-width: 58%; }
  .fh-sub { font-size: 10px; }
  .fh-name { font-size: 14px; bottom: 8px; right: 10px; }
  .fh-photo { max-width: 46%; }
}

/* ============ OVERVIEW hero (canonical, legacy) ============ */
.hero-banner-v2 {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-card-border);
  border-radius: 22px;
  padding: 18px 16px 0;
  margin: 0 0 18px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}
.hero-banner-v2 .hexagon-decor {
  opacity: 0.55;
  z-index: 0;
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
}
.hero-banner-v2 .glow-teal {
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  z-index: 1;
  opacity: 0.35;
}
.hero-banner-v2 .texture-overlay { z-index: 2; opacity: 0.08; }
.hb2-content {
  position: relative;
  z-index: 4;
  max-width: 75%;
  padding-bottom: 22px;
}
.hb2-badge {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary);
  margin-bottom: 16px;
}
.hb2-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-primary-dark);
  margin: 0 0 10px;
  text-transform: uppercase;
  line-height: 1.35;
}
.hb2-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 18px;
  padding-top: 8px;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hb2-expert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 4px 14px rgba(241,193,101,0.35);
}
.hb2-expert-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-primary-dark);
  border: 1.5px solid #fff;
}
.hb2-expert-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hb2-expert-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #000;
}
.hb2-expert-name {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 0.5px;
}
.hb2-expert-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  margin-top: 2px;
}
.hb2-photo {
  position: absolute;
  right: -8px;
  bottom: 0;
  height: 88%;
  width: auto;
  max-width: 28%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 3;
  filter: drop-shadow(-6px 8px 14px rgba(0,98,96,0.18));
  pointer-events: none;
}
@media (max-width: 360px) {
  .hb2-title { font-size: 20px; }
  .hb2-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .hb2-content { max-width: 68%; }
  .hb2-photo { max-width: 32%; }
}

/* ============ GIFT BANNER ============ */
.gift-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border: 1.5px solid var(--color-primary);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    0 6px 22px rgba(0,0,0,0.18);
  margin: 16px 0 18px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  animation: gbPulse 2.4s ease-in-out infinite;
}
.gift-banner:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }
.gift-banner:active { transform: scale(0.98); }
.gift-banner.is-claiming {
  pointer-events: none;
  animation: gbOut .55s ease forwards;
}
@keyframes gbPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 8px 28px rgba(0,0,0,0.25); }
}
@keyframes gbOut {
  0% { transform: scale(1); opacity: 1; }
  60% { transform: translateY(-8px) scale(0.96); opacity: 0.5; }
  100% { transform: translateY(-30px) scale(0.9); opacity: 0; max-height: 0; padding: 0; margin: 0; border-width: 0; }
}
.gb-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,0.45), transparent 60%);
  pointer-events: none;
}
.gb-icon {
  font-size: 30px;
  z-index: 2;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gb-body {
  flex: 1;
  min-width: 0;
  z-index: 2;
  color: #000;
}
.gb-label {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 2px;
}
.gb-title {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 3px;
  text-transform: uppercase;
}
.gb-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.25;
  margin-bottom: 3px;
}
.gb-cta {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.gb-spark {
  position: absolute;
  font-size: 14px;
  z-index: 3;
  pointer-events: none;
  animation: gbSpark 1.6s ease-in-out infinite;
}
.gb-s1 { top: 6px; right: 12px; animation-delay: 0s; }
.gb-s2 { bottom: 8px; left: 56px; animation-delay: 0.7s; font-size: 11px; }
@keyframes gbSpark {
  0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(20deg); }
}

/* ============ TOUR ENTRY CARD ============ */
.tour-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 45%, #1a1a1a 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card);
  box-shadow:
    0 10px 28px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.10);
  color: #fff;
  margin: 14px 0;
  overflow: hidden;
}
.tour-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.tc-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.tc-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.tc-label {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--color-gold-to);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.tc-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
}
.tc-go {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #2a1f08;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(215,182,121,0.45),
    inset 0 1px 0 rgba(255,245,220,0.6);
}
.tc-go:active { transform: scale(0.97); }

/* ============ TOUR MODAL ============ */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s;
}
.tour-overlay.show { display: flex; }
.tour-card-modal {
  position: relative;
  background: var(--color-bg-card);
  border-radius: 22px;
  width: 100%;
  max-width: 380px;
  min-height: 460px;
  padding: 24px 22px 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
  animation: modalUp .35s;
  display: flex;
  flex-direction: column;
}
.tour-card-modal::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: radial-gradient(circle at 50% 0%, rgba(34,176,137,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tour-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.tp-dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--color-card-border);
  overflow: hidden;
  transition: background .3s;
}
.tp-dot.done { background: var(--color-primary); }
.tp-dot.active {
  background: linear-gradient(90deg, var(--color-primary) 0%, rgba(34,176,137,0.3) 100%);
  position: relative;
}
.tp-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  width: 50%;
}

.tour-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 20px;
  animation: tourFade .35s;
}
@keyframes tourFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ts-icon {
  font-size: 56px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(34,176,137,0.25));
}
.ts-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  line-height: 1.05;
  text-transform: uppercase;
}
.ts-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 280px;
  margin: 0 auto;
}

.tour-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 14px;
}
.tour-nav button {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s, opacity .15s;
}
#tour-prev {
  background: transparent;
  border: 1.5px solid var(--color-card-border);
  color: var(--color-text-muted);
  min-width: 56px;
}
#tour-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
#tour-next {
  flex: 1;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(241,193,101,0.35);
}
#tour-next:active { transform: scale(0.97); }

.tour-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-close:hover { background: rgba(0,0,0,0.08); }

/* tour help re-open icon in overview header */
.tour-help-btn {
  display: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
}
.tour-help-btn.visible { display: inline-flex; }

/* desktop tour modal stays above phone-frame */
@media (min-width: 768px) {
  .tour-overlay { z-index: 1100; }
}

/* ═══════════════════════════════════════════
   INSTALL BANNER (PWA promo, ЮЛБ teal)
   ═══════════════════════════════════════════ */
.install-banner {
  position: relative;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  margin: 0 0 18px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.18);
  color: #fff;
  animation: ibPulse 2.6s ease-in-out infinite;
}
.install-banner::before {
  content: '';
  position: absolute;
  top: -28px; right: -28px;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(241,193,101,0.30) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.install-banner::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(34,176,137,0.40) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
@keyframes ibPulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(0,98,96,0.35); }
  50%      { box-shadow: 0 14px 36px rgba(0,98,96,0.50); }
}

.ib-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.ib-header:hover { background: rgba(255,255,255,0.06); }
.ib-gift {
  font-size: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
  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: #FFFFFF;
  line-height: 1.35;
}
.ib-title b {
  color: var(--color-gold-from);
  background: linear-gradient(180deg, #FCDD94 0%, #F1C165 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}
.ib-title i.coin {
  -webkit-text-fill-color: initial;
  background: none;
}
.ib-sub {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.78);
  margin-top: 3px;
}
.ib-chevron {
  color: rgba(255,255,255,0.85);
  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: 700px; }
.ib-divider {
  height: 1px;
  margin: 0 18px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), 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.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.ib-gift-ico {
  font-size: 28px;
  flex-shrink: 0;
}
.ib-gift-name {
  font-size: 13px; font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 2px;
}
.ib-gift-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.82);
  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: linear-gradient(180deg, var(--color-gold-from) 0%, var(--color-gold-to) 100%);
  border: 1px solid var(--color-gold-border);
  color: #003D3C;
  font-size: 13px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(241,193,101,0.45);
}
.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(--color-gold-to);
  font-weight: 800;
}
.ib-ico {
  font-size: 14px;
  vertical-align: middle;
}

.ib-bonus-note {
  margin: 10px 18px 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.10);
  border-left: 3px solid var(--color-gold-from);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255,255,255,0.90);
  font-style: italic;
}

.ib-claim-btn {
  display: block;
  margin: 6px 18px 16px;
  padding: 12px 16px;
  width: calc(100% - 36px);
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(241,193,101,0.35);
}
.ib-claim-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

/* ═══════════════════════════════════════════
   TASK 2 — Day-gift pills (inside program cards)
   ═══════════════════════════════════════════ */
/* Always-visible block under pc-header (gifts + task status) */
.pc-visible {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--color-card-border);
}

.day-gifts {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.dg-label {
  display: none; /* лейбл не нужен, плашки сами по себе говорящие */
}
.dg-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--color-text);
  border: 1px solid rgba(34,176,137,0.45);
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: border-color 0.2s, background 0.2s;
}
.dg-pill:hover {
  border-color: var(--color-primary);
  background: rgba(230,246,241,0.4);
}
.dg-pill .dg-ico {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}
.dg-pill .dg-txt {
  display: block;
  color: var(--color-text);
}
.dg-pill.dg-coin {
  background: linear-gradient(180deg, #FFFEFA, #FFF6E2);
  border-color: var(--color-gold-border);
  color: #5a3f0c;
  font-weight: 700;
}
.dg-pill.dg-coin .dg-txt { color: #5a3f0c; }
.dg-pill .coin {
  width: 1em;
  height: 1em;
}

/* Task status row under gifts */
.pc-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.pc-task .pc-task-text { flex: 1; }
.pc-task .pc-task-arrow { font-size: 14px; opacity: 0.7; }
.pc-task .pc-task-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pc-task.done {
  background: rgba(34,176,137,0.12);
  border: 1px solid rgba(34,176,137,0.35);
  color: var(--color-primary-dark);
}
.pc-task.done .pc-task-ico { background: var(--color-primary); color: #fff; }
.pc-task.pending {
  background: rgba(241,193,101,0.18);
  border: 1px solid var(--color-gold-border);
  color: #8a6620;
}
.pc-task.pending .pc-task-ico {
  background: linear-gradient(180deg, var(--color-gold-from), var(--color-gold-to));
  color: #2a1f08;
}
.pc-task.locked {
  background: #f4f4f4;
  border: 1px dashed var(--color-card-border);
  color: var(--color-text-muted);
  cursor: default;
}
.pc-task.locked .pc-task-ico { background: #e2e2e2; color: var(--color-text-muted); }
.pc-task.locked .pc-task-arrow { display: none; }

/* ═══════════════════════════════════════════
   TASK 3 — Tour CTA hint (small italic teal text)
   ═══════════════════════════════════════════ */
.tour-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--color-primary-dark);
  margin-top: 12px;
  padding: 6px 10px;
  border-left: 2px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 4px;
  max-width: 280px;
  text-align: left;
}

/* ═══════════════════════════════════════════
   TASK 4 — WARMUP HERO (НАЧНИТЕ ЗДЕСЬ)
   ═══════════════════════════════════════════ */
.warmup-hero {
  position: relative;
  margin: 22px 0 18px;
  padding: 18px 14px 14px;
  background:
    linear-gradient(180deg, rgba(34,176,137,0.10) 0%, rgba(34,176,137,0.03) 100%),
    var(--color-white);
  border: 2px dashed var(--color-primary);
  border-radius: 18px;
  overflow: hidden;
  animation: whGlow 3s ease-in-out infinite;
}
.warmup-hero.is-complete {
  border-style: solid;
  border-color: var(--color-gold-border);
  animation: none;
  background:
    linear-gradient(180deg, rgba(241,193,101,0.10) 0%, rgba(252,221,148,0.04) 100%),
    var(--color-white);
}
@keyframes whGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(34,176,137,0.18); }
  50%      { box-shadow: 0 8px 28px rgba(34,176,137,0.32); }
}
.wh-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(34,176,137,0.18), transparent 60%);
  pointer-events: none;
}
.wh-badge {
  position: relative;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  border: 1.5px solid var(--color-gold-border);
  color: #000;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(241,193,101,0.45);
  animation: whBadgePulse 2s ease-in-out infinite;
  z-index: 2;
}
.wh-badge.is-done {
  animation: none;
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}
@keyframes whBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 12px rgba(241,193,101,0.45); }
  50%      { transform: scale(1.05); box-shadow: 0 5px 18px rgba(241,193,101,0.65); }
}
.wh-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.5px;
  margin: 4px 0 4px;
  text-transform: uppercase;
  color: var(--color-text);
  z-index: 2;
  line-height: 1.05;
}
.wh-sub {
  position: relative;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  z-index: 2;
}
.warmup-hero .warmup-cards { position: relative; z-index: 2; }
.wh-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(34,176,137,0.18);
  z-index: 2;
}
.wh-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(34,176,137,0.14);
  border-radius: 999px;
  overflow: hidden;
}
.wh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  width: 0;
  transition: width .5s ease;
  border-radius: 999px;
}
.warmup-hero.is-complete .wh-progress-fill {
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
}
#wh-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   TASK 5 — Active program day highlight + countdown
   ═══════════════════════════════════════════ */
.program-card.program-day--active {
  border: 2px solid var(--color-primary);
  background:
    linear-gradient(135deg, rgba(34,176,137,0.06) 0%, rgba(34,176,137,0.01) 100%),
    var(--color-white);
  box-shadow:
    0 0 0 4px rgba(34,176,137,0.15),
    0 8px 24px rgba(34,176,137,0.25);
  animation: dayActivePulse 2.5s ease-in-out infinite;
}
@keyframes dayActivePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,176,137,0.15), 0 8px 24px rgba(34,176,137,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,176,137,0.20), 0 10px 30px rgba(34,176,137,0.35); }
}
.day-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 14px 12px;
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,98,96,0.30);
}
.day-cd-time {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   TASK 1 — MY BONUSES (in profile)
   ═══════════════════════════════════════════ */
.mb-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mb-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
  user-select: none;
}
.mb-group-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text);
}
.mb-group-title.unlocked { color: var(--color-primary-dark); }
.mb-group-title.locked   { color: var(--color-text-muted); }
.mb-group-chev {
  font-size: 12px;
  color: var(--color-text-muted);
  transition: transform .2s;
}
.mb-group.collapsed .mb-group-chev { transform: rotate(-90deg); }
.mb-group.collapsed .mb-list { display: none; }

.mb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px;
}

.mb-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--color-card-border);
  background: #fafafa;
}
.mb-card.unlocked {
  border-color: var(--color-gold-border);
  background: linear-gradient(135deg, rgba(241,193,101,0.10), rgba(252,221,148,0.05));
}
.mb-card.locked {
  opacity: 0.85;
  background: #f4f4f4;
}
.mb-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mb-card.unlocked .mb-icon {
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  color: #000;
  border: 1px solid var(--color-gold-border);
}
.mb-card.locked .mb-icon {
  background: #e0e0e0;
  color: #888;
}
.mb-body { flex: 1; min-width: 0; }
.mb-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 3px;
}
.mb-card.locked .mb-title { color: var(--color-text-muted); }
.mb-reward {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.mb-card.unlocked .mb-reward {
  background: rgba(241,193,101,0.25);
  color: #6b4a14;
}
.mb-hint {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* ============ TH-DECK: ДЗ 1 SLIDE-DECK THEORY ============ */
.th-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 6px 0 14px;
}
.th-slide {
  position: relative;
  background: var(--color-white);
  border-radius: 16px;
  padding: 18px 14px 16px;
  box-shadow: 0 6px 18px rgba(0,98,96,0.08);
  border: 1px solid rgba(34,176,137,0.18);
  overflow: hidden;
}
.th-slide-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin: 0 0 14px;
}
.th-slide-title--center { text-align: center; }
.th-mint { color: var(--color-primary); }

/* === Slide 1 — COVER === */
.th-cover { padding-top: 16px; padding-bottom: 18px; }
.th-cover-pill {
  display: inline-block;
  background: var(--color-primary-dark);
  color: var(--color-white);
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  font-size: 18px;
  padding: 8px 22px;
  border-radius: 8px;
  text-transform: uppercase;
}
.th-cover-eyebrow {
  margin-top: 10px;
  font-family: var(--font-sub);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}
.th-cover-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.th-num-card {
  background: var(--color-white);
  border: 1px solid rgba(34,176,137,0.35);
  border-radius: 12px;
  padding: 10px 10px 11px;
  display: flex;
  flex-direction: column;
  min-height: 96px;
}
.th-num-card--wide {
  grid-column: 1 / -1;
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
}
.th-num-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.th-num-ico { font-size: 18px; line-height: 1; }
.th-num-pill {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: 1px;
}
.th-num-arrow {
  color: var(--color-primary-dark);
  font-size: 16px;
  font-weight: 700;
  margin-left: auto;
}
.th-num-card-text {
  font-size: 12px;
  line-height: 1.35;
  color: var(--color-text);
}
.th-cover-photo {
  display: none;
}
.th-cover-tag {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: linear-gradient(90deg, var(--color-gold-from), var(--color-gold-to));
  color: var(--color-primary-dark);
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid var(--color-gold-border);
}

/* === Slide 2 — STAIR CHART === */
.th-stairs .th-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  margin-top: 4px;
}
.th-bar {
  flex: 1;
  background: rgba(34,176,137,0.20);
  border-radius: 8px 8px 0 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
}
.th-bar span {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(0,98,96,0.55);
}
.th-bar-1 { height: 100%; background: rgba(34,176,137,0.30); }
.th-bar-2 { height: 75%;  background: rgba(34,176,137,0.25); }
.th-bar-3 { height: 50%;  background: rgba(34,176,137,0.20); }
.th-bar-4 { height: 30%;  background: rgba(34,176,137,0.15); }
.th-bars-legend {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.th-bars-legend span {
  flex: 1;
  text-align: center;
  font-family: var(--font-sub);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* === Slide 3 — ОСВОБОЖДЕНИЕ (CHECK CARDS) === */
.th-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid rgba(34,176,137,0.28);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.th-check-card:last-child { margin-bottom: 0; }
.th-check-medal {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.th-check-body { flex: 1; min-width: 0; }
.th-check-lead {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-text);
}
.th-check-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-text);
}
.th-check-list li { margin-bottom: 3px; list-style: disc; }
.th-check-list b { color: var(--color-primary-dark); }

/* === Slide 4 — ПОЧЕМУ ТАК (TWO CARD) === */
.th-why-sub {
  text-align: center;
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--color-text-muted);
  margin: -8px 0 14px;
}
.th-two-card {
  background: var(--color-white);
  border: 1px solid rgba(34,176,137,0.30);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.th-two-card:last-child { margin-bottom: 0; }
.th-two-card.is-mint {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}
.th-two-card.is-mint .th-two-card-num,
.th-two-card.is-mint .th-two-card-title { color: var(--color-white); }
.th-two-card.is-mint .th-two-card-text { color: rgba(255,255,255,0.92); }
.th-two-card.is-mint .th-two-card-hl {
  background: rgba(255,255,255,0.18);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.35);
}
.th-two-card.is-mint .th-two-card-list { color: rgba(255,255,255,0.92); }
.th-two-card-num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--color-primary);
}
.th-two-card-title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-dark);
  margin: 2px 0 8px;
}
.th-two-card-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text);
  margin-bottom: 8px;
}
.th-two-card-hl {
  display: inline-block;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.th-two-card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.5;
}
.th-two-card-list li { margin-bottom: 3px; list-style: disc; }

/* === Slide 5 — ЭТАПЫ АНАЛИЗА === */
.th-stage {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(34,176,137,0.25);
}
.th-stage:first-of-type { border-top: 0; padding-top: 0; }
.th-stage-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.th-stage-body { flex: 1; min-width: 0; }
.th-stage-title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.th-stage-list {
  margin: 4px 0 6px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text);
}
.th-stage-list li { margin-bottom: 2px; list-style: disc; }
.th-stage-foot {
  font-size: 11.5px;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* === Slide 6 — АЛГОРИТМ (STEPS) === */
.th-step {
  position: relative;
  background: var(--color-white);
  border: 1px solid rgba(34,176,137,0.30);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.th-step:last-child { margin-bottom: 0; }
.th-step + .th-step::before {
  content: "↓";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 800;
}
.th-step-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--color-primary);
}
.th-step-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text);
}
.th-step-text b { color: var(--color-primary-dark); }
.th-step.is-gold {
  background: linear-gradient(135deg, var(--color-gold-from), var(--color-gold-to));
  border-color: var(--color-gold-border);
}
.th-step.is-gold .th-step-num { color: var(--color-primary-dark); }
.th-step.is-gold .th-step-text,
.th-step.is-gold .th-step-text b { color: #4a3812; }

/* === Slide 7 — PIN BLOCKS === */
.th-pin-block {
  background: var(--color-primary-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.th-pin-block:last-child { margin-bottom: 0; }
.th-pin-title {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-primary-dark);
  margin-bottom: 5px;
  line-height: 1.3;
}
.th-pin-ico { margin-right: 4px; }
.th-pin-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-text);
}

/* === Homework locked banner === */
.hwf-locked-banner {
  background: var(--color-primary-soft);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  margin: 8px 0 20px;
}
.hwf-lock-ico { font-size: 36px; margin-bottom: 10px; }
.hwf-lock-title {
  font-size: 16px; font-weight: 800;
  color: var(--color-primary-dark); margin-bottom: 8px;
}
.hwf-lock-sub {
  font-size: 13px; color: var(--color-text-muted);
  line-height: 1.5; margin-bottom: 10px;
}
.hwf-lock-meta {
  font-size: 12px; font-weight: 700; color: var(--color-primary);
}

/* === Wider screens (>=520px): show Oksana photo on cover === */
@media (min-width: 520px) {
  .th-cover { padding-right: 100px; }
  .th-cover-photo {
    display: block;
    position: absolute;
    right: 12px;
    top: 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,98,96,0.20);
  }
}

/* ============ ЭКРАН РЕГИСТРАЦИИ ============ */
.reg-form { padding: 0 4px 32px; }

.stream-opts-row { display: flex; gap: 8px; }

.reg-legal {
  margin: 20px 0 16px;
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--color-card-border);
  overflow: hidden;
}
.reg-legal-toggle {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.reg-legal-arrow { font-size: 16px; color: var(--color-text-muted); transition: transform .2s; }
.reg-legal-toggle.open .reg-legal-arrow { transform: rotate(180deg); }
.reg-legal-body {
  display: none;
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--color-card-border);
}
.reg-legal-body.open { display: block; }

.reg-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 20px;
  cursor: pointer;
  line-height: 1.5;
}
.reg-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.reg-error {
  color: #e53935;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
  margin-bottom: 10px;
  font-weight: 500;
}

.reg-divider {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 14px 0;
  position: relative;
}
.reg-divider::before, .reg-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--color-card-border);
}
.reg-divider::before { left: 0; }
.reg-divider::after  { right: 0; }

/* ── Custom: warmup-hero solid brand background ── */
.warmup-hero {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark)) !important;
  border: none !important;
  animation: none !important;
}
.warmup-hero.is-complete {
  background: linear-gradient(160deg, var(--color-primary), var(--color-primary-dark)) !important;
  border: none !important;
}
.wh-title { color: #fff !important; }
.wh-sub   { color: rgba(255,255,255,0.75) !important; }
.wu-card  { background: rgba(255,255,255,0.13) !important; border: 1.5px solid rgba(255,255,255,0.22) !important; }
.wu-title { color: #fff !important; }
.wu-sub   { color: rgba(255,255,255,0.70) !important; }
.wu-reward{ color: #fff !important; }
.wu-card.done { background: rgba(255,255,255,0.20) !important; }
.wh-badge { background: rgba(255,255,255,0.20) !important; border-color: rgba(255,255,255,0.35) !important; color: #fff !important; box-shadow: none !important; animation: none !important; }
.wh-badge.is-done { background: rgba(255,255,255,0.22) !important; color: #fff !important; }
.wh-decor { background: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.10), transparent 60%) !important; }

/* ── Custom: hero banner — allow long course names to wrap before expert photo ── */
.hc-title-sub { white-space: normal !important; max-width: 900px !important; }
.hc-title     { white-space: normal !important; }

/* ── Custom: white text on completed (green) homework cards ── */
.hw-card.done .hw-title,
.hw-card.done .hw-desc,
.hw-card.done .hw-status { color: #fff !important; }

/* ── Custom: white text inside shop FAQ accordion ── */
#shop-faq-acc .hwf-acc-head,
#shop-faq-acc .hwf-acc-body,
#shop-faq-acc .hwf-acc-body p,
#shop-faq-acc .hwf-acc-body b,
#shop-faq-acc .hwf-acc-body li { color: #fff !important; }
