:root {
  --bg: #0f0e14;
  --card: #1a1824;
  --card2: #221f2e;
  --text: #f4f2ff;
  --muted: #9b96ad;
  --accent: #8b7cf6;
  --accent2: #c4a1ff;
  --line: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.hero .eyebrow {
  color: var(--accent2);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.hero .sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat span {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.stat small {
  color: var(--muted);
  font-size: 11px;
}

.card-day {
  background: linear-gradient(145deg, var(--card2), var(--card));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.card-day-btn {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}

.card-day-btn:active {
  transform: scale(0.99);
  border-color: var(--accent);
}

.quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.quick-btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 13px;
  padding: 10px 8px;
  cursor: pointer;
}

.quick-btn:active {
  background: var(--card2);
}

.label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.card-day h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card-day p {
  color: #ddd8ef;
  line-height: 1.45;
  font-size: 15px;
}

.mod-section {
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mod {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.mod:active {
  transform: scale(0.99);
  background: var(--card2);
  border-color: rgba(139, 124, 246, 0.35);
}

.mod-emoji {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.mod-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mod-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.mod-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.topics { margin-bottom: 24px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips button {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.chips button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.cta { display: grid; gap: 10px; }
.legal {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}
.legal a { color: var(--accent); }

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6b5ce7);
  color: white;
}

.btn.ghost {
  background: transparent;
  color: var(--accent2);
  border: 1px solid var(--line);
}

.toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 24px;
  max-width: 448px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(26, 24, 36, 0.96);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}
