/* ========================================================
   КАЧ — Фитнес-трекер
   Глобальные стили
   ======================================================== */

/* ── Шрифты и переменные ── */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #f5f7fb;
  --bg-secondary: #eef2f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f6fb;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --border: rgba(17, 24, 39, 0.08);
  --border-light: rgba(17, 24, 39, 0.14);

  --accent: #5041ab;
  --accent-dark: #3f2f98;
  --accent-glow: rgba(80, 65, 171, 0.18);
  --orange: #f15223;
  --orange-glow: rgba(241, 82, 35, 0.2);
  --blue: #2f7bff;
  --blue-glow: rgba(47, 123, 255, 0.2);
  --purple: #5041ab;
  --purple-glow: rgba(80, 65, 171, 0.2);
  --pink: #d946ef;
  --red: #ef4444;
  --yellow: #fdde3b;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  --nav-height: 72px;
  --top-bar-height: 56px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-card: 0 8px 32px rgba(17, 24, 39, 0.05);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root.theme-dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.16);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* Metric typography */
.metric-xl {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.05;
}

.metric-lg {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.metric-md {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.metric-sm {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.3;
}

.metric-caption {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(210, 233, 233, 0.6), transparent 60%),
    radial-gradient(900px 700px at 80% 20%, rgba(80, 65, 171, 0.12), transparent 60%),
    radial-gradient(900px 700px at 30% 80%, rgba(241, 82, 35, 0.12), transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ── Скроллбар ── */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}

[v-cloak] {
  display: none !important;
}

/* ============================================================
   СТРУКТУРА ПРИЛОЖЕНИЯ
   ============================================================ */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 480px !important;
  margin: 0 auto !important;
  position: relative;
  background: var(--bg-primary);
}

/* Icons */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-lg {
  width: 26px;
  height: 26px;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

/* ── Шапка ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--top-bar-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #111;
}

.top-bar__search {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-card);
}

.top-bar__search input::placeholder {
  color: var(--text-muted);
}

.top-bar__search input {
  width: 100%;
  font-size: 14px;
  color: var(--text-primary);
}

.top-bar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weight-badge {
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
}

.settings-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.settings-icon:hover {
  opacity: 1;
}

/* ── Elite Aura Header ── */
.top-bar-aura {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: padding var(--transition), box-shadow var(--transition), background var(--transition);
}

.top-bar-aura__container {
  width: 100%;
  max-width: 480px;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: padding var(--transition), gap var(--transition);
}

.top-bar-aura__top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.top-bar-aura__brand {
  display: flex;
  align-items: center;
}

.top-bar-aura__context {
  min-width: 0;
}

.top-bar-aura__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--text-primary);
  transition: font-size var(--transition), gap var(--transition);
}

.top-bar-aura__title i {
  color: var(--accent);
  font-size: 15px;
}

.top-bar-aura__title span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-aura__meta {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 18px;
  opacity: 1;
  transition: max-height var(--transition), opacity var(--transition), margin-top var(--transition);
}

.top-bar-aura__settings {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  transition: var(--transition);
}

.top-bar-aura__settings i {
  font-size: 19px;
  opacity: 0.85;
}

.top-bar-aura__stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  transition: gap var(--transition);
}

.aura-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 6px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.aura-pill i {
  font-size: 15px;
  flex-shrink: 0;
}

.aura-pill__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.aura-pill__label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  line-height: 1;
  transition: opacity var(--transition), transform var(--transition), max-height var(--transition);
}

.aura-pill__value {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size var(--transition), opacity var(--transition);
}

.aura-pill:active {
  transform: scale(0.98);
  background: rgba(15, 23, 42, 0.08);
}

.aura-pill--weight i {
  color: var(--blue);
}

.aura-pill--steps i {
  color: #10b981;
}

.aura-pill--calories i {
  color: #f97316;
}

.aura-avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 2px 8px var(--accent-glow);
  flex-shrink: 0;
  transition: width var(--transition), height var(--transition), font-size var(--transition);
}

.top-bar-aura--compact {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.top-bar-aura--compact .top-bar-aura__container {
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 6px;
}

.top-bar-aura--compact .top-bar-aura__title {
  font-size: 13px;
  gap: 5px;
}

.top-bar-aura--compact .top-bar-aura__meta {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
}

.top-bar-aura--compact .top-bar-aura__settings {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.top-bar-aura--compact .top-bar-aura__settings i {
  font-size: 17px;
}

.top-bar-aura--compact .top-bar-aura__stats-row {
  gap: 4px;
}

.top-bar-aura--compact .aura-pill {
  padding: 4px 6px;
  border-radius: 10px;
}

.top-bar-aura--compact .aura-pill__label {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  overflow: hidden;
}

.top-bar-aura--compact .aura-pill__value {
  font-size: 10px;
}

.top-bar-aura--compact .aura-avatar-mini {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

/* ── Основной контент ── */
.main-content {
  flex: 1;
  padding: 16px 16px calc(var(--nav-height) + 24px);
  overflow-x: hidden;
}

/* ── Desktop headers ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-actions .btn {
  white-space: nowrap;
  border-radius: 12px;
}

/* ── Страница: основной блок + боковая панель ── */
.page-layout {
  display: block;
}

.page-main {
  min-width: 0;
}

.page-aside {
  margin-top: 16px;
}

/* Tile grids */
.tiles-grid {
  display: grid;
  gap: 20px;
}

.tile {
  min-width: 0;
}

.tiles-grid--dashboard {
  align-items: stretch;
}

#diaryApp {
  display: block;
}

.nutrition-main,
.nutrition-side {
  display: grid;
  gap: 12px;
}

.nutrition-actions .btn {
  flex: 1;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.tile-span-3,
.tile-span-4,
.tile-span-6,
.tile-span-8,
.tile-span-9,
.tile-span-12 {
  grid-column: auto;
}

/* Мини-статы для сайдбара */
.mini-stat {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}

.mini-stat:last-child {
  border-bottom: none;
}

.mini-stat__label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.mini-stat__value {
  margin-top: 4px;
}

.mini-stat__progress {
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.mini-stat__meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Колонки на странице тренировок */
.workouts-columns {
  display: block;
}

.workouts-columns .card {
  margin-bottom: 14px;
}

/* Desktop key cards */
.key-card {
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.key-card__value {
  word-break: break-word;
}

.key-card__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.key-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.key-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.key-card__icon .icon {
  width: 18px;
  height: 18px;
}

/* Section grids */
.section-grid {
  display: grid;
  gap: 16px;
}

.section-grid--today {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid--goals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid--progress {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 400px) {
  .section-grid--today {
    grid-template-columns: 1fr;
  }

  .section-grid--goals {
    grid-template-columns: 1fr;
  }

  .top-bar-aura__container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .top-bar-aura__title {
    font-size: 13px;
  }

  .aura-pill {
    gap: 5px;
    padding: 6px;
  }

  .aura-pill__value {
    font-size: 10px;
  }
}

/* Unified icon / tag style */
.ui-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.ui-icon .icon {
  width: 16px;
  height: 16px;
}

.ui-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.05);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

.ui-tag--success {
  background: rgba(11, 191, 154, 0.12);
  border-color: rgba(11, 191, 154, 0.3);
  color: var(--accent);
}

.ui-tag--info {
  background: rgba(63, 123, 217, 0.12);
  border-color: rgba(63, 123, 217, 0.3);
  color: var(--blue);
}

.ui-tag--warn {
  background: rgba(255, 122, 69, 0.12);
  border-color: rgba(255, 122, 69, 0.3);
  color: var(--orange);
}

/* Status tags */
.ui-tag--neutral {
  background: rgba(15, 23, 42, 0.06);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* Icon shields */
.icon-shield {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.icon-shield .icon {
  width: 14px;
  height: 14px;
}

.icon-shield--success {
  background: rgba(11, 191, 154, 0.12);
  border-color: rgba(11, 191, 154, 0.3);
  color: var(--accent);
}

.icon-shield--info {
  background: rgba(63, 123, 217, 0.12);
  border-color: rgba(63, 123, 217, 0.3);
  color: var(--blue);
}

.icon-shield--warn {
  background: rgba(255, 122, 69, 0.12);
  border-color: rgba(255, 122, 69, 0.3);
  color: var(--orange);
}

/* Chips and badges use unified tags */
.chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(11, 191, 154, 0.12);
  border-color: rgba(11, 191, 154, 0.3);
  color: var(--accent);
}

.badge-orange {
  background: rgba(255, 122, 69, 0.12);
  border-color: rgba(255, 122, 69, 0.3);
  color: var(--orange);
}

.badge-blue {
  background: rgba(63, 123, 217, 0.12);
  border-color: rgba(63, 123, 217, 0.3);
  color: var(--blue);
}

/* ── Нижняя навигация ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0 8px;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 14px;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  opacity: 0.7;
}

.bottom-nav__item.active {
  opacity: 1;
}

.bottom-nav__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.chip .icon {
  width: 14px;
  height: 14px;
}

.chip {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.chip.active {
  border-color: rgba(80, 65, 171, 0.35);
  background: rgba(80, 65, 171, 0.08);
}

.bottom-nav__item.active .bottom-nav__icon {
  transform: translateY(-2px);
}

.bottom-nav__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.bottom-nav__item.active .bottom-nav__label {
  color: var(--accent);
}

/* Sidebar visuals (desktop) */
.sidebar-brand {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 16px;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.sidebar-title {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.sidebar-section {
  display: none;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 12px 10px 6px;
}

.sidebar-divider {
  display: none;
  height: 1px;
  background: var(--border);
  margin: 12px 10px;
}

/* ============================================================
   КАРТОЧКИ
   ============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all var(--transition);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.card:hover {
  border-color: var(--border-light);
}

.card--accent {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-card);
}

.card--orange {
  border-color: var(--orange);
}

.card--glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.card-title-icon .icon {
  width: 14px;
  height: 14px;
}

.card-value {
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.card-value--sm {
  font-size: inherit;
}

.card-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

/* Grid 2 колонки */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--text-primary);
}

.stat-card__icon .icon {
  width: 18px;
  height: 18px;
}

.stat-card__value {
  font-weight: 800;
}

.stat-card__label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================================
   ПРОГРЕСС-БАРЫ
   ============================================================ */
.progress-wrap {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
}

.progress-fill--orange {
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
}

.progress-fill--purple {
  background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 100%);
}

.progress-fill--blue {
  background: linear-gradient(90deg, var(--blue) 0%, var(--accent) 100%);
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.progress-row__label {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 80px;
}

.progress-row__val {
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  min-width: 48px;
  text-align: right;
}

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-primary);
  transition: all var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  appearance: none;
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

/* --- Tabs --- */
.tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 4px;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* --- Input Groups --- */
.input-range-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-divider {
  width: 12px;
  height: 2px;
  background: var(--border-light);
  flex-shrink: 0;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 500;
}

/* --- Utility Grid --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col-6 {
  flex: 0 0 50%;
  padding: 0 8px;
}

.g-2 {
  margin: 0 -4px;
}

.g-2 .col-6 {
  padding: 0 4px;
}

/* --- Animations --- */
.animate__animated {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeIn {
  animation-name: fadeIn;
}

/* ── Slider ── */
.slider-wrap {
  position: relative;
}

.form-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  outline: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Поиск продукта (Nutrition) ── */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-card);
}

.search-dropdown.hidden {
  display: none;
}

.search-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: var(--bg-card-hover);
}

/* ── Toggle ── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  transition: all var(--transition);
  cursor: pointer;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked+.toggle-slider {
  background: var(--accent);
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(22px);
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #5041ab 0%, #0ea5a4 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(80, 65, 171, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(80, 65, 171, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f7f8fb;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--border-light);
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange) 0%, #e03c00 100%);
  color: white;
  box-shadow: 0 4px 20px var(--orange-glow);
}

.btn-ghost {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 12px;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
}

.mt-2 {
  margin-top: 8px;
}

/* ── Segment control (Дом/Командировка) ── */
.segment-control {
  display: flex;
  background: #f2f4f9;
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
}

.segment-control__btn {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.segment-control__btn.active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

/* ============================================================
   ГРАФИКИ
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
}

.chart-container--tall {
  height: 280px;
}

/* Today ribbon */
.today-ribbon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.today-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7f8fb;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.today-pill strong {
  color: var(--text-primary);
  font-weight: 800;
}

.today-pills-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(80, 65, 171, 0.06) 0%, #ffffff 60%);
  border: 1px solid rgba(80, 65, 171, 0.14);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar .btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* Compact density */
.density-compact .card {
  padding: 16px;
}

.density-compact .key-card {
  min-height: 120px;
  padding: 18px;
}

.density-compact .metric-xl {
  font-size: 36px;
}

.density-compact .metric-lg {
  font-size: 28px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

/* ============================================================
   УПРАЖНЕНИЯ — КАРТОЧКИ
   ============================================================ */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.exercise-card:hover {
  border-color: var(--border-light);
}

.exercise-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.exercise-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.exercise-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.exercise-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exercise-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.exercise-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
  white-space: nowrap;
}

.exercise-muscle-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 141, 228, 0.15);
  color: var(--blue);
  border: 1px solid rgba(79, 141, 228, 0.25);
  margin-right: 4px;
  margin-top: 4px;
}

.exercise-chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.exercise-card.active .exercise-chevron {
  transform: rotate(180deg);
}

/* Тело карточки упражнения */
.exercise-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.exercise-card.active .exercise-body {
  display: block;
}

.exercise-progress.weight-badge {
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.exercise-progression {
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.2);
  color: var(--accent);
}

.exercise-progression--orange {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.2);
  color: var(--orange);
}

.exercise-progression--blue {
  background: rgba(79, 141, 228, 0.1);
  border-color: rgba(79, 141, 228, 0.2);
  color: var(--blue);
}

.exercise-progression--purple {
  background: rgba(155, 89, 182, 0.1);
  border-color: rgba(155, 89, 182, 0.2);
  color: var(--purple);
}

/* Подходы */
.sets-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}

.sets-table th {
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sets-table td {
  padding: 6px 8px;
}

.set-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.set-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.set-num.done {
  background: var(--accent);
  color: #fff;
}

.set-input {
  width: 72px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 15px;
  text-align: center;
  transition: all var(--transition);
}

.set-input:focus {
  border-color: var(--accent);
}

.set-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.set-done-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
}

.set-done-btn.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rest-btn {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(79, 141, 228, 0.12);
  border: 1px solid rgba(79, 141, 228, 0.25);
  color: var(--blue);
  font-weight: 600;
  margin-left: auto;
}

/* ============================================================
   СООТНОШЕНИЕ (вес → цель)
   ============================================================ */
.weight-goal-bar {
  position: relative;
  height: 40px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.weight-goal-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--accent) 100%);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.weight-markers {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   ТАЙМЕР ОТДЫХА
   ============================================================ */
.rest-timer {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 32px);
  max-width: 440px;
}

.rest-timer__inner {
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent);
}

.rest-timer__title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rest-timer__time {
  font-size: 64px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.rest-timer__controls {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.rest-timer__controls .btn {
  flex: 1;
}

.rest-timer__controls .btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.hidden {
  display: none !important;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
  white-space: nowrap;
}

.toast.success {
  border-color: var(--accent);
  color: var(--accent);
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================================
   СТРАНИЦА DASHBOARD
   ============================================================ */
.hero-weight {
  background: linear-gradient(180deg, rgba(210, 233, 233, 0.45) 0%, #ffffff 55%);
  border: 1px solid rgba(80, 65, 171, 0.16);
  border-radius: 22px;
  padding: 18px 18px 16px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.hero-weight .weight-goal-bar {
  height: 14px;
  margin: 12px 0 8px;
}

.hero-weight .weight-goal-fill {
  font-size: 10px;
  padding-right: 8px;
}

.hero-weight .weight-markers {
  font-size: 10px;
}

.hero-weight::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 65, 171, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-weight__label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.hero-weight__value {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-weight__unit {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-weight__goal {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.hero-weight__goal span {
  color: var(--accent);
  font-weight: 700;
}

.hero-weight__diff {
  display: inline-block;
  background: rgba(241, 82, 35, 0.12);
  color: var(--orange);
  border: 1px solid rgba(241, 82, 35, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.ai-coach-card {
  background: linear-gradient(180deg, rgba(80, 65, 171, 0.08) 0%, #ffffff 60%);
  border: 1px solid rgba(80, 65, 171, 0.18);
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.ai-coach-card::before {
  content: '✨';
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 64px;
  opacity: 0.08;
  transform: rotate(15deg);
}

.weight-goal-bar {
  background: rgba(17, 24, 39, 0.06);
}

.weight-goal-fill {
  background: linear-gradient(90deg, #5041ab 0%, #f15223 100%);
}

.today-workout-card {
  background: linear-gradient(135deg, rgba(80, 65, 171, 0.12) 0%, rgba(241, 82, 35, 0.12) 100%);
  border: 1px solid rgba(80, 65, 171, 0.22);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.today-workout-card .label {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.today-workout-card .title {
  font-size: 20px;
  font-weight: 800;
  margin-top: 6px;
}

.today-workout-card .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Today widget */
.today-widget {
  padding: 20px;
}

.today-widget {
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.today-widget__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.today-widget__title {
  font-size: 16px;
  font-weight: 800;
}

.today-widget__meta {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.today-widget__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.today-widget__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
}

.today-widget__content .mini-stat {
  padding: 10px 0;
}

.today-widget__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.today-widget__value {
  font-size: 28px;
  font-weight: 900;
  margin-top: 6px;
}

.today-widget__desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.today-widget__stats .mini-stat {
  padding: 8px 0;
}

.today-widget__stats .mini-stat__value {
  font-size: 16px;
}

@media (max-width: 900px) {
  .today-widget__content {
    grid-template-columns: 1fr;
  }

  .today-widget__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   СТРАНИЦА УПРАЖНЕНИЯ
   ============================================================ */
.exercise-page-hero {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  background: var(--bg-card);
}

.exercise-page-hero-placeholder {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px dashed var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.top-bar {
  height: var(--top-bar-height);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -webkit-text-fill-color: transparent;
}

.exercise-page-hero-placeholder:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.exercise-page-hero-placeholder .icon {
  font-size: 36px;
}

/* ============================================================
   СТРАНИЦА ВОССТАНОВЛЕНИЯ
   ============================================================ */
.energy-slider-val {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  letter-spacing: -2px;
  transition: color var(--transition);
}

/* ============================================================
   УТИЛИТЫ
   ============================================================ */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-orange {
  color: var(--orange);
}

.text-blue {
  color: var(--blue);
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-sm {
  font-size: 13px;
}

.text-xs {
  font-size: 11px;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.page-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.relative {
  position: relative;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.section-title {
  color: var(--text-secondary);
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 26px 0 12px;
}

.section-title+.card {
  margin-top: 4px;
}

/* Metric unification for common blocks */
.card-value {
  font-size: inherit;
}

.stat-card__value {
  font-size: inherit;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

/* Метка поверх числа */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-orange {
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.badge-blue {
  background: rgba(79, 141, 228, 0.15);
  color: var(--blue);
  border: 1px solid rgba(79, 141, 228, 0.3);
}

/* Прогресс тренировки */
.workout-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.workout-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.day-item__icon .icon {
  width: 16px;
  height: 16px;
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-area:hover {
  border-color: var(--accent);
}

.upload-area input {
  display: none;
}

/* ============================================================
   DESKTOP RESPONSIVE
   ============================================================ */
.grid {
  display: grid;
}

/* Desktop layout removed for mobile-only */



/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.6px;
}

/* Unified list/table look */
.list-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.list-card__title {
  font-weight: 700;
  font-size: 14px;
}

.list-card__meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.list-card__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  background: #fff;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
}

.achievement-card.achieved {
  border-color: rgba(0, 212, 170, 0.4);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.3);
}

.achievement-title {
  font-weight: 800;
  font-size: 13px;
}

.achievement-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Alerts */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

.alert-error {
  background: rgba(255, 99, 71, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 99, 71, 0.4);
}

/* Progress rows */
.progress-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-bar {
  height: 8px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 100%);
}

.progress-value {
  font-size: 12px;
  text-align: right;
  color: var(--text-secondary);
}

/* Heatmap */
.heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.heat-cell {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.06);
}

/* Challenge steps */
.challenge-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.challenge-step {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-secondary);
}

.challenge-step.done {
  border-color: rgba(0, 212, 170, 0.4);
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
}



/* Premium dashboard/workouts pass */
.ai-coach-card::before {
  content: '';
  width: 180px;
  height: 180px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  opacity: 1;
  background: radial-gradient(circle, rgba(241, 82, 35, 0.18) 0%, rgba(80, 65, 171, 0.08) 42%, transparent 72%);
}

.ai-coach-bubble {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(80, 65, 171, 0.14);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-primary);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  margin-top: 14px;
  backdrop-filter: blur(12px);
}

.ai-coach-bubble::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.95);
}

.ai-coach-text {
  white-space: pre-wrap;
}

.dashboard-chart-card {
  min-height: 320px;
  padding: 22px;
}

.dashboard-chart-card .chart-container {
  height: 240px;
}

.dashboard-aside,
.workouts-aside {
  display: grid;
  gap: 16px;
}

.dashboard-aside-card,
.workouts-aside-card {
  padding: 22px;
  border-radius: 22px;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.workouts-mode-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 249, 255, 0.96) 100%);
}

.workouts-hero-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.program-card {
  padding: 18px 18px;
  border-radius: 18px;
}

.program-card .btn,
.dashboard-action-grid .btn {
  width: 100%;
  justify-content: center;
}

.workouts-layout .list-card {
  padding: 16px 18px;
  border-radius: 18px;
}

.workouts-layout .section-title,
.dashboard-layout .section-title {
  margin-top: 6px;
  margin-bottom: 14px;
}

.workouts-layout .page-header,
.dashboard-layout .page-header,
.weekly-shell .page-header,
.meal-plan-shell .page-header {
  margin-bottom: 28px;
}

.workouts-layout .card-title,
.dashboard-layout .card-title,
.weekly-shell .card-title,
.meal-plan-shell .card-title {
  font-size: 16px;
  font-weight: 800;
}

.workouts-layout .text-sm,
.dashboard-layout .text-sm,
.weekly-shell .text-sm,
.meal-plan-shell .text-sm {
  line-height: 1.55;
}

/* Share Card & Social */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.share-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: white;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 141, 228, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.share-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.share-card__logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #4f8de4;
}

.share-card__date {
  font-size: 14px;
  opacity: 0.6;
}

.share-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.share-card__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.share-card__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fb923c;
  margin-bottom: 40px;
}

.share-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.share-card__stat-label {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.5;
  margin-bottom: 4px;
}

.share-card__stat-value {
  font-size: 18px;
  font-weight: 800;
}

.share-card__footer {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
  position: relative;
}

.badge-orange {
  background: #fb923c;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Quick Log Actions on Dashboard */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Dashboard V3 - Clean & Premium Light */
.dash-rings-card {
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(47, 123, 255, 0.12) 0%, rgba(47, 123, 255, 0) 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(80, 65, 171, 0.12) 0%, rgba(80, 65, 171, 0) 60%),
    linear-gradient(160deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(79, 141, 228, 0.14);
}

.dash-rings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-rings-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: var(--accent);
}

.dash-rings-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.dash-rings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ring-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ring-container--metric {
  padding: 10px 6px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(79, 141, 228, 0.1);
}

.ring-shell {
  position: relative;
  width: 92px;
  height: 92px;
}

.ring-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-value {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.ring-unit {
  margin-top: 3px;
  font-size: 8px;
  opacity: 0.62;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: var(--text-secondary);
}

.ring-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ring-progress {
  font-size: 10px;
  font-weight: 900;
  color: var(--accent);
  background: rgba(79, 141, 228, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  line-height: 1;
}

.bio-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.bio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 141, 228, 0.12);
}

.bio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.bio-card--water {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(47, 123, 255, 0.13) 0%, rgba(47, 123, 255, 0) 58%),
    linear-gradient(155deg, #ffffff 0%, #f2f7ff 100%);
}

.bio-card--summer {
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(80, 65, 171, 0.12) 0%, rgba(80, 65, 171, 0) 62%),
    linear-gradient(160deg, #ffffff 0%, #f8f6ff 100%);
}

.bio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bio-card-title {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--accent);
}

.bio-card-icon {
  font-size: 18px;
  color: var(--accent);
}

.bio-water-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-water-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.bio-water-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--text-primary);
}

.bio-water-unit {
  font-size: 8px;
  opacity: 0.6;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.bio-water-target {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-bottom: 10px;
}

.bio-water-actions {
  display: flex;
  gap: 8px;
}

.bio-water-btn {
  min-width: 46px;
  height: 36px;
  background: #edf3ff;
  color: var(--blue);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  border: 1px solid rgba(47, 123, 255, 0.14);
}

.bio-proj-value {
  font-size: 26px;
  font-weight: 950;
  color: var(--text-primary);
  line-height: 1;
}

.bio-proj-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.bio-proj-trend {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
}

.bio-proj-trend.is-down {
  color: #00a37a;
}

.bio-proj-trend.is-up {
  color: #ef4444;
}

.bio-proj-meta {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 700;
}

.bio-proj-empty {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.action-card {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(79, 141, 228, 0.09) 0%, rgba(79, 141, 228, 0) 62%),
    linear-gradient(160deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(79, 141, 228, 0.14);
  border-radius: 20px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.05);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.action-card:active {
  transform: scale(0.95);
}

.action-card i {
  font-size: 22px;
  color: var(--accent);
}

.action-card span {
  font-size: 11px;
  font-weight: 800;
  color: #4f5b6b;
  text-align: center;
}

:root.theme-dark .dash-rings-card,
:root.theme-dark .bio-card,
:root.theme-dark .action-card {
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.45);
}

:root.theme-dark .dash-rings-card {
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(47, 123, 255, 0.24) 0%, rgba(47, 123, 255, 0) 60%),
    linear-gradient(160deg, #111c32 0%, #15233c 100%);
}

:root.theme-dark .ring-container--metric {
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(148, 163, 184, 0.22);
}

:root.theme-dark .ring-value {
  color: #f8fafc;
}

:root.theme-dark .ring-unit,
:root.theme-dark .ring-label,
:root.theme-dark .dash-rings-subtitle,
:root.theme-dark .bio-water-target,
:root.theme-dark .bio-proj-date,
:root.theme-dark .bio-proj-meta,
:root.theme-dark .bio-proj-empty {
  color: #cbd5e1;
}

:root.theme-dark .bio-card--water {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(47, 123, 255, 0.22) 0%, rgba(47, 123, 255, 0) 58%),
    linear-gradient(160deg, #111c32 0%, #162742 100%);
}

:root.theme-dark .bio-card--summer {
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(80, 65, 171, 0.22) 0%, rgba(80, 65, 171, 0) 62%),
    linear-gradient(160deg, #12182f 0%, #1a2240 100%);
}

:root.theme-dark .bio-water-btn {
  background: rgba(47, 123, 255, 0.18);
  border-color: rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
}

:root.theme-dark .action-card {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(79, 141, 228, 0.16) 0%, rgba(79, 141, 228, 0) 62%),
    linear-gradient(160deg, #172136 0%, #1c273f 100%);
}

:root.theme-dark .action-card span {
  color: #dbe3f0;
}

@media (max-width: 420px) {
  .dash-rings-grid {
    gap: 8px;
  }

  .ring-shell {
    width: 84px;
    height: 84px;
  }

  .ring-value {
    font-size: 16px;
  }

  .bio-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 880px) {
  .action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.coach-card-v3 {
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(47, 123, 255, 0.28) 0%, rgba(47, 123, 255, 0) 50%),
    radial-gradient(140% 140% at 100% 100%, rgba(80, 65, 171, 0.26) 0%, rgba(80, 65, 171, 0) 52%),
    linear-gradient(145deg, #0d1428 0%, #13203a 50%, #0d172f 100%);
  color: #fff;
  border-radius: 34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(2, 8, 23, 0.38);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.coach-card-v3::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.coach-v4-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.coach-v4-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coach-v4-logo i {
  font-size: 24px;
  color: #dbeafe;
}

.coach-v4-brand {
  min-width: 0;
  flex: 1;
}

.coach-v4-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.coach-v4-subtitle {
  margin-top: 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
}

.coach-v4-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(0, 212, 170, 0.14);
  color: #a7f3d0;
  border: 1px solid rgba(0, 212, 170, 0.3);
  flex-shrink: 0;
}

.coach-v4-state i {
  font-size: 14px;
}

.coach-v4-state.is-loading {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.24);
}

.coach-v4-response {
  background: rgba(7, 14, 33, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: 16px 16px 17px;
  margin-bottom: 14px;
}

.coach-v4-response-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: rgba(191, 219, 254, 0.85);
  margin-bottom: 8px;
}

.coach-v4-response-text {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
}

.coach-v4-empty {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.coach-v4-input-wrap {
  position: relative;
  margin-bottom: 12px;
}

.coach-v4-send-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(2, 8, 23, 0.35);
  transition: var(--transition);
}

.coach-v4-send-btn i {
  font-size: 18px;
}

.coach-v4-send-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.coach-v4-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ai-pulse-icon {
  animation: ai-glow-pulse 2s ease-in-out infinite;
}

@keyframes ai-glow-pulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(79, 141, 228, 0.8));
  }

  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(79, 141, 228, 1));
  }
}

.ai-input-v4 {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 13px 52px 13px 14px;
  color: white;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: var(--transition);
  letter-spacing: 0.1px;
}

.ai-input-v4::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.ai-input-v4:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.ai-btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.ai-btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.ai-btn-glass:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-btn-glass--active {
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
  color: #1d2a4d;
  border-color: transparent;
}

@media (max-width: 400px) {
  .coach-card-v3 {
    border-radius: 28px;
    padding: 18px;
  }

  .coach-v4-title {
    font-size: 20px;
  }

  .coach-v4-state {
    padding: 4px 8px;
    font-size: 10px;
  }

  .coach-v4-response-text {
    font-size: 14px;
  }

  .ai-btn-glass {
    font-size: 11px;
    padding: 9px 6px;
  }
}

.streak-badge-v3 {
  background: rgba(241, 82, 35, 0.1);
  color: var(--orange);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Achievements 2.0 - Hall of Fame */
.reward-glass {
  background: rgb(229 225 34 / 15%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.reward-glass:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.badge-bronze {
  border-bottom: 3px solid #cd7f32;
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.1);
}

.badge-silver {
  border-bottom: 3px solid #c0c0c0;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.1);
}

.badge-gold {
  border-bottom: 3px solid #ffd700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.badge-legendary {
  border-bottom: 3px solid #a855f7;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.3);
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 50%;
  height: 300%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    top: -100%;
    left: -100%;
  }

  20%,
  100% {
    top: 100%;
    left: 100%;
  }
}

.level-pnl-v2 {
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(79, 141, 228, 0.2);
}

.level-pnl-v2::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.record-item-v2 {
  padding: 12px 16px;
  border-radius: 16px;
  background: #f8fafc;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.record-item-v2:hover {
  background: #f1f5f9;
}

/* Nutrition 3.0 - ChefAI Hub */
.macro-rings-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 140px;
  height: 140px;
}

.macro-ring-svg {
  position: absolute;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.nutrition-hero-v3 {
  background: white;
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.meal-timeline-v3 {
  position: relative;
  padding-left: 32px;
}

.meal-timeline-v3::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: #f1f5f9;
}

.meal-timeline-item-v3 {
  position: relative;
  margin-bottom: 24px;
}

.meal-timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--accent);
  z-index: 1;
}

.chef-ai-bubble {
  background: rgba(14, 165, 164, 0.06);
  border: 1px solid rgba(14, 165, 164, 0.1);
  border-radius: 20px 20px 20px 4px;
  padding: 16px;
  color: #0ea5a4;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}

.chef-ai-bubble::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-left: 1px solid rgba(14, 165, 164, 0.1);
  border-bottom: 1px solid rgba(14, 165, 164, 0.1);
  transform: skewX(-45deg);
}

/* Elite Constructor & Architect Utils */
.active-scale:active {
  transform: scale(0.96);
}

.animate-slideUp {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Workout Footer Timer */
.workout-footer-timer {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px);
  left: 16px;
  right: 16px;
  max-width: 448px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-radius: 24px;
  padding: 14px;
  color: white;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.timer-icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent);
}

.timer-label {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.timer-countdown {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@keyframes slideUp {
  from {
    transform: translateY(120%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slideUp {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}


/* --- Settings Premium Styles --- */
.settings-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 40px;
  background: var(--bg-secondary);
  border: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-avatar-wrap i {
  font-size: 50px;
  color: var(--text-muted);
}

.avatar-edit-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform var(--transition);
}

.avatar-edit-badge:hover {
  transform: scale(1.1);
}

.avatar-edit-badge input {
  display: none;
}

.grid-measurements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.measurement-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.measurement-item label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.measurement-item input {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  width: 100%;
}

.btn-outline-accent {
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.danger-zone-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1.5px dashed rgba(239, 68, 68, 0.3);
  border-radius: 20px;
}

.btn-outline-error {
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 700;
}

.glass-modal {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}


/* ============================================================
   ADDITIONAL INTERFACE STYLES
   ============================================================ */

.nav-more-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-more-item:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.05);
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.workout-progress-bar {
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.workout-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NAVIGATION MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-content {
  background: var(--card-bg);
  width: 100%;
  max-width: 480px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

@media (min-width: 481px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }

  .modal-content {
    border-radius: 32px;
  }
}

.animate-slideUp {
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Constructor Premium ── */
.constructor-pill {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.constructor-pill:focus-within {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.constructor-pill__label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  letter-spacing: 0.5px;
}

.constructor-pill__input {
  font-size: 16px;
  font-weight: 900;
  width: 100%;
  color: var(--text-primary);
}

/* Public Landing */
.landing-page {
  min-height: 100vh;
  padding: 24px 16px 36px;
  background:
    radial-gradient(900px 560px at -10% -10%, rgba(47, 123, 255, 0.22), transparent 55%),
    radial-gradient(800px 540px at 110% 0%, rgba(0, 185, 148, 0.18), transparent 58%),
    radial-gradient(700px 500px at 50% 120%, rgba(241, 82, 35, 0.14), transparent 60%),
    #f6f9ff;
}

.landing-hero {
  background: linear-gradient(135deg, #1f2f57 0%, #2957b9 50%, #0f9f93 100%);
  border-radius: 32px;
  padding: 24px 20px;
  color: #fff;
  box-shadow: 0 24px 48px rgba(30, 58, 138, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.landing-brand__logo {
  width: 60px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.landing-brand__name {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.3px;
}

.landing-brand__sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.landing-hero__title {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  font-weight: 900;
}

.landing-hero__title span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
}

.landing-hero__subtitle {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.landing-hero__actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.landing-hero__actions .btn {
  min-height: 44px;
  border-radius: 14px;
  justify-content: center;
  font-weight: 800;
}

.landing-showcase {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.landing-section {
  margin-top: 16px;
}

.landing-section__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #334155;
  margin: 0 4px 10px;
}

.landing-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.landing-card--accent {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(236, 246, 255, 0.95) 100%);
  border-color: rgba(47, 123, 255, 0.22);
}

.landing-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 123, 255, 0.14);
  color: #1d4ed8;
  font-size: 20px;
}

.landing-card h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: #0f172a;
}

.landing-card p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.landing-examples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.landing-exercise {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.landing-exercise__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-exercise__name {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.landing-exercise__mode {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(47, 123, 255, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(47, 123, 255, 0.24);
}

.landing-exercise__meta {
  margin-top: 7px;
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

.landing-exercise__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.landing-exercise__chips span {
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: rgba(15, 23, 42, 0.06);
}

.landing-flow {
  display: grid;
  gap: 10px;
}

.landing-flow__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.landing-flow__num {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f9f93 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

.landing-flow__title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.landing-flow__text {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.landing-proof {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.landing-proof__metric {
  border-radius: 16px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
}

.landing-proof__value {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: #1f2f57;
}

.landing-proof__label {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  color: #64748b;
}

.landing-cta {
  margin-top: 16px;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.landing-cta__logo {
  width: 88px;
  height: 52px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.landing-cta__title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
}

.landing-cta__text {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
}

@media (min-width: 420px) {
  .landing-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px;
}

.catalog-item {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.catalog-item:active {
  transform: scale(0.96);
}

.catalog-item__media {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  overflow: hidden;
}

.catalog-item__info {
  padding: 10px;
}

.catalog-item__name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  height: 28px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
