/* ============================================================
   SANCTUARY MIND STUDIO - Earthbound Ethereal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --surface: #fef8f5;
  --surface-container-low: #f8f2f0;
  --surface-container: #f2edea;
  --surface-container-high: #ede7e4;
  --surface-container-highest: #e7e1df;
  --surface-container-lowest: #ffffff;
  --primary: #006872;
  --primary-container: #00838f;
  --primary-fixed: #92f1fe;
  --on-primary: #ffffff;
  --on-surface: #1d1b1a;
  --on-surface-variant: #3e494a;
  --secondary: #006a63;
  --secondary-container: #8bf1e6;
  --secondary-fixed: #8ef4e9;
  --tertiary: #954900;
  --tertiary-container: #ba5d00;
  --tertiary-fixed: #ffdcc6;
  --outline: #6e797b;
  --outline-variant: #bdc9ca;
  --font: 'Poppins', sans-serif;
  --sidebar-w: 256px;
  /* Traffic light axis colors */
  --anchor: #2e7d32;
  --allow: #c62828;
  --align: #ef6c00;
  --anchor-bg: #e8f5e9;
  --allow-bg: #ffebee;
  --align-bg: #fff3e0;
}

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

body {
  background: var(--surface); overflow-x: hidden;
  color: var(--on-surface);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.50);
  pointer-events: none;
  z-index: 0; /* above .parallax-bg (-1), below all content (100+) */
}
.parallax-bg {
  position: fixed; top: -5vh; left: -2vw; width: 104vw; height: 115vh;
  background: url('pexels-quang-nguyen-vinh-222549-2170816.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1; will-change: transform;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  vertical-align: middle;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   SIDEBAR (hidden - replaced by horizontal header)
   ============================================================ */
.sidebar { display: none; }

/* ============================================================
   TOP HEADER (horizontal nav)
   ============================================================ */
.top-header {
  background: #fff;
  border-radius: 16px;
  max-width: 1100px; margin: 0 auto;
  padding: 20px 28px 16px;
  box-shadow: 0 4px 24px rgba(29,27,26,0.1);
  position: sticky; top: 12px; z-index: 100;
  transition: transform 0.3s ease;
}
.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-left {
  display: flex; align-items: center; gap: 12px;
}
.header-logo { height: 65px; width: auto; }
.header-right {
  display: flex; align-items: center; gap: 14px;
}
.header-welcome {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--on-surface);
}
.pill-nav {
  display: flex; justify-content: flex-end;
  gap: 10px; margin-top: 14px;
}
.pill-btn {
  padding: 8px 22px; border-radius: 999px;
  border: 1.5px solid var(--primary); background: none;
  color: var(--primary); font-family: var(--font);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.pill-btn:hover { background: var(--primary); color: var(--on-primary); }
.pill-btn.active { background: var(--primary); color: var(--on-primary); pointer-events: none; }

/* ============================================================
   MAIN
   ============================================================ */
.main { margin-left: 0; max-width: 1100px; margin: 0 auto; min-height: 100vh; padding: 28px 28px 60px; position: relative; }
@media (max-width: 900px) {
  .top-header { margin: 0 8px; padding: 14px 16px 12px; background: #fff; top: 8px; }
  .header-logo { height: 42px; }
  .main { padding: 16px 12px 80px; }
  .pill-nav { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin-top: 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pill-nav::-webkit-scrollbar { display: none; }
  .pill-btn { white-space: nowrap; flex-shrink: 0; }
  .page-header { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
  .triangle-wrap { max-width: 220px; }
  .row-2col { gap: 16px; }
}

/* ============================================================
   TOP BAR (legacy - hidden, replaced by .top-header)
   ============================================================ */
.top-bar { display: none; }
.top-right { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-container); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s;
  color: var(--on-surface-variant);
}
.icon-btn:hover { background: var(--surface-container-high); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary-fixed); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--surface-container-lowest);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden; object-fit: cover;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-upload-wrap {
  position: relative; cursor: pointer;
}
.avatar-upload-icon {
  position: absolute; bottom: 0; right: 0;
  background: var(--primary); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ============================================================
   HERO ROW: Daily Reflection + Progress/SignUp
   ============================================================ */
/* Intro Panel */
.intro-panel {
  background: linear-gradient(135deg, #1a3a4a, #2a5464);
  border-radius: 18px; padding: 36px 40px; margin-bottom: 24px;
  color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,58,74,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.intro-panel:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,58,74,0.35); }
.intro-panel::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.intro-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.intro-desc {
  font-size: 14px; line-height: 1.6; opacity: 0.85; margin-bottom: 24px;
  max-width: 640px;
}
.intro-pillars { display: flex; gap: 28px; flex-wrap: wrap; }
.intro-pillar {
  display: flex; gap: 10px; align-items: flex-start; flex: 1; min-width: 200px;
}
.intro-pillar-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
}
.intro-pillar strong { display: block; font-size: 14px; margin-bottom: 2px; }
.intro-pillar span { font-size: 12.5px; line-height: 1.5; opacity: 0.8; }
@media (max-width: 900px) {
  .intro-panel { padding: 28px 20px; }
  .intro-pillars { flex-direction: column; gap: 16px; }
}

.hero-row {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 24px; margin-bottom: 24px;
}
.hero-col-left { display: flex; flex-direction: column; }
.hero-col-right { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
}

/* My Progress Card */
.progress-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary); border-radius: 18px; padding: 28px;
  flex: 1; display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,104,114,0.2);
  position: relative; overflow: hidden;
}
.progress-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 14px;
}
.progress-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.progress-body { font-size: 13px; line-height: 1.55; opacity: 0.88; margin-bottom: 16px; }
.progress-bar-track { height: 3px; background: rgba(255,255,255,0.2); border-radius: 99px; margin-bottom: 8px; }
.progress-bar-fill { width: 0%; height: 100%; background: rgba(255,255,255,0.7); border-radius: 99px; transition: width 1s; }
.progress-level { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* Sign Up Card */
.signup-card {
  background: linear-gradient(135deg, #2d5a4e, #1a4035);
  color: var(--on-primary); border-radius: 18px; padding: 28px;
  flex: 1; display: flex; flex-direction: column;
}
.signup-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.signup-desc { font-size: 13px; line-height: 1.55; opacity: 0.85; margin-bottom: 18px; }
.signup-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.signup-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; opacity: 0.9; }
.signup-cta {
  width: 100%; padding: 14px; background: var(--tertiary); color: var(--on-primary);
  border: none; border-radius: 999px; font-family: var(--font); font-size: 14px;
  font-weight: 700; cursor: pointer; transition: transform 0.15s;
  box-shadow: 0 4px 16px rgba(149,73,0,0.3);
}
.signup-cta:hover { transform: scale(1.02); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 14px; padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(29,27,26,0.12);
  position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(29,27,26,0.04);
}
.card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(139,241,230,0.12); filter: blur(60px);
  pointer-events: none;
}
.card-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 16px;
}
.card-label-primary { color: var(--primary); }
.card-label-tertiary { color: var(--tertiary); }
.card-label-muted { color: var(--on-surface-variant); }

/* Accent card (teal gradient) */
.accent-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary); border-radius: 14px; padding: 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,104,114,0.2);
}
.accent-card-glow {
  position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(142,244,233,0.15); filter: blur(40px);
  pointer-events: none;
}
.accent-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.accent-card p { font-size: 13px; line-height: 1.55; opacity: 0.88; }

/* Advice card */
.advice-card {
  background: var(--surface-container-lowest);
  border-radius: 14px; padding: 28px;
  border-left: 4px solid rgba(149,73,0,0.2);
  box-shadow: 0 1px 4px rgba(29,27,26,0.04);
}
.advice-main {
  background: rgba(255,220,198,0.25); border-radius: 10px;
  padding: 16px; margin-bottom: 18px;
}
.advice-main h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--on-surface); }
.advice-main p { font-size: 13px; color: var(--on-surface-variant); line-height: 1.5; }

.tip-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tip-dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.tip-dot-water { background: var(--secondary-container); color: var(--secondary); }
.tip-dot-air { background: var(--primary-fixed); color: var(--primary); }
.tip-dot-earth { background: var(--tertiary-fixed); color: var(--tertiary); }
.tip-dot .material-symbols-outlined { font-size: 16px; }
.tip-text { font-size: 13px; color: var(--on-surface-variant); font-weight: 500; }

.insight-btn {
  width: 100%; margin-top: 16px; padding: 12px;
  border: 1px solid rgba(149,73,0,0.15); border-radius: 999px;
  background: none; color: var(--tertiary);
  font-family: var(--font); font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: background 0.15s;
}
.insight-btn:hover { background: rgba(149,73,0,0.04); }

/* ============================================================
   REFLECTION INPUT
   ============================================================ */
.reflection-prompt {
  font-size: 18px; font-weight: 500; color: var(--on-surface);
  margin-bottom: 16px; line-height: 1.4;
}
.input-wrap { position: relative; }
.reflection-input {
  width: 100%; background: var(--surface-container-low);
  color: var(--on-surface); border: none; border-radius: 14px;
  padding: 16px 56px 16px 18px; font-family: var(--font);
  font-size: 14px; line-height: 1.55; resize: vertical; min-height: 100px;
  transition: box-shadow 0.2s;
}
.reflection-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-fixed);
}
.reflection-input::placeholder { color: rgba(110,121,123,0.5); }
.submit-btn {
  position: absolute; bottom: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s; box-shadow: 0 2px 8px rgba(0,104,114,0.25);
}
.submit-btn:hover { transform: scale(1.1); }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.submit-btn .material-symbols-outlined { font-size: 20px; }
.error-text { display: block; margin-top: 6px; font-size: 12px; color: #ba1a1a; min-height: 16px; }

/* ============================================================
   TRIANGLE (Wellness Compass)
   ============================================================ */
.tri-card { background: var(--surface-container); }
.triangle-wrap { position: relative; width: 100%; max-width: 280px; margin: 0 auto; }
.triangle-outer {
  width: 100%; aspect-ratio: 1/0.866;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: rgba(231,225,223,0.5);
  position: relative;
}
.triangle-inner {
  position: absolute; inset: 0;
  clip-path: polygon(50% 10%, 20% 80%, 90% 90%);
  background:
    linear-gradient(to bottom left, rgba(46,125,50,0.35) 0%, transparent 60%),
    linear-gradient(to bottom right, transparent 40%, rgba(239,108,0,0.25) 100%),
    linear-gradient(to top, transparent 40%, transparent 60%),
    linear-gradient(to top left, rgba(198,40,40,0.2) 0%, transparent 50%);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(46,125,50,0.25);
  transition: clip-path 0.8s cubic-bezier(0.22,1,0.36,1);
}
.tri-label {
  position: absolute; font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tri-label-top { top: -20px; left: 50%; transform: translateX(-50%); color: var(--anchor); }
.tri-label-left { bottom: -20px; left: -8px; color: var(--align); }
.tri-label-right { bottom: -20px; right: -8px; color: var(--allow); }
.tri-dot {
  width: 5px; height: 5px; border-radius: 50%; margin: 4px auto 0;
}
.triangle-reading {
  text-align: center; font-style: italic; font-size: 13px;
  color: var(--on-surface-variant); margin-top: 28px; line-height: 1.45;
}

/* ============================================================
   RESULTS
   ============================================================ */
.loading-shimmer {
  background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container-lowest) 50%, var(--surface-container-low) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s infinite; border-radius: 10px;
}
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--surface-container-low);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.zone-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.score-row { margin-bottom: 12px; }
.score-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.score-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.score-val { font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
.score-track { width: 100%; height: 4px; background: var(--surface-container-high); border-radius: 99px; }
.score-fill { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(0.22,1,0.36,1); }

.ghost-btn {
  background: none; border: 1px solid var(--outline-variant);
  color: var(--primary); font-family: var(--font); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background 0.15s;
}
.ghost-btn:hover { background: var(--surface-container-low); }
.saved-note { font-size: 11px; color: var(--secondary); margin-top: 10px; opacity: 0; animation: fadeIn 0.3s 0.4s forwards; }

/* ============================================================
   HISTORY PAGE
   ============================================================ */
.page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.page-header p { font-size: 14px; color: var(--on-surface-variant); }
.share-btn {
  background: linear-gradient(135deg, #1a3a4a, #2a5464); color: #fff;
  border: none; border-radius: 10px; padding: 10px 22px;
  font-size: 13px; font-weight: 700; font-family: var(--font);
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(26,58,74,0.2); transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.9; }
.delete-reflection-btn {
  background: none; border: none; color: var(--outline); cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; align-items: center;
  transition: color 0.2s, background 0.2s;
}
.delete-reflection-btn:hover { color: var(--allow); background: var(--allow-bg); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface-container-lowest); border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 1px 4px rgba(29,27,26,0.04);
}
.stat-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-surface-variant); }
.stat-val { font-size: 24px; font-weight: 800; color: var(--primary); margin-top: 2px; }
.history-card {
  background: var(--surface-container-lowest); border-radius: 14px;
  padding: 20px 24px; margin-bottom: 10px; cursor: pointer;
  transition: box-shadow 0.15s; box-shadow: 0 1px 4px rgba(29,27,26,0.04);
}
.history-card:hover { box-shadow: 0 4px 16px rgba(0,104,114,0.08); }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--on-surface-variant); margin-bottom: 6px; }
.empty-state p { font-size: 13px; color: var(--outline); }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(29,27,26,0.3); backdrop-filter: blur(8px);
  z-index: 200; align-items: center; justify-content: center; padding: 24px;
}
.auth-overlay.show { display: flex; }
.auth-box {
  width: 100%; max-width: 420px; background: var(--surface-container-lowest);
  border-radius: 18px; padding: 36px; text-align: center;
  animation: fadeIn 0.3s; position: relative;
  box-shadow: 0 16px 64px rgba(29,27,26,0.12);
}
.auth-box .logo-wrap { margin-bottom: 24px; }
.auth-box .logo-wrap img { height: 50px; }
.auth-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-box .subtitle { color: var(--on-surface-variant); font-size: 13px; margin-bottom: 28px; }
.auth-close {
  position: absolute; top: 16px; right: 16px; background: none;
  border: none; color: var(--outline); cursor: pointer; font-size: 20px;
}
.auth-form { text-align: left; }
.auth-form label {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--outline); margin-bottom: 6px; margin-top: 16px;
}
.auth-form label:first-child { margin-top: 0; }
.auth-form input {
  width: 100%; background: var(--surface-container-low); color: var(--on-surface);
  border: none; border-radius: 10px; padding: 13px 16px;
  font-family: var(--font); font-size: 14px; transition: box-shadow 0.15s;
}
.auth-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary-fixed); }
.auth-form input::placeholder { color: rgba(110,121,123,0.4); }
.auth-error { color: #ba1a1a; font-size: 12px; margin-top: 10px; min-height: 18px; }
.auth-cta {
  width: 100%; margin-top: 20px;
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  color: var(--on-primary); border: none; border-radius: 999px;
  padding: 14px; font-family: var(--font); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: transform 0.15s;
  box-shadow: 0 4px 16px rgba(0,104,114,0.2);
}
.auth-cta:hover { transform: scale(1.02); }
.auth-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.auth-switch { margin-top: 20px; font-size: 13px; color: var(--on-surface-variant); }
.auth-switch a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-remember-row { margin-top: 14px; }
.auth-remember-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--on-surface-variant);
  cursor: pointer; user-select: none;
  font-weight: 500; letter-spacing: 0; text-transform: none; margin: 0;
}
.auth-remember-label input[type="checkbox"] { display: none; }
.auth-remember-check {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1.5px solid var(--outline-variant);
  background: var(--surface-container-low);
  transition: all 0.15s; position: relative;
}
.auth-remember-label input:checked + .auth-remember-check {
  background: var(--primary); border-color: var(--primary);
}
.auth-remember-label input:checked + .auth-remember-check::after {
  content: ''; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ============================================================
   ROW LAYOUTS
   ============================================================ */
.row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .row-2col { grid-template-columns: 1fr !important; gap: 16px !important; } }

/* ============================================================
   ENGAGEMENT COMPONENTS
   ============================================================ */
.followup-card {
  background: var(--surface-container-low); border-radius: 12px;
  padding: 16px; margin-top: 16px;
}
.intention-card {
  background: rgba(139,241,230,0.08); border-radius: 12px;
  padding: 16px; margin-top: 12px;
}
.nudge-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: linear-gradient(135deg, rgba(0,104,114,0.06), rgba(142,244,233,0.08));
  border-radius: 12px; padding: 16px; margin-top: 14px;
}

/* ============================================================
   TAG CHIPS & PATTERN CARDS
   ============================================================ */
.tag-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--surface-container-high); color: var(--on-surface-variant);
  text-transform: capitalize;
}
.pattern-tag-card {
  background: var(--surface-container-low); border-radius: 10px;
  padding: 12px; min-width: 120px; flex: 1;
}

/* Mobile bar - no longer used */
.mobile-bar { display: none; }
@media (max-width: 600px) {
  .pill-btn { padding: 6px 14px; font-size: 11px; }
  .header-welcome { font-size: 16px; }
  .header-logo { height: 36px; }
  .top-header-inner { gap: 8px; }
}

/* ============================================================
   AXIS EXPLAINER
   ============================================================ */
.axis-explainer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--surface-container-high);
  display: flex; flex-direction: column; gap: 10px;
}
.axis-item {
  display: flex; align-items: flex-start; gap: 10px; font-size: 11px;
  line-height: 1.45; color: var(--on-surface-variant);
}
.axis-item strong {
  font-size: 11px; font-weight: 700; display: block; margin-bottom: 1px;
}
.axis-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 3px;
}

/* ============================================================
   REFLECTION HERO CARD (burnt orange gradient)
   ============================================================ */
.reflection-hero {
  background: linear-gradient(135deg, #b35a2e, #954900);
  border-radius: 18px; padding: 32px; position: relative; overflow: hidden;
  color: #fff; box-shadow: 0 8px 32px rgba(149,73,0,0.2);
  flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.reflection-hero-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,220,198,0.15); filter: blur(60px);
  pointer-events: none;
}
.reflection-hero-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2;
}
.reflection-hero-input {
  width: 100%; background: rgba(255,255,255,0.15);
  color: #fff; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px; padding: 16px 100px 16px 18px;
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  resize: vertical; min-height: 100px;
  transition: all 0.2s; backdrop-filter: blur(8px);
}
.reflection-hero-input:focus {
  outline: none; background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}
.reflection-hero-input::placeholder { color: rgba(255,255,255,0.5); }
.submit-btn-hero {
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);
  box-shadow: none;
}
.submit-btn-hero:hover { background: rgba(255,255,255,0.3); transform: scale(1.1); }
.reflection-hero-prompt {
  font-size: 12px; color: rgba(255,255,255,0.55); font-style: italic;
  margin-top: 12px; line-height: 1.4; transition: opacity 0.2s;
}
.hero-refresh-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-family: var(--font); transition: color 0.15s;
}
.hero-refresh-btn:hover { color: rgba(255,255,255,0.9); }

/* ============================================================
   GO DEEPER CHAT PANEL
   ============================================================ */
.deeper-chat-wrap {
  background: var(--surface-container-low); border-radius: 12px; padding: 16px;
}
.deeper-messages {
  max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding-right: 4px;
}
.deeper-msg {
  padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5;
  max-width: 90%;
}
.deeper-msg-ai {
  background: var(--surface-container-lowest); color: var(--on-surface);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.deeper-msg-user {
  background: var(--primary); color: var(--on-primary);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.deeper-loading { opacity: 0.5; }

/* ============================================================
   VOICE INPUT / OUTPUT
   ============================================================ */
.voice-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; position: absolute;
  bottom: 14px; right: 58px;
}
.voice-btn:hover { background: rgba(255,255,255,0.25); }
.voice-btn.listening {
  background: rgba(255,100,100,0.3); border-color: rgba(255,100,100,0.4);
  animation: voicePulse 1.5s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.voice-btn-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-container-high); border: none;
  color: var(--on-surface-variant); display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.voice-btn-sm:hover { background: var(--surface-container-highest); }
.voice-btn-sm.listening {
  background: rgba(186,26,26,0.1); color: #ba1a1a;
  animation: voicePulse 1.5s ease-in-out infinite;
}

.listen-btn {
  background: none; border: 1px solid var(--outline-variant);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-family: var(--font); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-surface-variant); display: inline-flex;
  align-items: center; gap: 4px; transition: all 0.15s; margin-bottom: 12px;
}
.listen-btn:hover { background: var(--surface-container-low); border-color: var(--primary); color: var(--primary); }
.listen-btn.playing { color: var(--tertiary); border-color: var(--tertiary); }

.voice-notice {
  font-size: 10px; color: rgba(255,255,255,0.45);
  margin-top: 4px; line-height: 1.3;
  animation: fadeIn 0.3s;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   PEACE LILY
   ============================================================ */
.peace-lily-wrap {
  position: absolute; bottom: 0; left: 0;
  width: 180px; height: 220px;
  pointer-events: none; z-index: 0;
}
.progress-card > *:not(.peace-lily-wrap) { position: relative; z-index: 1; }
.peace-lily-wrap svg { width: 100%; height: 100%; }
.lily-stage { opacity: 0; transition: opacity 1.5s ease-out; }
.lily-stage.visible { opacity: 1; }
.lily-leaf { transition: transform 2s ease-in-out; transform-origin: bottom center; }
.lily-stem { transition: transform 2s ease-in-out; transform-origin: bottom center; }
.peace-lily-wrap[data-drooped="true"] .lily-leaf { transform: rotate(18deg); }
.peace-lily-wrap[data-drooped="true"] .lily-stem { transform: rotate(5deg); }
.lily-glow { opacity: 0; transition: opacity 1.5s ease-out; }
.lily-glow.visible { opacity: 1; }
