/* Page-specific styles for profile.html */
html {
  background: #f3f4f6;
  background-image: none !important;
}

html.dark {
  background: #0b1120;
  background-image: none !important;
}

body.profile-page {
  background: #f3f4f6 !important;
  background-image: none !important;
}

html.dark body.profile-page {
  background: #0b1120 !important;
  background-image: none !important;
}

.profile-page {
  width: min(390px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  position: relative;
  background: transparent;
}

.dark .profile-page {
  background: transparent;
}

.profile-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100dvh;
  padding-bottom: 96px;
}

.profile-page {
  margin: 0 auto;
  padding-top: 0 !important;
}

.profile-page::before,
.profile-page::after {
  content: none !important;
  display: none !important;
}

.profile-page .profile-shell {
  padding-top: 0 !important;
}

.profile-hero {
  padding: 12px 16px 10px;
}

.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-kicker {
  margin: 0 0 3px;
  color: #ff5700;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-title {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.dark .profile-title { color: #f9fafb; }

.profile-icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 87, 0, 0.16);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff5700;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,247,237,0.96));
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.profile-icon-button:active { transform: scale(.96); }

.dark .profile-icon-button {
  color: #ff7a1a;
  border-color: rgba(255, 87, 0, 0.22);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.96), rgba(58, 36, 23, 0.78));
  box-shadow: 0 14px 30px rgba(255, 87, 0, 0.12), 0 10px 24px rgba(0,0,0,.24);
}

.profile-icon-button--settings {
  color: #111827;
  border-color: rgba(17, 24, 39, 0.12);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(243,244,246,0.96));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dark .profile-icon-button--settings {
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.9));
  box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 10px 24px rgba(0,0,0,.2);
}

.profile-identity-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 32px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .1);
}

.dark .profile-identity-card {
  border-color: rgba(255,255,255,.08);
  background: #111827;
  box-shadow: 0 20px 44px rgba(0,0,0,.34);
}

.profile-identity-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-ring {
  position: relative;
  width: 88px;
  height: 88px;
  padding: 3px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
}

.profile-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px !important;
}

.dark .profile-avatar {
  border-color: #111827;
  background: rgba(255,255,255,.08);
}

.dark .profile-avatar-ring {
  background: linear-gradient(135deg, #4b5563, #374151);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.profile-avatar-edit {
  position: absolute;
  z-index: 2;
  right: -3px;
  bottom: -3px;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #ff5700, #ff8a00);
  box-shadow: 0 10px 20px rgba(255,87,0,.24);
}

.dark .profile-avatar-edit { border-color: #111827; }

.profile-name {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.dark .profile-name { color: #f9fafb; }

.profile-username {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.dark .profile-username { color: #9ca3af; }

.profile-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-action-pill {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #111827;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.profile-action-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.1);
}

.profile-action-pill:active {
  transform: scale(.98);
}

.profile-action-pill--primary {
  color: #fff;
  border-color: rgba(255,109,0,.22);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(255,109,0,.24);
}

.dark .profile-action-pill {
  color: #f9fafb;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.dark .profile-action-pill--primary {
  color: #fff;
  border-color: rgba(255,166,77,.22);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
}

.profile-main {
  padding: 8px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-main > section,
.profile-section {
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15,23,42,.075);
}

.dark .profile-main > section,
.dark .profile-section {
  border-color: rgba(255,255,255,.08);
  background: #111827;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
}

.profile-section-head,
.profile-main > section > .flex:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
}

.profile-section-title,
.profile-main h2 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.dark .profile-section-title,
.dark .profile-main h2 { color: #f9fafb; }

.profile-section-meta {
  color: #ff5700;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.profile-empty-card,
.profile-empty-state {
  border-radius: 20px;
  padding: 13px 14px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 12px;
  line-height: 1.35;
}

.dark .profile-empty-card,
.dark .profile-empty-state { color: #9ca3af; background: rgba(255,255,255,.08); }

.profile-page .settings-modal-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(229,231,235,.95);
  color: #111827;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.profile-page .settings-modal-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.1);
}

.profile-page .settings-modal-close:active {
  transform: scale(.98);
}

.profile-page .settings-modal-close .material-icons-round {
  font-size: 20px;
}

.dark .profile-page .settings-modal-close {
  color: #f9fafb;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(31,41,55,.9));
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}

.profile-page .settings-section-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top-color: rgba(229,231,235,.9);
}

.dark .profile-page .settings-section-card {
  border-top-color: rgba(255,255,255,.08);
}

.profile-page .settings-theme-card,
.profile-page .settings-timezone-card {
  padding: 14px;
  border-radius: 24px;
  background: rgba(249,250,251,.9);
}

.dark .profile-page .settings-theme-card,
.dark .profile-page .settings-timezone-card {
  background: rgba(255,255,255,.04);
}

.profile-page .settings-theme-card > .flex,
.profile-page .settings-timezone-card > .flex {
  gap: 12px;
}

.profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"] {
  width: 58px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 18px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"]:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 12px 22px rgba(15,23,42,.1);
}

.profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"]:active {
  transform: scale(.98);
}

.profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"] > span {
  width: 26px;
  height: 26px;
  left: 4px;
  top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15,23,42,.14);
}

.dark .profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"] {
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 8px 18px rgba(0,0,0,.2);
}

.profile-page .settings-theme-card button[onclick*="toggleThemeInSettings"] .material-icons-round {
  font-size: 14px;
  line-height: 1;
}

.profile-page .settings-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-page .settings-actions-row button {
  min-height: 46px;
  border-radius: 18px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.profile-page .settings-actions-row button:active {
  transform: scale(.98);
}

.profile-page .settings-actions-row button:first-child {
  border: 1px solid rgba(229,231,235,.95);
  color: #111827;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.profile-page .settings-actions-row button:last-child {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(255,109,0,.24);
}

.dark .profile-page .settings-actions-row button:first-child {
  border-color: rgba(255,255,255,.08);
  color: #f9fafb;
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.dark .profile-page .settings-actions-row button:last-child {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
}

.profile-page .settings-logout-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(229,231,235,.9);
}

.dark .profile-page .settings-logout-row {
  border-top-color: rgba(255,255,255,.08);
}

.profile-page .settings-logout-row button {
  min-height: 46px;
  border-radius: 18px;
  border-color: rgba(239,68,68,.18);
  color: #b91c1c;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(254,242,242,.96));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.profile-page .settings-logout-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.1);
}

.profile-page .settings-logout-row button:active {
  transform: scale(.98);
}

.dark .profile-page .settings-logout-row button {
  color: #fca5a5;
  border-color: rgba(248,113,113,.18);
  background: linear-gradient(135deg, rgba(127,29,29,.22), rgba(91,17,17,.18));
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.profile-page #editProfileModal button[aria-label="Закрыть"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.profile-page #editProfileModal button[aria-label="Закрыть"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,23,42,.1);
}

.profile-page #editProfileModal button[aria-label="Закрыть"]:active {
  transform: scale(.98);
}

.dark .profile-page #editProfileModal button[aria-label="Закрыть"] {
  color: #f9fafb;
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(17,24,39,.96), rgba(31,41,55,.9));
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}

.profile-bookings-list,
#profileUpcomingBookingsList {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.profile-booking-card {
  display: block;
  border: 1px solid rgba(229,231,235,.85);
  border-radius: 22px;
  padding: 12px;
  color: inherit;
  background: #f9fafb;
  text-decoration: none;
}

.dark .profile-booking-card { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.06); }

.profile-booking-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-booking-title {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .profile-booking-title { color: #f9fafb; }

.profile-booking-time {
  color: #ff5700;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.profile-booking-note {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .profile-booking-note { color: #9ca3af; }

.profile-plan-section { display: none; }
.profile-plan-section[style*="block"] { display: block !important; }

.profile-plan-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.profile-plan-name {
  margin: 0 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dark .profile-plan-name { color: #f9fafb; }

.profile-plan-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-plan-chip {
  border-radius: 999px;
  padding: 6px 10px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.dark .profile-plan-chip { color: #d1d5db; background: rgba(255,255,255,.08); }

.profile-plan-progress-line {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3f4f6;
}

.dark .profile-plan-progress-line { background: rgba(255,255,255,.08); }

.profile-plan-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5700, #ff8a00);
}

.profile-plan-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 800;
}

.profile-primary-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff5700, #ff8a00);
  box-shadow: 0 14px 28px rgba(255,87,0,.22);
  font-size: 13px;
  font-weight: 900;
}

.profile-exercises-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.profile-exercises-list .preview-exercise,
.preview-exercise {
  border-radius: 18px;
  padding: 10px 12px;
  background: #f3f4f6;
}

.dark .profile-exercises-list .preview-exercise,
.dark .preview-exercise { background: rgba(255,255,255,.08); }

.preview-name,
.day-title {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.dark .preview-name,
.dark .day-title { color: #f9fafb; }

.preview-params,
.circuit-info {
  margin-top: 3px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
}

.dark .preview-params,
.dark .circuit-info { color: #9ca3af; }

.profile-pr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.profile-pr-card {
  min-width: 0;
  border-radius: 22px;
  padding: 12px 9px;
  background: #f9fafb;
  text-align: center;
}

.dark .profile-pr-card { background: rgba(255,255,255,.06); }

.profile-pr-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 7px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5700;
  background: rgba(255,87,0,.1);
}

.profile-pr-value {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dark .profile-pr-value { color: #f9fafb; }

.profile-pr-label {
  margin: 3px 0 0;
  color: #9ca3af;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
}

.profile-pr-chart {
  width: 100%;
  height: 42px;
  margin-top: 6px;
}

.profile-goals-grid,
#goalsGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.profile-add-goal,
#goalsGrid > button[onclick="openGoalModal()"] {
  width: 100%;
  min-height: 48px;
  border: 1px dashed rgba(255,87,0,.32);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ff5700;
  background: rgba(255,87,0,.08);
  box-shadow: none;
}

.profile-page .goal-card.profile-goal-card {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(229,231,235,.95) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.075) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.profile-page .goal-card.profile-goal-card--compact {
  padding: 13px;
  gap: 9px;
  border-radius: 22px !important;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__top {
  gap: 10px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__badge {
  min-width: 44px;
  padding: 4px 8px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__body {
  gap: 3px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__title {
  font-size: 14px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__value {
  font-size: 16px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__remaining {
  font-size: 10px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__progress {
  height: 6px;
}

.profile-page .goal-card.profile-goal-card--compact .profile-goal-card__footer {
  gap: 8px;
}

.profile-page .goal-card.profile-goal-card:active {
  transform: scale(.99);
}

.profile-goal-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-goal-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-goal-card__badge {
  min-width: 50px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.profile-goal-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-goal-card__title,
.profile-goal-card__value,
.profile-goal-card__remaining,
.profile-goal-card__date {
  margin: 0;
}

.profile-goal-card__title {
  color: #111827;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

.profile-goal-card__value {
  color: #111827;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-family: 'Roboto Mono', monospace;
}

.profile-goal-card__remaining {
  color: #ea580c;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  font-family: 'Roboto Mono', monospace;
}

.profile-goal-card__remaining--done {
  color: #16a34a;
}

.profile-goal-card__progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
}

.profile-goal-card__progress-fill {
  height: 100%;
  border-radius: inherit;
  transition: width .25s ease;
}

.profile-goal-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-goal-card__date {
  color: #9ca3af;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  font-family: 'Roboto Mono', monospace;
}

.profile-goal-card__complete {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(22,163,74,.18);
}

.profile-page .profile-achievements-compact {
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 22px;
  background: #f9fafb;
  overflow: hidden;
}

.dark .profile-page .profile-achievements-compact {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}

.profile-page .profile-achievements-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.profile-page .profile-achievements-summary::-webkit-details-marker {
  display: none;
}

.profile-page .profile-achievements-summary__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-page .profile-achievements-summary__icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5700;
  background: rgba(255,87,0,.1);
  flex: none;
}

.profile-page .profile-achievements-summary__title {
  margin: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
}

.profile-page .profile-achievements-summary__text,
.profile-page .profile-achievements-placeholder p {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.profile-page .profile-achievements-summary__chevron {
  color: #9ca3af;
  transition: transform .2s ease;
}

.profile-page .profile-achievements-compact[open] .profile-achievements-summary__chevron {
  transform: rotate(180deg);
}

.profile-page .profile-achievements-placeholder {
  padding: 0 14px 14px 64px;
}

.dark .profile-page .profile-achievements-summary__title,
.dark .profile-page .profile-achievements-summary__text,
.dark .profile-page .profile-achievements-placeholder p {
  color: #e5e7eb;
}

.dark .profile-page .goal-card.profile-goal-card {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(31,41,55,.82) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
}

.dark .profile-goal-card__title,
.dark .profile-goal-card__value {
  color: #f9fafb;
}

.dark .profile-goal-card__progress {
  background: rgba(255,255,255,.08);
}

.dark .profile-goal-card__date {
  color: #9ca3af;
}

.profile-page .goal-card.profile-goal-card .bg-red-100 {
  background-color: #fee2e2 !important;
}

.profile-page .goal-card.profile-goal-card .bg-pink-100 {
  background-color: #fce7f3 !important;
}

.profile-page .goal-card.profile-goal-card .text-pink-500 {
  color: #ec4899 !important;
}

.dark .profile-page .goal-card.profile-goal-card .dark\:bg-pink-900\/20 {
  background-color: rgba(131, 24, 67, .2) !important;
}

.dark .profile-page .goal-card.profile-goal-card .dark\:bg-pink-900\/30 {
  background-color: rgba(131, 24, 67, .3) !important;
}

.profile-page #goalModal,
.profile-page #goalDetailsModal {
  padding: 12px;
  align-items: flex-end;
  justify-content: center;
}

.profile-page #goalModalSheet,
.profile-page #goalDetailsSheet {
  left: 50% !important;
  right: auto !important;
  bottom: 12px !important;
  width: min(calc(100vw - 24px), 390px) !important;
  max-width: 390px !important;
  margin: 0 auto;
  transform: translate(-50%, 110%) !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(229,231,235,.92) !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.22) !important;
}

.profile-page #goalDetailsSheet {
  height: min(90dvh, calc(100dvh - 24px));
  max-height: min(90dvh, calc(100dvh - 24px));
}

.dark .profile-page #goalModalSheet,
.dark .profile-page #goalDetailsSheet {
  background: rgba(17,24,39,.98) !important;
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.34) !important;
}

.profile-page #goalModal.show #goalModalSheet,
.profile-page #goalDetailsModal.show #goalDetailsSheet {
  transform: translate(-50%, 0) !important;
}

.profile-page #goalModalSheet input,
.profile-page #goalModalSheet button,
.profile-page #goalDetailsSheet button {
  -webkit-tap-highlight-color: transparent;
}

.profile-page #goalModalSheet .goal-modal-close {
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 87, 0, .14) !important;
  color: #ff5700 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.96)) !important;
  box-shadow: 0 10px 24px rgba(255, 87, 0, .12), 0 6px 14px rgba(15, 23, 42, .08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.profile-page #goalModalSheet .goal-modal-close .material-icons-round {
  font-size: 18px;
  line-height: 1;
}

.profile-page #goalModalSheet .goal-modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 87, 0, .24) !important;
  box-shadow: 0 14px 28px rgba(255, 87, 0, .16), 0 8px 18px rgba(15, 23, 42, .1);
}

.profile-page #goalModalSheet .goal-modal-close:active {
  transform: scale(.96);
  box-shadow: 0 8px 18px rgba(255, 87, 0, .12), 0 4px 10px rgba(15, 23, 42, .08);
}

.profile-page #goalModalSheet .goal-modal-close:focus-visible {
  outline: 2px solid rgba(255, 87, 0, .35);
  outline-offset: 2px;
}

.dark .profile-page #goalModalSheet .goal-modal-close {
  color: #ff7a1a !important;
  border-color: rgba(255, 122, 26, .2) !important;
  background: linear-gradient(135deg, rgba(31,41,55,.96), rgba(58,36,23,.78)) !important;
  box-shadow: 0 10px 24px rgba(255, 87, 0, .1), 0 8px 18px rgba(0, 0, 0, .24);
}

.dark .profile-page #goalModalSheet .goal-modal-close:hover {
  border-color: rgba(255, 122, 26, .3) !important;
  box-shadow: 0 14px 28px rgba(255, 87, 0, .14), 0 10px 22px rgba(0, 0, 0, .28);
}

.dark .profile-page #goalModalSheet .goal-modal-close:focus-visible {
  outline-color: rgba(255, 122, 26, .4);
}

.profile-page #goalName,
.profile-page #goalCurrent,
.profile-page #goalTarget {
  background: #f9fafb !important;
  color: #111827 !important;
  border: 1px solid rgba(229,231,235,.96) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.profile-page #goalName::placeholder,
.profile-page #goalCurrent::placeholder,
.profile-page #goalTarget::placeholder {
  color: #9ca3af;
}

.dark .profile-page #goalName,
.dark .profile-page #goalCurrent,
.dark .profile-page #goalTarget {
  background: rgba(255,255,255,.06) !important;
  color: #f9fafb !important;
  border-color: rgba(255,255,255,.1) !important;
}

.dark .profile-page #goalName::placeholder,
.dark .profile-page #goalCurrent::placeholder,
.dark .profile-page #goalTarget::placeholder {
  color: rgba(255,255,255,.45);
}

.profile-page #goalNameWrapper {
  position: relative;
  z-index: 20;
}

.profile-page #goalNameWrapper .goal-name-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 18px 18px 0;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}

.profile-page #goalNameWrapper .goal-name-toggle:hover {
  background: rgba(15,23,42,.04);
  color: #111827;
}

.dark .profile-page #goalNameWrapper .goal-name-toggle {
  color: rgba(255,255,255,.72);
}

.dark .profile-page #goalNameWrapper .goal-name-toggle:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.profile-page #goalNameDropdown,
.profile-page #goalNameDropdown.goal-name-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin-top: 0 !important;
  padding: 6px;
  border-radius: 16px;
  max-height: 16rem;
  overflow-y: auto;
  z-index: 60;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(229,231,235,.96) !important;
  box-shadow: 0 18px 36px rgba(15,23,42,.12) !important;
}

.dark .profile-page #goalNameDropdown {
  background: rgba(17,24,39,.98) !important;
  border-color: rgba(255,255,255,.08) !important;
}

.profile-page #goalNameDropdown .goal-name-section {
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(229,231,235,.55);
}

.profile-page #goalNameDropdown .goal-name-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.dark .profile-page #goalNameDropdown .goal-name-section {
  border-bottom-color: rgba(255,255,255,.06);
}

.profile-page #goalNameDropdown .goal-name-section-title {
  margin: 0;
  padding: 6px 10px 4px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dark .profile-page #goalNameDropdown .goal-name-section-title {
  color: rgba(255,255,255,.55);
}

.profile-page #goalNameDropdown .goal-name-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.profile-page #goalNameDropdown .goal-name-option:hover {
  background: #f3f4f6;
}

.dark .profile-page #goalNameDropdown .goal-name-option {
  color: #f9fafb;
}

.dark .profile-page #goalNameDropdown .goal-name-option:hover {
  background: rgba(255,255,255,.06);
}

.profile-page #goalNameDropdown .goal-name-option__label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-page #goalNameDropdown .goal-name-option__unit {
  flex: 0 0 auto;
  font-size: 10px;
  color: #6b7280;
}

.dark .profile-page #goalNameDropdown .goal-name-option__unit {
  color: rgba(255,255,255,.55);
}

.profile-page #goalUnitBtns .goal-unit-btn,
.profile-page #goalIconBtns .goal-icon-btn {
  min-width: 40px;
  min-height: 40px;
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: none;
}

.dark .profile-page #goalUnitBtns .goal-unit-btn,
.dark .profile-page #goalIconBtns .goal-icon-btn {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.12);
}

.profile-page #goalColorBtns .goal-color-btn {
  width: 32px;
  height: 32px;
  border-width: 2px;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(15,23,42,.08);
}

.profile-page #goalColorBtns .goal-color-btn.active {
  border-color: rgba(17,24,39,.9);
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(255,87,0,.12);
}

.dark .profile-page #goalColorBtns .goal-color-btn.active {
  border-color: #fff;
}

.profile-page #goalDetailsMenu {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid rgba(229,231,235,.96) !important;
  box-shadow: 0 18px 36px rgba(15,23,42,.12) !important;
}

.profile-page #goalDetailsSheet .goal-details-menu-trigger {
  width: 40px;
  height: 40px;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, .18) !important;
  color: #ff6a00 !important;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,247,237,.95)) !important;
  box-shadow: 0 10px 24px rgba(255, 122, 26, .12), 0 6px 14px rgba(15, 23, 42, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.profile-page #goalDetailsSheet .goal-details-menu-trigger .material-icons-round {
  font-size: 20px;
  line-height: 1;
}

.profile-page #goalDetailsSheet .goal-details-menu-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 26, .28) !important;
  box-shadow: 0 14px 28px rgba(255, 122, 26, .16), 0 8px 18px rgba(15, 23, 42, .1);
}

.profile-page #goalDetailsSheet .goal-details-menu-trigger:active {
  transform: scale(.96);
  box-shadow: 0 8px 18px rgba(255, 122, 26, .12), 0 4px 10px rgba(15, 23, 42, .08);
}

.profile-page #goalDetailsSheet .goal-details-menu-trigger:focus-visible {
  outline: 2px solid rgba(255, 122, 26, .38);
  outline-offset: 2px;
}

.dark .profile-page #goalDetailsSheet .goal-details-menu-trigger {
  color: #ff8a3d !important;
  border-color: rgba(255, 138, 61, .22) !important;
  background: linear-gradient(135deg, rgba(31,41,55,.96), rgba(58,36,23,.78)) !important;
  box-shadow: 0 10px 24px rgba(255, 122, 26, .1), 0 8px 18px rgba(0, 0, 0, .24);
}

.dark .profile-page #goalDetailsSheet .goal-details-menu-trigger:hover {
  border-color: rgba(255, 138, 61, .32) !important;
  box-shadow: 0 14px 28px rgba(255, 122, 26, .14), 0 10px 22px rgba(0, 0, 0, .28);
}

.dark .profile-page #goalDetailsSheet .goal-details-menu-trigger:focus-visible {
  outline-color: rgba(255, 138, 61, .42);
}

.profile-page #goalDetailsMenu:not(.hidden) {
  padding: 6px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-page #goalDetailsMenu button {
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  transition: background-color .16s ease, transform .16s ease, color .16s ease;
}

.profile-page #goalDetailsMenu button:hover {
  transform: translateY(-1px);
}

.profile-page #goalDetailsMenu button:last-child {
  color: #ef4444;
}

.dark .profile-page #goalDetailsMenu button:last-child {
  color: #f87171;
}

.profile-page #goalDetailsSheet .goal-details-chart-card {
  border: 1px solid rgba(229,231,235,.88);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}

.dark .profile-page #goalDetailsSheet .goal-details-chart-card {
  border-color: rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.profile-page #goalDetailsChart {
  --goal-chart-color: #ff6a00;
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: 18px;
  color: var(--goal-chart-color);
  background:
    radial-gradient(circle at top left, rgba(255,122,26,.14), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.dark .profile-page #goalDetailsChart {
  --goal-chart-color: #ff8a3d;
  background:
    radial-gradient(circle at top left, rgba(255,138,61,.16), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.profile-page #goalDetailsChart .goal-details-chart__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-page #goalDetailsChart .goal-details-chart__area {
  fill: url(#goalDetailsAreaGradient);
}

.profile-page #goalDetailsChart .goal-details-chart__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(255,106,0,.18));
}

.profile-page #goalDetailsChart .goal-details-chart__point {
  fill: currentColor;
  stroke: rgba(255,255,255,.9);
  stroke-width: 1.25;
  filter: drop-shadow(0 4px 10px rgba(255,106,0,.18));
}

.dark .profile-page #goalDetailsChart .goal-details-chart__point {
  stroke: rgba(17,24,39,.95);
}

.profile-page #goalDetailsChart .goal-details-chart__point--latest {
  filter: drop-shadow(0 8px 16px rgba(255,106,0,.24));
}

.profile-page #goalDetailsChart .goal-details-chart__target {
  stroke: rgba(255,122,26,.58);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.dark .profile-page #goalDetailsChart .goal-details-chart__target {
  stroke: rgba(255,138,61,.68);
}

.dark .profile-page #goalDetailsMenu {
  background: rgba(17,24,39,.98) !important;
  border-color: rgba(255,255,255,.08) !important;
}

.profile-page #goalDetailsSheet .bg-background-light {
  background: #f8fafc !important;
  border: 1px solid rgba(229,231,235,.9);
}

.dark .profile-page #goalDetailsSheet .bg-background-light {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.06);
}

.profile-page #goalDetailsHistory > div:last-child {
  border-bottom: 0;
}

.profile-page #metricsGridMain > button,
.profile-page #metricsGridGirths > button,
.profile-page #analyticsGrid > div,
.profile-page details {
  border-color: rgba(255,255,255,.88) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.075) !important;
}

.profile-page #metricsGridMain > button,
.profile-page #metricsGridGirths > button {
  min-height: 124px;
}

.dark .profile-page #metricsGridMain > button,
.dark .profile-page #metricsGridGirths > button,
.dark .profile-page #analyticsGrid > div,
.dark .profile-page details {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(31,41,55,.72) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
}

.profile-page .metric-card {
  width: 100%;
  min-height: 118px !important;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(229,231,235,.88) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 14px 30px rgba(15,23,42,.075) !important;
  text-align: left;
}

.profile-page .metric-card.profile-metric-card--compact {
  min-height: 108px !important;
  padding: 13px;
  gap: 10px;
}

.profile-page .metric-card.profile-metric-card--compact .metric-card__content {
  gap: 10px;
}

.profile-page .metric-card.profile-metric-card--compact .metric-card__chip {
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

.profile-page .metric-card.profile-metric-card--compact .metric-card__title {
  font-size: 12px;
}

.profile-page .metric-card.profile-metric-card--compact .metric-card__value {
  font-size: 24px;
}

.profile-page .metric-card.profile-metric-card--compact .metric-card__sparkline {
  width: 82px;
  min-width: 82px;
}

.dark .profile-page .metric-card {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(31,41,55,.72) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22) !important;
}

.profile-page .metric-card__content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.profile-page .metric-card__head,
.profile-page .metric-card__meta,
.profile-page .metric-card__valueRow {
  display: flex;
  align-items: flex-start;
}

.profile-page .metric-card__meta {
  gap: 10px;
  min-width: 0;
}

.profile-page .metric-card__chip {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.profile-page .metric-card__title {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .profile-page .metric-card__title {
  color: #f8fafc;
}

.profile-page .metric-card__date {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.2;
  color: #94a3b8;
}

.dark .profile-page .metric-card__date {
  color: #94a3b8;
}

.profile-page .metric-card__valueRow {
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
}

.profile-page .metric-card__value {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.dark .profile-page .metric-card__value {
  color: #f8fafc;
}

.profile-page .metric-card__unit {
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: #64748b;
}

.dark .profile-page .metric-card__unit {
  color: #94a3b8;
}

.profile-page .metric-card__sparkline {
  width: 92px;
  min-width: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: .95;
}

.profile-page .metric-card__sparkline svg {
  width: 100%;
  height: 40px;
  display: block;
}

.profile-page .sparkline {
  width: 54px;
  height: 36px;
  gap: 3px;
}

.profile-page .sparkline-bar {
  width: 5px;
  border-radius: 999px;
}

.profile-page .metric-details-chart {
  position: relative;
  min-height: 160px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.82));
  color: #ff5700;
  overflow: hidden;
}

.dark .profile-page .metric-details-chart {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  color: #ff7a1a;
}

.profile-page .metric-details-chart__svg {
  width: 100%;
  height: 160px;
  display: block;
}

.profile-page .metric-details-chart__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.profile-page .profile-analytics-card {
  border: 1px solid rgba(229,231,235,.9) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 16px 34px rgba(15,23,42,.08) !important;
  padding: 12px !important;
}

.dark .profile-page .profile-analytics-card {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(17,24,39,.7) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.24) !important;
}

.profile-page #metricsGridMain,
.profile-page #metricsGridGirths,
.profile-page #analyticsGrid {
  gap: 10px;
}

.profile-page #metricsGridMain,
.profile-page #metricsGridGirths {
  gap: 12px;
}

.profile-page #analyticsGrid > div {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(229,231,235,.88) !important;
  border-radius: 22px !important;
  background: rgba(249,250,251,.95) !important;
  box-shadow: 0 12px 26px rgba(15,23,42,.06) !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dark .profile-page #analyticsGrid > div {
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.18) !important;
}

.profile-page #analyticsGrid > div .sparkline {
  width: 60px;
  height: 38px;
}

.profile-page #analyticsGrid > div .text-xl {
  font-size: 1.75rem;
  line-height: 1;
}

.profile-page #editProfileModal {
  padding: 12px;
}

.profile-page #editProfileModal > div {
  width: min(100%, 390px);
  margin: 0 auto;
  max-height: calc(100dvh - 24px);
}

.profile-page .edit-profile-photo-card {
  border: 1px solid rgba(229,231,235,.9);
  border-radius: 24px;
  padding: 14px;
  background: rgba(249,250,251,.95);
}

.dark .profile-page .edit-profile-photo-card {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}

.profile-page .edit-profile-photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,87,0,.22);
  background: #f3f4f6;
  box-shadow: 0 12px 24px rgba(15,23,42,.08);
}

.profile-page .edit-profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit !important;
  display: block;
}

.dark .profile-page .edit-profile-photo-preview {
  border-color: rgba(255,122,26,.28);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.profile-page .edit-profile-photo-button,
.profile-page .edit-profile-secondary-button,
.profile-page .edit-profile-primary-button {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.profile-page .edit-profile-photo-button:active,
.profile-page .edit-profile-secondary-button:active,
.profile-page .edit-profile-primary-button:active {
  transform: scale(.98);
}

.profile-page .edit-profile-photo-button {
  padding: 0 14px;
  color: #ff5700;
  border: 1px solid rgba(255,87,0,.16);
  background: rgba(255,87,0,.08);
}

.dark .profile-page .edit-profile-photo-button {
  color: #ff7a1a;
  border-color: rgba(255,122,26,.18);
  background: rgba(255,122,26,.1);
}

.profile-page .edit-profile-label {
  display: block;
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dark .profile-page .edit-profile-label {
  color: #9ca3af;
}

.profile-page .edit-profile-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(229,231,235,.95);
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.profile-page .edit-profile-input::placeholder {
  color: #9ca3af;
}

.profile-page .edit-profile-input:focus {
  outline: none;
  border-color: #ff5700;
  box-shadow: 0 0 0 3px rgba(255,87,0,.14);
}

.dark .profile-page .edit-profile-input {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  color: #f9fafb;
}

.dark .profile-page .edit-profile-input::placeholder {
  color: #6b7280;
}

.dark .profile-page .edit-profile-input:focus {
  box-shadow: 0 0 0 3px rgba(255,122,26,.18);
}

.profile-page .edit-profile-message {
  min-height: 20px;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-page .edit-profile-message--error {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid rgba(220,38,38,.12);
}

.profile-page .edit-profile-message--success {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid rgba(21,128,61,.12);
}

.dark .profile-page .edit-profile-message--error {
  color: #fca5a5;
  background: rgba(127,29,29,.22);
  border-color: rgba(248,113,113,.18);
}

.dark .profile-page .edit-profile-message--success {
  color: #86efac;
  background: rgba(20,83,45,.22);
  border-color: rgba(34,197,94,.18);
}

.profile-page .edit-profile-secondary-button,
.profile-page .edit-profile-primary-button {
  flex: 1 1 0%;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.profile-page .edit-profile-secondary-button {
  border: 1px solid rgba(229,231,235,.95);
  color: #111827;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(249,250,251,.96));
}

.profile-page .edit-profile-secondary-button:hover,
.profile-page .edit-profile-primary-button:hover {
  transform: translateY(-1px);
}

.dark .profile-page .edit-profile-secondary-button {
  border-color: rgba(255,255,255,.08);
  color: #f9fafb;
  background: rgba(255,255,255,.06);
}

.profile-page .edit-profile-primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(255,109,0,.24);
}

.dark .profile-page .edit-profile-primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
}

.profile-history-section { display: none; }
.profile-history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  border-radius: 18px;
  padding: 10px 12px;
  background: #f3f4f6;
}
.dark .history-item { background: rgba(255,255,255,.08); }
.history-header { display: flex; justify-content: space-between; gap: 8px; }
.history-session { color: #111827; font-size: 12px; font-weight: 900; }
.dark .history-session { color: #f9fafb; }
.history-date,
.history-week,
.history-notes { color: #6b7280; font-size: 10px; font-weight: 800; }
.dark .history-date,
.dark .history-week,
.dark .history-notes { color: #9ca3af; }

.profile-cover {
  border-radius: 24px;
  overflow: hidden;
}

/* Using unified grid classes */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .profile-stats {
    grid-template-columns: 1fr;
  }
}
