@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
  --bg: #FEFCF8;
  --surface: rgba(245, 240, 232, 0.6);
  --surface-solid: #F5F0E8;
  --gold: #C9A96E;
  --gold-light: rgba(201, 169, 110, 0.15);
  --gold-mid: rgba(201, 169, 110, 0.35);
  --sand: #D4B896;
  --rose: #C4897A;
  --blue-grey: #8A9BB0;
  --lilac: #B8A4C8;
  --text: #1A1614;
  --text-muted: #4A3F36;
  --text-light: #7A6F66;
  --border: rgba(201, 169, 110, 0.2);
  --border-hover: rgba(201, 169, 110, 0.45);
  --shadow: rgba(61, 53, 48, 0.06);
  --shadow-deep: rgba(61, 53, 48, 0.12);
  --radius: 24px;
  --radius-sm: 12px;
  --radius-lg: 40px;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Canvas Background ──────────────────────────────────────────────────── */
#nura-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.nura-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sand) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(201, 169, 110, 0.35);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nura-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nura-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 169, 110, 0.5);
}

.nura-btn:hover::before {
  opacity: 1;
}

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

.nura-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.nura-btn-secondary:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.nura-btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.nura-btn-danger {
  background: linear-gradient(135deg, var(--rose), #b36e60);
  box-shadow: 0 8px 32px rgba(196, 137, 122, 0.3);
}

/* ─── Inputs ─────────────────────────────────────────────────────────────── */
.nura-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(245, 240, 232, 0.7);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.nura-input:focus {
  border-color: var(--gold);
  background: rgba(245, 240, 232, 0.9);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.nura-input::placeholder {
  color: var(--text-light);
}

textarea.nura-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.nura-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nura-field {
  margin-bottom: 20px;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.nura-card {
  background: rgba(245, 240, 232, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px var(--shadow), 0 1px 0 rgba(255,255,255,0.8) inset;
  transition: var(--transition);
}

.nura-card:hover {
  box-shadow: 0 8px 40px var(--shadow-deep);
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.nura-card-clickable {
  cursor: pointer;
}

/* ─── Tags ───────────────────────────────────────────────────────────────── */
.nura-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.nura-tag-gold {
  background: var(--gold-light);
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.3);
}

.nura-tag-rose {
  background: rgba(196, 137, 122, 0.12);
  color: var(--rose);
  border-color: rgba(196, 137, 122, 0.25);
}

.nura-tag-lilac {
  background: rgba(184, 164, 200, 0.15);
  color: var(--lilac);
  border-color: rgba(184, 164, 200, 0.3);
}

.nura-tag-blue {
  background: rgba(138, 155, 176, 0.12);
  color: var(--blue-grey);
  border-color: rgba(138, 155, 176, 0.25);
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes breathe-slow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  33% { transform: translateY(-8px); }
  66% { transform: translateY(-4px); }
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

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

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes liquid-fill {
  from { width: 0%; }
  to { width: var(--fill-to); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particle-float {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-80px) translateX(20px) scale(0.5); opacity: 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 169, 110, 0.3); }
  50% { box-shadow: 0 0 40px rgba(201, 169, 110, 0.6); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ─── Breathing Circle ───────────────────────────────────────────────────── */
.breathing-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(201, 169, 110, 0.4),
    rgba(212, 184, 150, 0.25),
    rgba(201, 169, 110, 0.1)
  );
  border: 1px solid rgba(201, 169, 110, 0.3);
  animation: breathe 5s ease-in-out infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.breathing-circle::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.15);
  animation: breathe-slow 5s ease-in-out infinite reverse;
}

.breathing-circle::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.08);
  animation: breathe-slow 5s ease-in-out infinite;
}

.breathing-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.4);
  animation: pulse-ring 4s ease-out infinite;
}

/* ─── Emotion Bubbles ────────────────────────────────────────────────────── */
.emotion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 8px 0;
}

.emotion-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.7);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  backdrop-filter: blur(8px);
  user-select: none;
  animation: float 6s ease-in-out infinite;
}

.emotion-bubble:nth-child(2) { animation-delay: -1s; }
.emotion-bubble:nth-child(3) { animation-delay: -2s; }
.emotion-bubble:nth-child(4) { animation-delay: -3s; }
.emotion-bubble:nth-child(5) { animation-delay: -0.5s; }
.emotion-bubble:nth-child(6) { animation-delay: -1.5s; }
.emotion-bubble:nth-child(7) { animation-delay: -2.5s; }
.emotion-bubble:nth-child(8) { animation-delay: -3.5s; }

.emotion-bubble .emotion-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.emotion-bubble:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}

.emotion-bubble.selected {
  background: rgba(201, 169, 110, 0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15), 0 8px 24px rgba(201, 169, 110, 0.25);
  animation: glow-pulse 3s ease-in-out infinite;
}

/* ─── Body Map ───────────────────────────────────────────────────────────── */
.body-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.body-map-svg {
  width: 160px;
  cursor: pointer;
}

.body-zone {
  fill: rgba(201, 169, 110, 0.08);
  stroke: rgba(201, 169, 110, 0.3);
  stroke-width: 1;
  transition: all 0.4s ease;
  cursor: pointer;
}

.body-zone:hover {
  fill: rgba(201, 169, 110, 0.2);
  stroke: var(--gold);
}

.body-zone.active {
  fill: rgba(201, 169, 110, 0.35);
  stroke: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.4));
}

/* ─── Liquid Slider ──────────────────────────────────────────────────────── */
.nura-slider-wrap {
  position: relative;
  padding: 8px 0;
}

.nura-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold) 0%, var(--gold) var(--val, 50%), rgba(201,169,110,0.2) var(--val, 50%), rgba(201,169,110,0.2) 100%);
  outline: none;
  cursor: pointer;
}

.nura-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(201, 169, 110, 0.5);
  transition: transform 0.3s ease;
}

.nura-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-value {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
  margin-top: 8px;
}

/* ─── Liquid Progress Bar ────────────────────────────────────────────────── */
.liquid-progress {
  width: 100%;
  height: 4px;
  background: rgba(201, 169, 110, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.liquid-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--sand));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.liquid-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/* ─── Navigation Bar ─────────────────────────────────────────────────────── */
.nura-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(254, 252, 248, 0.9);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}

.nura-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-light);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nura-nav-item svg, .nura-nav-item .nav-icon {
  font-size: 1.3rem;
  transition: var(--transition);
}

.nura-nav-item:hover, .nura-nav-item.active {
  color: var(--gold);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.nura-header {
  position: sticky;
  top: 0;
  background: rgba(254, 252, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nura-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text);
}

.nura-logo span {
  color: var(--gold);
}

.nura-logo-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 2px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.nura-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.nura-toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 400;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px var(--shadow-deep);
  animation: fadeInUp 0.4s ease forwards;
  pointer-events: auto;
  max-width: 320px;
  border: 1px solid transparent;
}

.nura-toast-success {
  background: rgba(201, 169, 110, 0.15);
  border-color: rgba(201, 169, 110, 0.3);
  color: #7a6030;
}

.nura-toast-error {
  background: rgba(196, 137, 122, 0.15);
  border-color: rgba(196, 137, 122, 0.3);
  color: #8a4535;
}

.nura-toast-info {
  background: rgba(138, 155, 176, 0.15);
  border-color: rgba(138, 155, 176, 0.3);
  color: #4a5f75;
}

/* ─── Loading Spinner ────────────────────────────────────────────────────── */
.nura-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.2);
  border-top-color: var(--gold);
  animation: spin-slow 1.2s linear infinite;
}

.nura-spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(254, 252, 248, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  flex-direction: column;
  gap: 20px;
}

.loading-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.nura-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 53, 48, 0.4);
  backdrop-filter: blur(8px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.4s ease;
}

.nura-modal {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 80px rgba(61, 53, 48, 0.2);
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid var(--border);
}

.nura-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.3s ease;
}

.nura-modal-close:hover {
  color: var(--text);
}

.nura-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.nura-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ─── Page Transitions ───────────────────────────────────────────────────── */
.page-enter {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-section {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-section:nth-child(2) { animation-delay: 0.1s; }
.page-section:nth-child(3) { animation-delay: 0.2s; }
.page-section:nth-child(4) { animation-delay: 0.3s; }
.page-section:nth-child(5) { animation-delay: 0.4s; }

/* ─── Grid Layouts ───────────────────────────────────────────────────────── */
.nura-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* ─── Divider ────────────────────────────────────────────────────────────── */
.nura-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
}

.nura-divider-gold {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* ─── Audio Player ───────────────────────────────────────────────────────── */
.audio-player-fullscreen {
  position: fixed;
  inset: 0;
  background: #1a1614;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  animation: fadeIn 0.6s ease;
}

.audio-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(201, 169, 110, 0.3),
    rgba(201, 169, 110, 0.08)
  );
  border: 1px solid rgba(201, 169, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.audio-circle.playing {
  animation: breathe 4s ease-in-out infinite;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.audio-btn {
  background: none;
  border: none;
  color: rgba(201, 169, 110, 0.8);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.audio-btn:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.audio-btn-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--sand));
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}

.audio-btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(201, 169, 110, 0.55);
}

/* ─── Timeline ───────────────────────────────────────────────────────────── */
.nura-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 0;
  overflow-x: auto;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.25);
  border: 2px solid rgba(201, 169, 110, 0.35);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.timeline-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 169, 110, 0.2);
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(201, 169, 110, 0.25);
  z-index: 0;
}

.timeline-label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.timeline-step.active .timeline-label {
  color: var(--gold);
}

/* ─── Slide Panel ────────────────────────────────────────────────────────── */
.slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(61, 53, 48, 0.15);
  z-index: 600;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-panel.open {
  transform: translateX(0);
}

.slide-panel-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-panel-body {
  padding: 24px;
}

/* ─── Streak Badge ───────────────────────────────────────────────────────── */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(212, 184, 150, 0.1));
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--gold);
}

.streak-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
}

/* ─── Stats Row ──────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ─── AI Response Card ───────────────────────────────────────────────────── */
.ai-response-card {
  background: linear-gradient(135deg,
    rgba(184, 164, 200, 0.12),
    rgba(138, 155, 176, 0.1)
  );
  border: 1px solid rgba(184, 164, 200, 0.25);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.ai-response-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: rgba(184, 164, 200, 0.2);
  line-height: 1;
  pointer-events: none;
}

.ai-response-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  position: relative;
  font-style: italic;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--lilac);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ─── Journal Textarea ───────────────────────────────────────────────────── */
.journal-area {
  width: 100%;
  min-height: 280px;
  padding: 24px;
  background: rgba(245, 240, 232, 0.4);
  border: none;
  border-radius: var(--radius);
  resize: none;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  transition: background 0.4s ease;
  box-shadow: inset 0 2px 12px rgba(61, 53, 48, 0.04);
}

.journal-area:focus {
  background: rgba(245, 240, 232, 0.7);
}

.journal-area::placeholder {
  color: var(--text-light);
  font-style: italic;
}

.word-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
}

/* ─── Voice Record Button ────────────────────────────────────────────────── */
.record-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(196, 137, 122, 0.12);
  border: 1.5px solid rgba(196, 137, 122, 0.3);
  color: var(--rose);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.record-btn:hover {
  background: rgba(196, 137, 122, 0.2);
  border-color: var(--rose);
}

.record-btn.recording {
  background: rgba(196, 137, 122, 0.25);
  border-color: var(--rose);
  animation: glow-pulse 1.5s ease-in-out infinite;
}

/* ─── Onboarding ─────────────────────────────────────────────────────────── */
.onboarding-step {
  display: none;
  animation: fadeInUp 0.6s ease forwards;
}

.onboarding-step.active {
  display: flex;
  flex-direction: column;
}

.onboarding-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 36px;
}

.onboarding-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-option {
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.onboarding-option:hover,
.onboarding-option.selected {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold);
}

/* ─── Canvas Chart ───────────────────────────────────────────────────────── */
#emotion-chart {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(245, 240, 232, 0.4);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nura-grid-2 {
    grid-template-columns: 1fr;
  }

  .nura-grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .slide-panel {
    max-width: 100%;
  }

  .emotion-bubble {
    width: 78px;
    height: 78px;
  }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.25);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 169, 110, 0.45);
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-light { color: var(--text-light); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.italic { font-style: italic; }
.font-serif { font-family: 'Cormorant Garamond', serif; }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
}

/* ─── Dark Mode ──────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #1A1614;
  --surface: rgba(255, 248, 240, 0.05);
  --surface-solid: #252018;
  --gold-light: rgba(201, 169, 110, 0.1);
  --gold-mid: rgba(201, 169, 110, 0.25);
  --text: rgba(245, 240, 232, 0.95);
  --text-muted: rgba(235, 228, 218, 0.85);
  --text-light: rgba(220, 212, 200, 0.7);
  --border: rgba(201, 169, 110, 0.12);
  --border-hover: rgba(201, 169, 110, 0.28);
  --shadow: rgba(0, 0, 0, 0.25);
  --shadow-deep: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--text);
}

[data-theme="dark"] .nura-card {
  background: rgba(255, 248, 240, 0.04);
  border-color: var(--border);
}

[data-theme="dark"] .nura-input {
  background: rgba(255, 248, 240, 0.06);
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] .nura-input::placeholder {
  color: var(--text-light);
}

[data-theme="dark"] .nura-nav {
  background: rgba(26, 22, 20, 0.96);
  border-color: var(--border);
}

[data-theme="dark"] .nura-nav-item {
  color: var(--text-light);
}

[data-theme="dark"] .nura-modal {
  background: #2a2420;
  border-color: var(--border);
}

[data-theme="dark"] .nura-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
  color: var(--text);
}

[data-theme="dark"] .nura-toast-success {
  background: rgba(201, 169, 110, 0.2);
  border-color: rgba(201, 169, 110, 0.4);
  color: #e8c97a;
}

[data-theme="dark"] .nura-toast-error {
  background: rgba(196, 137, 122, 0.2);
  border-color: rgba(196, 137, 122, 0.4);
  color: #e89a88;
}

[data-theme="dark"] .nura-toast-info {
  background: rgba(138, 155, 176, 0.2);
  border-color: rgba(138, 155, 176, 0.4);
  color: #9ab5d0;
}

/* ─── Theme Toggle Button ────────────────────────────────────────────────── */
.nura-theme-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 900;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 12px var(--shadow);
  flex-shrink: 0;
}

.nura-theme-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.08);
}

/* When inside header, override fixed positioning */
.nura-header .nura-theme-btn,
.dark-header .nura-theme-btn {
  position: relative;
  top: auto;
  right: auto;
  z-index: auto;
  box-shadow: none;
  width: 34px;
  height: 34px;
}

/* Nav badge */
.nura-nav-item { position: relative; }
.nav-icon { position: relative; display: inline-block; }
.nav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--rose);
  color: #fff;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 3px;
  pointer-events: none;
}

/* Delete danger button */
.nura-btn-danger-sm {
  background: none;
  border: 1px solid rgba(196,137,122,0.4);
  color: var(--rose);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.nura-btn-danger-sm:hover {
  background: rgba(196,137,122,0.1);
  border-color: var(--rose);
}
