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

:root {
  --text-main: #3A3D39;
  --text-muted: #7A8179;
  --accent: #B09370;
  --accent-light: #D5C1A9;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --pill-bg: rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 8px 32px rgba(176, 147, 112, 0.12);
}

* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }

body {
  margin: 0; font-family: 'Montserrat', sans-serif;
  color: var(--text-main); background-color: #FDFBF7;
  overflow-x: hidden; overscroll-behavior-y: none;
}

.aura-bg {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
  background: radial-gradient(circle at 15% 50%, #F5EFEB, transparent 50%),
              radial-gradient(circle at 85% 30%, #EFEFE4, transparent 50%),
              radial-gradient(circle at 50% 90%, #F3EAE0, transparent 50%);
  background-color: #FDFBF7; filter: blur(40px);
  animation: aura-shift 20s ease-in-out infinite alternate;
}

@keyframes aura-shift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, 2%); }
  100% { transform: scale(1) translate(2%, -2%); }
}

.glass-panel {
  background: var(--glass-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); border-radius: 24px;
}

h1, h2, h3, .serif { font-family: 'Cormorant', serif; }

.text-whisper { font-family: 'Cormorant', serif; font-style: italic; font-size: 1.75rem; line-height: 1.3; }

/* NAVIGATION */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%; max-width: 100%; height: 70px;
  background: #FDFBF7;
  border-top: 1px solid var(--glass-border); border-radius: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0 16px 12px 16px; z-index: 50;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; border: none; background: transparent; color: var(--text-muted);
  font-size: 11px; font-weight: 500; gap: 4px; transition: all 0.3s ease; cursor: pointer; padding: 8px 0;
}
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; fill: none; transition: all 0.3s ease; }
.nav-item.active { color: var(--accent); }
.nav-item.active svg { stroke-width: 2.2; transform: translateY(-2px); }

/* ONBOARDING */
.onboarding-screen {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #FDFBF7;
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.8s ease;
}
.onboarding-screen.active { opacity: 1; pointer-events: auto; }

.ob-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 32px; text-align: center; opacity: 0; transform: translateX(20px); pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ob-slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ob-slide.exit { opacity: 0; transform: translateX(-20px); pointer-events: none; }

.ob-image {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin-bottom: 24px; border: 2px solid var(--glass-border); box-shadow: var(--shadow-sm);
}

.btn-pill {
  background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
  padding: 14px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04); cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif;
}
.btn-pill:active { transform: scale(0.96); background: rgba(255,255,255,0.9); }
.btn-next { margin-top: 32px; width: 100%; max-width: 280px; background: var(--accent); color: white; }

/* CHAT */
.chat-container { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }
.chat-bubble { max-width: 88%; padding: 16px 20px; border-radius: 20px; line-height: 1.5; }
.chat-user { align-self: flex-end; background: var(--accent); color: white; border-bottom-right-radius: 4px; font-size: 15px; }
.chat-ai { align-self: flex-start; background: var(--glass-bg); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }

.chat-input-wrapper {
  position: fixed; bottom: 70px; left: 0; width: 100%; max-width: 100%;
  display: flex; gap: 12px;
  background: #FDFBF7;
  padding: 12px 16px; border-top: 1px solid var(--glass-border);
  z-index: 40;
}
.chat-input-wrapper input { flex: 1; border: none; background: rgba(176,147,112,0.1); padding: 0 16px; border-radius: 20px; font-family: 'Montserrat', sans-serif; font-size: 15px; color: var(--text-main); outline: none; }
.chat-input-wrapper input::placeholder { color: var(--text-muted); }
.chat-input-wrapper button { background: var(--accent); border: none; width: 44px; height: 44px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; flex-shrink: 0; }
.chat-input-wrapper button:active { transform: scale(0.9); }

/* TABS */
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* BREATHING */
.breathing-wrap { position: relative; width: 200px; height: 200px; margin: 40px auto; display: flex; justify-content: center; align-items: center; }
.breathing-circle { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(176, 147, 112, 0.15) 0%, rgba(176, 147, 112, 0) 70%); border: 1px solid rgba(176, 147, 112, 0.2); transform: scale(0.5); transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1); }
.breathing-circle.inhale { transform: scale(1.2); transition: transform 4s cubic-bezier(0.2, 0, 0.2, 1); }
.breathing-circle.hold { transform: scale(1.2); }
.breathing-circle.exhale { transform: scale(0.5); transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1); }
.breathing-text { position: relative; z-index: 10; font-family: 'Cormorant', serif; font-size: 24px; color: var(--accent); font-weight: 600; letter-spacing: 0.05em; }

/* HIGH-CONVERTING PAYWALL */
.paywall-drawer {
  position: fixed; top: 100vh; left: 0; right: 0; height: 100vh;
  background: #FDFBF7; z-index: 200; overflow-y: auto; padding: 40px 24px 100px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.paywall-drawer.active { transform: translateY(-100vh); }

.offer-card {
  background: white; border: 1px solid var(--glass-border);
  border-radius: 24px; padding: 24px; margin-bottom: 24px;
  box-shadow: 0 12px 40px rgba(176,147,112,0.1);
  position: relative; overflow: hidden; text-align: left;
}
.offer-badge {
  position: absolute; top: 0; right: 0; background: var(--accent);
  color: white; font-size: 11px; font-weight: 600; padding: 6px 16px;
  border-bottom-left-radius: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.offer-title { font-size: 20px; color: var(--accent); margin: 0 0 12px; font-weight: 600; }
.offer-features { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--text-main); }
.offer-features li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.offer-features li::before { content: "✓"; color: var(--accent); font-weight: bold; }
.offer-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); }

::-webkit-scrollbar { display: none; }