﻿/* ==========================================
   OUR FITNESS JOURNEY
   TASSYA : WHITE + MAHOGANY
   ARIF   : WHITE + NAVY
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;

  --primary: #6f2f35;
  --primary-dark: #542127;
  --primary-soft: #f3e8e8;

  --secondary: #a77979;
  --secondary-soft: #f7eeee;

  --text: #292725;
  --muted: #898581;

  --border: #ebe7e3;
  --input-bg: #faf9f7;
  --hero-bg: #fcfaf9;

  --nav-bg: rgba(255, 255, 255, 0.96);

  --shadow:
    0 12px 35px rgba(40, 32, 30, 0.06);

  --radius: 22px;
}


/* ==========================================
   TASSYA THEME
========================================== */

body.theme-tassya {
  --bg: #f8f6f4;
  --surface: #ffffff;

  --primary: #6b2d34;
  --primary-dark: #512027;
  --primary-soft: #f2e5e6;

  --secondary: #9a6266;
  --secondary-soft: #f7eeee;

  --text: #2d2726;
  --muted: #8c8280;

  --border: #eadfdd;
  --input-bg: #fcf9f8;
  --hero-bg: #fbf7f6;

  --nav-bg: rgba(255, 255, 255, 0.96);

  --shadow:
    0 12px 35px rgba(82, 32, 39, 0.07);
}


/* ==========================================
   ARIF THEME
========================================== */

body.theme-arif {
  --bg: #f5f7fa;
  --surface: #ffffff;

  --primary: #183153;
  --primary-dark: #10243f;
  --primary-soft: #e8edf4;

  --secondary: #526b89;
  --secondary-soft: #eef2f6;

  --text: #202833;
  --muted: #7b8490;

  --border: #e1e6ec;
  --input-bg: #f8fafc;
  --hero-bg: #f7f9fc;

  --nav-bg: rgba(255, 255, 255, 0.96);

  --shadow:
    0 12px 35px rgba(16, 36, 63, 0.07);
}


/* ==========================================
   BODY
========================================== */

body {
  margin: 0;

  background: var(--bg);
  color: var(--text);

  font-family:
  system-ui,
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  Roboto,
  Arial,
  sans-serif;

  font-size: 14px;

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

button,
input,
textarea {
  font-family: inherit;
}


/* ==========================================
   APP
========================================== */

.app-shell {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;

  margin: 0 auto;

  padding-bottom: 105px;

  background: var(--bg);

  transition:
    background 0.25s ease;
}


/* ==========================================
   HEADER
========================================== */

.top-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  padding:
    27px
    19px
    17px;
}

.eyebrow {
  margin:
    0
    0
    7px;

  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 1.5px;
}

.top-header h1 {
  margin: 0;

  color: var(--text);

  font-size: 26px;
  line-height: 1.1;

  letter-spacing: -0.7px;
}

.header-subtitle {
  margin:
    7px
    0
    0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.45;
}

.profile-avatar {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 41px;
  height: 41px;

  flex:
    0
    0
    41px;

  border: 0;
  border-radius: 50%;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 17px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.profile-avatar:active {
  transform: scale(0.95);
}


/* ==========================================
   CONTENT
========================================== */

.main-content {
  padding:
    0
    15px;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}


/* ==========================================
   CARDS
========================================== */

.hero-card,
.section-card,
.couple-card {
  margin-bottom: 14px;

  padding: 18px;

  border:
    1px solid
    var(--border);

  border-radius: var(--radius);

  background: var(--surface);

  box-shadow: var(--shadow);
}

.hero-card {
  background: var(--hero-bg);
}

.hero-top,
.section-heading {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;
}

.card-label {
  margin:
    0
    0
    6px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 1.35px;
}

.hero-card h2,
.section-card h3 {
  margin: 0;

  color: var(--text);

  font-size: 18px;
  line-height: 1.3;
}

.program-badge {
  padding:
    7px
    10px;

  border-radius: 100px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  white-space: nowrap;
}

.mini-icon {
  font-size: 19px;
}

.hidden {
  display: none !important;
}


/* ==========================================
   WEIGHT
========================================== */

.weight-main {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 15px;

  margin-top: 22px;
}

.big-number {
  color: var(--text);

  font-size: 42px;
  font-weight: 700;

  letter-spacing: -1.7px;
}

.unit {
  color: var(--muted);

  font-size: 15px;
}

.weight-main p {
  margin:
    3px
    0
    0;

  color: var(--muted);

  font-size: 12px;
}

.goal-box {
  text-align: right;
}

.goal-box span,
.goal-box small {
  display: block;

  color: var(--muted);

  font-size: 11px;
}

.goal-box strong {
  color: var(--primary);

  font-size: 23px;
}

.progress-track {
  width: 100%;
  height: 7px;

  margin-top: 20px;

  overflow: hidden;

  border-radius: 100px;

  background: var(--primary-soft);
}

.progress-fill {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: var(--primary);

  transition:
    width 0.4s ease;
}

.progress-info {
  display: flex;

  justify-content: space-between;

  gap: 12px;

  margin-top: 10px;

  color: var(--muted);

  font-size: 11px;
}

.progress-info strong {
  color: var(--text);
}


/* ==========================================
   INPUT
========================================== */

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 650;
}

input,
textarea {
  width: 100%;

  outline: none;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background: var(--input-bg);
  color: var(--text);

  font-size: 14px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input {
  height: 44px;

  padding:
    11px
    13px;
}

textarea {
  min-height: 90px;

  padding:
    12px
    13px;

  resize: vertical;

  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--primary);

  box-shadow:
    0
    0
    0
    3px
    var(--primary-soft);
}

.weight-input-row {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 15px;
}

.weight-input-row input {
  flex: 1;
  min-width: 0;
}

.weight-input-row span {
  color: var(--muted);

  font-size: 13px;
}

.two-inputs {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 12px;

  margin-top: 16px;
}

.two-inputs > * {
  min-width: 0;
}

.input-with-unit {
  position: relative;

  min-width: 0;
}

.input-with-unit input {
  min-width: 0;

  padding-right: 44px;
}

.input-with-unit span {
  position: absolute;

  top: 50%;
  right: 13px;

  transform:
    translateY(-50%);

  color: var(--muted);

  font-size: 11px;

  pointer-events: none;
}

.optional-label {
  color: var(--muted);

  font-weight: 400;
}


/* ==========================================
   BUTTONS
========================================== */

.primary-btn,
.secondary-btn,
.small-primary-btn {
  border: 0;

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.primary-btn:active,
.secondary-btn:active,
.small-primary-btn:active {
  transform: scale(0.985);
}

.primary-btn {
  width: 100%;

  padding: 14px;

  border-radius: 14px;

  background: var(--primary);
  color: #ffffff;
}

.secondary-btn {
  width: 100%;

  margin-top: 14px;

  padding: 13px;

  border:
    1px solid
    var(--primary-soft);

  border-radius: 14px;

  background: var(--primary-soft);
  color: var(--primary);
}

.small-primary-btn {
  padding:
    12px
    16px;

  border-radius: 13px;

  background: var(--primary);
  color: #ffffff;

  white-space: nowrap;
}


/* ==========================================
   HELPER
========================================== */

.helper {
  margin:
    9px
    0
    0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.55;
}

.form-message {
  min-height: 16px;

  margin:
    10px
    0
    0;

  color: var(--primary);

  font-size: 12px;
}


/* ==========================================
   MEAL
========================================== */

.meal-time {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-top: 15px;

  padding:
    11px
    13px;

  border-radius: 13px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 12px;
}

.meal-description {
  margin-top: 13px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.65;
}

.portion-box {
  margin-top: 14px;

  padding: 14px;

  border:
    1px solid
    var(--border);

  border-radius: 16px;

  background: var(--input-bg);
}

.portion-box p {
  margin:
    0
    0
    8px;

  color: var(--primary);

  font-size: 11px;
  font-weight: 750;
}

.portion-box div {
  color: var(--text);

  font-size: 13px;
  line-height: 1.65;
}

.nutrition-line {
  display: grid;

  gap: 3px;

  padding:
    8px
    0;

  border-bottom:
    1px solid
    var(--border);
}

.nutrition-line:last-child {
  border-bottom: 0;
}

.nutrition-line span {
  color: var(--muted);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.8px;
}

.nutrition-line strong {
  color: var(--text);

  font-size: 13px;
  font-weight: 650;
}

.nutrition-line small {
  color: var(--muted);

  font-size: 11px;
}


/* ==========================================
   CHECKBOX / HABITS
========================================== */

.habit-list {
  margin-top: 12px;
}

.check-row {
  display: flex;

  align-items: center;

  gap: 10px;

  padding:
    11px
    0;

  color: var(--text);

  font-size: 13px;

  cursor: pointer;
}

.check-row input {
  display: none;
}

.custom-check {
  position: relative;

  width: 19px;
  height: 19px;

  flex:
    0
    0
    19px;

  border:
    1.5px solid
    var(--border);

  border-radius: 6px;

  background: #ffffff;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.check-row
input:checked
+
.custom-check {
  border-color: var(--primary);

  background: var(--primary);
}

.check-row
input:checked
+
.custom-check::after {
  content: "✓";

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
}


/* ==========================================
   WORKOUT — GENERAL
========================================== */

.workout-card {
  overflow: hidden;
}

.workout-area {
  margin-top: 17px;
}

.goal-highlight {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 13px;

  border-radius: 15px;

  background: var(--primary-soft);
}

.goal-highlight span {
  color: var(--primary);

  font-size: 12px;
}

.goal-highlight strong {
  color: var(--primary);

  font-size: 18px;
}

.exercise-row {
  padding:
    13px
    0;

  border-bottom:
    1px solid
    var(--border);
}

.exercise-row:last-child {
  border-bottom: 0;
}

.exercise-row strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text);

  font-size: 13px;
  line-height: 1.4;
}

.exercise-row span {
  color: var(--muted);

  font-size: 12px;
  line-height: 1.45;
}


/* ==========================================
   TASSYA — SLIM & STRONG
========================================== */

.tassya-workout-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 15px;

  padding:
    13px
    14px;

  border-radius: 16px;

  background: var(--primary-soft);
}

.workout-day-label {
  display: block;

  margin-bottom: 4px;

  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.workout-focus-title {
  display: block;

  color: var(--text);

  font-size: 14px;
  line-height: 1.35;
}

.workout-program-badge {
  flex:
    0
    0
    auto;

  padding:
    6px
    8px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--primary) 20%,
      transparent
    );

  border-radius: 100px;

  background: #ffffff;

  color: var(--primary);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.7px;

  white-space: nowrap;
}


/* ==========================================
   TASSYA EXERCISE LIST
========================================== */

.tassya-exercise-list {
  margin-top: 4px;

  border-top:
    1px solid
    var(--border);
}

.tassya-exercise-row {
  cursor: pointer;

  user-select: none;

  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.exercise-check {
  display: flex;

  align-items: center;

  gap: 12px;
}

.exercise-check > div {
  flex: 1;

  min-width: 0;
}

.exercise-check-circle {
  position: relative;

  display: block;

  width: 21px;
  height: 21px;

  flex:
    0
    0
    21px;

  border:
    1.5px solid
    var(--border);

  border-radius: 50%;

  background: #ffffff;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.tassya-exercise-row:active
.exercise-check-circle {
  transform: scale(0.9);
}

.tassya-exercise-row.completed
.exercise-check-circle {
  border-color: var(--primary);

  background: var(--primary);
}

.tassya-exercise-row.completed
.exercise-check-circle::after {
  content: "✓";

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
}

.tassya-exercise-row.completed
strong {
  color: var(--muted);

  text-decoration: line-through;
}

.tassya-exercise-row.completed
span {
  opacity: 0.75;
}


/* ==========================================
   TREADMILL TASSYA
========================================== */

.tassya-treadmill-card {
  margin-top: 15px;

  padding:
    14px;

  border:
    1px solid
    var(--border);

  border-radius: 17px;

  background: var(--input-bg);
}

.treadmill-card-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.treadmill-label {
  display: block;

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: 1px;
}

.treadmill-card-top strong {
  display: block;

  color: var(--text);

  font-size: 15px;
}

.treadmill-speed {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex:
    0
    0
    auto;

  padding:
    7px
    9px;

  border-radius: 100px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  white-space: nowrap;
}

.tassya-treadmill-card
.two-inputs {
  margin-top: 15px;
}

.tassya-treadmill-card
.field {
  margin-bottom: 0;
}


/* ==========================================
   WORKOUT NOTE
========================================== */

.workout-note {
  display: flex;

  align-items: flex-start;

  gap: 10px;

  margin-top: 15px;

  padding:
    12px
    13px;

  border:
    1px solid
    var(--border);

  border-radius: 14px;

  background: var(--surface);
}

.workout-note-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 25px;
  height: 25px;

  flex:
    0
    0
    25px;

  border-radius: 50%;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 12px;
}

.workout-note p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.55;
}


/* ==========================================
   COMPLETE WORKOUT
========================================== */

#saveWorkoutBtn {
  margin-top: 18px;
}


/* ==========================================
   ARIF WORKOUT
========================================== */

.workout-switch {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;

  padding: 5px;

  border-radius: 15px;

  background: var(--primary-soft);
}

.workout-mode {
  padding:
    10px
    8px;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color: var(--muted);

  font-size: 12px;
  font-weight: 750;

  cursor: pointer;
}

.workout-mode.active {
  background: #ffffff;
  color: var(--primary);

  box-shadow:
    0 4px 12px
    rgba(0, 0, 0, 0.05);
}

#arifWorkoutList {
  margin-top: 9px;
}


/* ==========================================
   SLEEP
========================================== */

.sleep-fixed-value {
  display: flex;

  align-items: center;

  width: 100%;
  height: 44px;

  padding:
    0
    13px;

  border:
    1px solid
    var(--border);

  border-radius: 13px;

  background: var(--input-bg);

  color: var(--text);

  font-size: 14px;
  font-weight: 650;
}

.sleep-duration {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin:
    2px
    0
    0;

  padding:
    13px
    14px;

  border-radius: 14px;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 13px;
}

.sleep-duration strong {
  font-size: 14px;
}


/* ==========================================
   PAGE TITLE
========================================== */

.page-title {
  padding:
    9px
    3px
    18px;
}

.page-title h2 {
  margin:
    0
    0
    7px;

  color: var(--text);

  font-size: 24px;

  letter-spacing: -0.4px;
}

.page-title p:last-child {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
  line-height: 1.5;
}

.center,
.center-text {
  text-align: center;
}


/* ==========================================
   UPCOMING MEALS
========================================== */

.upcoming-meals {
  display: grid;

  gap: 10px;

  margin-top: 14px;
}

.upcoming-meal-item {
  padding: 13px;

  border:
    1px solid
    var(--border);

  border-radius: 15px;

  background: var(--input-bg);
}

.upcoming-meal-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.upcoming-meal-top > span {
  color: var(--primary);

  font-size: 10px;
  font-weight: 750;

  letter-spacing: 0.8px;
}

.upcoming-meal-item h4 {
  margin:
    8px
    0
    10px;

  color: var(--text);

  font-size: 13px;
  line-height: 1.4;
}

.upcoming-meta {
  display: grid;

  grid-template-columns:
    auto
    1fr;

  align-items: baseline;

  gap:
    5px
    10px;
}

.upcoming-meta span {
  color: var(--muted);

  font-size: 10px;
}

.upcoming-meta strong {
  color: var(--text);

  font-size: 11px;
  font-weight: 650;
}

.text-btn {
  padding: 0;

  border: 0;

  background: transparent;
  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  cursor: pointer;
}


/* ==========================================
   FILTER CHIPS
========================================== */

.filter-chips {
  display: flex;

  gap: 8px;

  margin-bottom: 18px;

  overflow-x: auto;

  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex:
    0
    0
    auto;

  padding:
    9px
    13px;

  border:
    1px solid
    var(--border);

  border-radius: 100px;

  background: #ffffff;
  color: var(--muted);

  font-size: 11px;
  font-weight: 650;

  cursor: pointer;
}

.chip.active {
  border-color: var(--primary-soft);

  background: var(--primary-soft);
  color: var(--primary);
}


/* ==========================================
   RECIPE GRID
========================================== */

.recipe-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 11px;
}

.recipe-card {
  padding: 14px;

  border:
    1px solid
    var(--border);

  border-radius: 18px;

  background: #ffffff;

  cursor: pointer;

  box-shadow:
    0 5px 18px
    rgba(0, 0, 0, 0.025);
}

.recipe-card-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  margin-bottom: 13px;

  border-radius: 12px;

  background: var(--primary-soft);

  font-size: 19px;
}

.recipe-card h4 {
  margin:
    0
    0
    6px;

  color: var(--text);

  font-size: 13px;
  line-height: 1.4;
}

.recipe-card p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
  line-height: 1.45;
}


/* ==========================================
   PROGRESS SUMMARY
========================================== */

.progress-summary-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 8px;

  margin-top: 17px;
}

.progress-summary-grid > div {
  padding:
    11px
    8px;

  border-radius: 13px;

  background: var(--input-bg);

  text-align: center;
}

.progress-summary-grid small {
  display: block;

  margin-bottom: 4px;

  color: var(--muted);

  font-size: 10px;
}

.progress-summary-grid strong {
  color: var(--text);

  font-size: 13px;
}

.compact-progress-track {
  margin-top: 13px;
}

.progress-detail-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 8px;

  margin-top: 10px;
}

.progress-detail-grid > div {
  display: flex;

  justify-content: space-between;

  gap: 8px;

  padding:
    9px
    10px;

  border:
    1px solid
    var(--border);

  border-radius: 12px;
}

.progress-detail-grid span {
  color: var(--muted);

  font-size: 10px;
}

.progress-detail-grid strong {
  color: var(--text);

  font-size: 11px;
}


/* ==========================================
   WEIGHT CHART
========================================== */

.weight-chart-wrapper {
  position: relative;

  width: 100%;
  height: 245px;

  margin-top: 14px;
}

.chart-empty {
  display: grid;

  gap: 5px;

  margin-top: 13px;

  padding:
    25px
    12px;

  border:
    1px dashed
    var(--border);

  border-radius: 14px;

  text-align: center;
}

.chart-empty strong {
  color: var(--text);

  font-size: 12px;
}

.chart-empty span {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.5;
}


/* ==========================================
   WEIGHT CHECK INS
========================================== */

.weight-checkin-row,
.weight-history-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding:
    11px
    0;

  border-bottom:
    1px solid
    var(--border);
}

.weight-checkin-row:last-child,
.weight-history-row:last-child {
  border-bottom: 0;
}

.weight-checkin-date,
.weight-checkin-value {
  display: grid;

  gap: 3px;
}

.weight-checkin-value {
  text-align: right;
}

.weight-checkin-date strong,
.weight-checkin-value strong {
  color: var(--text);

  font-size: 12px;
}

.weight-checkin-date span,
.weight-history-row span {
  color: var(--muted);

  font-size: 10px;
}

.weight-history-row strong {
  color: var(--text);

  font-size: 13px;
}

.weight-difference {
  font-size: 10px;
  font-weight: 650;
}

.weight-difference.up {
  color: var(--primary);
}

.weight-difference.down {
  color: var(--secondary);
}

.weight-difference.neutral {
  color: var(--muted);
}

.progress-empty-small {
  padding:
    15px
    0;

  text-align: center;
}

.progress-empty-small p {
  margin:
    0
    0
    4px;

  color: var(--text);

  font-size: 11px;
}

.progress-empty-small span {
  color: var(--muted);

  font-size: 10px;
}


/* ==========================================
   BODY MEASUREMENTS
========================================== */

.measurement-last-date {
  margin:
    15px
    0
    9px;

  color: var(--muted);

  font-size: 11px;
}

.measurement-list {
  border-top:
    1px solid
    var(--border);
}

.measurement-row,
.measurement-change-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding:
    11px
    0;

  border-bottom:
    1px solid
    var(--border);
}

.measurement-row span,
.measurement-change-row span {
  color: var(--muted);

  font-size: 12px;
}

.measurement-row strong,
.measurement-change-row strong {
  color: var(--text);

  font-size: 13px;
}

.measurement-change-box {
  margin-top: 17px;

  padding-top: 16px;

  border-top:
    1px solid
    var(--border);
}

.measurement-change-helper {
  margin-bottom: 7px;
}

.measurement-change-list:empty {
  display: none;
}

.measurement-change-row strong {
  color: var(--primary);
}

.measurement-modal-sheet h2 {
  margin:
    0
    0
    7px;

  color: var(--text);

  font-size: 19px;
}

.measurement-form {
  margin-top: 18px;
}

.measurement-form-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap:
    0
    10px;
}


/* ==========================================
   US / COUPLE
========================================== */

.couple-card {
  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  text-align: center;
}

.couple-avatar {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  margin:
    0
    auto
    10px;

  border-radius: 50%;

  font-size: 15px;
  font-weight: 750;
}

.couple-person:first-child
.couple-avatar {
  background: #f2e5e6;
  color: #6b2d34;
}

.couple-person:nth-child(3)
.couple-avatar {
  background: #e8edf4;
  color: #183153;
}

.couple-person h3 {
  margin: 0;

  font-size: 15px;
}

.couple-person p {
  margin:
    5px
    0;

  color: var(--muted);

  font-size: 11px;
}

.couple-person strong {
  color: var(--text);

  font-size: 12px;
}

.heart-divider {
  padding:
    0
    10px;

  color: var(--primary);

  font-size: 23px;
}

.date-line {
  width: 1px;
  height: 38px;

  margin:
    10px
    0
    10px
    12px;

  background: var(--border);
}


/* ==========================================
   LOGOUT
========================================== */

.logout-btn {
  width: 100%;

  padding: 14px;

  border:
    1px solid
    var(--primary-soft);

  border-radius: 14px;

  background: transparent;
  color: var(--primary);

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;
}


/* ==========================================
   MODAL
========================================== */

.modal-overlay {
  position: fixed;

  inset: 0;

  z-index: 50;

  display: flex;

  align-items: flex-end;
  justify-content: center;

  padding: 15px;

  background:
    rgba(20, 22, 26, 0.45);
}

.modal-sheet {
  position: relative;

  width:
    min(500px, 100%);

  max-height: 85vh;

  padding: 25px;

  overflow-y: auto;

  border-radius:
    27px
    27px
    18px
    18px;

  background: #ffffff;

  box-shadow:
    0 -10px 50px
    rgba(0, 0, 0, 0.08);
}

.modal-close {
  position: absolute;

  top: 17px;
  right: 17px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 35px;
  height: 35px;

  border: 0;
  border-radius: 50%;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 20px;

  cursor: pointer;
}

.recipe-section {
  margin-top: 23px;

  padding-top: 18px;

  border-top:
    1px solid
    var(--border);
}

.recipe-section h4 {
  margin:
    0
    0
    8px;

  color: var(--primary);

  font-size: 14px;
}

.recipe-section p,
#modalRecipeDescription {
  color: var(--muted);

  font-size: 13px;
  line-height: 1.7;

  white-space: pre-line;
}


/* ==========================================
   BOTTOM NAV
========================================== */

.bottom-nav {
  position: fixed;

  bottom: 0;
  left: 50%;

  z-index: 20;

  display: grid;

  grid-template-columns:
    repeat(5, 1fr);

  width:
    min(520px, 100%);

  padding:
    9px
    8px
    calc(
      9px +
      env(safe-area-inset-bottom)
    );

  transform:
    translateX(-50%);

  border-top:
    1px solid
    var(--border);

  background: var(--nav-bg);

  backdrop-filter:
    blur(16px);

  -webkit-backdrop-filter:
    blur(16px);
}

.nav-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 4px;

  padding: 5px;

  border: 0;

  background: transparent;
  color: #aaa7a4;

  cursor: pointer;
}

.nav-item > span {
  font-size: 18px;
}

.nav-item small {
  font-size: 10px;
  font-weight: 600;
}

.nav-item.active {
  color: var(--primary);
}


/* ==========================================
   LOGIN
========================================== */

.login-body {
  min-height: 100vh;

  background: #f6f6f4;
}

.login-page {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 25px;
}

.login-card {
  width: 100%;
  max-width: 400px;

  padding:
    36px
    27px;

  border:
    1px solid
    var(--border);

  border-radius: 30px;

  background: #ffffff;

  box-shadow: var(--shadow);
}

.login-mark {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;

  margin-bottom: 28px;

  border-radius: 50%;

  background: var(--primary-soft);
  color: var(--primary);

  font-size: 24px;
}

.login-card h1 {
  margin: 0;

  color: var(--text);

  font-size: 38px;
  line-height: 1;

  letter-spacing: -1.7px;
}

.login-subtitle {
  margin:
    15px
    0
    30px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}

.login-form
.primary-btn {
  margin-top: 5px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 10px;

  transform:
    translateY(-50%);

  border: 0;

  background: transparent;
  color: var(--primary);

  font-size: 11px;
  font-weight: 750;

  cursor: pointer;
}

.login-footer {
  margin:
    28px
    0
    0;

  text-align: center;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 1px;
}


/* ==========================================
   DESKTOP
========================================== */

@media (min-width: 800px) {

  body {
    background: #ecebea;
  }

  body.theme-tassya {
    background: #eee9e8;
  }

  body.theme-arif {
    background: #e9edf2;
  }

  .app-shell {
    box-shadow:
      0 0 50px
      rgba(0, 0, 0, 0.05);
  }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .app-shell {
    max-width: 100%;
  }

  .two-inputs {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);
  }

  .two-inputs .field {
    min-width: 0;
  }

  .two-inputs input {
    min-width: 0;
    max-width: 100%;
  }

  .sleep-fixed-value {
    min-width: 0;
    max-width: 100%;
  }

}


/* ==========================================
   SMALL PHONE
========================================== */

@media (max-width: 380px) {

  .top-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .main-content {
    padding:
      0
      13px;
  }

  .top-header h1 {
    font-size: 23px;
  }

  .big-number {
    font-size: 37px;
  }

  .hero-card,
  .section-card,
  .couple-card {
    padding: 16px;
  }

  .weight-chart-wrapper {
    height: 220px;
  }

  .tassya-workout-header {
    flex-direction: column;
  }

  .workout-program-badge {
    align-self: flex-start;
  }

}


/* ==========================================
   VERY SMALL PHONE
========================================== */

@media (max-width: 340px) {

  .measurement-form-grid {
    grid-template-columns: 1fr;
  }

  .progress-summary-grid {
    gap: 5px;
  }

  .progress-summary-grid > div {
    padding:
      10px
      5px;
  }

  .treadmill-card-top {
    flex-direction: column;
  }

  .treadmill-speed {
    align-self: flex-start;
  }

}

/* ==========================================
   ARIF — TODAY'S NUTRITION
   Breakfast · Lunch · Dinner
========================================== */

.arif-nutrition {
  display: grid;
  gap: 14px;
}

.arif-nutrition-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.arif-nutrition-head .card-label {
  margin-bottom: 5px;
}

.arif-nutrition-head h3 {
  margin: 0;
}

.arif-daily-intake {
  margin-top: 15px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--primary-soft);
}

.arif-daily-intake span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.arif-daily-intake strong {
  display: block;
  color: var(--primary);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.arif-meal-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.arif-meal-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--input-bg);
}

.arif-meal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.arif-meal-type {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.arif-meal-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.arif-meal-calories {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 100px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.arif-meal-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.arif-meals-completed {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

body.theme-arif .arif-daily-intake {
  background: #e8edf4;
}

body.theme-arif .arif-meal-calories {
  background: #e8edf4;
  color: #183153;
}

@media (max-width: 380px) {
  .arif-meal-card-top {
    gap: 8px;
  }

  .arif-meal-calories {
    padding: 6px 8px;
    font-size: 10px;
  }
}
/* ==========================================
   ARIF EXERCISE CHECKLIST
========================================== */

.arif-exercise-row {
  cursor: pointer;
  user-select: none;

  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.arif-exercise-row:active
.exercise-check-circle {
  transform: scale(0.9);
}

.arif-exercise-row.completed
.exercise-check-circle {
  border-color: var(--primary);
  background: var(--primary);
}

.arif-exercise-row.completed
.exercise-check-circle::after {
  content: "✓";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;

  font-size: 11px;
  font-weight: 800;
}

.arif-exercise-row.completed
strong {
  color: var(--muted);
  text-decoration: line-through;
}

.arif-exercise-row.completed
span {
  opacity: 0.75;
}