@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Core Palette */
  --bg-deep: #06080f;
  --bg-base: #0c1021;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-card-active: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.15);

  /* Text */
  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #4a5568;

  /* Accents */
  --gold: #f0c06e;
  --gold-dim: rgba(240, 192, 110, 0.12);
  --gold-glow: rgba(240, 192, 110, 0.35);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);
  --teal-glow: rgba(45, 212, 191, 0.35);
  --rose: #f9a8d4;
  --rose-dim: rgba(249, 168, 212, 0.10);
  --rose-glow: rgba(249, 168, 212, 0.3);
  --purple: #c4b5fd;
  --purple-dim: rgba(196, 181, 253, 0.10);
  --pink: #f9a8d4;
  --pink-dim: rgba(249, 168, 212, 0.12);
  --pink-glow: rgba(249, 168, 212, 0.3);
  --check-color: #2dd4bf;
  --check-glow: rgba(45, 212, 191, 0.5);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 500ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
  --spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height: 72px;
  --header-height: 56px;
  --max-width: 600px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ============== LAYOUT ============== */
#app {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: calc(var(--nav-height) + 20px);
  min-height: 100dvh;
}

/* ============== HEADER ============== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header h1 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.app-header h1 span {
  color: var(--gold);
}

.header-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
}

/* ============== VIEW CONTAINERS ============== */
.view {
  display: none;
  padding: var(--space-lg);
  animation: viewFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.view.active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ============== TODAY VIEW ============== */
.today-hero {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  animation: heroFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.today-hero .date-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.today-hero .date-main {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.today-hero .date-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.today-hero .date-sub span {
  color: var(--gold);
  font-weight: 700;
}

/* Today Progress Ring */
.today-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.progress-ring-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-ring-container svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 5;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--teal);
  transition: all 0.5s ease;
}

.progress-stats {
  text-align: left;
}

.progress-stats .stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.progress-stats .stat-value {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 2px;
}

/* ============== ENERGY ALERT CARD ============== */
.energy-alert {
  background: var(--gold-dim);
  border: 1px solid rgba(246, 196, 69, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
  animation: alertSlideIn 0.6s var(--spring) both, alertBreathing 4s ease-in-out 0.6s infinite;
}

.energy-alert.rose {
  background: var(--rose-dim);
  border-color: rgba(244, 63, 94, 0.2);
  animation: alertSlideIn 0.6s var(--spring) both, alertBreathingRose 4s ease-in-out 0.6s infinite;
}

.energy-alert.teal {
  background: var(--teal-dim);
  border-color: rgba(45, 212, 191, 0.2);
  animation: alertSlideIn 0.6s var(--spring) both, alertBreathingTeal 4s ease-in-out 0.6s infinite;
}

.energy-alert.purple {
  background: var(--purple-dim);
  border-color: rgba(167, 139, 250, 0.2);
  animation: alertSlideIn 0.6s var(--spring) both, alertBreathingPurple 4s ease-in-out 0.6s infinite;
}

@keyframes alertSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes alertBreathing {
  0%, 100% { box-shadow: 0 0 20px var(--gold-dim); transform: scale(1); }
  50% { box-shadow: 0 0 40px var(--gold-glow), 0 0 60px var(--gold-dim); transform: scale(1.008); }
}

@keyframes alertBreathingRose {
  0%, 100% { box-shadow: 0 0 20px var(--rose-dim); transform: scale(1); }
  50% { box-shadow: 0 0 40px var(--rose-glow), 0 0 60px var(--rose-dim); transform: scale(1.008); }
}

@keyframes alertBreathingTeal {
  0%, 100% { box-shadow: 0 0 20px var(--teal-dim); transform: scale(1); }
  50% { box-shadow: 0 0 40px var(--teal-glow), 0 0 60px var(--teal-dim); transform: scale(1.008); }
}

@keyframes alertBreathingPurple {
  0%, 100% { box-shadow: 0 0 20px var(--purple-dim); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(167,139,250,0.3), 0 0 60px var(--purple-dim); transform: scale(1.008); }
}

.energy-alert .alert-emoji {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.energy-alert .alert-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: var(--space-xs);
}

.energy-alert.rose .alert-title { color: var(--rose); }
.energy-alert.teal .alert-title { color: var(--teal); }
.energy-alert.purple .alert-title { color: var(--purple); }

.energy-alert .alert-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============== SECTION CARDS ============== */
.section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  animation: cardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.section-card + .section-card,
#today-week-milestones .section-card,
#today-sprint-goals .section-card {
  margin-top: var(--space-sm);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-card .task-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.05);
}

.section-card .task-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ============== TASK CARDS ============== */
.section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-left: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-count {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.72rem;
  margin-left: auto;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
  transition: all var(--transition-smooth);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: cardSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered entrance for task cards */
.task-card:nth-child(1) { animation-delay: 0.03s; }
.task-card:nth-child(2) { animation-delay: 0.08s; }
.task-card:nth-child(3) { animation-delay: 0.13s; }
.task-card:nth-child(4) { animation-delay: 0.18s; }
.task-card:nth-child(5) { animation-delay: 0.23s; }
.task-card:nth-child(6) { animation-delay: 0.28s; }
.task-card:nth-child(7) { animation-delay: 0.33s; }
.task-card:nth-child(8) { animation-delay: 0.38s; }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-16px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.task-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.task-card:active {
  transform: scale(0.98) translateY(0);
  transition-duration: 100ms;
}

.task-card.completed {
  opacity: 0.55;
  transform: translateX(0);
  background: rgba(45, 212, 191, 0.03);
}

.task-card.completed:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.task-card.completed .task-text {
  text-decoration: line-through;
  text-decoration-color: var(--teal);
  color: var(--text-muted);
  transition: color 0.5s ease, text-decoration-color 0.5s ease;
}

.task-card.quest {
  border-left: 3px solid var(--gold);
}

.task-card.health {
  border-left: 3px solid var(--teal);
}

.task-card.golden-rule {
  border-left: 3px solid var(--rose);
}

/* Custom Checkbox */
.task-check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.task-card:hover .task-check {
  border-color: var(--teal);
}

.task-card.completed .task-check {
  background: var(--check-color);
  border-color: var(--check-color);
  box-shadow: 0 0 16px var(--check-glow), 0 0 4px var(--pink-glow);
  animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
  0% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1.25); }
  60% { transform: scale(0.92); }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

.task-check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.3) rotate(-90deg);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-card.completed .task-check svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.task-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 450;
  flex: 1;
  transition: all 0.5s ease;
}

.task-text strong {
  font-weight: 650;
}

/* ============== BADGE / TAGS ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge.holiday {
  background: var(--gold-dim);
  color: var(--gold);
}

.badge.payday {
  background: var(--teal-dim);
  color: var(--teal);
}

.badge.energy {
  background: var(--purple-dim);
  color: var(--purple);
}

.badge.retreat {
  background: var(--rose-dim);
  color: var(--rose);
}

/* ============== WEEK VIEW ============== */
.week-selector {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: var(--space-xs);
}

.week-selector::-webkit-scrollbar { display: none; }

.week-btn {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.week-btn:hover {
  background: var(--bg-card-hover);
}

.week-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.week-header {
  margin-bottom: var(--space-lg);
}

.week-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.week-header .week-dates {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.week-header .week-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  line-height: 1.6;
  font-style: italic;
}

.week-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--gold));
  background-size: 300% 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  animation: progressShimmer 4s ease-in-out infinite;
  position: relative;
}

.week-progress-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

@keyframes progressShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============== SPRINT VIEW ============== */
.sprint-toggle {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sprint-btn {
  flex: 1;
  background: var(--bg-card);
  border: none;
  padding: var(--space-md);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.sprint-btn.active {
  background: var(--gold-dim);
  color: var(--gold);
}

.sprint-header {
  margin-bottom: var(--space-lg);
}

.sprint-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.sprint-header .sprint-focus {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.sprint-category {
  margin-bottom: var(--space-xl);
}

.sprint-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.sprint-category-header .cat-icon {
  font-size: 1rem;
}

.sprint-category-header .cat-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

/* ============== MONTH VIEW ============== */
.month-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-smooth);
  animation: statPopIn 0.5s var(--spring) both;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.12s; }
.stat-card:nth-child(3) { animation-delay: 0.19s; }

@keyframes statPopIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.stat-card .stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  transition: transform var(--transition-smooth);
}

.stat-card:hover .stat-num {
  transform: scale(1.08);
}

.stat-card .stat-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: var(--space-xl);
}

.cal-day-label {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  background: var(--bg-card);
  border: 1px solid transparent;
  gap: 2px;
  animation: calDayFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered calendar animation */
.cal-day:nth-child(8) { animation-delay: 0.02s; }
.cal-day:nth-child(9) { animation-delay: 0.04s; }
.cal-day:nth-child(10) { animation-delay: 0.06s; }
.cal-day:nth-child(11) { animation-delay: 0.08s; }
.cal-day:nth-child(12) { animation-delay: 0.10s; }
.cal-day:nth-child(13) { animation-delay: 0.12s; }
.cal-day:nth-child(14) { animation-delay: 0.14s; }
.cal-day:nth-child(n+15) { animation-delay: 0.16s; }
.cal-day:nth-child(n+22) { animation-delay: 0.20s; }
.cal-day:nth-child(n+29) { animation-delay: 0.24s; }
.cal-day:nth-child(n+36) { animation-delay: 0.28s; }
.cal-day:nth-child(n+43) { animation-delay: 0.32s; }

@keyframes calDayFade {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.cal-day:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
  transform: scale(1.12);
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.cal-day.today {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  animation: calDayFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both, todayGlow 2.5s ease-in-out infinite;
}

@keyframes todayGlow {
  0%, 100% { box-shadow: 0 0 8px var(--gold-dim); }
  50% { box-shadow: 0 0 18px var(--gold-glow); }
}

.cal-day.holiday {
  color: var(--gold);
}

.cal-day.has-alert::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
}

.cal-day.completed-day {
  background: var(--teal-dim);
  color: var(--teal);
}

.cal-day.empty {
  visibility: hidden;
}

/* ============== BOTTOM NAVIGATION ============== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-inner {
  display: flex;
  gap: 0;
  max-width: var(--max-width);
  width: 100%;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: var(--space-sm) 0;
  transition: all var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  transition: all var(--transition-smooth);
}

.nav-btn.active {
  color: var(--gold);
}

.nav-btn.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 8px var(--gold-glow));
}

.nav-btn:hover {
  color: var(--text-secondary);
}

.nav-btn:hover svg {
  transform: translateY(-1px);
}

.nav-btn:active svg {
  transform: scale(0.9);
  transition-duration: 100ms;
}

/* ============== CONFETTI CANVAS ============== */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ============== DAY NAVIGATION ============== */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.day-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.day-nav-btn:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1);
}

.day-nav-btn:active {
  transform: scale(0.92);
  transition-duration: 100ms;
}

.day-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.day-nav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-smooth);
}

.day-nav-today {
  background: var(--gold-dim);
  border: 1px solid rgba(246,196,69,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.day-nav-today:hover {
  background: var(--gold-glow);
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--gold-dim);
}

.day-nav-today:active {
  transform: scale(0.95);
  transition-duration: 100ms;
}

/* ============== STREAK COUNTER ============== */
.streak-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.streak-icon { font-size: 1.5rem; }

.streak-info .streak-count {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
}

.streak-info .streak-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============== RESPONSIVE ============== */
@media (min-width: 768px) {
  :root {
    --nav-height: 56px;
  }
  
  .bottom-nav {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid var(--border);
  }

  #app {
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: var(--space-2xl);
  }

  .app-header {
    top: var(--nav-height);
  }

  .nav-btn {
    flex-direction: row;
    gap: var(--space-sm);
    font-size: 0.7rem;
  }
}

/* ============== SPARKLE PARTICLES ============== */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 14px;
  animation: sparkleFloat 0.9s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.15) rotate(260deg);
  }
}

/* ============== SPRINT GOALS IN TODAY ============== */
.today-sprint-goals {
  margin-top: var(--space-lg);
}

.goals-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-dim), var(--blue-dim), transparent);
  margin: var(--space-xl) 0 var(--space-md);
}

.stat-card .stat-num {
  color: var(--teal);
}
