/* ============================================================
   omniOne: Module showcase section.
   Four product modules (Training · Nutrition · Supplements ·
   Check-ins), each with a concrete on-brand mini-mock.
   ============================================================ */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.module-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--c-300); }
.module-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.module-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
}
.module-icon svg { width: 23px; height: 23px; }
.module-icon.orange { background: var(--orange); }
.module-icon.green  { background: var(--green); }
.module-icon.violet { background: var(--violet); }
.module-icon.sky    { background: var(--sky); }
.module-title { display: grid; gap: 3px; }
.module-title strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.module-title .mtag {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-500);
}
.module-desc { margin: 0 0 18px; color: var(--c-600); line-height: 1.6; }
.module-mock {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-inset);
  font-size: 13px;
}

/* ---- Training mini-mock ---- */
.mm-train .tp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mm-train .tp-head b { font-size: 0.84rem; color: var(--c-900); font-weight: 600; white-space: nowrap; }
.mm-chip {
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: var(--orange-bg); color: var(--orange-text);
}
.tp-row {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.tp-row:first-of-type { border-top: 0; }
.tp-row .n {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--glass-card);
  color: var(--c-500);
  font-size: 0.7rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tp-row .nm { font-size: 0.82rem; color: var(--c-800); font-weight: 500; }
.tp-pills { display: flex; gap: 5px; }
.tp-pills span {
  font-size: 0.64rem; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  color: var(--c-600);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---- Nutrition mini-mock ---- */
.mm-nut .kcal { display: flex; align-items: baseline; justify-content: space-between; }
.mm-nut .kcal .lab { font-size: 0.72rem; color: var(--c-500); font-weight: 600; }
.mm-nut .kcal b {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem; color: var(--c-900);
  font-variant-numeric: tabular-nums;
}
.mm-nut .kcal b em { font-style: normal; font-size: 0.7rem; color: var(--c-500); }
.macrobar { display: flex; height: 10px; margin: 13px 0 11px; border-radius: 999px; overflow: hidden; background: var(--glass-card); }
.macrobar i { display: block; height: 100%; }
.macrobar .p { background: var(--sky); }
.macrobar .c { background: var(--amber); }
.macrobar .f { background: var(--violet); }
.macro-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 6px; }
.macro-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--c-600); font-weight: 500; }
.macro-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; }
.macro-legend .lp::before { background: var(--sky); }
.macro-legend .lc::before { background: var(--amber); }
.macro-legend .lf::before { background: var(--violet); }
.macro-legend b { color: var(--c-900); font-variant-numeric: tabular-nums; }

/* ---- Supplements mini-mock ---- */
.supp-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
}
.supp-row:first-of-type { border-top: 0; }
.supp-ic {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--violet);
}
:root[data-theme="dark"] .supp-ic { color: #c4b5fd; }
.supp-ic svg { width: 15px; height: 15px; }
.supp-nm { flex: 1; min-width: 0; }
.supp-nm b { display: block; font-size: 0.82rem; color: var(--c-800); font-weight: 600; }
.supp-nm span { font-size: 0.72rem; color: var(--c-500); font-variant-numeric: tabular-nums; }
.supp-when {
  font-size: 0.64rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  color: var(--c-600);
  white-space: nowrap;
}

/* ---- Check-ins mini-mock ---- */
.chk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.chk-weight { display: flex; align-items: baseline; gap: 8px; }
.chk-weight .lab { font-size: 0.72rem; color: var(--c-500); font-weight: 600; }
.chk-weight b {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.5rem; color: var(--c-900);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chk-weight .delta {
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 7px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-text);
  font-variant-numeric: tabular-nums;
}
.chk-phase {
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--sky-bg); color: var(--sky-dark);
}
.scale { margin: 9px 0; }
.scale .lab { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.72rem; color: var(--c-600); }
.scale .lab b { color: var(--c-800); font-variant-numeric: tabular-nums; }
.scale .track { height: 6px; border-radius: 999px; background: var(--glass-card); overflow: hidden; }
.scale .fill { height: 100%; border-radius: 999px; background: var(--sky); }
.chk-adh {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px solid var(--hairline);
  font-size: 0.74rem; color: var(--c-600); font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1040px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* ---- Goals: full-width "New" feature card ---- */
.module-card.wide { grid-column: 1 / -1; }
.mt-row { display: flex; align-items: center; gap: 10px; }
.mod-new {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: var(--brand-gradient); color: #062033;
}
@media (min-width: 1041px) {
  .module-card.wide { flex-direction: row; align-items: center; gap: 36px; }
  .module-card.wide .mod-info { flex: 1; }
  .module-card.wide .mod-info .module-desc { margin-bottom: 0; }
  .module-card.wide .module-mock { flex: 1; margin-top: 0; max-width: 480px; }
}

.mm-goal .goal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.mm-goal .goal-head b { font-size: 0.95rem; color: var(--c-900); font-weight: 600; white-space: nowrap; }
.goal-status {
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-text);
}
.goal-due { font-size: 0.75rem; color: var(--c-500); margin-bottom: 14px; }
.goal-prog .lab { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.75rem; color: var(--c-600); }
.goal-prog .lab b { color: var(--c-900); font-variant-numeric: tabular-nums; }
.goal-prog .track { height: 7px; border-radius: 999px; background: var(--glass-card); overflow: hidden; }
.goal-prog .fill { height: 100%; border-radius: 999px; background: var(--brand-gradient); }
.goal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0 0; }
.goal-metrics span {
  display: grid; gap: 3px;
  padding: 10px; border-radius: 11px;
  border: 1px solid var(--glass-border); background: var(--glass-card);
  text-align: center; font-size: 0.68rem; color: var(--c-500);
}
.goal-metrics b {
  font-family: "Libre Baskerville", Georgia, serif; font-weight: 400;
  font-size: 1.15rem; color: var(--c-900); font-variant-numeric: tabular-nums;
}
.goal-event { margin-top: 12px; font-size: 0.72rem; color: var(--c-500); }

/* ---- Questionnaire mini-mock ---- */
.mm-quiz .quiz-q {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-500);
  margin-bottom: 8px;
}
.mm-quiz .quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mm-quiz .quiz-opts span {
  font-size: 0.74rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  color: var(--c-600);
}
.mm-quiz .quiz-opts span.sel {
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--green-bg);
  color: var(--green-text);
}
.mm-quiz .quiz-ans {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  font-size: 0.82rem; color: var(--c-800); font-weight: 500;
}
.mm-quiz .quiz-ans svg { width: 15px; height: 15px; color: var(--green-text); flex: none; }

/* ---- Chat mini-mock ---- */
.mm-chatmod { display: grid; gap: 9px; }
.cm-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--c-800);
}
.cm-bubble.peer { justify-self: start; background: rgba(14,165,233,0.13); border-bottom-left-radius: 4px; }
.cm-bubble.self { justify-self: end; background: rgba(249,115,22,0.16); border-bottom-right-radius: 4px; }
