:root {
  --primary: #22c55e; /* green */
  --primary-600: #16a34a;
  --bg: #0b1020;
  --card: #121833;
  --muted: #94a3b8;
  --text: #e5e7eb;
  --danger: #ef4444;
  --accent: #38bdf8;
  --gold: #f59e0b;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
    sans-serif;
  background: radial-gradient(
      1200px 600px at 50% -20%,
      #1b2553 0%,
      transparent 60%
    ),
    radial-gradient(1000px 500px at 120% 10%, #0e2f26 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0px;
}
.app {
  width: 100%;
  max-width: 480px;
  padding: 14px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 12px;
}

.brand-info .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-info .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #052e1b;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.25);
}
h1 {
  font-size: 22px;
  margin: 0;
}
.sub {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  margin: 2px 0 14px;
}
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin: 8px 0 6px;
}
input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0f1f;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border 0.2s, transform 0.05s;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--accent);
}
.row {
  display: flex;
  gap: 10px;
}
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #052e1b;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.05s, filter 0.2s;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.25);
}
button:active {
  transform: scale(0.98);
}
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}
.grid {
  display: grid;
  gap: 10px;
}
.two {
  grid-template-columns: 1fr 1fr;
}
.hidden {
  display: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #c8eefc;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 12px;
}
/* Progress bars */
.progress {
  background: #0a0f1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #10b981);
  transition: width 0.35s ease;
}
.stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Todos */
.todo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
}
.todo .title {
  flex: 1;
  margin-right: 10px;
}
.todo input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
  cursor: pointer;
}
.todo.done .title {
  color: #9ca3af;
  text-decoration: line-through;
}

/* Badge chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.15);
  color: #fff6e5;
  font-size: 12px;
  font-weight: 700;
}
/* Nav */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* background: rgba(18, 24, 51, 0.95); */
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 480px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}
nav button {
  font-weight: 700;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
nav button.active {
  background: var(--primary);
  color: #052e1b;
}

.quote {
  font-size: 13px;
  color: #eafcf6;
}
.quote em {
  color: #a7f3d0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.center {
  text-align: center;
}
.kudos {
  font-size: 13px;
  color: #c7f9cc;
}
.hr {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 0;
}
/* Tiny confetti canvas */
#fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* Setup form spacing */
.setup-form {
  gap: 18px; /* more breathing space */
}

.setup-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setup-form input,
.setup-form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.setup-form textarea {
  resize: vertical;
  min-height: 100px;
}

.setup-form button {
  margin-top: 10px;
  padding: 12px;
  font-size: 16px;
}
