/* ============================================================
   CRUSH90 — 90-Day Goal Domination Engine
   Bold, aggressive, modern SaaS styling — vanilla CSS
   ============================================================ */

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

:root {
  --bg-base: #0a0a0f;
  --bg-elev-1: #14141d;
  --bg-elev-2: #1c1c2a;
  --bg-elev-3: #25253a;
  --border: #2d2d44;
  --border-strong: #3a3a55;
  --text-primary: #f5f5fa;
  --text-secondary: #a8a8be;
  --text-muted: #6e6e85;

  --accent: #ff2e63;
  --accent-glow: rgba(255, 46, 99, 0.45);
  --accent-2: #ffd700;
  --accent-3: #00f5d4;
  --danger: #ff2e63;
  --success: #00f5d4;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px rgba(255, 46, 99, 0.25);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at top left, rgba(255, 46, 99, 0.18), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(0, 245, 212, 0.10), transparent 55%),
    var(--bg-base);
  min-height: 100vh;
  position: relative;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
  mix-blend-mode: overlay;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

/* ============= HERO ============= */
.hero { text-align: center; margin-bottom: 56px; }

.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 46, 99, 0.12);
  border: 1px solid rgba(255, 46, 99, 0.4);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 20px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #c7c7d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 46, 99, 0.15);
}

.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-chip {
  padding: 8px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============= TABS ============= */
.tabs-bar {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.tabs-scroller {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tabs-scroller::-webkit-scrollbar { height: 6px; }
.tabs-scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 16px;
  background: var(--bg-elev-2);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 240px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tab:hover {
  color: var(--text-primary);
  background: var(--bg-elev-3);
  transform: translateY(-1px);
}

.tab.active {
  color: #0a0a0f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 46, 99, 0.35);
}

.tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}

.tab-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.tab.active .tab-progress {
  background: rgba(10, 10, 15, 0.25);
  color: #0a0a0f;
}

.tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: background 140ms ease, opacity 140ms ease;
}

.tab-close:hover {
  background: rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.tab.active .tab-close:hover { background: rgba(10, 10, 15, 0.18); }

.new-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.new-tab-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 46, 99, 0.06);
}

.new-tab-btn .plus {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 640px) {
  .new-tab-label { display: none; }
  .tab { max-width: 180px; padding: 10px 12px; }
  .tab-label { max-width: 110px; }
}

/* ============= INPUT SECTION ============= */
.input-section { margin-bottom: 64px; }

.input-card {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.input-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
}

.input-header { margin-bottom: 28px; }

.input-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.input-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.goal-input {
  width: 100%;
  min-height: 160px;
  padding: 18px 20px;
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.goal-input::placeholder { color: var(--text-muted); }

.goal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.15);
}

.input-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 28px;
}

.number-input,
.select-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 180ms ease;
  appearance: none;
}

.select-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a8a8be' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.number-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, 0.15);
}

.primary-btn {
  width: 100%;
  padding: 20px 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff5680 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: var(--shadow-glow);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(255, 46, 99, 0.45);
  filter: brightness(1.08);
}

.primary-btn:active { transform: translateY(0); }

.btn-arrow {
  font-size: 22px;
  transition: transform 200ms ease;
}

.primary-btn:hover .btn-arrow { transform: translateX(6px); }

/* ============= RESULTS ============= */
.results-section { animation: fadeUp 480ms ease both; }

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

.hidden { display: none !important; }

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.results-title-block h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ghost-btn {
  padding: 12px 22px;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ghost-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 46, 99, 0.06);
}

/* ============= GOAL TEMPLATES ============= */
.goal-templates {
  margin-top: 20px;
}

.templates-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.template-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.template-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-elev-3);
}

.template-chip .template-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* ============= WORK GRID (To-Do + Journal) ============= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.work-card { display: flex; flex-direction: column; }

.todo-form,
.journal-form-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.todo-input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.todo-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.12);
}

.todo-add-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.todo-add-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-list:empty::before {
  content: "Empty list. Drop something in to keep your brain clear.";
  display: block;
  padding: 14px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
}

.todo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-primary);
  transition: opacity 160ms ease;
}

.todo-list li.is-done { opacity: 0.55; }
.todo-list li.is-done .todo-text { text-decoration: line-through; color: var(--text-muted); }
.todo-list li.is-done .todo-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #0a0a0f;
}

.todo-checkbox {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
  padding: 0;
  transition: all 160ms ease;
}

.todo-checkbox:hover { border-color: var(--accent); }

.todo-text {
  flex: 1;
  line-height: 1.5;
  word-break: break-word;
}

.todo-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease;
}

.todo-remove:hover { color: var(--accent); background: rgba(255, 46, 99, 0.08); }

/* Journal */
.journal-prompt {
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.08), rgba(255, 215, 0, 0.06));
  border-left: 3px solid var(--accent-3);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.journal-prompt-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-3);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.journal-prompt-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.journal-input {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  margin-bottom: 12px;
}

.journal-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.12);
}

.journal-form-actions { justify-content: space-between; align-items: center; }

.journal-save-btn {
  width: auto;
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.journal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.journal-list::-webkit-scrollbar { width: 6px; }
.journal-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.journal-list:empty::before {
  content: "No entries yet. Save your first reflection above.";
  display: block;
  padding: 12px;
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted);
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
}

.journal-entry {
  padding: 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-2);
}

.journal-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.journal-entry-date {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.journal-entry-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 160ms ease, background 160ms ease;
}

.journal-entry-remove:hover { color: var(--accent); background: rgba(255, 46, 99, 0.08); }

.journal-entry-prompt {
  font-size: 12px;
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 6px;
  font-style: italic;
  line-height: 1.4;
}

.journal-entry-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ============= MILESTONE MODAL ============= */
.milestone-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 320ms ease both;
}

.milestone-modal[aria-hidden="true"] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.milestone-card {
  position: relative;
  padding: 56px 56px 48px;
  background: linear-gradient(180deg, #1c0d1a 0%, #14141d 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 80px rgba(255, 46, 99, 0.45);
  animation: milestonePop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
  overflow: hidden;
}

@keyframes milestonePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.milestone-burst {
  position: absolute;
  inset: -100%;
  background:
    conic-gradient(from 0deg,
      transparent 0deg, rgba(255, 46, 99, 0.18) 10deg, transparent 22deg,
      transparent 40deg, rgba(255, 215, 0, 0.16) 50deg, transparent 62deg,
      transparent 80deg, rgba(0, 245, 212, 0.18) 90deg, transparent 102deg);
  animation: milestoneSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes milestoneSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.milestone-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 160ms ease, color 160ms ease;
}

.milestone-close:hover {
  background: var(--accent);
  color: #fff;
}

.milestone-icon {
  position: relative;
  font-size: 56px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 24px rgba(255, 46, 99, 0.5));
  z-index: 1;
}

.milestone-number {
  position: relative;
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
}

.milestone-label {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 22px;
  z-index: 1;
}

.milestone-headline {
  position: relative;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  z-index: 1;
}

.milestone-sub {
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
  z-index: 1;
}

.milestone-cta {
  position: relative;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff5680 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(255, 46, 99, 0.35);
  transition: transform 160ms ease, filter 160ms ease;
}

.milestone-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

@media (max-width: 480px) {
  .milestone-card { padding: 40px 24px 32px; }
  .milestone-headline { font-size: 19px; }
  .milestone-sub { font-size: 14px; }
}

/* ============= TODAY'S MISSION BANNER ============= */
.today-banner {
  background: linear-gradient(135deg, #1c0d1a 0%, #14141d 60%, #0a1818 100%);
  border: 1.5px solid rgba(255, 46, 99, 0.4);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.today-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
}

.today-banner.is-outside {
  background: linear-gradient(135deg, #14141d 0%, #1c1c2a 100%);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.today-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.today-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.today-date {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.today-day-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 46, 99, 0.35);
}

.today-day-label,
.today-day-of {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.today-day-num {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.today-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.today-status-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
}

.today-mark-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff5680 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 46, 99, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.today-mark-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(255, 46, 99, 0.45);
}

.today-mark-btn.is-done {
  background: linear-gradient(135deg, var(--success) 0%, #00c4a8 100%);
  color: #0a0a0f;
  box-shadow: 0 6px 18px rgba(0, 245, 212, 0.3);
}

.today-mark-btn.is-disabled {
  background: var(--bg-elev-2);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.today-actions-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.today-actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.today-actions-list:empty {
  display: none;
}

.today-actions-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.5;
}

.today-actions-list li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.today-actions-empty {
  padding: 12px 16px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.today-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.today-add-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 46, 99, 0.06);
}

@media (max-width: 640px) {
  .today-banner { padding: 22px 18px; }
  .today-date { font-size: 17px; }
  .today-day-num { font-size: 30px; }
  .today-mark-btn { width: 100%; }
}

/* ============= STATS GRID ============= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.stat-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c91e4e 100%);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.stat-primary .stat-label,
.stat-primary .stat-foot { color: rgba(255, 255, 255, 0.85); }

.stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.stat-value {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-foot {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============= CARD GRID ============= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.dash-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

.dash-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.card-head { margin-bottom: 18px; }

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.card-head h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-body {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

#refinedGoal {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 16px 18px;
  background: var(--bg-elev-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

/* checklists */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.5;
}

.checklist li::before {
  content: "▸";
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* actions */
.actions-list {
  list-style: none;
  counter-reset: action;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.actions-list li {
  counter-increment: action;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
  font-size: 15px;
  line-height: 1.55;
}

.actions-list li:hover {
  border-color: var(--accent);
  background: var(--bg-elev-3);
}

.actions-list li::before {
  content: counter(action, decimal-leading-zero);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0a0a0f;
  font-weight: 900;
  font-size: 13px;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

/* phases */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.phase {
  padding: 22px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--accent);
  position: relative;
}

.phase:nth-child(2) { border-top-color: var(--accent-2); }
.phase:nth-child(3) { border-top-color: var(--accent-3); }

.phase-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.phase-headline {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.phase-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phase-plays-head {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  margin-top: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.phase-plays {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-plays li {
  position: relative;
  padding: 8px 10px 8px 26px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.phase-plays li::before {
  content: "▸";
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--accent);
  font-weight: 900;
}

/* pro tips */
.tips-list li {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 46, 99, 0.06));
  border-left: 3px solid var(--accent-2);
}

.tips-list li::before {
  content: "💡";
  font-size: 13px;
  margin-top: 0;
}

/* ============= CALENDAR ============= */
.calendar-card {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calendar-head h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.calendar-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 460px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.cal-nav-btn:hover {
  background: var(--bg-elev-3);
  border-color: var(--accent);
  color: var(--accent);
}

.cal-month-label {
  min-width: 180px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.cal-today-btn {
  padding: 10px 16px;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cal-today-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 46, 99, 0.06);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
  min-height: 60px;
  overflow: hidden;
}

.cal-day:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cal-day.outside-month {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  cursor: default;
  pointer-events: none;
  opacity: 0.4;
}

.cal-day.out-of-window {
  background: rgba(20, 20, 29, 0.4);
  border-color: var(--border);
  opacity: 0.55;
}

.cal-day.in-window {
  background: var(--bg-elev-2);
  border-color: var(--border-strong);
}

.cal-day.today {
  border-color: var(--accent-3);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.25);
}

.cal-day.completed {
  background: linear-gradient(135deg, rgba(255, 46, 99, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
  border-color: var(--accent);
}

.cal-day.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.3);
  transform: translateY(-2px);
}

.cal-date {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.cal-day.out-of-window .cal-date { color: var(--text-muted); }

.cal-daynum {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 2px;
  text-transform: uppercase;
}

.cal-day.out-of-window .cal-daynum { display: none; }

.cal-badges {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.cal-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--success);
  color: #0a0a0f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

/* Calendar panel */
.cal-panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-base);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  animation: fadeUp 240ms ease both;
}

.cal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cal-panel-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.cal-panel-head h4 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.cal-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.cal-panel-list:empty::before {
  content: "Nothing scheduled yet. Add your first action below.";
  display: block;
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
}

.cal-panel-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
}

.cal-item-text {
  flex: 1;
  line-height: 1.45;
  word-break: break-word;
}

.cal-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.cal-item-remove:hover {
  color: var(--accent);
  background: rgba(255, 46, 99, 0.1);
}

.cal-panel-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-panel-input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  background: var(--bg-elev-1);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 160ms ease;
}

.cal-panel-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.15);
}

.cal-add-btn {
  width: auto;
  padding: 14px 22px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .calendar-card { padding: 20px; }
  .cal-day { padding: 4px; min-height: 48px; }
  .cal-date { font-size: 12px; }
  .cal-daynum { font-size: 8px; }
  .cal-badges { bottom: 2px; right: 2px; }
  .cal-badge, .cal-check { width: 14px; height: 14px; min-width: 14px; font-size: 9px; }
  .cal-month-label { min-width: 120px; font-size: 14px; }
  .cal-add-btn { width: 100%; }
}

/* ============= TRACKER ============= */
.tracker-card {
  background: linear-gradient(180deg, var(--bg-elev-1) 0%, var(--bg-elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.tracker-head { margin-bottom: 24px; }

.tracker-head h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tracker-head p { color: var(--text-secondary); font-size: 14.5px; }

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tracker-stats > div {
  text-align: center;
  padding: 18px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.tracker-stats strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.tracker-stats span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.day-tracker {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 8px;
}

.day-cell {
  aspect-ratio: 1;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 160ms ease;
  user-select: none;
}

.day-cell:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.day-cell.completed {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  color: #0a0a0f;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(255, 46, 99, 0.35);
}

/* ============= FOOTER ============= */
.footer {
  margin-top: 80px;
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 900px) {
  .container { padding: 36px 18px 60px; }
  .input-card { padding: 28px 22px; }
  .input-controls { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .phase-grid { grid-template-columns: 1fr; }
  .day-tracker { grid-template-columns: repeat(10, 1fr); }
  .tracker-card { padding: 24px; }
  .tracker-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .day-tracker { grid-template-columns: repeat(7, 1fr); }
  .hero-title { font-size: 56px; }
}
