/* ===== CSS Variables ===== */
:root {
  --bg-deep: #1a1a18;
  --bg-surface: #222220;
  --bg-card: #2a2a27;
  --bg-elevated: #333330;
  --text-primary: #e8e4dc;
  --text-secondary: #a8a498;
  --text-muted: #706e66;
  --accent-gold: #c9a96e;
  --accent-gold-soft: rgba(201,169,110,0.15);
  --accent-sage: #8fa886;
  --accent-sage-soft: rgba(143,168,134,0.15);
  --accent-rose: #b8898a;
  --accent-rose-soft: rgba(184,137,138,0.15);
  --accent-sky: #8aacb8;
  --accent-sky-soft: rgba(138,172,184,0.15);
  --border-subtle: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(201,169,110,0.08);
  --font-serif: 'Noto Serif SC', 'EB Garamond', serif;
  --font-display: 'EB Garamond', 'Noto Serif SC', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* ===== Background Atmosphere ===== */
.atmosphere {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.atmosphere::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 80vw; height: 80vw;
  background: radial-gradient(ellipse, rgba(201,169,110,0.04) 0%, transparent 70%);
  animation: floatOrb 20s ease-in-out infinite;
}

.atmosphere::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(ellipse, rgba(143,168,134,0.03) 0%, transparent 70%);
  animation: floatOrb 25s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(5vw, -3vh); }
  66% { transform: translate(-3vw, 5vh); }
}

/* ===== Navigation ===== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(26,26,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

.nav-brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-actions { display: flex; gap: 8px; }

.nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ===== Page Content ===== */
.page-content {
  padding: 0 24px 100px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.5s ease;
}

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

/* ===== Home: Top Area (Greeting + Week Dots stacked) ===== */
.home-top {
  padding: 48px 0 8px;
}

.home-greeting {
}

.home-greeting h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
}

.home-greeting p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 300;
}

/* ===== Week Section (below greeting, left-aligned) ===== */
.week-dots {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 12px;
}

.week-dot-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.week-dot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.week-dot-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.week-dot-label.today {
  color: var(--accent-gold);
  font-weight: 500;
}

.week-dot-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-elevated);
  background: transparent;
  transition: all 0.4s ease;
  position: relative;
}

.week-dot-circle.filled {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(201,169,110,0.2);
}

.week-dot-circle.filled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bg-deep);
}

.week-dot-circle.today-empty {
  border-color: var(--accent-gold);
}

/* ===== Mood Scatter Section ===== */
.mood-scatter-section {
  margin-top: 24px;
}

.mood-scatter-container {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mood-scatter-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
  text-align: center;
}

.mood-bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: default;
  user-select: none;
  transition: transform 0.15s ease;
  animation: bubbleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.mood-bubble:hover {
  transform: scale(1.15);
}

.mood-bubble-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

@keyframes bubbleIn {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Start Button ===== */
.start-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.start-btn {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  position: relative;
  transition: all 0.4s ease;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}

.start-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.2);
  animation: pulseRing 3s ease-in-out infinite;
}

.start-btn::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,0.08);
  animation: pulseRing 3s ease-in-out infinite 0.5s;
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.5; }
}

.start-btn:hover {
  background: rgba(201,169,110,0.25);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.start-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-weight: 300;
}

/* ===== Wisdom Quote Card ===== */
.wisdom-section {
  margin-top: 8px;
  padding-bottom: 16px;
}

.wisdom-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  overflow: hidden;
}

.wisdom-deco {
  position: absolute;
  top: -4px;
  left: 16px;
  font-size: 3.2rem;
  color: var(--accent-gold);
  opacity: 0.2;
  font-family: var(--font-display);
  line-height: 1;
  user-select: none;
}

.wisdom-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.wisdom-author {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.wisdom-author-name {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.wisdom-author-title {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
}

/* ===== Section Header ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
}

.section-header h2 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.section-header a {
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-decoration: none;
  cursor: pointer;
}

/* ===== Entry Card ===== */
.entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.entry-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.entry-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.entry-type-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.badge-focus { background: var(--accent-gold-soft); color: var(--accent-gold); }
.badge-breath { background: var(--accent-sage-soft); color: var(--accent-sage); }
.badge-body { background: var(--accent-rose-soft); color: var(--accent-rose); }
.badge-loving { background: var(--accent-sky-soft); color: var(--accent-sky); }

.entry-date { font-size: 0.7rem; color: var(--text-muted); }

.entry-moods {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mood-arrow { color: var(--text-muted); font-size: 0.7rem; }

.entry-insight {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-duration { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }

/* ===== Setup: Meditate Page ===== */
.setup-header { text-align: center; padding: 48px 0 32px; }

.setup-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.setup-header p { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }

.setup-section { margin-bottom: 28px; }
.setup-section:first-child { margin-top: 20px; }

.setup-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.mood-option {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mood-option:hover { border-color: var(--border-light); }

.mood-option.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.mood-icon { font-size: 1.4rem; margin-bottom: 6px; display: block; }
.mood-name { font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }

/* ===== Two-step Mood Sheet ===== */
.mood-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mood-sheet-back {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.mood-sheet-back:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.mood-sheet-back.hidden {
  opacity: 0;
  pointer-events: none;
}

.mood-sheet-title-center {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
}

.mood-sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.mood-sheet-close:hover {
  color: var(--accent-gold);
}

/* Step 1: Category Row */
.mood-cat-row {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}

.mood-cat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.mood-cat-item:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.mood-cat-item.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.mood-cat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mood-cat-name {
  font-size: 0.6rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.mood-cat-item.selected .mood-cat-name {
  color: var(--accent-gold);
}

/* Step 2: Feeling Tags */
.mood-feelings-wrap {
  display: none;
}
.mood-feelings-wrap.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.mood-feelings-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
}

.mood-feelings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 8px;
}

.mood-feeling-chip {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.mood-feeling-chip:hover {
  border-color: var(--border-light);
}
.mood-feeling-chip.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.mood-feelings-confirm {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-top: 20px;
  transition: all 0.3s ease;
}
.mood-feelings-confirm:hover {
  background: #d4b578;
}
.mood-feelings-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Reflection page: mood trigger area */
.mood-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 56px;
}
.mood-trigger:hover {
  border-color: var(--border-light);
}
.mood-trigger.has-mood {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.mood-trigger-icon {
  font-size: 1.3rem;
}
.mood-trigger-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 300;
}
.mood-trigger.has-mood .mood-trigger-text {
  color: var(--accent-gold);
}

.type-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-scroll::-webkit-scrollbar { display: none; }

.type-option {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 calc(33.33% - 8px);
  min-width: 90px;
  max-width: calc(50% - 6px);
}

.type-option:hover { border-color: var(--border-light); }

.type-option.selected {
  border-color: var(--accent-sage);
  background: var(--accent-sage-soft);
}

/* .type-icon → css/icons.css */
.type-name { font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }

.duration-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.duration-preset {
  flex: 1 1 calc(16.66% - 10px);
  min-width: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.duration-preset:hover { border-color: var(--border-light); }

.duration-preset.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.duration-preset small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.sound-scroll { display: flex; gap: 10px; }

.sound-option {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.sound-option:hover { border-color: var(--border-light); }

.sound-option.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

/* .sound-icon → css/icons.css */
.sound-option .sound-name { font-size: 0.72rem; color: var(--text-secondary); font-weight: 400; }

.sound-option .sound-play {
  position: absolute;
  top: 6px; right: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.sound-option .sound-play:hover { color: var(--accent-gold); }
.sound-option.selected .sound-play { color: var(--accent-gold); }

/* ===== Type "More" Button ===== */
.type-more-btn {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1 1 calc(33.33% - 8px);
  min-width: 90px;
  max-width: calc(50% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.type-more-btn:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.type-more-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.type-more-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== Duration "Custom" Button ===== */
.duration-custom-btn {
  flex: 1 1 calc(16.66% - 10px);
  min-width: 56px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.duration-custom-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.duration-custom-btn.selected {
  border-color: var(--accent-gold);
  border-style: solid;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.duration-custom-btn small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Setup Bottom Sheet (Type Picker / Custom Duration) ===== */
.setup-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  align-items: flex-end;
  justify-content: center;
}

.setup-sheet-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.setup-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  background: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 24px 32px;
  overflow-y: auto;
  animation: slideUp 0.35s ease;
}

.setup-sheet-handle {
  width: 36px; height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 8px auto 16px;
}

.setup-sheet-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Type picker list in sheet */
.type-picker-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.type-picker-item:hover { border-color: var(--border-light); }

.type-picker-item.selected {
  border-color: var(--accent-sage);
  background: var(--accent-sage-soft);
}

/* .type-picker-icon → css/icons.css */

.type-picker-name {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.type-picker-item.selected .type-picker-name {
  color: var(--accent-sage);
}

/* Custom duration sheet */
.custom-dur-section {
  text-align: center;
  padding: 8px 0 24px;
}

.custom-dur-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.custom-dur-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.custom-dur-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  outline: none;
  margin-bottom: 8px;
}

.custom-dur-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: none;
}

.custom-dur-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: none;
}

.custom-dur-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.custom-dur-confirm {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.custom-dur-confirm:hover { background: #d4b578; }

/* ===== Begin Button (Fixed) ===== */
.begin-btn-spacer {
  height: 72px; /* reserve space for fixed button */
}

.begin-btn {
  position: fixed;
  bottom: 68px; /* above tab-bar */
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 432px; /* match 480px container - 48px padding */
  padding: 16px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.begin-btn:hover { background: rgba(201,169,110,0.25); }
.begin-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Timer ===== */
.timer-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.timer-type-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.timer-ring-container {
  position: relative;
  width: 260px; height: 260px;
  margin: 0 auto 36px;
  flex-shrink: 0;
}

/* .timer-ring-svg / .timer-ring-bg / .timer-ring-progress → css/icons.css */

.timer-display {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.timer-time {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.timer-breath-hint {
  font-size: 0.75rem;
  color: var(--accent-sage);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.timer-breath-hint.visible { opacity: 1; }

.breath-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: breathPulse 8s ease-in-out infinite;
}

@keyframes breathPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.3; }
  25% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  75% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.3; }
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-ctrl-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timer-ctrl-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.timer-ctrl-btn.primary {
  width: 64px; height: 64px;
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-size: 1.2rem;
}

/* ===== Timer Finish Button (appears on pause, fixed at bottom) ===== */
.timer-finish-btn {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 432px;
  padding: 16px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}

.timer-finish-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.timer-finish-btn:hover {
  background: rgba(201,169,110,0.25);
}

/* Cancel button — top-left corner, hidden after 1 min */
.timer-cancel-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  transition: all 0.3s ease;
}

.timer-cancel-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.timer-cancel-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Timer Mood Button (top-right, hidden after 1 min) ===== */
.timer-mood-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.timer-mood-btn:hover {
  border-color: var(--accent-gold);
  transform: scale(1.1);
}

.timer-mood-btn.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.timer-mood-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== Reflection ===== */
.reflection-header { text-align: center; padding: 32px 0 24px; }

.reflection-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 4px;
}

.reflection-header p { font-size: 0.8rem; color: var(--accent-sage); font-weight: 300; }

.reflection-section { margin-bottom: 24px; }

.insight-textarea {
  width: 100%;
  min-height: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.insight-textarea:focus { outline: none; border-color: var(--accent-gold); }
.insight-textarea::placeholder { color: var(--text-muted); }

.save-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--accent-gold);
  color: var(--bg-deep);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.save-btn:hover { background: #d4b578; transform: translateY(-1px); }

/* ===== Journal Page ===== */
.journal-header { padding: 48px 0 16px; }

.journal-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.journal-month-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.journal-month-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.journal-month-nav h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  min-width: 120px;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.journal-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.journal-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip.active {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.journal-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

.journal-empty-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: 0.5; }
.journal-empty p { font-size: 0.85rem; font-weight: 300; }

/* ===== Modal (Detail / Share) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  background: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 24px 32px;
  overflow-y: auto;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 8px auto 20px;
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-type {
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.detail-date { font-size: 0.75rem; color: var(--text-muted); }
.detail-duration { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 16px; }

.detail-moods-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.detail-mood { text-align: center; flex: 1; }
.detail-mood-icon { font-size: 1.5rem; display: block; margin-bottom: 4px; }
.detail-mood-label { font-size: 0.7rem; color: var(--text-muted); }
.detail-mood-arrow { color: var(--accent-gold); font-size: 1.2rem; }

.detail-insight-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-insight-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 24px;
  white-space: pre-wrap;
}

.share-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.share-btn:hover { background: var(--accent-gold-soft); }

/* ===== Share Card ===== */
.share-card-preview {
  background: linear-gradient(145deg, #2a2a27, #1a1a18);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.share-card-preview::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(201,169,110,0.06) 0%, transparent 50%);
}

.share-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  position: relative;
}

.share-insight-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 16px;
  position: relative;
  font-style: italic;
}

.share-meta { font-size: 0.7rem; color: var(--text-muted); position: relative; }

.share-actions { display: flex; gap: 10px; }

.share-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.share-action-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.share-action-btn.primary-action {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--bg-deep);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Tab Bar ===== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: rgba(26,26,24,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-serif);
  text-decoration: none;
}

.tab-item.active { color: var(--accent-gold); }

/* .tab-icon → css/icons.css */
.tab-label { font-size: 0.6rem; letter-spacing: 0.05em; }

/* ===== Confirm Modal ===== */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 320px;
  width: 90%;
  text-align: center;
}

.confirm-box h3 { font-size: 1rem; font-weight: 400; margin-bottom: 8px; }
.confirm-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 20px; font-weight: 300; }

.confirm-actions { display: flex; gap: 10px; }

.confirm-actions button {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-cancel { background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-secondary); }
.confirm-ok { background: var(--accent-rose-soft); border: 1px solid var(--accent-rose); color: var(--accent-rose); }

/* ===== Misc ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 2px; }

.share-canvas { display: none; }

/* ===== Settings Page ===== */
.settings-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.settings-top-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
}

.settings-header {
  text-align: center;
  padding: 32px 0 8px;
}
.settings-header h1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.settings-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 300;
}

.settings-section {
  margin-top: 28px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.settings-section-header h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.settings-count {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 400;
  transition: color 0.3s;
}
.settings-count.warn {
  color: var(--accent-rose);
}

.settings-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 300;
}

.type-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.type-toggle-item:hover {
  border-color: var(--border-light);
}
.type-toggle-item.on {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

/* .type-toggle-icon → css/icons.css */

.type-toggle-name {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.type-toggle-item.on .type-toggle-name {
  color: var(--accent-gold);
}

.type-toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-elevated);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.type-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.25s ease;
}
.type-toggle-switch.active {
  background: var(--accent-gold);
}
.type-toggle-switch.active::after {
  left: 18px;
  background: var(--bg-deep);
}

/* ===== Duration Toggle (reuses switch styles from type-toggle) ===== */
.dur-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dur-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}
.dur-toggle-item:hover {
  border-color: var(--border-light);
}
.dur-toggle-item.on {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.dur-toggle-name {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dur-toggle-item.on .dur-toggle-name {
  color: var(--accent-gold);
}

/* ===== Settings List (main settings page) ===== */
.settings-list {
  margin-top: 16px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.settings-row:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* .settings-row-icon → css/icons.css */

.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-row-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
}

.settings-row-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
}

.settings-row-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.settings-row:hover .settings-row-arrow {
  color: var(--accent-gold);
}

/* ===== About Modal ===== */
.about-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 250;
  align-items: flex-end;
  justify-content: center;
}

.about-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.about-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 8px 32px 40px;
  text-align: center;
  animation: slideUp 0.35s ease;
}

.about-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 8px auto 24px;
}

.about-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 400;
}

.about-version {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 300;
}

.about-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--border-light);
  margin: 0 auto 16px;
}

.about-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}

.about-close-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-close-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ===== Contact Modal ===== */
/* .contact-icon → css/icons.css */

.contact-methods {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-method:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

/* .contact-method-icon → css/icons.css */

.contact-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.contact-method-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 300;
}

.contact-method-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.contact-method-action {
  font-size: 0.7rem;
  color: var(--accent-gold);
  font-weight: 400;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--accent-gold-soft);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.contact-method:hover .contact-method-action {
  background: var(--accent-gold-soft);
}

/* ===== Share Friend Modal ===== */
/* .share-friend-icon → css/icons.css */

.share-friend-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
}

.share-friend-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.25s ease;
}

.share-friend-btn:hover {
  transform: translateY(-1px);
}

.share-friend-btn.primary {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.share-friend-btn.primary:hover {
  background: var(--accent-gold);
  color: #fff;
}

.share-friend-btn.wechat {
  background: #07c16015;
  border-color: #07c160;
  color: #07c160;
}

.share-friend-btn.wechat:hover {
  background: #07c160;
  color: #fff;
}

/* .share-friend-btn-icon → css/icons.css */

.share-friend-tip {
  margin-top: 12px;
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-align: center;
  min-height: 18px;
}

/* Nav back button */
.nav-back {
  font-size: 1.2rem;
  color: var(--accent-gold);
  text-decoration: none;
  padding: 4px 8px;
  transition: opacity 0.2s;
}
.nav-back:hover {
  opacity: 0.7;
}

/* ===== Profile Page ("我的") ===== */
.profile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.profile-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
}

.profile-stats {
  margin: 16px 0 24px;
}

.profile-stat-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 16px;
}

.profile-stat-highlight-inner {
  text-align: center;
  min-width: 80px;
}

.wheat-deco {
  width: 36px;
  height: 48px;
  color: var(--accent-gold);
  flex-shrink: 0;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.wheat-deco ellipse {
  fill: currentColor;
  opacity: 0.7;
}

.wheat-left {
  transform: scaleX(1);
}

.wheat-right {
  transform: scaleX(-1);
}

.profile-stat-highlight:hover .wheat-deco {
  opacity: 0.7;
}

.profile-stat-highlight-value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-gold);
  line-height: 1;
}

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

.profile-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent-gold);
  line-height: 1;
}

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

/* ===== Calendar ===== */
.calendar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.calendar-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.calendar-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.calendar-nav-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.calendar-month-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.calendar-month-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 300;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.calendar-weekdays span {
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 4px 0;
  letter-spacing: 0.05em;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.cal-day:hover {
  background: var(--bg-elevated);
}

.cal-day-empty {
  cursor: default;
}

.cal-day-empty:hover {
  background: transparent;
}

.cal-day-num {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1;
}

.cal-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-sage);
  margin-top: 3px;
}

.cal-day-today .cal-day-num {
  color: var(--accent-gold);
  font-weight: 500;
}

.cal-day-has-entry .cal-day-num {
  color: var(--text-primary);
}

.cal-day-selected {
  background: var(--accent-gold-soft);
}

.cal-day-selected .cal-day-num {
  color: var(--accent-gold);
  font-weight: 500;
}

/* Calendar Day Detail */
.calendar-day-detail {
  margin-bottom: 24px;
}

.cal-detail-header {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 400;
}

.cal-detail-empty {
  text-align: center;
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
}

.cal-detail-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.cal-detail-entry-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-detail-icon {
  font-size: 1.2rem;
}

.cal-detail-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-detail-type {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 400;
}

.cal-detail-dur {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cal-detail-mood {
  font-size: 1.1rem;
}

@media (min-width: 481px) {
  .app-container {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }
}

/* ===== Immersive Pages (Timer & Reflection) ===== */
.immersive-body {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.immersive-atmosphere {
  opacity: 0.6;
}

.immersive-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

/* Center content vertically when it fits; natural scroll when it overflows */
.immersive-container::before {
  content: '';
  margin-top: auto;
}
.immersive-container::after {
  content: '';
  margin-bottom: auto;
}

/* When content fits, center it; when it overflows, let it scroll naturally */

.immersive-container .timer-screen {
  min-height: auto;
  padding: 0;
}

.immersive-container .reflection-header {
  text-align: center;
  padding: 0 0 32px;
}

.immersive-container .reflection-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.immersive-container .reflection-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.immersive-container .setup-section {
  margin-bottom: 24px;
}

.immersive-container .reflection-section {
  margin-bottom: 32px;
}

.immersive-container .insight-textarea {
  min-height: 120px;
}

.reflection-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.discard-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.discard-btn:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}
