/* 顯化與釋放法·夢幻溫潤自然調色盤 (style.css) */
/* 融入使用者參考圖：Jungle Mist, Blueberry Milk, Soft Lilac, Blush Almond & Velvet Forest Green */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Noto+Serif+TC:wght@400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* 參考圖提取色票：明亮、柔和、夢幻而有質感 */
  --c-jungle-mist: #a7cfd5;      /* 仙氣藍綠 */
  --c-jungle-mist-bg: #ebf5f7;
  --c-blueberry-milk: #92aee2;    /* 藍莓牛奶藍 */
  --c-blueberry-bg: #edf3fc;
  --c-soft-lilac: #ceb3e8;        /* 柔霧丁香紫 */
  --c-soft-lilac-bg: #f7f1fd;
  --c-raspberry-rose: #d6477e;    /* 蔓越莓玫瑰粉 */
  --c-melanie-pink: #f2c7d9;      /* 柔嫩粉晶 */
  --c-melanie-bg: #fdf5f9;
  --c-almond-cream: #faebd7;      /* 溫潤杏仁奶油 */
  --c-lemon-sorbet: #faf0af;      /* 柔和檸檬淡金 */

  /* 沉穩墨綠與絲絨質感（珠寶盒核心色調） */
  --c-velvet-forest: #234739;     /* 尊貴森林墨綠 */
  --c-velvet-forest-hover: #1b372c;
  --c-gold-accent: #c49646;       /* 溫和珠寶金 */
  --c-gold-glow: rgba(196, 150, 70, 0.25);

  /* 背景與卡片 */
  --bg-app: #f9f8f6;
  --bg-surface: #ffffff;
  --bg-surface-trans: rgba(255, 255, 255, 0.88);
  --bg-card-soft: #fcfbfa;
  --border-subtle: #e8e2d8;
  --border-active: #ceb3e8;

  /* 文字 */
  --text-main: #242b35;          /* 深黛青灰，清晰不刺眼 */
  --text-muted: #5a6475;         /* 柔和中灰 */
  --text-dim: #8c97aa;           /* 弱灰 */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-soft: 0 8px 30px rgba(70, 85, 105, 0.06);
  --shadow-card: 0 4px 18px rgba(60, 75, 95, 0.04);
  --shadow-glow: 0 6px 20px rgba(146, 174, 226, 0.25);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Noto Serif TC', serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* 夢幻四角柔和水彩光暈漸變 */
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(167, 207, 213, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 90% 12%, rgba(206, 179, 232, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(242, 199, 217, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(250, 240, 175, 0.3) 0%, transparent 45%);
  background-attachment: fixed;
  line-height: 1.68;
  overflow-x: hidden;
}

/* 頂部導航與品牌 */
header.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(60, 70, 90, 0.04);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-gem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-jungle-mist) 0%, var(--c-soft-lilac) 50%, var(--c-melanie-pink) 100%);
  box-shadow: 0 4px 15px rgba(206, 179, 232, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

.brand-titles h1 {
  font-family: 'Cinzel', 'Noto Serif TC', serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--c-velvet-forest);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-titles p {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* 導航按鈕群 */
nav.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(235, 240, 245, 0.75);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.nav-tab-btn:hover {
  color: var(--c-velvet-forest);
  background: rgba(255, 255, 255, 0.6);
}

.nav-tab-btn.active {
  color: #ffffff;
  background: var(--c-velvet-forest);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(35, 71, 57, 0.25);
}

/* 主容器 */
main.main-viewport {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.view-section {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

/* =========================================
   模組一：AI 心靈教練對話室
   ========================================= */
.coach-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.75rem;
  height: calc(100vh - 165px);
  min-height: 560px;
}

.coach-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}

.coach-sidebar h3 {
  font-size: 1rem;
  color: var(--c-velvet-forest);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.coach-sidebar p.hint {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scenario-chip {
  background: var(--c-blueberry-bg);
  border: 1px solid rgba(146, 174, 226, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}

.scenario-chip:hover {
  background: #ffffff;
  border-color: var(--c-soft-lilac);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(206, 179, 232, 0.25);
}

.scenario-chip h4 {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  color: var(--c-velvet-forest);
  font-weight: 600;
}

.scenario-chip p {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-quote-box {
  margin-top: auto;
  background: var(--c-soft-lilac-bg);
  border-left: 3px solid var(--c-soft-lilac);
  padding: 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #6a498f;
  font-weight: 500;
}

/* 主對話窗 */
.chat-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.coach-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background-color: var(--c-jungle-mist);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--c-jungle-mist);
}

.coach-status-text h4 {
  font-size: 0.95rem;
  color: var(--c-velvet-forest);
  font-weight: 600;
}

.coach-status-text span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chat-history {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #faf9f6;
}

.message-row {
  display: flex;
  gap: 0.85rem;
  max-width: 86%;
}

.message-row.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.message-row.ai .message-avatar {
  background: var(--c-soft-lilac-bg);
  border: 1px solid var(--c-soft-lilac);
  color: #7d52a8;
}

.message-row.user .message-avatar {
  background: var(--c-jungle-mist-bg);
  border: 1px solid var(--c-jungle-mist);
  color: var(--c-velvet-forest);
}

.message-bubble {
  padding: 1.05rem 1.3rem;
  border-radius: var(--radius-md);
  font-size: 0.93rem;
  line-height: 1.75;
}

.message-row.ai .message-bubble {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.message-row.user .message-bubble {
  background: var(--c-velvet-forest);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(35, 71, 57, 0.2);
}

.guided-action-pills {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-pill-btn {
  background: var(--c-blueberry-bg);
  border: 1px solid var(--c-blueberry-milk);
  color: #405e94;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.guide-pill-btn:hover {
  background: var(--c-blueberry-milk);
  color: #fff;
  transform: translateY(-1px);
}

.chat-input-area {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
}

.input-box-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

textarea#user-query-input {
  flex: 1;
  background: #fdfbf7;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  resize: none;
  height: 52px;
  line-height: 1.5;
  transition: var(--transition);
}

textarea#user-query-input:focus {
  outline: none;
  border-color: var(--c-soft-lilac);
  background: #fff;
  box-shadow: 0 0 12px rgba(206, 179, 232, 0.35);
}

button#send-msg-btn {
  background: var(--c-velvet-forest);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  height: 52px;
  padding: 0 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

button#send-msg-btn:hover {
  background: var(--c-velvet-forest-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(35, 71, 57, 0.3);
}

/* =========================================
   模組二：反常識心法盲盒抽卡專區
   ========================================= */
.section-headline {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-headline h2 {
  font-family: 'Cinzel', 'Noto Serif TC', serif;
  font-size: 1.95rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.45rem;
}

.section-headline p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 680px;
  margin: 0 auto;
}

/* 抽卡按鈕 */
.tarot-draw-control {
  text-align: center;
  margin-bottom: 2.5rem;
}

.draw-btn-hero {
  background: linear-gradient(135deg, var(--c-soft-lilac) 0%, var(--c-blueberry-milk) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.95rem 2.8rem;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(146, 174, 226, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.draw-btn-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(146, 174, 226, 0.5);
}

/* 抽卡展示台 (Featured Card) */
.featured-card-stage {
  max-width: 650px;
  margin: 0 auto 3rem auto;
  perspective: 1000px;
}

.drawn-card {
  background: #ffffff;
  border: 2px solid var(--c-soft-lilac);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 15px 40px rgba(162, 120, 197, 0.15);
  animation: cardFlipIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

@keyframes cardFlipIn {
  from { transform: rotateY(90deg) scale(0.9); opacity: 0; }
  to { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.drawn-card .card-index-tag {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--c-soft-lilac);
  font-weight: 700;
}

/* 卡庫網格 */
.paradox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.paradox-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.paradox-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-soft-lilac);
  box-shadow: 0 10px 25px rgba(206, 179, 232, 0.2);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--c-jungle-mist-bg);
  color: #3b747d;
  margin-bottom: 0.85rem;
}

.paradox-card h3 {
  font-size: 1.2rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.25rem;
}

.paradox-card h5.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.1rem;
}

.quote-block {
  background: var(--c-soft-lilac-bg);
  border-left: 3px solid var(--c-soft-lilac);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-style: italic;
}

.vs-box {
  background: #faf8f5;
  border-radius: var(--radius-md);
  padding: 0.95rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vs-item {
  display: flex;
  gap: 0.6rem;
  font-size: 0.84rem;
}

.vs-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  height: fit-content;
  font-weight: 700;
}

.vs-badge.secular {
  background: var(--c-melanie-bg);
  color: var(--c-raspberry-rose);
}

.vs-badge.truth {
  background: var(--c-jungle-mist-bg);
  color: #27656d;
}

.practice-footer {
  margin-top: auto;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.practice-footer strong {
  color: var(--c-velvet-forest);
  display: block;
  margin-bottom: 0.25rem;
}

/* =========================================
   模組三：即時鬆手儀式室 (Releasing Sanctuary)
   ========================================= */
.sanctuary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-card);
}

/* 呼吸光球 */
.breathing-orb-container {
  margin: 2rem auto;
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-soft-lilac) 0%, var(--c-jungle-mist) 65%, transparent 100%);
  box-shadow: 0 0 50px rgba(167, 207, 213, 0.45);
  transition: transform 4s cubic-bezier(0.4, 0, 0.2, 1), opacity 4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--c-soft-lilac);
  opacity: 0.4;
  animation: rippleRing 4s infinite linear;
}

@keyframes rippleRing {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

.breathing-status-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-velvet-forest);
  margin-bottom: 0.45rem;
}

.breathing-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breath-ctrl-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-pill {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-pill.primary {
  background: var(--c-velvet-forest);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(35, 71, 57, 0.25);
}

.btn-pill.primary:hover {
  background: var(--c-velvet-forest-hover);
  transform: translateY(-2px);
}

.btn-pill.secondary {
  background: var(--c-blueberry-bg);
  color: var(--c-velvet-forest);
}

.btn-pill.secondary:hover {
  background: #dfe8f7;
}

/* 身心中文引導四步卡 */
.somatic-three-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}

.step-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--c-soft-lilac);
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.step-card h4 {
  font-size: 0.95rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.step-card button {
  margin-top: auto;
  background: #ffffff;
  border: 1px solid var(--c-soft-lilac);
  color: #6a498f;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.step-card button:hover {
  background: var(--c-soft-lilac);
  color: #fff;
}

/* =========================================
   模組四：全典藏實戰精萃與修煉寶庫 (Archive View)
   ========================================= */
.archive-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.archive-category-block h3 {
  font-size: 1.35rem;
  color: var(--c-velvet-forest);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

.archive-book-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.archive-book-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-soft-lilac);
  box-shadow: 0 10px 25px rgba(206, 179, 232, 0.15);
}

.archive-book-card h4 {
  font-size: 1.15rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.25rem;
}

.archive-book-card h6 {
  font-size: 0.82rem;
  color: var(--c-raspberry-rose);
  font-weight: 600;
  margin-bottom: 1rem;
}

.archive-wisdom-box {
  background: var(--c-blueberry-bg);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  font-size: 0.84rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.sop-steps-box {
  background: #fdfbf7;
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  border-left: 3px solid var(--c-gold-accent);
}

.reading-path-box {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--c-velvet-forest);
  background: var(--c-jungle-mist-bg);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--c-jungle-mist);
}

/* =========================================
   模組五：夜間修剪劇本 (Revision)
   ========================================= */
.revision-workbench {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.revision-intro {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
}

.revision-intro h3 {
  font-size: 1.35rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.45rem;
}

.revision-intro p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.revision-step-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rev-input-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.rev-input-group label span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 0.5rem;
}

.rev-input-group textarea {
  width: 100%;
  background: #faf8f5;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 90px;
}

.rev-input-group textarea:focus {
  outline: none;
  border-color: var(--c-soft-lilac);
  background: #fff;
  box-shadow: 0 0 12px rgba(206, 179, 232, 0.35);
}

.rev-submit-btn {
  background: var(--c-velvet-forest);
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  align-self: flex-start;
  transition: var(--transition);
}

.rev-submit-btn:hover {
  background: var(--c-velvet-forest-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(35, 71, 57, 0.3);
}

/* 儀式彈窗 */
.ritual-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36, 43, 53, 0.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out forwards;
}

.ritual-modal-card {
  background: #ffffff;
  border: 2px solid var(--c-soft-lilac);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
}

.scissors-icon {
  font-size: 3rem;
  display: inline-block;
  animation: cutAnimation 1.5s ease-in-out infinite;
}

@keyframes cutAnimation {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-25deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

.ritual-modal-card h3 {
  font-size: 1.35rem;
  color: var(--c-velvet-forest);
  margin: 1rem 0 0.5rem 0;
}

.ritual-modal-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.saved-revisions-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.saved-revisions-list h4 {
  font-size: 1rem;
  color: var(--c-velvet-forest);
  margin-bottom: 1rem;
}

.rev-card-item {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.rev-card-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.rev-card-diff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.82rem;
}

.diff-col.old {
  color: #c04646;
  text-decoration: line-through;
  opacity: 0.75;
}

.diff-col.new {
  color: var(--c-velvet-forest);
  font-weight: 600;
}

/* 頁尾 */
footer.app-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: #f4f2ec;
}

@media (max-width: 992px) {
  .coach-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .coach-sidebar {
    height: 280px;
  }
  .somatic-three-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .somatic-three-steps {
    grid-template-columns: 1fr;
  }
  .rev-card-diff {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   目標釋放 ✕ 內維爾全息終局工坊 (Goal Workshop) 樣式
   =================================================== */

.sidebar-goal-promo {
  background: linear-gradient(135deg, rgba(235, 245, 247, 0.9) 0%, rgba(247, 241, 253, 0.9) 100%);
  border: 1px solid var(--c-soft-lilac);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 10px rgba(206, 179, 232, 0.15);
}

.sidebar-goal-promo:hover {
  transform: translateY(-2px);
  border-color: var(--c-velvet-forest);
  box-shadow: 0 6px 18px rgba(35, 71, 57, 0.12);
}

.sidebar-goal-promo .promo-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-velvet-forest);
  background: var(--c-lemon-sorbet);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.sidebar-goal-promo h4 {
  font-size: 0.95rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
}

.sidebar-goal-promo p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* 目標輸入卡片 */
.goal-input-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.goal-input-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-jungle-mist), var(--c-soft-lilac), var(--c-melanie-pink));
}

.goal-input-header h3 {
  font-size: 1.2rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.goal-input-header .sub-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.1rem;
}

.goal-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.goal-input-row input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #fdfdfc;
  outline: none;
  transition: var(--transition);
}

.goal-input-row input:focus {
  border-color: var(--c-soft-lilac);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(206, 179, 232, 0.2);
}

.goal-preset-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.goal-preset-chips .chips-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.goal-chip-btn {
  background: #f4f6fa;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.goal-chip-btn:hover {
  background: var(--c-blueberry-bg);
  color: var(--c-velvet-forest);
  border-color: var(--c-blueberry-milk);
}

.goal-chip-btn.active {
  background: var(--c-velvet-forest);
  color: #fff;
  border-color: var(--c-velvet-forest);
  box-shadow: 0 2px 8px rgba(35, 71, 57, 0.2);
}

/* 雙階引導主容器 */
.goal-stages-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.goal-stage-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.stage-badge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.stage-badge-header .badge-pill {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.badge-pill.sedona {
  background: #fdf2f4;
  color: var(--c-raspberry-rose);
  border: 1px solid var(--c-melanie-pink);
}

.badge-pill.neville {
  background: #f0f7f4;
  color: var(--c-velvet-forest);
  border: 1px solid var(--c-jungle-mist);
}

.stage-badge-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  font-family: var(--font-display);
}

/* 限制型信念網格 */
.limiting-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.belief-card {
  background: #faf9f6;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.belief-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-soft-lilac);
  box-shadow: var(--shadow-card);
}

.belief-desire-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7b4f9d;
  background: var(--c-soft-lilac-bg);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}

.belief-card h5 {
  font-size: 0.92rem;
  color: #a3384f;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-style: italic;
}

.belief-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 聖多納發問引導框 */
.sedona-inquiry-box {
  background: linear-gradient(135deg, rgba(253, 245, 249, 0.8) 0%, rgba(247, 241, 253, 0.8) 100%);
  border: 1.5px solid var(--c-melanie-pink);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.sedona-inquiry-box h4 {
  font-size: 1rem;
  color: var(--c-raspberry-rose);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inquiry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.inquiry-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}

.inquiry-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--c-raspberry-rose);
  font-size: 0.8rem;
}

.inquiry-action-row {
  display: flex;
  justify-content: flex-end;
}

/* 內維爾全息四維卡片網格 */
.holographic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.holo-dimension-card {
  background: #fdfefe;
  border: 1.5px solid #dcece8;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  transition: var(--transition);
}

.holo-dimension-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-velvet-forest);
  box-shadow: 0 8px 24px rgba(35, 71, 57, 0.1);
}

.holo-dim-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-jungle-mist-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.holo-dimension-card h4 {
  font-size: 0.98rem;
  color: var(--c-velvet-forest);
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
}

.holo-dimension-card p {
  font-size: 0.86rem;
  color: var(--text-main);
  line-height: 1.68;
}

/* SATS 微動作黃金鎖定 Banner */
.sats-micro-loop-banner {
  background: linear-gradient(135deg, #1b372c 0%, #234739 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(27, 55, 44, 0.25);
}

.sats-micro-loop-banner::after {
  content: "✦";
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 5rem;
  opacity: 0.08;
  color: var(--c-gold-accent);
}

.sats-micro-loop-banner .banner-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-lemon-sorbet);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.sats-micro-loop-banner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-family: var(--font-display);
}

.sats-micro-loop-banner .loop-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f7f9f8;
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--c-gold-accent);
}

.goal-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  justify-content: flex-end;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(235, 203, 139, 0.25); }
  50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(235, 203, 139, 0.65); }
  100% { transform: scale(0.95); box-shadow: 0 0 15px rgba(235, 203, 139, 0.25); }
}

