body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #0b1320;
    color: #e6eefc;
}

.page-header {
    padding: 24px;
    text-align: center;
}

.page-header h1 {
    margin: 0;
    font-size: 3rem;
    color: #4ea1ff;
}

.subtitle {
    color: #9fb6d8;
}

.card {
    background: #111c2e;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.input-card {
    max-width: 1200px;
    margin: 0 auto 30px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #9fb6d8;
}

.field input,
.field textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #0b1320;
    color: #fff;
}

.field textarea {
    min-height: 80px;
    resize: vertical;
}

.inline {
    display: flex;
    gap: 8px;
}

.full {
    grid-column: 1 / -1;
}

.btn-primary {
    margin-top: 18px;
    padding: 12px 20px;
    background: #4ea1ff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    color: #08111f;
    cursor: pointer;
}

.btn-primary:hover {
    background: #6bb2ff;
}

.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.widget h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #f7b731;
}
.countdown {
    max-width: 1500px;
    margin: 0 auto 30px;
    text-align: center;
}

#retireCountdown {
    font-size: 2rem;
    color: #3ddc97;
    margin-top: 10px;
}
.weekly ul {
    list-style: none;
    padding: 0;
    font-size: 2rem;
}

.weekly li {
    padding: 6px 0;
    color: #9fb6d8;
}

/* Progress Ring Styles */
.ring-wrap {
    position: relative;
    width: 180px;
    margin: 20px auto 10px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: #1b2a44;
}

.ring-progress {
    stroke: #3ddc97;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#retireCountdown {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3ddc97;
}

.percent-text {
    font-size: 0.9rem;
    color: #9fb6d8;
    margin-top: 4px;
}
.weight-goal {
    max-width: 1500px;
    margin: 0 auto 30px;
    text-align: center;
}

.weight-ring {
    stroke: #4ea1ff;
    fill: none;
    stroke-linecap: round;

    /* 🔑 THIS IS THE KEY */
    stroke-dasharray: 502;
    stroke-dashoffset: 502;

    transform: rotate(-90deg);
    transform-origin: 50% 50%;

    transition: stroke-dashoffset 0.8s ease-out;
}
.retire-ring-progress {
    stroke: #3ddc97;
    stroke-linecap: round;
}



#weightRingMain {
    font-size: 1.6rem;
    font-weight: 600;
    color: #4ea1ff;
}

#weightRingSub {
    font-size: 0.9rem;
    color: #9fb6d8;
    margin-top: 4px;
}
.widget canvas {
    height: 260px !important;
}
.weight-ring-bg {
  fill: none;
  stroke: #23314f;
  stroke-width: 12;
}

.weight-ring-progress {
  fill: none;
  stroke: #4ea1ff;
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
/* ==============================
   HEALTH PAGE FLOW
============================== */

.health-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

/* Stack charts vertically */
.chart-stack .card {
  margin-bottom: 20px;
}

.chart-stack h2 {
  margin-bottom: 12px;
}

/* Weekly summary = secondary */
.card.subtle {
  background: linear-gradient(180deg, #0c1728, #091222);
  opacity: 0.9;
}
/* ==============================
   MOBILE FIRST TIGHTENING
============================== */

/* Base (mobile) */
@media (max-width: 600px) {

  .health-page {
    padding: 14px 12px 40px;
  }

  .card {
    padding: 14px 14px 18px;
    border-radius: 12px;
  }

  .card h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .ring-wrap {
    margin: 12px auto;
  }

  /* Make charts shorter on mobile */
  .card canvas {
    height: 220px !important;
  }

  /* Form fields stack tighter */
  .grid {
    row-gap: 10px;
    column-gap: 10px;
  }

  .btn-primary {
    width: 100%;
    margin-top: 10px;
  }
}
