/* ========================================
   MENTOR DASHBOARD CSS
   ======================================== */

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #27ae60;
  --accent-light: #2ecc71;
  --warm: #e67e22;
  --red: #e74c3c;
  --purple: #8e44ad;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --bg-dark: #0c1f2e;
  --bg-darker: #081620;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --text-muted: #95a5a6;
  --border: #e8ecf1;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ======== TOP BAR ======== */
.topbar { background: var(--bg-darker); padding: 0.75rem 2rem; position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.topbar-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon { width: 32px; height: 32px; background: var(--accent); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.brand-name { color: #fff; font-weight: 600; font-size: 0.9rem; }
.topbar-links { display: flex; gap: 0.25rem; }
.topbar-links a { color: rgba(255,255,255,0.5); text-decoration: none; padding: 0.4rem 0.85rem; border-radius: 6px; font-size: 0.82rem; font-weight: 500; transition: all 0.2s; }
.topbar-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.topbar-links a.active { color: #fff; background: var(--accent); }

/* ======== GREETING ======== */
.greeting { background: linear-gradient(135deg, var(--bg-darker), var(--primary-dark)); color: #fff; padding: 3rem 0 2rem; }
.greeting h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.greeting-sub { font-size: 1rem; opacity: 0.7; font-weight: 300; }

/* ======== STATUS BAR ======== */
.status-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 1.5rem 0; box-shadow: var(--shadow); }
.status-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.status-card { text-align: center; padding: 0.75rem; }
.status-card.accent { background: #f0faf4; border-radius: var(--radius-sm); }
.status-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; margin-bottom: 0.25rem; }
.status-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.status-value.small { font-size: 0.95rem; font-weight: 600; }
.status-card.accent .status-value { color: var(--accent); }

/* ======== SECTIONS ======== */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-white); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--primary-dark); }
.section-title.light { color: #fff; }
.section-sub { text-align: center; color: var(--text-light); max-width: 500px; margin: 0 auto 2rem; font-size: 0.9rem; }
.section-sub.light { color: rgba(255,255,255,0.5); }

/* ======== GENERATING STATE (loading spinner while tasks generate) ======== */
.generating-state {
  text-align: center;
  padding: 4rem 2rem;
  width: 100%;
}
.generating-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border, #e0e0e0);
  border-top: 4px solid var(--primary-light, #2980b9);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.generating-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text, #333);
  margin-bottom: 0.5rem;
}
.generating-sub {
  font-size: 0.95rem;
  color: var(--text-muted, #888);
}

/* ======== BIG 3 CARDS ======== */
.big3-grid { display: flex; flex-direction: column; gap: 1rem; }

.big3-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
  border-left: 4px solid var(--border);
}

.big3-card[data-task="1"] { border-left-color: var(--accent); }
.big3-card[data-task="2"] { border-left-color: var(--primary-light); }
.big3-card[data-task="3"] { border-left-color: var(--warm); }

.big3-card.completed {
  opacity: 0.6;
  background: #f8faf8;
  border-left-color: var(--accent) !important;
}

.big3-card.completed h3 { text-decoration: line-through; }

.big3-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.big3-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}

.big3-type {
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.big3-type.revenue { background: #e8f8f0; color: #1a9a5c; }
.big3-type.building { background: #eaf2f8; color: var(--primary); }
.big3-type.systems { background: #fef5e7; color: #d4850a; }
.big3-type.bonus { background: #f3e8ff; color: var(--purple); }

.bonus-card { border-left: 4px solid var(--purple); opacity: 0.95; }

.complete-btn {
  margin-left: auto;
  padding: 0.4rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.complete-btn:hover { background: #219a52; }
.complete-btn:disabled { background: var(--text-muted); cursor: default; }

.big3-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 0.4rem; }
.big3-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.task-why { margin-top: 0.5rem; font-size: 0.85rem; }
.task-why strong { color: var(--primary); }

.task-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.ask-claude-btn, .notes-btn {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.ask-claude-btn:hover { border-color: var(--purple); color: var(--purple); background: #f8f0fc; }
.notes-btn:hover { border-color: var(--primary-light); color: var(--primary); }

/* Notes Area */
.notes-area { margin-top: 1rem; }
.notes-area textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  margin-bottom: 0.5rem;
}

.save-notes-btn {
  padding: 0.35rem 0.75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Claude Prompt */
.claude-prompt {
  margin-top: 1rem;
  background: #f8f0fc;
  border: 1px solid #e8d5f5;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.claude-prompt .prompt-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.claude-prompt pre {
  background: var(--bg-darker);
  color: #a3e4d7;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 0.75rem;
}

.copy-btn {
  padding: 0.35rem 0.75rem;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover { background: #7d3c98; }

/* ======== INLINE CLAUDE RESPONSE ======== */
.claude-response {
  margin-top: 1rem;
  background: #f0f7ff;
  border: 1px solid #c5ddf5;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.response-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.response-text strong { color: var(--primary); }
.response-text code { background: #e8ecf1; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.82rem; }

.thinking-text {
  color: var(--text-muted);
  font-style: italic;
  animation: pulse 1.5s infinite;
}

.followup-area {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c5ddf5;
  display: flex;
  gap: 0.5rem;
}

.followup-area textarea {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  resize: none;
}

.followup-btn {
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  font-family: inherit;
  white-space: nowrap;
}

.followup-btn:hover { background: var(--primary-dark); }

.followup-response {
  margin-top: 0.75rem;
}

.followup-response .response-text {
  background: #f8fbff;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #dce8f5;
}

/* ======== COMPLETION DIALOG ======== */
.completion-dialog {
  margin-top: 1rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.completion-header {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.completion-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #b8dfc8;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}

.completion-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.completion-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.completion-submit {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.completion-submit:hover { background: #219a52; }
.completion-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.completion-skip {
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.completion-skip:hover { background: #f5f5f5; }
.completion-skip:disabled { opacity: 0.6; cursor: not-allowed; }

.completion-response {
  margin-top: 0.75rem;
}

.completion-celebration {
  background: #f8fdf9;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}

/* ======== MILESTONES ======== */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.milestone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.milestone.done { background: #f0faf4; border-color: #c3e6cb; }
.milestone.done .milestone-text { text-decoration: line-through; color: var(--text-muted); }

.milestone-check {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  transition: all 0.2s;
  flex-shrink: 0;
}

.milestone.done .milestone-check { background: var(--accent); color: #fff; border-color: var(--accent); }
.milestone-text { font-size: 0.85rem; color: var(--text); }

/* ======== WEEKLY CHECK-IN ======== */
.checkin-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.checkin-group { margin-bottom: 1.5rem; }
.checkin-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 0.5rem; }

.checkin-group textarea {
  width: 100%;
  min-height: 70px;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.mood-picker { display: flex; gap: 0.5rem; }

.mood {
  width: 44px; height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.mood:hover { border-color: var(--primary-light); color: var(--primary); }
.mood.selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.submit-checkin {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-checkin:hover { background: #219a52; }
.checkin-note { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ======== CHAT QUICK CHIPS ======== */
.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.45rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.chip:hover { background: rgba(39,174,96,0.2); border-color: var(--accent); color: #fff; }

/* ======== CHAT CONTAINER ======== */
.chat-container {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.chat-messages {
  max-height: 500px;
  min-height: 200px;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.ceo { align-self: flex-start; }

.chat-sender {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.25rem;
  padding-left: 0.5rem;
}

.chat-msg.user .chat-sender { color: var(--primary-light); text-align: right; padding-right: 0.5rem; }
.chat-msg.ceo .chat-sender { color: var(--accent-light); }

.chat-bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-msg.user .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.ceo .chat-bubble {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}

.chat-msg.ceo .chat-bubble p { margin-bottom: 0.5rem; }
.chat-msg.ceo .chat-bubble p:last-child { margin-bottom: 0; }
.chat-msg.ceo .chat-bubble strong { color: var(--accent-light); }
.chat-msg.ceo .chat-bubble code { background: rgba(0,0,0,0.3); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.82rem; }

.chat-msg.thinking .chat-bubble {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.chat-input-area textarea {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  resize: none;
}

.chat-input-area textarea::placeholder { color: rgba(255,255,255,0.3); }
.chat-input-area textarea:focus { outline: none; border-color: var(--accent); }

.chat-send-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
  font-family: inherit;
}

.chat-send-btn:hover { background: #219a52; }
.chat-send-btn:disabled { background: var(--text-muted); cursor: wait; }

/* ======== LEGACY QUICK PROMPTS (keeping for reference pages) ======== */
.quick-prompts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.qp {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.qp:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }
.qp h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.5rem; }

.qp-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  white-space: pre-wrap;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  max-height: 60px;
  overflow: hidden;
}

/* ======== FOOTER ======== */
.footer {
  background: var(--bg-darker);
  color: #fff;
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.footer p { font-size: 1rem; opacity: 0.7; max-width: 600px; margin: 0 auto 1rem; line-height: 1.8; font-style: italic; }
.footer-small { font-size: 0.75rem; opacity: 0.3; }
.footer-small a { color: var(--accent-light); text-decoration: none; }

/* ======== TOAST ======== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .status-grid { grid-template-columns: repeat(3, 1fr); }
  .milestones-grid { grid-template-columns: 1fr; }
  .quick-prompts { grid-template-columns: 1fr; }
  .greeting h1 { font-size: 1.5rem; }
  .big3-header { flex-wrap: wrap; }
  .complete-btn { margin-left: 0; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-inner { flex-direction: column; gap: 0.5rem; }
}

/* ======== SETTINGS & INTEGRATIONS ======== */
.integrations-grid {
  display: grid;
  gap: 1.25rem;
}

.integration-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
}

.integration-card.connected {
  border-color: var(--accent);
}

.integration-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.integration-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.integration-info h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.integration-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.integration-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.status-badge {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.status-badge.connected {
  background: #e8f8f0;
  color: #1a9a5c;
}

.status-badge.not-connected {
  background: #fef5e7;
  color: #d4850a;
}

.connect-btn {
  margin-left: auto;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.connect-btn:hover { background: var(--accent-light); }

.disconnect-btn {
  margin-left: auto;
  padding: 0.4rem 1rem;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.disconnect-btn:hover { background: #fef0ef; }

.success-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #e8f8f0;
  border: 1px solid #27ae60;
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  color: #1a9a5c;
  font-weight: 500;
}

.success-icon {
  font-size: 1.5rem;
  font-weight: 800;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.modal-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.6; }

.modal-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.modal-field input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.modal-field input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.modal-cancel {
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.modal-save {
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.modal-save:hover { background: var(--accent-light); }
.modal-save:disabled { opacity: 0.6; cursor: not-allowed; }

/* ======== MAKE THIS FOR ME BUTTON ======== */
.make-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.make-btn:hover { background: var(--primary-light); }
.make-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.make-btn-setup {
  background: transparent;
  color: var(--warm);
  border: 1px solid var(--warm);
  font-size: 0.8rem;
}

.make-btn-setup:hover { background: #fef5e7; color: var(--warm); }

/* Deliverable result area */
.deliverable-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #f8fafb;
}

.deliverable-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1a9a5c;
}

.deliverable-icon {
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.deliverable-link {
  color: var(--primary-light);
  font-weight: 600;
  text-decoration: none;
}

.deliverable-link:hover { text-decoration: underline; }

.deliverable-alert {
  color: var(--warm);
  font-size: 0.9rem;
}

.deliverable-alert a { color: var(--primary-light); font-weight: 600; }

.deliverable-error {
  color: var(--red);
  font-size: 0.9rem;
}

/* ======== PROGRESS & ACHIEVEMENTS ======== */

/* Progress badges container */
.progress-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* Streak badge */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(230, 126, 34, 0.15);
  border: 1px solid rgba(230, 126, 34, 0.3);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  color: #fff;
  animation: fadeInUp 0.4s ease;
}
.streak-flame { font-size: 1rem; line-height: 1; }
.streak-count { font-weight: 800; font-size: 1.1rem; color: var(--warm); }
.streak-label { opacity: 0.7; font-size: 0.8rem; }

/* Level badge */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}
.level-icon { color: var(--accent-light, #5dade2); font-size: 0.7rem; }
.level-name { font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.7rem; }

/* Revenue thermometer */
.goal-card { min-width: 140px; }
.thermometer {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0 0.3rem;
}
.thermometer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #27ae60), #2ecc71);
  border-radius: 4px;
  transition: width 0.8s ease;
  min-width: 2px;
}
.thermometer-text {
  font-size: 0.7rem;
  color: var(--text-muted, #95a5a6);
  font-weight: 600;
}

/* Weekly recap banner */
.weekly-recap {
  padding: 1.25rem 0;
  background: linear-gradient(135deg, #f0faf4, #eaf2f8);
}
.recap-card {
  background: #fff;
  border: 2px solid var(--accent, #27ae60);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.1);
}
.recap-title {
  color: var(--primary-dark, #1a5276);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.recap-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}
.recap-stat { text-align: center; }
.recap-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent, #27ae60);
}
.recap-label {
  font-size: 0.7rem;
  color: var(--text-muted, #95a5a6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.recap-highlights {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 1rem;
  padding: 0;
}
.recap-highlights li {
  padding: 0.25rem 0;
  color: #333;
  font-size: 0.88rem;
}
.recap-highlights li::before {
  content: "\2713 ";
  color: var(--accent, #27ae60);
  font-weight: 700;
  margin-right: 0.3rem;
}
.recap-dismiss {
  padding: 0.5rem 1.5rem;
  background: var(--accent, #27ae60);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.recap-dismiss:hover { background: #219a52; }

/* Milestone badge labels */
.milestone-badge {
  display: inline-block;
  background: var(--warm, #e67e22);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .progress-badges { justify-content: center; }
  .recap-stats { gap: 1.5rem; }
  .recap-num { font-size: 1.2rem; }
}
