:root {
  --bg: #0b1020;
  --panel: #121933;
  --panel-2: #182243;
  --text: #eef2ff;
  --muted: #a8b2d1;
  --accent: #6ee7b7;
  --accent-2: #38bdf8;
  --danger: #fb7185;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 20px 50px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #15204a 0, var(--bg) 55%);
  color: var(--text);
}
.app-shell { max-width: 1180px; margin: 0 auto; padding: 32px 20px 56px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
h1 { margin: 12px 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; }
p { color: var(--muted); }
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 14px; }
.hero-stats div { padding: 18px; border-radius: 18px; background: var(--panel-2); text-align: center; }
.hero-stats strong { display: block; font-size: 30px; }
.grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; }
.form-panel, .filters-panel { padding: 24px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
input, textarea, button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}
input, textarea {
  margin-top: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
}
button {
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08111f;
  font-weight: 700;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; }
.segmented { display: flex; gap: 10px; margin: 14px 0 18px; }
.filter-btn { background: rgba(255,255,255,0.06); color: var(--text); }
.filter-btn.active { outline: 2px solid var(--accent); }
.task-list { display: grid; gap: 14px; }
.task-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: rgba(4, 10, 30, 0.45);
}
.task-top { display: flex; justify-content: space-between; gap: 18px; }
.task-top h3 { margin: 0 0 8px; }
.meta { margin: 0; font-size: 14px; }
.description { margin: 14px 0; }
.badge {
  align-self: start;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  background: rgba(110,231,183,.14);
  color: var(--accent);
}
.badge.done { background: rgba(56,189,248,.15); color: var(--accent-2); }
.task-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-btn { flex: 1; min-width: 180px; }
.wa-btn {
  flex: 1;
  min-width: 180px;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  padding: 14px 16px;
  background: #25d366;
  color: #04140b;
  font-weight: 800;
}
.empty {
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 920px) {
  .grid, .row, .hero { grid-template-columns: 1fr; display: grid; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
