:root {
  --bg: #020617;
  --bg-card: #0b1120;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.2);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius: 10px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.header h1 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.header p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.header-stats {
  display: flex;
  gap: 0.75rem;
}

.stat {
  text-align: right;
}

.stat .label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
}

.stat .value {
  font-size: 0.95rem;
  font-weight: 600;
}

.progress-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #020617;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  transition: width 0.25s ease-out;
}

.main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 4rem;
}

.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.task {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid transparent;
}

.task input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.task span {
  flex: 1;
}

.task input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}

.daily-perfect {
  text-align: center;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: rgba(34, 197, 94, 0.35);
}

button:active {
  transform: scale(0.97);
}

#daily-perfect-btn {
  width: 100%;
}

.footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  justify-content: center;
}

#save-day-btn {
  width: 100%;
  max-width: 480px;
  background: var(--accent);
  color: #020617;
}

/* Already mobile-first; you can add desktop tweaks later if you want */