/* ============================================================
   VARIANT E · SKIN — дожимаем компоненты до облика Bold Grotesque.
   Грузится после style.css, поэтому переопределяет его.
   ============================================================ */

/* Дисплейные заголовки — без курсива, плотный Bricolage */
.app-header h1,
.p-name,
.recipe-title,
.cooking-title,
.screen-title,
.plan-top h3,
.wm-day-title,
.vip-card h3 {
  font-style: normal !important;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.6px;
}

/* ---------- HEADER ---------- */
.app-header { padding: calc(env(safe-area-inset-top) + 14px) 20px 2px; }
.header-brand { gap: 10px; }
.brand-dot {
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--accent); box-shadow: 0 5px 12px var(--accent-glow);
}
.app-header h1 { font-size: 21px; color: var(--text); }
.badge {
  background: var(--ink); color: var(--ink-text);
  border: none; letter-spacing: 0.5px;
  padding: 6px 12px; font-size: 11px;
}
.badge.PRO, .badge.pro { background: var(--ink); color: var(--ink-text); }
.badge.VIP, .badge-vip {
  background: linear-gradient(135deg, var(--honey-light), var(--honey)) !important;
  color: #2a1d08 !important;
}
.avatar-btn {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text-2);
}

/* ---------- HERO ---------- */
.hero { text-align: left; padding: 16px 20px 6px; }
.hero-plate { display: none; }
.hero h2 {
  font-size: 46px; font-weight: 800; letter-spacing: -2px;
  line-height: 1.0; margin-bottom: 12px;
}
.hero .hint, .hero p.hint {
  text-align: left; color: var(--text-2);
  font-weight: 500; max-width: 280px; font-size: 14px;
}
.hero .hl, .hl {
  background: var(--accent); color: #fff;
  padding: 0 9px 2px; border-radius: 11px;
  display: inline-block; transform: rotate(-1.6deg); line-height: 1.1;
}

/* ---------- INPUT CARD (тёплый кремовый, тактильный) ---------- */
.input-card {
  margin: 16px 16px 18px; border-radius: var(--r-xl);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-md);
}

/* ---------- BUTTONS — плоский акцент ---------- */
.primary-btn {
  background: var(--accent) !important;
  border-radius: 15px; letter-spacing: 0.3px; font-size: 15px;
  box-shadow: var(--shadow-acc);
}
.primary-btn::before { display: none; }
.gold-btn {
  background: linear-gradient(135deg, var(--honey-light), var(--honey)) !important;
  color: #2a1d08 !important;
}
.mic-btn {
  width: 50px; height: 50px; border-radius: 15px;
  background: var(--surface-3); border: 1.5px solid var(--border);
  color: var(--accent);
}
.back-btn {
  background: var(--surface); border: 1.5px solid var(--border);
  color: var(--text); font-weight: 700; padding: 10px 16px;
}
.icon-btn { border-radius: 14px; border: 1.5px solid var(--border); color: var(--accent); }

/* ---------- SECTION LABEL ---------- */
.section-label { font-family: var(--font-mono); font-weight: 500; letter-spacing: 1.5px; }

/* ---------- CHIPS — тактильные скруглённые ---------- */
.chip {
  border-radius: 14px; padding: 11px 16px;
  font-weight: 700; font-size: 14px; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip:active, .chip.selected {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.chip.selected svg, .chip:active svg { color: #fff; }
.pref { border-radius: 14px; padding: 11px 16px; font-weight: 700; font-size: 14px; border: 1.5px solid var(--border); }
.pref:active, .pref.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- STATUS PILL ---------- */
.status-pill-wrap { text-align: left; padding: 16px 20px 0; }
.status-pill {
  background: var(--accent-dim); border: none;
  color: var(--accent-deep); font-weight: 700; padding: 9px 15px;
}

/* ---------- PROFILE NAV BTN ---------- */
.profile-nav-btn {
  margin: 14px 16px 0; width: calc(100% - 32px);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  background: var(--surface); padding: 15px 17px;
}
.profile-nav-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-dim); display: inline-flex;
  align-items: center; justify-content: center;
}

/* ---------- RECIPE ---------- */
.recipe-title { font-size: 30px; }
.progress-fill { background: var(--accent); }
.step-card { border: 1.5px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); }
.nav-btn { border-radius: 16px; border: 1.5px solid var(--border-2); font-weight: 800; }
.nav-btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.timer-bar {
  background: var(--ink); color: var(--ink-text);
  border-radius: var(--r-lg); border: none;
}
.timer-bar .timer-label { color: rgba(251,246,238,0.82); }
.timer-btn { background: var(--accent); color: #fff; border: none; border-radius: 50px; font-weight: 800; }
.extra-btn { border: 1.5px solid var(--border); border-radius: var(--r-lg); }
.extra-btn-primary { border-color: var(--border-acc); }

/* ---------- SUBSCRIPTION — VIP тёмный ---------- */
.plan-vip {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--ink-text);
}
.plan-vip h3, .plan-vip .plan-list li { color: var(--ink-text); }
.plan-vip .plan-list li { opacity: 0.92; }
.plan-vip .gold-price { color: var(--honey-light) !important; }
.plan-vip-badge {
  background: linear-gradient(135deg, var(--honey-light), var(--honey));
  color: #2a1d08;
}
.plan-card { border-radius: var(--r-xl); }
.plan-icon { border-radius: 14px; }

/* ---------- PROFILE — герой тёмный ---------- */
.profile-hero-card {
  background: var(--ink) !important;
  color: var(--ink-text); border: none;
  border-radius: var(--r-xl); overflow: hidden; position: relative;
}
.profile-hero-card .p-name { color: var(--ink-text); }
.profile-hero-card .p-user { color: rgba(251,246,238,0.55); }
.p-avatar {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 12px 26px var(--accent-glow);
}
.stat-box { border: 1.5px solid var(--border); border-radius: var(--r-lg); }
.stat-val { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.menu-item { border: 1.5px solid var(--border); border-radius: 14px; }

/* ---------- ONBOARDING ---------- */
.onb-content { text-align: left; }
.onb-title { font-style: normal; font-family: var(--font-display); font-weight: 800; letter-spacing: -1.4px; }
.onb-next-btn { background: var(--accent); border-radius: 15px; }
.onb-day-pill.active, .onb-day-pill.on { background: var(--accent); color: #fff; }

/* ---------- WEEK MENU ---------- */
.wm-day-title { font-size: 24px; }
.wm-progress-fill, .wm-progress-bar { background: var(--accent); }
.vip-card { border: 1.5px solid var(--border); border-radius: var(--r-xl); }

/* ---------- MODALS ---------- */
.modal-box { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
.modal-header h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.5px; color: var(--text);
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-2); font-size: 15px;
}

/* ---------- РЕЖИМ РАБОТЫ — карточки выбора ---------- */
.mode-list {
  display: flex; flex-direction: column; gap: 10px;
  margin: 4px 0 22px;
}
.mode-card {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: 14px 15px;
  background: var(--surface); cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.mode-card:active { transform: scale(0.985); }
.mode-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 8px 20px var(--accent-glow);
}
.mode-icon {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--text-2);
  border: 1.5px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.mode-icon svg { width: 24px; height: 24px; }
.mode-card.active .mode-icon {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.mode-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mode-info b {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: -0.3px; color: var(--text); line-height: 1.1;
}
.mode-info small {
  font-size: 12px; line-height: 1.35; color: var(--text-muted); font-weight: 500;
}

/* ---------- Доп. поля режима ---------- */
.mode-extra { margin-bottom: 6px; }
.mode-extra .form-block { margin-bottom: 16px; }
input.text-input, textarea.text-input, .text-input {
  width: 100%; box-sizing: border-box;
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 13px 15px; font-size: 14.5px; font-family: var(--font-body);
  font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.text-input::placeholder { color: var(--text-muted); }
input.text-input:focus, textarea.text-input:focus, .text-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ---------- Цели фитнеса — чипы ---------- */
.fitness-goals { display: flex; flex-wrap: wrap; gap: 8px; }
.goal-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 14px; cursor: pointer;
  background: var(--surface); color: var(--text-2);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  white-space: nowrap; transition: all .15s;
}
.goal-btn:active { transform: scale(0.97); }
.goal-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px var(--accent-glow);
}

/* ---------- Кнопка "Сбросить" в истории меню ---------- */
.wm-history-info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-md);
}
.wm-history-text {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-2); font-weight: 500; min-width: 0;
}
.wm-history-text b { color: var(--accent-deep); font-weight: 800; }
.wm-history-reset {
  flex-shrink: 0;
  background: var(--surface); color: var(--accent-deep);
  border: 1.5px solid var(--border-acc); border-radius: var(--r-pill);
  padding: 6px 14px; margin-left: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  cursor: pointer; transition: all .15s;
}
.wm-history-reset:active { background: var(--accent-dim); transform: scale(0.96); }

/* ---------- ВЫБОР ПОСУДЫ + ЗАМЕНА (в облике скина) ---------- */
.cookware-chip, .sub-chip {
  border-radius: 14px; padding: 11px 16px;
  font-weight: 700; font-size: 14px; border: 1.5px solid var(--border);
}
.cookware-chip:active, .cookware-chip.active,
.sub-chip:active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.label-hint {
  background: var(--accent-dim); border: none; color: var(--accent-deep);
  border-radius: 50px; padding: 3px 11px; font-weight: 700; font-size: 11px;
}
.pot-help {
  background: var(--accent-dim); border: none;
  border-radius: var(--r-lg); color: var(--text-2); font-weight: 500;
}
.sub-text-input { border-radius: var(--r-lg); }
