:root {
    --bg: #0f1419; --accent: #ff6b35;
    --card-bg: #1a1f24; --card-text: #e8e8e8;
    --secondary: #4ecdc4;
    --highlight: hsl(28, 85%, 65%);
    --curve: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body {
    margin: 0; font-family: sans-serif; color: #fff;
    background: linear-gradient(-45deg, var(--bg),
      #1a2028, #14191f);
    background-size: 400% 400%;
    animation: waveShift 15s ease infinite;
}
@keyframes waveShift {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.main-wrapper {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 20px; text-align: center;
}
.glow-text {
  color: var(--accent);
  text-shadow: 0 0 15px rgba(255,107,53,0.6);
  font-size: clamp(2rem, 5vw, 2.5rem);
}
.site-header p { color: #bbb; margin-bottom: 30px; }
.progress-section {
  margin: 0 auto 40px; max-width: 500px;
}
.progress-bar-bg {
  background: #222; height: 18px;
  border-radius: 10px; overflow: hidden;
}
.progress-bar-fill {
  background: linear-gradient(90deg,
    var(--accent), var(--secondary));
  width: 0%; height: 100%;
  transition: width 0.6s var(--curve);
  box-shadow: 0 0 10px var(--accent);
}
/* Grid Layout */
#workoutGrid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px; perspective: 1000px;
  margin-bottom: 50px;
}
.flip-card {
  width: clamp(130px, 15vw, 150px);
  height: clamp(130px, 15vw, 150px);
  margin: 0 auto; cursor: pointer;
  position: relative; transition: 0.2s;
  border: 1px solid rgba(255,107,53,0.4);
  box-shadow: 0 0 20px rgba(255,107,53,0.15),
    inset 0 0 20px rgba(78,205,196,0.08);
}
.flip-card:hover {
  transform: scale(1.05) translateY(-5px);
}
.featured { grid-column: span 2; width: 320px; }
.card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.6s var(--curve);
  transform-style: preserve-3d;
}
.flipped .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: 15px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 15px; box-sizing: border-box;
}
.card-front {
  background: linear-gradient(135deg,
    var(--card-bg), #1f282e);
  color: var(--card-text);
  border: 2px solid rgba(78,205,196,0.5);
}
.card-back {
  background: linear-gradient(135deg,
    var(--accent), #ff8555);
  color: #fff; transform: rotateY(180deg);
  border: 2px solid rgba(255,107,53,0.9);
}
.day-label {
  font-weight: bold; font-size: 1.4rem;
  margin-bottom: 10px; color: var(--secondary);
}
.workout-text {
  font-size: 1.1rem; font-weight: 600;
  line-height: 1.3;
}
.check-mark {
  font-size: 3rem; margin-bottom: 5px;
}
/* Timer */
.timer-section {
  background: rgba(30,30,30,0.8);
  border: 1px solid #444; border-radius: 12px;
  padding: 20px; max-width: 400px;
  margin: 0 auto 40px;
  backdrop-filter: blur(5px);
}
.timer-section h3 {
  color: var(--highlight); margin: 0 0 15px;
}
.timer-controls {
  display: flex; gap: 10px;
  justify-content: center; margin-bottom: 20px;
}
#timerInput {
  width: 80px; padding: 8px; border-radius: 5px;
  border: 1px solid #444; background: #121212;
  color: #fff; text-align: center;
}
.btn-timer {
  padding: 8px 15px; border-radius: 5px;
  border: 1px solid rgba(78,205,196,0.5);
  cursor: pointer; background: var(--card-bg);
  color: var(--card-text); font-weight: bold;
}
.timer-display {
  font-size: 4rem; font-weight: bold;
  color: var(--accent); font-family: monospace;
}
.site-footer {
  margin-top: 40px; border-top: 1px solid #333;
  padding-top: 20px;
}
.btn-reset {
  background: linear-gradient(135deg,
    #e74c3c, #c0392b);
  color: #fff; border: none; padding: 10px 20px;
  border-radius: 5px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(231,76,60,0.3);
}
.instructions { color: #777; font-size: 0.9rem; }
@media (max-width: 1024px) {
  .workout-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured { grid-column: span 1; width: 150px; }
}
@media (max-width: 600px) {
  .workout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flip-card { width: 130px; height: 130px; }
  .featured { grid-column: span 1; width: 130px; }
}