: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;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(70, 35, 119, 0.1);
  border-top-color: var(--eclips);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

*, *::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 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #462377;
  color: white;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.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-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); }

.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: flex;
  align-items: center;
  gap: 12px;
  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::before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: var(--eclips);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  flex-shrink: 0;
}

/* Chat icon */
.nav-menu-item[data-icon="chat"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>');
}

/* Heart icon */
.nav-menu-item[data-icon="heart"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>');
}

/* User icon */
.nav-menu-item[data-icon="user"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>');
}

/* Settings icon */
.nav-menu-item[data-icon="settings"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M12 1v6m0 6v6m9-9h-6m-6 0H3m15.4-6.4l-4.2 4.2m-4.4 4.4l-4.2 4.2m12.8 0l-4.2-4.2m-4.4-4.4l-4.2-4.2"/></svg>');
}

/* Info icon */
.nav-menu-item[data-icon="info"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>');
}

/* Help icon */
.nav-menu-item[data-icon="help"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>');
}

/* Warning icon */
.nav-menu-item[data-icon="warning"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>');
}

/* Refresh icon */
.nav-menu-item[data-icon="refresh"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/></svg>');
}

/* Database/Document icon */
.nav-menu-item[data-icon="database"]::before {
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="8" y1="13" x2="16" y2="13"/><line x1="8" y1="17" x2="16" y2="17"/><line x1="8" y1="9" x2="10" y2="9"/></svg>');
}

.nav-menu-item:last-child { border-bottom: none; }
.nav-menu-item:hover { background: #f7f4fb; }

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.screen.active { display: flex; }

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

.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 {
  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 {
  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); }

.info-screen {
  padding: 20px;
  overflow-y: auto;
}

.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-intro { 
  font-size: 0.9rem; 
  color: var(--lavendel-text); 
  margin-bottom: 16px;
}
.card ul { margin: 8px 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

.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-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); }

.profile-header {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.profile-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
}

.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;
  font-size: 2rem;
}

.profile-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--lavendel);
}

.profile-avatar-upload {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--eclips);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--oat);
  transition: transform 0.2s ease;
}

.profile-avatar-upload:hover {
  transform: scale(1.1);
  background: var(--lavendel);
}

.profile-avatar-upload svg {
  color: white;
}

.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: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  background: white;
  border: 1px solid #ede7f6;
  border-radius: 12px;
  overflow: hidden;
}

.life-area-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.life-area-item:last-child {
  border-bottom: none;
}

.life-area-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.life-area-icon {
  font-size: 1rem;
  opacity: 0.4;
  width: 20px;
  text-align: center;
}

/* Life Areas Icon Grid - New */
.life-areas-icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.life-area-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--shore);
  cursor: pointer;
  transition: all 0.2s ease;
}

.life-area-icon-item:hover {
  border-color: var(--lavendel);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 109, 164, 0.15);
}

.life-area-icon-item .area-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* Ikonerna är redan färgade PNG-filer - inga filter behövs */

.life-area-icon-item span {
  font-size: 0.8rem;
  color: var(--eclips);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Progress Circle */
.progress-circle-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 24px auto;
}

.progress-circle {
  transform: rotate(-90deg);
}

.progress-circle-bg {
  fill: none;
  stroke: var(--oat);
  stroke-width: 12;
}

.progress-circle-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--eclips);
}

.progress-circle-label {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--lavendel-text);
  text-align: center;
  width: 100%;
}

/* Dual Progress (för Hälsa) */
.dual-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 480px) {
  .life-areas-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dual-progress {
    grid-template-columns: 1fr;
  }
}

.life-area-value {
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f7f4fb;
  color: var(--lavendel-text);
  font-weight: 500;
}

.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;
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  margin-right: 12px;
}

.settings-item-icon[data-icon="user"]::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--eclips);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.settings-item-icon[data-icon="info"]::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--eclips);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") center/contain no-repeat;
}

.settings-item-icon[data-icon="warning"]::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--eclips);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center/contain no-repeat;
}

.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;
}

/* Auth form styles */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0d8eb;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--lavendel-text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  border-bottom-color: var(--eclips);
  color: var(--eclips);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input {
  padding: 12px 16px;
  border: 2px solid #e0d8eb;
  border-radius: 12px;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--lavendel);
  box-shadow: 0 0 0 3px rgba(147, 109, 164, 0.1);
}

.auth-error {
  color: var(--tulip);
  font-size: 0.9rem;
  text-align: center;
  min-height: 20px;
}

/* === Knapp-styling === */
.btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6b4d7a 0%, #8a6a9c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(107, 77, 122, 0.4);
  letter-spacing: 0.3px;
}

.btn:hover {
  background: linear-gradient(135deg, #5a3e66 0%, #6b4d7a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(107, 77, 122, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(107, 77, 122, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(107, 77, 122, 0.2);
}

.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-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);
}

.subsection-title {
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #f7f4fb, #ede7f6);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

/* Header logo - SVG och PNG */
.header-logo-svg {
  height: 40px;
  width: auto;
  display: block;
}

.header-logo-img {
  height: 40px;
  width: auto;
  margin-left: 8px;
  display: block;
  object-fit: contain;
}

.auth-header h1 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.auth-header p {
  color: var(--lavendel-text);
  font-size: 0.95rem;
  margin: 0;
}

#authGateContainer {
  width: 100%;
  max-width: 400px;
}

/* Terms & Conditions */
.terms-container {
  margin: 1.5em 0;
  padding: 1em;
  background: var(--oat);
  border-radius: 12px;
  border: 1px solid var(--shore);
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  cursor: pointer;
  font-size: 0.9em;
  line-height: 1.5;
}

.terms-checkbox-label input[type="checkbox"] {
  margin-top: 0.2em;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.terms-link {
  color: var(--eclips);
  text-decoration: underline;
  font-weight: 500;
}

.terms-link:hover {
  color: var(--lavendel);
}

.terms-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1em;
}

.terms-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2em;
  position: relative;
  box-shadow: 0 8px 32px rgba(70, 35, 119, 0.3);
}

.terms-modal-close {
  position: absolute;
  top: 1em;
  right: 1em;
  background: none;
  border: none;
  font-size: 2em;
  color: var(--lavendel);
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s ease;
}

.terms-modal-close:hover {
  background: var(--oat);
  color: var(--eclips);
}

.terms-modal-content h2 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin-bottom: 1em;
  padding-right: 2em;
}

.terms-modal-content h3 {
  font-family: 'Ovo', serif;
  color: var(--eclips);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.1em;
}

.terms-text {
  color: #2C3539;
  line-height: 1.7;
}

.terms-text p {
  margin-bottom: 1em;
}

.terms-text ul {
  margin: 0.5em 0 1em 1.5em;
  line-height: 1.8;
}

.terms-text li {
  margin-bottom: 0.5em;
}

.terms-text a {
  color: var(--eclips);
  text-decoration: underline;
}

.terms-text a:hover {
  color: var(--lavendel);
}

#acceptTermsBtn {
  margin-top: 1.5em;
  width: 100%;
}

@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; }
  .terms-modal-content {
    padding: 1.5em;
    max-height: 95vh;
  }
}