:root,
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

:root {
  --bg0: #0b1338;
  --bg1: #101b4a;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #5b6476;
  --stroke: rgba(15, 23, 42, .12);
  --shadow: 0 16px 50px rgba(2, 6, 23, .28);

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;

  --accent: #6d28d9;
  --accent2: #22c55e;
  --accent3: #f59e0b;
  --accent4: #ec4899;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: #07112f;
  background-image:
    linear-gradient(90deg, rgba(109, 40, 217, .30) 0%, rgba(16, 185, 129, .20) 55%, rgba(236, 72, 153, .22) 100%),
    linear-gradient(180deg, #0b1338, #0f1a55);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  background: rgba(0, 0, 0, .35);
  border-right: 2px solid rgba(255, 255, 255, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 14px;
}

.logoBox {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}

.brandTitle {
  font-weight: 700;
  font-size: 14px;
}

.brandSub {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin-top: 2px;
}

.sideBtns {
  display: grid;
  gap: 10px;
  margin: 12px 6px 16px;
}

.bttn {
  border: 2px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, .06);
}

.bttn--primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
}

.bttn--solid {
  background: linear-gradient(135deg, rgba(109, 40, 217, 1), rgba(236, 72, 153, 1));
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 22px 55px rgba(109, 40, 217, .45);
}

.nav {
  display: grid;
  gap: 6px;
  padding: 0 6px;
}

.linky {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .78);
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
}

.linky:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
}

.linky.is-active {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
}

.gridBtns {
  margin: 16px 6px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.miniCard {
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, .16);
  padding: 12px 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 78px;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.miniCard:hover {
  transform: translateY(-1px);
  background: rgba(10, 16, 38, .32);
  border-color: rgba(255, 255, 255, .38);
}

.plus {
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}

.icobox {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .18);
}

.lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.miniCard--soft .icobox {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .35);
}

.miniCard--accent .icobox {
  background: rgba(109, 40, 217, .14);
  border-color: rgba(109, 40, 217, .35);
}

.miniCard--orange .icobox {
  background: rgba(245, 158, 11, .16);
  border-color: rgba(245, 158, 11, .40);
}

.page {
  padding: 26px 18px 30px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 18px;
}

.topLinks {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, .82);
}

.topA {
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}

.topA:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, .2);
}

.topProf {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.userName {
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
}

.bigBox {
  display: block;
  padding: 18px 6px 18px;
}

.bigTitle {
  font-size: 28px;
  margin: 0;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.bigSub {
  margin: 8px 0 16px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.45;
}

.statLine {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.statBox {
  background: rgba(255, 255, 255, .92);
  color: var(--text);
  border-radius: 9px;
  border: 2px solid rgba(15, 23, 42, .10);
  padding: 14px 14px 12px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, .20);
  animation: slideUpFade 0.6s ease forwards;
  opacity: 0;
}

.statBox:nth-child(1) {
  animation-delay: 0.1s;
}

.statBox:nth-child(2) {
  animation-delay: 0.2s;
}

.statBox:nth-child(3) {
  animation-delay: 0.3s;
}

.statBox:nth-child(4) {
  animation-delay: 0.4s;
}

.statBox:nth-child(5) {
  animation-delay: 0.5s;
}

.statTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.statIco {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(2, 6, 23, .10);
}

.statIco--purple {
  background: rgba(109, 40, 217, .12);
  color: #4c1d95;
}

.statIco--teal {
  background: rgba(34, 197, 94, .12);
  color: #15803d;
}

.statIco--green {
  background: rgba(34, 197, 94, .14);
  color: #166534;
}

.statIco--amber {
  background: rgba(245, 158, 11, .14);
  color: #92400e;
}

.statIco--red {
  background: rgba(239, 68, 68, .14);
  color: #991b1b;
}

.statMeta {
  color: rgba(15, 23, 42, .64);
  font-weight: 600;
  font-size: 12px;
}

.statVal {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.statHint {
  margin-top: 6px;
  color: rgba(15, 23, 42, .64);
  font-size: 12px;
  line-height: 1.25;
}

.layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  align-items: start;
}

.rightCol {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box {
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  border: 2px solid rgba(15, 23, 42, .16);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 16px;
  animation: slideUpFade 0.6s ease forwards;
  opacity: 0;
}

.box:nth-child(1) {
  animation-delay: 0.2s;
}

.box:nth-child(2) {
  animation-delay: 0.4s;
}

.tall {
  min-height: 420px;
}

.muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90));
}

.boxHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.boxTitle {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.boxSub {
  margin-top: 4px;
  color: rgba(15, 23, 42, .58);
  font-size: 12px;
  line-height: 1.25;
}

.headBtn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(15, 23, 42, .02);
  font-size: 22px;
  color: rgba(15, 23, 42, .70);
}

.listy {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .85);
  cursor: pointer;
}

.row input {
  display: none;
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, .18);
  background: rgba(15, 23, 42, .02);
}

.rowBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rowName {
  font-weight: 800;
  font-size: 13px;
}

.rowMeta {
  color: rgba(15, 23, 42, .58);
  font-size: 12px;
}

.rowStatus {
  font-weight: 700;
  font-size: 12px;
  color: rgba(15, 23, 42, .62);
}

.row input:checked~.rowStatus {
  color: #15803d;
}

.row input:checked~.dot {
  background: rgba(34, 197, 94, .18);
  border-color: rgba(34, 197, 94, .5);
}

.progWrap {
  margin-top: 16px;
}

.progHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(15, 23, 42, .65);
  font-size: 12px;
  margin-bottom: 8px;
}

.progTrack {
  height: 10px;
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  overflow: hidden;
}

.progFill {
  height: 100%;
  background: linear-gradient(90deg, rgba(109, 40, 217, 1), rgba(34, 197, 94, 1));
  border-radius: 999px;
}

.parts {
  height: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: transparent;
}

.part {
  background: rgba(15, 23, 42, .10);
  border-radius: 99px;
  transition: .2s;
}


.qGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.qBtn {
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(15, 23, 42, .02);
  color: rgba(15, 23, 42, .84);
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.qBtn:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, .12);
  border-color: rgba(15, 23, 42, .32);
}

.qBtn--soft {
  background: rgba(34, 197, 94, .10);
  border-color: rgba(34, 197, 94, .25);
}

.qBtn--violet {
  background: rgba(109, 40, 217, .10);
  border-color: rgba(109, 40, 217, .25);
}

.qBtn--orange {
  background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .28);
}

.gRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(15, 23, 42, .72);
  font-weight: 700;
  font-size: 12px;
}

.gBar {
  height: 10px;
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.gFill {
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, .9));
  border-radius: 999px;
}

.note {
  margin-top: 16px;
  border-radius: 16px;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .16);
}

.note__title {
  font-size: 12px;
  opacity: .95;
}

.note__text {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  opacity: .95;
}

.note--pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 1), rgba(217, 70, 239, .85));
}

.bottom {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}

.tag {
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, .75);
  background: rgba(15, 23, 42, .04);
  border: 1px solid rgba(15, 23, 42, .10);
  padding: 8px 10px;
  border-radius: 999px;
}

.chartWrap {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 10px;
}

.yNums {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(15, 23, 42, .42);
  font-size: 12px;
  padding: 8px 0;
}

.plot {
  height: 185px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .02);
  border: 1px solid rgba(15, 23, 42, .06);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.plot svg {
  width: 100%;
  height: 100%;
  flex: 1;
  display: block;
}

.barsPlot {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
}

.barItem {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 6px;
}

.barFill {
  width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(109, 40, 217, .95), rgba(34, 197, 94, .88));
  min-height: 12px;
}

.barDay {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, .58);
}

.barFill {
  border: 1px solid rgba(255, 255, 255, .18);
}

.legend {
  margin-top: 10px;
  color: rgba(15, 23, 42, .55);
  font-weight: 700;
  font-size: 12px;
}

.newsList {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.newsItem {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(15, 23, 42, .02);
  padding: 12px;
}

.newsTag {
  width: max-content;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .08);
}

.newsTag--violet {
  background: rgba(109, 40, 217, .10);
  border-color: rgba(109, 40, 217, .25);
  color: #4c1d95;
}

.newsTag--green {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .28);
  color: #15803d;
}

.newsTag--amber {
  background: rgba(245, 158, 11, .14);
  border-color: rgba(245, 158, 11, .32);
  color: #92400e;
}

.newsTitle {
  margin-top: 8px;
  font-weight: 900;
  color: rgba(15, 23, 42, .86);
}

.newsText {
  margin-top: 4px;
  font-weight: 600;
  color: rgba(15, 23, 42, .60);
  font-size: 12px;
  line-height: 1.35;
}

.foot {
  margin-top: 18px;
  padding: 14px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, .75);
}

.foot a {
  margin-left: 12px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
}

.foot a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .wrap {
    grid-template-columns: 280px 1fr;
  }

  .statLine {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .side {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    background: #0b1338;
    transition: left 0.3s ease;
  }

  .side.is-open {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .topLinks {
    display: none;
  }

  .statLine {
    grid-template-columns: 1fr 1fr;
  }

  .bigTitle {
    font-size: 24px;
  }
}

@media (max-width: 320px) {
  .page {
    padding: 16px 10px 20px;
  }

  .statLine {
    grid-template-columns: 1fr;
  }

  .bigTitle {
    font-size: 20px;
  }

  .bttn {
    padding: 8px 10px;
    font-size: 14px;
    width: 100%;
  }

  .box {
    padding: 12px;
  }

  .foot {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .qGrid {
    grid-template-columns: 1fr;
  }

  .barsPlot {
    padding: 5px;
    gap: 4px;
  }

  .barDay {
    font-size: 9px;
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- SEMANTIC & REPLACED INLINE STYLES --- */
.is-active-top {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.title-uppercase {
  text-transform: uppercase;
  letter-spacing: -0.9px;
  font-weight: 1000;
}
.text-muted {
  margin-top: 5px;
  color: rgba(255, 255, 255, .86);
}
.bttn-start-today {
  border-radius: 3px;
  border-width: 3px;
  margin-top: 10px;
}
.bar-mon { height: 62%; }
.bar-tue { height: 68%; }
.bar-wed { height: 65%; }
.bar-thu { height: 74%; }
.bar-fri { height: 81%; }
.bar-sat { height: 77%; }
.bar-sun { height: 70%; }

.margin-b-lg { margin-bottom: 24px; }
.text-lg { font-size: 18px; }
.margin-t-xl { margin-top: 30px; }
.p-lg { padding: 24px; }
.text-md { font-size: 16px; }
.text-sm { font-size: 14px; }
.margin-t-sm { margin-top: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* --- FAQ SECTION --- */
.faq-box {
  margin-top: 14px;
}
.faq-item {
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  margin-top: 10px;
  padding: 10px 14px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.faq-item p {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(15, 23, 42, .7);
}

/* --- PROGRESS BARS (Native semantic styling) --- */
.progTrack-semantic {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  margin-top: 8px;
}
.progTrack-semantic::-webkit-progress-bar {
  background: rgba(15, 23, 42, .06);
  border-radius: 999px;
}
.progTrack-semantic::-webkit-progress-value {
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progTrack-semantic::-moz-progress-bar {
  border-radius: 999px;
}
.semantic-bar-green::-webkit-progress-value { background: linear-gradient(90deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, .9)); }
.semantic-bar-green::-moz-progress-bar { background: linear-gradient(90deg, rgba(34, 197, 94, 1), rgba(16, 185, 129, .9)); }
.semantic-bar-pink-purple::-webkit-progress-value { background: linear-gradient(90deg, rgba(236, 72, 153, 1), rgba(109, 40, 217, 1)); }
.semantic-bar-pink-purple::-moz-progress-bar { background: linear-gradient(90deg, rgba(236, 72, 153, 1), rgba(109, 40, 217, 1)); }
#workout-progress::-webkit-progress-value { background: linear-gradient(90deg, rgba(109, 40, 217, 1), rgba(34, 197, 94, 1)); }
#workout-progress::-moz-progress-bar { background: linear-gradient(90deg, rgba(109, 40, 217, 1), rgba(34, 197, 94, 1)); }

/* --- MODAL DIALOG --- */
.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: auto;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  width: 90vw;
  max-width: 400px;
  color: var(--text);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.modal-input {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, .15);
  font-size: 14px;
}
.modal-actions {
  margin-top: 16px;
  text-align: right;
}

/* --- ANIMATIONS AND TRANSITIONS --- */
.bttn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.bttn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.bttn:active {
  transform: translateY(0);
}
.row {
  transition: background 0.15s ease, transform 0.15s ease;
}
.row:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.01);
}
.rightBottomCol {
  display: flex;
  flex-direction: column;
}

/* --- LAYOUT FIXES FOR SMALL SCREENS --- */
@media (max-width: 480px) {
  .bigText {
    word-break: break-word;
  }
  .statLine {
    grid-template-columns: 1fr;
  }
  .bttn {
    width: 100%;
  }
  .bottom {
    grid-template-columns: 1fr;
  }
  .rightBottomCol {
    gap: 14px;
  }
}
@media (max-width: 820px) {
  .rightBottomCol {
    gap: 14px;
  }
  .boxHead {
    flex-wrap: wrap;
  }
}

/* --- EXERCISE GRID IN MODAL --- */
.exercise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(15, 23, 42, .02);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
}
.ex-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ex-lbl input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.toast {
  background: #fff;
  color: var(--text);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  border-left: 5px solid var(--accent);
}
.toast-icon {
  font-size: 18px;
  color: var(--accent);
}
.toast.toast-hiding {
  animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toastFadeOut {
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* --- MY WORKOUTS & HISTORY CARDS --- */
.workouts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  margin-top: 10px;
}
.workout-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  background: rgba(15, 23, 42, .03);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.workout-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
}
.w-card-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}
.w-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* --- HISTORY TIMELINE --- */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(15, 23, 42, .1);
  margin-left: 10px;
}
.history-item {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.history-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent2);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .1);
}
.h-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.h-title {
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
}
.h-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}