/* ============================================================
   INNER ATLAS — Global Styles
   Palette:
   --ivory:   #FAF8F4
   --sage:    #DDE6D5
   --forest:  #48654A
   --sand:    #E9DFC9
   --gold:    #D8C89A
   --charcoal:#2F2F2F
============================================================ */

:root {
  --ivory:   #FAF8F4;
  --sage:    #DDE6D5;
  --forest:  #48654A;
  --sand:    #E9DFC9;
  --gold:    #D8C89A;
  --charcoal:#2F2F2F;
  --white:   #FFFFFF;
  --text-muted: #7A7A6E;
  --text-light: #A8A89A;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-soft: 0 4px 24px rgba(47,47,47,0.06);
  --shadow-card: 0 8px 32px rgba(47,47,47,0.08);
  --shadow-float: 0 16px 48px rgba(47,47,47,0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); line-height: 1.75; }

a { color: var(--forest); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.75; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216, 200, 154, 0.2);
  transition: var(--transition);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  flex-shrink: 1;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--forest);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg { width: 20px; height: 20px; fill: var(--ivory); }

.nav-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--forest); opacity: 1; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-user-area {
  display: none;
  align-items: center;
  gap: 1rem;
}

.nav-username {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', Arial, sans-serif;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest);
  color: var(--ivory);
}
.btn-primary:hover { background: #3a5240; opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(72,101,74,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--gold);
}
.btn-secondary:hover { background: var(--sand); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
}
.btn-ghost:hover { color: var(--charcoal); background: var(--sage); opacity: 1; }

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(221,230,213,0.5);
  transition: var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

.card-glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tag-sage { background: var(--sage); color: var(--forest); }
.tag-gold { background: var(--sand); color: #8a6e30; }
.tag-forest { background: var(--forest); color: var(--ivory); }
.tag-ivory { background: var(--ivory); color: var(--text-muted); border: 1px solid var(--sand); }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.2rem; }

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--charcoal);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(72,101,74,0.08);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 0.9rem; color: var(--charcoal); font-weight: 500; }
.toggle-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--sand);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--forest); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Emotion Pills ── */
.emotion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.emotion-pill {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--sand);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', Arial, sans-serif;
}
.emotion-pill:hover { border-color: var(--forest); color: var(--forest); background: var(--sage); }
.emotion-pill.selected { background: var(--forest); border-color: var(--forest); color: var(--ivory); }

/* ── Section Layout ── */
.section { padding: 5rem 2rem; }
.section-sm { padding: 3rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }
.container-xs { max-width: 480px; margin: 0 auto; }

/* ── Page header (inside app pages) ── */
.page-header {
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--sand);
  background: var(--ivory);
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── App Layout ── */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  padding-top: 72px;
}

.app-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  bottom: 0;
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--sand);
  overflow-y: auto;
  padding: 1.5rem 0;
  z-index: 100;
}

.sidebar-section { padding: 0 1rem 1.5rem; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-item:hover { background: var(--sage); color: var(--forest); opacity: 1; }
.sidebar-item.active { background: var(--sage); color: var(--forest); font-weight: 600; }
.sidebar-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.app-main {
  grid-column: 2;
  padding: 2rem;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── AI Response Card ── */
.ai-card {
  background: linear-gradient(135deg, rgba(221,230,213,0.4) 0%, rgba(250,248,244,0.8) 100%);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(216,200,154,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ai-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.ai-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--forest), #6b9e6e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-avatar svg { width: 18px; height: 18px; fill: var(--ivory); }
.ai-name { font-size: 0.875rem; font-weight: 600; color: var(--forest); }
.ai-subtitle { font-size: 0.75rem; color: var(--text-muted); }

.ai-section { margin-bottom: 1.25rem; }
.ai-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ai-text { font-size: 0.9rem; color: var(--charcoal); line-height: 1.7; }

.ai-questions { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ai-questions li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.ai-questions li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── Loading Spinner ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--sand);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon {
  width: 64px; height: 64px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.empty-state-icon svg { width: 28px; height: 28px; stroke: var(--forest); fill: none; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--charcoal); }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47,47,47,0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-float);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: var(--ivory);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.1rem;
}
.modal-close:hover { background: var(--sand); color: var(--charcoal); }

/* Auth tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: 'Inter', Arial, sans-serif;
}
.auth-tab.active { color: var(--forest); border-bottom-color: var(--forest); }

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #dc2626;
  margin-bottom: 1rem;
  display: none;
}

.auth-success {
  background: var(--sage);
  border: 1px solid var(--forest);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--forest);
  margin-bottom: 1rem;
  display: none;
  text-align: center;
  line-height: 1.5;
}

.verify-view { display: none; text-align: center; }
.verify-view p { margin-bottom: 1rem; }

/* ── Mood Ring ── */
.mood-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mood-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background: var(--ivory);
  line-height: 1;
}
.mood-btn:hover, .mood-btn.selected {
  border-color: var(--forest);
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(72,101,74,0.2);
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--sage), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-dot {
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--forest);
}
.timeline-dot.dream { background: var(--forest); }
.timeline-dot.journal { background: var(--gold); }
.timeline-dot.sync { background: #8fa8c0; }

/* ── Chat ── */
.chat-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 400px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-bubble {
  max-width: 80%;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.65;
  animation: bubbleIn 0.3s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  background: var(--forest);
  color: var(--ivory);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-bubble.ai {
  background: var(--white);
  color: var(--charcoal);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-soft);
}
.chat-input-row {
  display: flex;
  gap: 10px;
  padding: 1rem;
  border-top: 1px solid var(--sand);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.chat-input-row input {
  flex: 1;
  border-radius: 100px;
  padding: 0.65rem 1.2rem;
}
.chat-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--forest);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-send-btn:hover { background: #3a5240; transform: scale(1.05); }
.chat-send-btn svg { width: 18px; height: 18px; stroke: var(--ivory); fill: none; }

/* ── Charts / Pattern Bars ── */
.pattern-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pattern-bar-label { font-size: 0.85rem; color: var(--charcoal); min-width: 100px; }
.pattern-bar-track {
  flex: 1;
  height: 8px;
  background: var(--sand);
  border-radius: 100px;
  overflow: hidden;
}
.pattern-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), #6b9e6e);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.pattern-bar-count { font-size: 0.8rem; color: var(--text-muted); min-width: 24px; text-align: right; }

/* ── Misc ── */
.divider {
  height: 1px;
  background: var(--sand);
  margin: 1.5rem 0;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-lucid { background: rgba(72,101,74,0.1); color: var(--forest); }
.badge-nightmare { background: rgba(139,90,90,0.1); color: #8b5a5a; }
.badge-sync { background: rgba(143,168,192,0.15); color: #4a7a9b; }

/* ── Scroll to top ── */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--forest);
  color: var(--ivory);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.scroll-top:hover { background: #3a5240; transform: translateY(-2px); }
.scroll-top.visible { display: flex; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { grid-column: 1; padding: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 0 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .modal { padding: 1.75rem; }
  .chat-window { height: calc(100vh - 160px); }
  .chat-bubble { max-width: 92%; }
}

@media (max-width: 480px) {
  .nav-logo-text { max-width: 120px; }
  .app-main { padding: 1rem; }
  .card { padding: 1.25rem; }
}

/* ── Mobile Nav Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(250,248,244,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sand);
  padding: 1.25rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-menu a:hover { background: var(--sage); color: var(--forest); }

/* ── Symbol Library Grid ── */
.symbol-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--sand);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.symbol-card:hover { border-color: var(--forest); transform: translateY(-3px); box-shadow: var(--shadow-float); }
.symbol-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.symbol-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.symbol-brief { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── Onboarding / Landing specific ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47,47,47,0.55) 0%, rgba(72,101,74,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
  color: var(--ivory);
}
.hero-content h1 { color: var(--ivory); margin-bottom: 1.25rem; }
.hero-content p { color: rgba(250,248,244,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

/* Feature cards on landing */
.feature-icon-wrap {
  width: 56px; height: 56px;
  background: var(--sage);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon-wrap svg { width: 26px; height: 26px; stroke: var(--forest); fill: none; }

/* ── Notification Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--charcoal);
  color: var(--ivory);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-float);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Entry Cards (dream/journal/sync list) ── */
.entry-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
}
.entry-card:hover { border-color: var(--sage); box-shadow: var(--shadow-card); transform: translateX(4px); }
.entry-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  min-width: 44px;
}
.entry-card-day { font-size: 1.5rem; font-weight: 700; color: var(--forest); line-height: 1; display: block; }
.entry-card-mon { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.entry-card-title { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.3rem; }
.entry-card-preview { font-size: 0.83rem; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry-card-tags { display: flex; gap: 6px; margin-top: 0.5rem; flex-wrap: wrap; }

/* ── Quick Action Buttons (Dashboard) ── */
.quick-action {
  background: var(--white);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  color: var(--charcoal);
}
.quick-action:hover { border-color: var(--forest); background: var(--sage); transform: translateY(-2px); box-shadow: var(--shadow-card); opacity: 1; color: var(--charcoal); }
.quick-action-icon {
  width: 44px; height: 44px;
  background: var(--sage);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.quick-action:hover .quick-action-icon { background: var(--forest); }
.quick-action:hover .quick-action-icon svg { stroke: var(--ivory); }
.quick-action-icon svg { width: 20px; height: 20px; stroke: var(--forest); fill: none; }
.quick-action-label { font-size: 0.875rem; font-weight: 600; }
.quick-action-sub { font-size: 0.76rem; color: var(--text-muted); }

/* ── Stat Cards ── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em; }

/* ── Week Calendar Strip ── */
.week-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.week-strip::-webkit-scrollbar { display: none; }
.week-day {
  flex: 1;
  min-width: 52px;
  text-align: center;
  padding: 0.65rem 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1.5px solid transparent;
}
.week-day.has-entry { background: var(--sage); }
.week-day.today { border-color: var(--forest); background: rgba(72,101,74,0.06); }
.week-day-name { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.week-day-num { font-size: 1.05rem; font-weight: 700; color: var(--charcoal); margin: 4px 0; }
.week-day-dot { width: 5px; height: 5px; background: var(--forest); border-radius: 50%; margin: 0 auto; }

/* ── Tagline / Prompt ── */
.daily-prompt {
  background: linear-gradient(135deg, var(--sage) 0%, rgba(233,223,201,0.4) 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
}
.daily-prompt::before {
  content: '"';
  position: absolute;
  top: -10px; left: 16px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 8rem;
  color: rgba(72,101,74,0.1);
  line-height: 1;
  pointer-events: none;
}
.prompt-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1rem;
  position: relative;
}
