/* =============================================================================
   femma-styles.css
   FEMMA Design System — Fryst, ändra ej utan explicit beslut
   =============================================================================

   DESIGNSYSTEM
   ─────────────────────────────────────────────────────────────────────────────
   Primär:     --eclips    #462377  (djup lila)
   Accent:     --lavendel  #B39DDB  (lavendel)
   Accent text:--lavendel-text #6b5a8d
   Amethyst:   --amethyste #936DA4
   Blå:        --shore     #1F1FC9
   Grön:       --leaf      #B8DD7B
   Röd:        --coral     #E1231C
   Bakgrund:   --bg        #faf9fc
   Kort:       --card-bg   #fff
   Text:       --text      #372D43
   Radie:      --radius    16px

   TYPOGRAFI
   ─────────────────────────────────────────────────────────────────────────────
   Headings:   'Ovo' (serif, weight 400) — Google Fonts
   Body:       'Inter' (sans-serif, weight 300/400/500/600) — Google Fonts

   ANVÄNDNING
   ─────────────────────────────────────────────────────────────────────────────
   <link href="femma-styles.css" rel="stylesheet" />
   ============================================================================= */

:root {
  --eclips: #462377;
  --lavendel: #B39DDB;
  --lavendel-text: #6b5a8d;
  --amethyste: #936DA4;
  --shore: #1F1FC9;
  --leaf: #B8DD7B;
  --coral: #E1231C;
  --bg: #faf9fc;
  --card-bg: #fff;
  --text: #372D43;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(180deg, #6b4a9e 0%, #7d5cb0 100%);
  color: white;
  flex-shrink: 0;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
}
.logo-text {
  font-family: 'Ovo', serif;
  font-size: 1.4rem;
  font-weight: 400;
}
.tagline {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 2px;
}

/* Nav Menu Button */
.nav-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,255,255,0.25); }

/* Dropdown Menu */
.nav-menu {
  position: fixed;
  top: 60px;
  right: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(70,35,119,0.2);
  min-width: 220px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.nav-menu.open { display: block; }
.nav-menu-item {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f0ecf5;
}
.nav-menu-item:last-child { border-bottom: none; }
.nav-menu-item:hover { background: #f7f4fb; }
.nav-menu-item .item-icon { margin-right: 10px; }

/* Screens */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.screen.active { display: flex; }

/* Chat Screen */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message Bubbles */
.message { display: flex; max-width: 85%; }
.message.user { margin-left: auto; }
.message.assistant { margin-right: auto; }
.bubble {
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.message.user .bubble {
  background: linear-gradient(135deg, var(--eclips), var(--amethyste));
  color: white;
  border-bottom-right-radius: 6px;
}
.message.assistant .bubble {
  background: #f3effa;
  color: var(--text);
  border-bottom-left-radius: 6px;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--lavendel-text);
  font-size: 0.85rem;
}
.typing-indicator.show { display: flex; }
.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lavendel);
  animation: bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Input Area */
.input-area {
  padding: 12px 16px 16px;
  background: white;
  border-top: 1px solid #ede7f6;
  flex-shrink: 0;
}
.input-group {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.input-field {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e0d8eb;
  border-radius: 24px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  max-height: 120px;
}
.input-field:focus { border-color: var(--eclips); }
.send-btn {
  background: var(--eclips);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, background 0.2s;
  flex-shrink: 0;
}
.send-btn:hover { background: #5a3a8a; }
.send-btn:active { transform: scale(0.95); }
.send-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.input-field:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* Info/About Screen */
.info-screen {
  padding: 20px;
  overflow-y: auto;
}
.info-screen .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--eclips);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 16px;
  cursor: pointer;
}
.info-screen h2 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin: 0 0 16px;
}
.card {
  background: white;
  border: 1px solid #ede7f6;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 12px;
  color: var(--eclips);
  font-size: 1.1rem;
}
.card p { margin: 0 0 10px; }
.card ul { margin: 8px 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

/* Crisis Banner */
.crisis-banner {
  background: linear-gradient(135deg, #fff5f5, #fff0f0);
  border: 1px solid #f5d0d0;
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}
.crisis-banner h3 {
  color: var(--coral);
  margin: 0 0 8px;
  font-size: 1rem;
}
.crisis-banner p { margin: 4px 0; font-size: 0.9rem; }

/* Welcome message in chat */
.welcome-card {
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 8px;
}
.welcome-card h3 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin: 0 0 10px;
}
.welcome-card p { margin: 0; font-size: 0.95rem; color: var(--lavendel-text); }

/* Full introduction card for new users */
.intro-card {
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 8px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.intro-card h2 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin: 0 0 16px;
  font-size: 1.4rem;
}
.intro-card h3 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin: 20px 0 10px;
  font-size: 1.1rem;
}
.intro-card p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--lavendel-text);
  line-height: 1.5;
}
.intro-card strong {
  color: var(--eclips);
}
.intro-card em {
  font-style: italic;
  color: var(--eclips);
}
.intro-highlight {
  background: rgba(115, 79, 150, 0.1);
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid var(--eclips);
}
.intro-goal {
  font-style: italic;
  color: var(--eclips);
  margin-top: 16px;
}
.intro-consent {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(115, 79, 150, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--eclips);
}
.consent-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--eclips);
  cursor: pointer;
}
.start-btn {
  background: var(--eclips);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.start-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
.start-btn:not(:disabled):hover {
  background: var(--rich-violet);
  transform: translateY(-1px);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .app-header { padding: 10px 12px; }
  .logo-text { font-size: 1.2rem; }
  .tagline { display: none; }
  .chat-area { padding: 12px; }
  .input-area { padding: 10px 12px 14px; }
}

/* Markdown styling inside bubbles */
.bubble h1, .bubble h2, .bubble h3, .bubble h4, .bubble h5, .bubble h6 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.bubble h1 { font-size: 1.3rem; }
.bubble h2 { font-size: 1.2rem; }
.bubble h3 { font-size: 1.1rem; }
.bubble h4, .bubble h5, .bubble h6 { font-size: 1rem; }
.message.user .bubble h1,
.message.user .bubble h2,
.message.user .bubble h3,
.message.user .bubble h4,
.message.user .bubble h5,
.message.user .bubble h6 { color: white; }

.bubble p { margin: 0 0 10px 0; }
.bubble p:last-child { margin-bottom: 0; }

.bubble ul, .bubble ol {
  margin: 8px 0;
  padding-left: 20px;
}
.bubble li { margin-bottom: 4px; }
.bubble li:last-child { margin-bottom: 0; }

.bubble strong { font-weight: 600; }
.bubble em { font-style: italic; }

.bubble hr {
  border: none;
  border-top: 1px solid rgba(70, 35, 119, 0.2);
  margin: 12px 0;
}
.message.user .bubble hr {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.bubble code {
  background: rgba(70, 35, 119, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.message.user .bubble code {
  background: rgba(255, 255, 255, 0.2);
}

.bubble blockquote {
  border-left: 3px solid var(--lavendel);
  margin: 8px 0;
  padding-left: 12px;
  color: var(--lavendel-text);
}
.message.user .bubble blockquote {
  border-left-color: rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.9);
}

.bubble a {
  color: var(--eclips);
  text-decoration: underline;
}
.message.user .bubble a {
  color: white;
}

/* Profile Views (Om Mig & Min Femma) */
.profile-header {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eclips), var(--amethyste));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 2rem;
}
.profile-name {
  font-family: 'Ovo', serif;
  font-size: 1.3rem;
  color: var(--eclips);
  margin: 0 0 4px;
}
.profile-status {
  font-size: 0.85rem;
  color: var(--lavendel-text);
}

.life-area-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.life-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
}
.life-area-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.life-area-icon {
  font-size: 1.2rem;
}
.life-area-value {
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: #f7f4fb;
  color: var(--lavendel-text);
}
.life-area-value.positive {
  background: #e8f5e9;
  color: #2e7d32;
}
.life-area-value.challenging {
  background: #fff3e0;
  color: #e65100;
}
.life-area-value.unknown {
  background: #f5f5f5;
  color: #9e9e9e;
  font-style: italic;
}

.hormonal-card {
  background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.hormonal-card h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--eclips);
}
.hormonal-info {
  font-size: 0.95rem;
  color: var(--text);
}
.cycle-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.cycle-day {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--eclips);
}
.cycle-phase {
  font-size: 0.85rem;
  color: var(--lavendel-text);
}

.settings-section {
  margin-bottom: 20px;
}
.settings-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lavendel-text);
  margin: 0 0 12px;
  padding: 0 4px;
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.settings-item:hover {
  background: #f7f4fb;
}
.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-item-icon {
  font-size: 1.2rem;
}
.settings-item-label {
  font-size: 0.95rem;
}
.settings-item-arrow {
  color: var(--lavendel);
}

.action-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.action-btn.primary {
  background: linear-gradient(135deg, var(--eclips), var(--amethyste));
  color: white;
}
.action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(70, 35, 119, 0.3);
}
.action-btn.secondary {
  background: #f7f4fb;
  color: var(--eclips);
  border: 1px solid #ede7f6;
}
.action-btn.secondary:hover {
  background: #ede7f6;
}
.action-btn.danger {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.action-btn.danger:hover {
  background: #ffcdd2;
}

.last-updated {
  text-align: center;
  font-size: 0.8rem;
  color: var(--lavendel-text);
  margin-top: 16px;
}

/* Combined Profile Sections (Om mig page) */
.profile-section {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #ede7f6;
}
.section-header {
  font-family: 'Ovo', serif;
  font-size: 1.1rem;
  color: var(--eclips);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ede7f6;
}
.profile-section .profile-header {
  text-align: left;
  padding: 0;
  background: none;
  margin-bottom: 16px;
}
.profile-section .profile-name {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.profile-section .profile-details {
  font-size: 0.9rem;
  color: var(--lavendel-text);
}

/* Life areas compact view */
.life-areas-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.life-area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f7f4fb;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--lavendel-text);
}
.life-area-tag.filled {
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  color: var(--eclips);
}

/* Clickable life areas list - Accordion style */
.life-areas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.life-area-accordion {
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
  overflow: hidden;
  transition: all 0.2s;
}

.life-area-accordion.expanded {
  border-color: var(--lavendel);
  box-shadow: 0 2px 8px rgba(149, 117, 205, 0.15);
}

.life-area-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.life-area-header:hover {
  background: #f7f4fb;
}

.life-area-header .area-icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}

.life-area-header .area-info {
  flex: 1;
  min-width: 0;
}

.life-area-header .area-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.life-area-header .area-value {
  font-size: 0.8rem;
  color: var(--lavendel-text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.life-area-header .area-value.empty {
  font-style: italic;
  opacity: 0.6;
}

.life-area-header .area-arrow {
  color: var(--lavendel);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.life-area-accordion.expanded .area-arrow {
  transform: rotate(90deg);
}

.life-area-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #faf8fc;
}

.life-area-accordion.expanded .life-area-content {
  max-height: 300px;
}

.life-area-content-inner {
  padding: 16px;
  border-top: 1px solid #ede7f6;
}

.life-area-content label {
  display: block;
  font-size: 0.8rem;
  color: var(--lavendel-text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.life-area-content select,
.life-area-content input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ede7f6;
  border-radius: 8px;
  font-size: 0.95rem;
  background: white;
  color: var(--text);
  margin-bottom: 12px;
}

.life-area-content select:focus,
.life-area-content input[type="text"]:focus {
  outline: none;
  border-color: var(--lavendel);
  box-shadow: 0 0 0 3px rgba(149, 117, 205, 0.1);
}

.life-area-save-btn {
  width: 100%;
  padding: 10px;
  background: var(--lavendel);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.life-area-save-btn:hover {
  background: var(--lavendel-dark);
}

.life-area-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.life-area-saved {
  text-align: center;
  color: var(--lavendel);
  font-size: 0.85rem;
  padding: 8px;
  display: none;
}

.life-area-saved.show {
  display: block;
}

.section-description {
  font-size: 0.85rem;
  color: var(--lavendel-text);
  margin: -8px 0 16px;
}

/* Settings groups */
.settings-group {
  margin-bottom: 20px;
}
.settings-group h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lavendel-text);
  margin: 0 0 10px;
}
.settings-group .settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f4fb;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
}
.settings-group .settings-item:hover {
  background: #ede7f6;
}
.settings-icon {
  font-size: 1.1rem;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--lavendel-text);
  font-style: italic;
}
.empty-state p {
  margin: 0;
}

/* Femma minns content */
.memory-item {
  margin-bottom: 20px;
}
.memory-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lavendel-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.memory-content {
  font-size: 0.95rem;
  color: var(--text);
}
.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.memory-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #f7f4fb;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--eclips);
}

/* Person cards */
.person-card {
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
  margin-bottom: 10px;
}
.person-name {
  font-weight: 600;
  font-style: italic;
  color: var(--eclips);
  margin-bottom: 4px;
}
.person-context {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* Pattern items */
.pattern-item {
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

/* Topic cards */
.topic-card {
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid #ede7f6;
  margin-bottom: 10px;
}
.topic-name {
  font-weight: 600;
  color: var(--eclips);
  margin-bottom: 4px;
}
.topic-context {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

/* Version info */
.version-info {
  text-align: center;
  font-size: 0.75rem;
  color: var(--lavendel-text);
  margin-top: 20px;
  padding: 12px;
  background: #f7f4fb;
  border-radius: 8px;
}

/* Min Data screen styles */
.data-philosophy {
  text-align: center;
  padding: 24px;
}
.data-philosophy .data-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.data-philosophy p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.data-philosophy p:last-child {
  margin-bottom: 0;
}
.card-description {
  font-size: 0.9rem;
  color: var(--lavendel-text);
  margin-bottom: 16px;
}

/* Toggle switch */
.donate-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f7f4fb;
  border-radius: 12px;
  margin-bottom: 12px;
}
.toggle-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-label input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 28px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-label input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--eclips), var(--amethyste));
}
.toggle-label input:checked + .toggle-slider:before {
  transform: translateX(24px);
}
.toggle-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--eclips);
}
.donate-note {
  font-size: 0.85rem;
  color: var(--lavendel-text);
  margin: 0;
  font-style: italic;
}
.donate-note.active {
  color: #2e7d32;
}

/* Coaching model display */
.coaching-model {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-item {
  padding: 12px 14px;
  background: #f7f4fb;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.model-item strong {
  color: var(--eclips);
}

/* Profile update notification */
.profile-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--eclips), var(--amethyste));
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(70, 35, 119, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}
.profile-notification.show {
  opacity: 1;
}

/* Organic Profile Styles */
.organic-section {
  margin-bottom: 20px;
}
.organic-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lavendel-text);
  margin: 0 0 12px 4px;
}
.organic-core {
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.organic-now {
  background: white;
  border: 2px solid var(--lavendel);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.organic-now-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lavendel-text);
  margin-bottom: 6px;
}
.organic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.organic-list li {
  padding: 12px 16px;
  background: white;
  border: 1px solid #ede7f6;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.organic-list li:last-child {
  margin-bottom: 0;
}
.organic-person {
  padding: 14px 16px;
  background: white;
  border: 1px solid #ede7f6;
  border-radius: 12px;
  margin-bottom: 10px;
}
.organic-person-name {
  font-weight: 600;
  color: var(--eclips);
  margin-bottom: 4px;
}
.organic-person-note {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.organic-exploring {
  padding: 14px 16px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  margin-bottom: 10px;
}
.organic-exploring-topic {
  font-weight: 500;
  color: var(--eclips);
  margin-bottom: 4px;
}
.organic-exploring-note {
  font-size: 0.9rem;
  color: var(--text);
}
.organic-session {
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.organic-session-date {
  color: var(--lavendel-text);
  font-size: 0.75rem;
  margin-bottom: 2px;
}
.organic-session-gist {
  color: var(--text);
}

/* NEW: Session status indicator */
.organic-session-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f0f4ff, #f5f0ff);
  border-radius: 10px;
}
.phase-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--lavendel);
  color: white;
}
.phase-feel { background: #7c3aed; }
.phase-explore { background: #2563eb; }
.phase-mirror { background: #059669; }
.phase-move { background: #d97706; }
.phase-anchor { background: #dc2626; }
.session-new {
  font-size: 0.75rem;
  color: var(--lavendel-text);
  font-style: italic;
}

/* NEW: Importance badges */
.organic-person.importance-high {
  border-left: 3px solid var(--lavendel);
}
.organic-person.importance-low {
  opacity: 0.7;
}
.days-badge {
  font-size: 0.7rem;
  color: var(--lavendel-text);
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

/* NEW: Topic styles */
.organic-topic {
  padding: 14px 16px;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  margin-bottom: 10px;
}
.organic-topic-name {
  font-weight: 500;
  color: var(--eclips);
  margin-bottom: 4px;
}
.organic-topic-note {
  font-size: 0.9rem;
  color: var(--text);
}
.organic-topic.resolved {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.organic-resolved .organic-section-title {
  color: #16a34a;
}

/* NEW: Pattern confidence dots */
.pattern-confidence {
  color: var(--lavendel);
  font-size: 0.6rem;
  letter-spacing: 1px;
  margin-right: 6px;
}

/* NEW: Count badge */
.count-badge {
  font-size: 0.7rem;
  color: var(--lavendel-text);
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 8px;
}
