/* --------------------------------------------------------------------------
   Catch Catch Wook (캐치 캐치 욱) - Healing Therapy Design System
   Emotional Mother Mental Care & Warm Pastel Visual Atmosphere
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   1. Design Tokens & Healing Color System
   -------------------------------------------------------------------------- */
:root {
  /* Brand Theme: Soft Violet, Lavender & Clean White matching Design */
  --bg-app: #FFFFFF;
  --bg-viewport-outer: #E9E6F0;
  --bg-surface: #FFFFFF;
  --bg-surface-soft: #F7F5FC;
  --bg-surface-tint: #FDFBFF;
  --bg-glass: rgba(255, 255, 255, 0.92);

  /* Healing Sage Green System */
  --sage-50: #EDF5EF;
  --sage-100: #DBEADE;
  --sage-200: #BEDBC4;
  --sage-400: #7DAF8A;
  --sage-500: #557F63;
  --sage-600: #3E624A;
  --sage-gradient: linear-gradient(135deg, #6FA880 0%, #4D7A5C 100%);

  /* Delicate Architectural Borders */
  --border-color: #EFEAF6;
  --border-subtle: #F5F2F9;
  --border-focus: #6C47FF;
  --border-highlight: rgba(108, 71, 255, 0.3);

  /* Primary Brand Violet/Purple System matching Image */
  --purple-50: #F7F3FE;
  --purple-100: #EDE5FD;
  --purple-200: #D8C7FB;
  --purple-300: #BCA4F9;
  --purple-400: #9B7BF7;
  --purple-500: #6B43E8;
  --purple-600: #5832E6;
  --purple-700: #4622C9;
  --purple-dark: #372A66;
  --purple-gradient: linear-gradient(135deg, #7C5CFF 0%, #5E39EB 100%);
  --purple-gradient-soft: linear-gradient(180deg, #F6F1FE 0%, #ECE3FD 100%);

  /* Lavender Accent System */
  --lavender-50: #F3EFFE;
  --lavender-100: #E6DCFA;
  --lavender-400: #B39DFF;
  --lavender-500: #8B6BFF;

  /* Typography Font Families */
  --font-serif: 'Gowun Batang', 'Nanum Myeongjo', Batang, serif;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Warm Sunlight & Cheerful Accents */
  --amber-50: #FFF9EE;
  --amber-200: #FFE4B5;
  --amber-400: #FFA834;
  --amber-500: #FF9800;
  --amber-600: #E68A00;
  --amber-gradient: linear-gradient(135deg, #FFB74D 0%, #FF9800 100%);

  /* Terracotta Rose (Action) */
  --rose-50: #FFF3F2;
  --rose-200: #FFD1CE;
  --rose-400: #FF6B6B;
  --rose-500: #E84D4D;
  --rose-600: #D32F2F;
  --rose-gradient: linear-gradient(135deg, #FF7B7B 0%, #E84D4D 100%);

  /* Iceberg Sea & Blue Depth System */
  --sky-50: #F0F8FF;
  --sky-100: #E1F1FD;
  --sky-400: #4D96FF;
  --sky-500: #2575FC;
  --iceberg-water: #EBF5FE;
  --iceberg-deep: #1A3E62;

  /* Typography Colors */
  --text-main: #1D1D26;
  --text-body: #4E4E5C;
  --text-muted: #808092;
  --text-hint: #A6A6B8;
  --text-inverse: #FFFFFF;

  /* Organic Soft Shadows */
  --shadow-xs: 0 1px 3px rgba(95, 83, 68, 0.04);
  --shadow-sm: 0 2px 6px -1px rgba(95, 83, 68, 0.05), 0 1px 3px rgba(95, 83, 68, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(105, 92, 75, 0.08), 0 2px 8px -1px rgba(105, 92, 75, 0.04);
  --shadow-lg: 0 16px 36px -6px rgba(100, 85, 70, 0.12), 0 4px 14px -2px rgba(100, 85, 70, 0.05);
  --shadow-floating: 0 12px 28px -4px rgba(75, 115, 89, 0.28);
  --shadow-sos: 0 10px 24px -3px rgba(194, 86, 66, 0.35);

  /* Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions & Springs */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s var(--ease-smooth);
  --transition-bounce: 0.35s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   2. Reset, Base & Accessibility
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  background-color: var(--bg-viewport-outer);
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Apple SD Gothic Neo', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-viewport-outer);
  line-height: 1.55;
  letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overflow-x: hidden;
  min-height: 100vh;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:active {
  transform: scale(0.97);
}

.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;
}

/* --------------------------------------------------------------------------
   3. Ambient Backdrop Lighting (Desktop Centered Aura)
   -------------------------------------------------------------------------- */
.ambient-glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.65;
  animation: ambientFloat 14s infinite alternate ease-in-out;
}

.ambient-light--top {
  top: -120px;
  left: calc(50% - 380px);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(190, 219, 196, 0.45) 0%, rgba(237, 245, 239, 0) 70%);
}

.ambient-light--bottom {
  bottom: -150px;
  right: calc(50% - 360px);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(247, 209, 166, 0.38) 0%, rgba(254, 246, 236, 0) 70%);
  animation-duration: 18s;
  animation-delay: -5s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 25px) scale(1.08); }
  100% { transform: translate(-25px, 40px) scale(0.95); }
}

/* --------------------------------------------------------------------------
   4. App Shell & Main Layout Container
   -------------------------------------------------------------------------- */
.app-viewport {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg-app);
  box-shadow: 0 0 60px rgba(90, 80, 68, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.app-main {
  flex: 1;
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-surface {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.bottom-spacer {
  height: 82px;
  width: 100%;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   5. Clean Brand App Header
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-butterfly-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.butterfly-svg {
  width: 100%;
  height: 100%;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--purple-600);
  letter-spacing: -0.03em;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

.header-icon-btn:hover {
  background: var(--purple-50);
  color: var(--purple-600);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.header-write-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  color: var(--purple-600);
  font-size: 0.82rem;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.header-write-pill-btn:hover {
  background: var(--purple-600);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   6. Tab View Switching Architecture
   -------------------------------------------------------------------------- */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeInView 0.28s var(--ease-smooth);
}

.tab-view.is-active {
  display: flex;
}

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

.view-screen-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.text-center { text-align: center; }
.text-rose { color: var(--rose-400); }
.text-sky { color: var(--sky-400); }
.text-blue { color: var(--sky-500); }
.text-yellow { color: var(--amber-500); }
.text-purple { color: var(--purple-600); }

/* --------------------------------------------------------------------------
   7. Home View Components (첨부 이미지와 1:1 일치 레이아웃 & 톤앤매너)
   -------------------------------------------------------------------------- */
#viewHome {
  gap: 20px;
  padding: 4px 2px 20px;
}

/* 1. Hero Mood Card (오늘은 기분이 어때?) */
.home-hero-card {
  position: relative;
  background: linear-gradient(180deg, #FBF8FE 0%, #F1E9FD 55%, #E6D8FB 100%);
  border-radius: 36px;
  padding: 34px 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 380px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(135, 105, 230, 0.12);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.home-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -6px rgba(135, 105, 230, 0.18);
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.hero-blob--top {
  top: -40px;
  right: -20px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(234, 219, 255, 0.8) 0%, rgba(246, 240, 255, 0) 70%);
}

.hero-blob--right {
  bottom: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(206, 182, 255, 0.5) 0%, rgba(246, 240, 255, 0) 70%);
}

.hero-text-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 58%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: #170E38;
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: #645C80;
  line-height: 1.48;
  letter-spacing: -0.015em;
}

/* 기록하기 알약 버튼 */
.hero-record-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E4D8FC;
  color: var(--purple-600);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.08);
  width: fit-content;
  margin-top: 10px;
  transition: all var(--transition-bounce);
}

.hero-record-pill-btn:hover {
  background: #F8F5FF;
  border-color: var(--purple-300);
  transform: translateY(-1px);
}

.pill-arrow-svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform var(--transition-fast);
}

.hero-record-pill-btn:hover .pill-arrow-svg {
  transform: translateX(3px);
}

/* 캐릭터 그래픽 씬 (하트 품은 모찌) */
.hero-character-scene {
  position: absolute;
  right: -8px;
  bottom: 0;
  width: 215px;
  height: 250px;
  z-index: 1;
  pointer-events: none;
}

.hero-scene-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 2. Wook Challenge Banner Card (일주일만 잔잔한 마음을 연습해볼까?) */
.wook-banner-card {
  position: relative;
  background: linear-gradient(135deg, #F0E8FD 0%, #E2D4FB 60%, #D4C1F8 100%);
  border-radius: 32px;
  padding: 26px 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 210px;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(120, 85, 220, 0.12);
  cursor: pointer;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.wook-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(120, 85, 220, 0.18);
}

.wook-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 65%;
}

.wook-badge {
  display: inline-block;
  background: #FFFFFF;
  color: var(--purple-600);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(108, 71, 255, 0.08);
  width: fit-content;
  margin-bottom: 2px;
}

.wook-banner-title {
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 700;
  color: #170E38;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0;
}

.wook-banner-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #645C80;
  line-height: 1.4;
  margin-bottom: 6px;
}

/* 시작하기 짙은 남보라 알약 버튼 */
.wook-start-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #392B6B;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(45, 33, 86, 0.3);
  width: fit-content;
  transition: all var(--transition-bounce);
}

.wook-start-pill-btn:hover {
  background: #2D2156;
  transform: translateY(-1px);
}

.wook-start-pill-btn:hover .pill-arrow-svg {
  transform: translateX(3px);
}

/* 달리는 모찌 캐릭터 씬 */
.wook-banner-scene {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 165px;
  height: 165px;
  z-index: 1;
  pointer-events: none;
}

.wook-scene-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* --------------------------------------------------------------------------
   8. Wook Challenge Tab View (시안 1:1 일치 디자인)
   -------------------------------------------------------------------------- */
#viewChallenge {
  gap: 20px;
  padding: 0 2px 26px;
}

.wook-screen-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.wook-top-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #170E38;
  transition: background-color var(--transition-fast);
}

.wook-top-back-btn:hover {
  background: var(--purple-50);
}

.wook-top-back-btn svg {
  width: 24px;
  height: 24px;
}

.wook-screen-title {
  font-family: var(--font-sans);
  font-size: 1.32rem;
  font-weight: 800;
  color: #170E38;
  letter-spacing: -0.03em;
}

.wook-top-help-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #231942;
  color: #231942;
  font-size: 0.92rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.wook-top-help-btn:hover {
  background: var(--purple-50);
  border-color: var(--purple-600);
  color: var(--purple-600);
}

/* Hero + Registration Container */
.wook-hero-container {
  position: relative;
  background: linear-gradient(180deg, #F8F5FE 0%, #F2ECFD 52%, #FAF8FF 100%);
  border-radius: 32px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(120, 90, 220, 0.1);
}

.wook-hero-banner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 158px;
  padding: 4px 6px 0;
}

.wook-hero-text-col {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 60%;
}

.wook-hero-heading {
  font-family: var(--font-sans);
  font-size: 1.72rem;
  font-weight: 800;
  color: #16103A;
  line-height: 1.28;
  letter-spacing: -0.035em;
  margin: 0;
}

.wook-hero-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4A4468;
  line-height: 1.48;
  letter-spacing: -0.015em;
}

.wook-hero-art {
  position: absolute;
  right: -6px;
  top: -4px;
  width: 182px;
  height: 158px;
  z-index: 1;
  pointer-events: none;
}

.wook-hero-cal-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Inline Period Selection & Start Card */
.wook-register-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid #FFFFFF;
  border-radius: 26px;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 28px -6px rgba(110, 82, 215, 0.12);
}

.wook-register-title {
  text-align: center;
  font-size: 1.04rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.025em;
}

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

.wook-period-btn {
  position: relative;
  min-height: 84px;
  border-radius: 18px;
  background: #F6F3FE;
  border: 1.5px solid #ECE6FC;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #17103A;
  transition: all var(--transition-bounce);
}

.wook-period-btn:hover {
  transform: translateY(-2px);
  border-color: #D2C2FB;
}

.wook-period-sprout {
  width: 26px;
  height: 22px;
  color: #9D7BFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.wook-period-sprout svg {
  width: 100%;
  height: 100%;
}

.wook-period-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.02em;
}

.wook-period-btn.is-selected {
  background: linear-gradient(145deg, #9873FF 0%, #6D42F9 55%, #5E34EE 100%);
  border-color: #8E69FF;
  color: #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(106, 65, 245, 0.42), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.wook-period-btn.is-selected .wook-period-sprout {
  color: #FFFFFF;
  transform: scale(1.06);
}

.wook-period-btn.is-selected .wook-period-label {
  color: #FFFFFF;
}

/* 챌린지 시작하기 Glossy Pill CTA */
.wook-start-cta-btn {
  position: relative;
  width: 100%;
  padding: 16px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8A64FF 0%, #6A3DF8 50%, #7C52FF 100%);
  color: #FFFFFF;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(106, 61, 248, 0.42), inset 0 2px 3px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-bounce);
}

.wook-start-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(106, 61, 248, 0.52), inset 0 2px 3px rgba(255, 255, 255, 0.45);
}

.wook-start-cta-arrow {
  position: absolute;
  right: 22px;
  width: 20px;
  height: 20px;
}

/* 진행중인 챌린지 & 지난 챌린지 기록 섹션 */
.wook-list-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wook-section-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
}

.wook-history-icon {
  width: 22px;
  height: 22px;
  color: #17103A;
}

.wook-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.025em;
}

.wook-past-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wook-challenge-card {
  background: #FFFFFF;
  border: 1.5px solid #F0ECFA;
  border-radius: 28px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 28px -8px rgba(95, 75, 165, 0.1);
}

.wook-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wook-card-meta-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wook-card-title-text {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.wook-card-dates-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #79719E;
  letter-spacing: -0.015em;
}

/* 챌린지 상태 대시보드 (진행률 도넛 & 지금까지 잔잔한 날) */
.wook-status-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 2px 0 6px;
}

.wook-donut-panel {
  background: #FFFFFF;
  border: 1.5px solid #F0EAFB;
  border-radius: 26px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(110, 85, 200, 0.04);
}

.wook-donut-wrap {
  position: relative;
  width: 122px;
  height: 122px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wook-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wook-donut-bg {
  fill: none;
  stroke: #EFEAF9;
  stroke-width: 9.5;
}

.wook-donut-meter {
  fill: none;
  stroke: #6B42F8;
  stroke-width: 9.5;
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  transition: stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.wook-donut-core {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wook-donut-sprout-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprout-icon-svg {
  width: 100%;
  height: 100%;
}

.wook-donut-days-val {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.wook-donut-days-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: #8D85AA;
  margin-top: 2px;
}

.wook-calm-panel {
  background: #F8F5FF;
  border: 1.5px solid #EFE8FC;
  border-radius: 26px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(110, 85, 200, 0.04);
}

.wook-calm-texts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.wook-calm-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4C446E;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.wook-calm-count {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 800;
  color: #110B30;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wook-calm-art {
  position: absolute;
  right: 2px;
  bottom: 0px;
  width: 82px;
  height: 100px;
  z-index: 1;
  pointer-events: none;
}

.calm-sunflower-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wook-date-range-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3C355E;
  letter-spacing: -0.02em;
}

.wook-card-chevron-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B244D;
  transition: background-color var(--transition-fast);
}

.wook-card-chevron-btn:hover {
  background: var(--purple-50);
  color: var(--purple-600);
}

.wook-card-chevron-btn svg {
  width: 19px;
  height: 19px;
}

/* 7-Day Stamp Row (시안 1:1 아이콘 스탬프 - 다중 줄 지원) */
.wook-stamp-tracker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px 6px;
  padding: 4px 0;
}

.wook-day-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-bounce);
}

.wook-day-item:hover {
  transform: translateY(-2px);
}

.wook-day-item.is-future-day .wook-day-circle {
  opacity: 0.6;
}

.wook-day-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
}

.wook-day-circle svg {
  width: 30px;
  height: 30px;
  overflow: visible;
}

.wook-day-circle--sun {
  background: radial-gradient(circle, #FFF8DC 0%, #FFF2C2 100%);
}

.wook-day-circle--cloud {
  background: radial-gradient(circle, #F0F6FF 0%, #E3EEFE 100%);
}

.wook-day-circle--sprout {
  background: radial-gradient(circle, #F7F5FF 0%, #ECE6FE 100%);
  border: 2px solid #8E6BFF;
  box-shadow: 0 4px 12px rgba(139, 107, 255, 0.22);
}

.wook-day-circle--rain {
  background: radial-gradient(circle, #F3EEFF 0%, #E7DFFE 100%);
}

.wook-day-circle--heart {
  background: radial-gradient(circle, #FFF0F3 0%, #FFE0E7 100%);
}

.wook-day-circle--empty {
  background: transparent;
  border: 1.5px dashed #D6C7F8;
}

.wook-day-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4A4468;
  letter-spacing: -0.01em;
}

.wook-day-item.is-active-day .wook-day-label {
  font-weight: 800;
  color: #5832E6;
}

/* 하단 보라색 하트 응원 배너 */
.wook-cheer-box {
  background: #F2ECFD;
  border-radius: 18px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.wook-cheer-heart {
  width: 32px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wook-cheer-heart svg {
  width: 100%;
  height: 100%;
}

.wook-cheer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2D1F66;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.wook-cheer-copy p {
  margin: 0;
}

.challenge-hero-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.challenge-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-help-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-main-banner {
  background: linear-gradient(135deg, #F5F1FD 0%, #E8E0FB 100%);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.banner-subtext {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.45;
}

.banner-mountain-art {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.active-challenge-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

.active-practice-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.practice-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.practice-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
}

.practice-dates {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.practice-pill-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Donut Circle Streak Ring */
.streak-donut-container {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.donut-circle-wrap {
  position: relative;
  width: 170px;
  height: 170px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: var(--purple-50);
  stroke-width: 14;
}

.donut-progress {
  fill: none;
  stroke: var(--purple-500);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-smooth);
}

.donut-inner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-day-highlight {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.donut-sub-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-600);
  margin: 3px 0 6px;
}

.donut-cheer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 7-Day Tracker Row */
.seven-day-tracker {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.day-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.day-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--transition-bounce);
}

.day-slot:hover {
  transform: translateY(-2px);
}

.day-slot-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-bounce);
}

.day-slot.is-stamped .day-slot-circle {
  background: #FFF9EE;
  border-color: var(--amber-400);
  box-shadow: 0 4px 10px rgba(255, 168, 52, 0.22);
}

.day-slot.is-today .day-slot-circle {
  box-shadow: 0 0 0 2px var(--purple-500);
}

.day-slot:active .day-slot-circle {
  transform: scale(0.92);
}

.day-slot-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Cheer Toast Box */
.cheer-toast-box {
  background: var(--purple-50);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cheer-icon {
  font-size: 1.2rem;
}

.cheer-content strong {
  font-size: 0.79rem;
  color: var(--purple-700);
  display: block;
}

.cheer-content p {
  font-size: 0.73rem;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   9. Mind Calendar View & Iceberg Psychological Card (Screen 6 & 7)
   -------------------------------------------------------------------------- */
.calendar-screen-header {
  padding: 2px 2px 4px;
}

.calendar-header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.calendar-title-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-screen-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calendar-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cal-month-summary-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--purple-600);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.cal-today-pill-btn {
  font-size: 0.76rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--purple-600);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(99, 71, 245, 0.22);
  transition: all var(--transition-fast);
}

.cal-today-pill-btn:hover {
  background: var(--purple-700);
}

.calendar-card-box {
  background: #FFFFFF;
  border: 1.5px solid #EFEAF6;
  border-radius: 26px;
  padding: 18px 14px 14px;
  box-shadow: 0 8px 24px -6px rgba(105, 92, 145, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 6px;
}

.cal-nav-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  background: var(--bg-surface-soft);
  transition: all var(--transition-fast);
}

.cal-nav-arrow:hover {
  background: var(--purple-50);
  color: var(--purple-600);
}

.cal-nav-arrow svg {
  width: 18px;
  height: 18px;
}

.cal-current-month {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
}

.cal-th {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 8px 0 6px;
}

.cal-cell {
  position: relative;
  min-height: 54px;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  background: #FAF9FD;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-cell.is-muted {
  color: #CFCAD8;
  background: transparent;
  cursor: default;
}

.cal-cell.has-record {
  background: #F6F2FE;
  border-color: #E7DDFC;
}

.cal-cell.is-today {
  border-color: var(--purple-400);
  background: #FFFFFF;
}

.cal-cell.is-today .cal-day-num {
  color: var(--purple-600);
  font-weight: 800;
}

.cal-cell:hover:not(.is-muted) {
  background: var(--purple-50);
  transform: translateY(-1px);
}

.cal-cell.is-selected {
  background: var(--purple-600) !important;
  border-color: var(--purple-600) !important;
  color: #FFFFFF !important;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(99, 71, 245, 0.28);
}

.cal-cell.is-selected .cal-day-num {
  color: #FFFFFF !important;
}

.cal-day-num {
  font-size: 0.78rem;
  line-height: 1.2;
}

.cal-cell .cal-cell-stamp {
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 4px;
}

.cal-cell-count {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--purple-600);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 4px;
  border-radius: 999px;
}

.cal-stamp-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed #EFEAF6;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Selected Date Detail Area & Iceberg Diagram Card (Screen 7) */
.selected-day-detail-wrap {
  background: #FFFFFF;
  border: 1.5px solid #EFEAF6;
  border-radius: 26px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 24px -6px rgba(105, 92, 145, 0.08);
}

.day-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-mood-icon {
  font-size: 1.35rem;
}

.detail-date-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.detail-mood-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.detail-action-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-report-btn,
.detail-edit-btn,
.detail-delete-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.detail-report-btn {
  color: var(--purple-600);
  background: var(--purple-50);
  border-color: var(--purple-200);
}

.detail-edit-btn {
  color: var(--text-body);
  background: #FFFFFF;
}

.detail-delete-btn {
  color: var(--rose-500);
  background: #FFF8F8;
  border-color: var(--rose-200);
}

.cal-day-records-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cal-day-records-bar:empty {
  display: none;
}

.cal-record-tab-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-soft);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.cal-record-tab-btn.is-active {
  background: var(--purple-600);
  color: #FFFFFF;
  border-color: var(--purple-600);
}

.cal-record-add-btn {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: var(--purple-600);
  border: 1px dashed var(--purple-300);
}

.calendar-record-body-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-iceberg-keyword-bar {
  background: linear-gradient(135deg, #F4F9FF 0%, #EBF3FE 100%);
  border: 1px solid #D8E8FC;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-keyword-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #2563EB;
}

.cal-keyword-texts {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.cal-keyword-texts strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #172554;
}

.cal-keyword-texts span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.calendar-empty-state {
  padding: 28px 16px 22px;
  background: #FAF8FE;
  border: 1.5px dashed #E2D9FA;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.calendar-empty-icon {
  font-size: 2rem;
  line-height: 1;
}

.calendar-empty-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #1A1336;
}

.calendar-empty-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-empty-write-btn {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
}

/* The Iceberg Therapeutic Diagram Card */
.iceberg-detail-card {
  position: relative;
  background: linear-gradient(180deg, #F0F8FF 0%, #D8ECFC 35%, #BCE0FA 70%, #99CEF7 100%);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.iceberg-bg-waterline {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 1.5px dashed rgba(77, 150, 255, 0.45);
  pointer-events: none;
}

.waterline-label {
  position: absolute;
  right: 12px;
  top: -10px;
  font-size: 0.62rem;
  color: var(--sky-500);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.iceberg-section-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(35, 65, 95, 0.06);
}

.iceberg-pin-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.pin-rose { background: var(--rose-400); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2); }
.pin-blue { background: var(--sky-500); box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2); }
.pin-yellow { background: var(--amber-500); box-shadow: 0 0 0 3px rgba(255, 168, 52, 0.2); }

.iceberg-section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.iceberg-section-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.iceberg-section-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.self-word-footer-pill {
  background: var(--bg-surface-soft);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.self-word-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.self-word-sticker {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--purple-600);
}

/* --------------------------------------------------------------------------
   10. My Page Tab View (Screen 10)
   -------------------------------------------------------------------------- */
.mypage-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.user-profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-svg {
  width: 32px;
  height: 32px;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-email {
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.profile-email:hover {
  color: var(--purple-600);
  font-weight: 700;
}

.mypage-menu-list {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mypage-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast);
}

.mypage-menu-item:last-child {
  border-bottom: none;
}

.mypage-menu-item:hover {
  background: var(--bg-surface-soft);
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-icon {
  font-size: 1.1rem;
}

.menu-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.menu-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-hint);
}

/* --------------------------------------------------------------------------
   11. 1-Page Chat Mood Recorder Modal (시안 1:1 일치 대화창 디자인)
   -------------------------------------------------------------------------- */
.wizard-modal-dialog {
  width: 100%;
  max-width: 430px;
  height: 92vh;
  max-height: 840px;
  background: #F9F8FD;
  border-radius: 38px;
  padding: 16px 14px 14px;
  box-shadow: 0 20px 48px -8px rgba(32, 21, 64, 0.25);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: padding 0.3s var(--ease-smooth), background-color 0.3s var(--ease-smooth);
}

.wizard-modal-dialog.is-loading-mode {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 38px;
  background: #F7F3FD !important;
}

.wizard-modal-dialog.is-result-mode {
  padding: 14px 18px 24px !important;
  background: #FFFFFF !important;
  border-radius: 40px;
  box-shadow: 0 24px 60px -10px rgba(22, 27, 51, 0.22);
  overflow: hidden !important;
}

/* 모든 위저드 스텝 페인은 기본적으로 완전 숨김 처리 */
.wizard-step-pane {
  display: none !important;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* 1. 기본 대화창 모드 (is-loading-mode, is-result-mode 아닐 때 대화창만 활성화) */
.wizard-modal-dialog:not(.is-loading-mode):not(.is-result-mode) #wizardPaneChat {
  display: flex !important;
}

/* 2. 로딩 모드 (오직 로딩 화면만 활성화) */
.wizard-modal-dialog.is-loading-mode #wizardPaneLoading {
  display: flex !important;
}

/* 3. 최종 결과 모드 (오직 마음 빙산 분석 결과 화면만 활성화) */
.wizard-modal-dialog.is-result-mode #wizardPaneFinalResult {
  display: flex !important;
}

/* 상호 배타적 강제 숨김 규칙 (화면 겹침 원천 차단) */
.wizard-modal-dialog.is-result-mode #wizardPaneChat,
.wizard-modal-dialog.is-result-mode #wizardPaneLoading,
.wizard-modal-dialog.is-loading-mode #wizardPaneChat,
.wizard-modal-dialog.is-loading-mode #wizardPaneFinalResult,
.wizard-modal-dialog:not(.is-loading-mode):not(.is-result-mode) #wizardPaneLoading,
.wizard-modal-dialog:not(.is-loading-mode):not(.is-result-mode) #wizardPaneFinalResult {
  display: none !important;
}

/* --------------------------------------------------------------------------
   마음 빙산 분석 결과 뷰 스타일 (첨부 시안 이미지 1:1 완벽 구현)
   -------------------------------------------------------------------------- */
.wizard-step-pane--result {
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.wizard-step-pane--result.is-active {
  display: flex !important;
  animation: fadeInView 0.3s var(--ease-smooth);
}

/* Top Status Bar (9:41) */
.result-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 2px;
  color: #170E38;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Top Sticky/Clean Nav Bar (< 2026년 10월 19일 (월) •••) */
.result-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  flex-shrink: 0;
}

.result-nav-back-btn,
.result-nav-more-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #170E38;
  transition: all var(--transition-fast);
}

.result-nav-back-btn:hover,
.result-nav-more-btn:hover {
  background: #F4F1FD;
  color: var(--purple-600);
}

.result-nav-back-btn svg {
  width: 22px;
  height: 22px;
}

.result-nav-more-btn svg {
  width: 22px;
  height: 22px;
}

.result-header-date {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #171131;
  letter-spacing: -0.03em;
}

.result-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 4px 16px 2px;
}

.result-scroll-body::-webkit-scrollbar {
  width: 4px;
}
.result-scroll-body::-webkit-scrollbar-thumb {
  background: #E1DAF4;
  border-radius: 999px;
}

/* 1. Iceberg Graphic Hero Card (시안 1:1 일치) */
.iceberg-hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(77, 150, 255, 0.12);
  min-height: 250px;
  background: #EFF6FF;
  flex-shrink: 0;
}

.iceberg-hero-svg {
  width: 100%;
  height: auto;
  display: block;
}

.iceberg-label-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 20px 16px;
}

.ice-above-tag {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.ice-above-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5B4896;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #E2D9FA;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(100, 80, 160, 0.08);
  letter-spacing: -0.01em;
}

.ice-above-keyword {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #151C33;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.85);
}

.ice-under-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 48px;
  gap: 3px;
  max-width: 90%;
}

.ice-under-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #1D4ED8;
  background: rgba(239, 246, 255, 0.92);
  border: 1px solid #BFDBFE;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 2px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.ice-under-primary {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 800;
  color: #12182B;
  margin-bottom: 2px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.ice-under-secondary {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: #2D3D58;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

/* 2. 4개의 감정 결과 카드 리스트 (시안 1:1 완벽 일치) */
.result-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-summary-card {
  position: relative;
  border-radius: 22px;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  overflow: hidden;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
  min-height: 84px;
}

.result-card--behavior {
  background: #F5F3FF;
  border-color: #ECE7FF;
}

.result-card--inner {
  background: #FFF2F5;
  border-color: #FFE2E7;
}

.result-card--alt {
  background: #F0FAF5;
  border-color: #D8F5E5;
}

.result-card--sticker {
  background: #FFFDF0;
  border-color: #FEF7D2;
}

.result-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.result-card-icon svg {
  width: 24px;
  height: 24px;
}

.result-icon--purple {
  background: #EDE8FD;
  color: #6C4EE8;
}

.result-icon--rose {
  background: #FFE5EA;
  color: #F43F5E;
}

.result-icon--green {
  background: #DEF7E8;
  color: #10B981;
}

.result-icon--amber {
  background: #FEF6D2;
  color: #F59E0B;
}

.result-sun-mini-svg {
  width: 32px !important;
  height: 32px !important;
}

.result-card-text-group {
  flex: 1;
  min-width: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card-label {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-purple-bold {
  color: #6347F5;
}

.text-rose-bold {
  color: #F43F5E;
}

.text-green-bold {
  color: #10B981;
}

.result-card-body {
  font-size: 0.94rem;
  font-weight: 600;
  color: #1E1B38;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.font-bold {
  font-weight: 800;
}

.result-card-deco {
  position: absolute;
  right: 10px;
  bottom: 0px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.result-card-deco svg {
  width: 48px;
  height: 50px;
}

.result-confirm-action {
  margin-top: 6px;
  padding-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-board-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-edit-btn,
.result-delete-btn {
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  font-weight: 700;
}

.result-delete-btn {
  color: var(--rose-500);
  border-color: var(--rose-200);
  background: #FFF8F8;
}

/* 오늘의 마음기록 게시판 스타일 (MVP) */
.mood-board-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.mood-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.mood-board-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-board-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #170E38;
  letter-spacing: -0.025em;
}

.mood-board-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.mood-board-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mood-board-cal-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--purple-600);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.mood-board-cal-btn:hover {
  background: var(--purple-100);
  transform: translateY(-1px);
}

.mood-board-write-btn {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--purple-600);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(99, 71, 245, 0.25);
  transition: all var(--transition-fast);
}

.mood-board-write-btn:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
}

.mood-board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mood-board-card {
  background: #FFFFFF;
  border: 1.5px solid #EFEAF6;
  border-radius: 24px;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px -4px rgba(105, 92, 145, 0.07);
  cursor: pointer;
  transition: transform var(--transition-bounce), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.mood-board-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-300);
  box-shadow: 0 12px 26px -6px rgba(108, 71, 255, 0.14);
}

.mood-board-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mood-board-meta-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mood-board-emoji {
  font-size: 1.15rem;
}

.mood-board-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--purple-600);
  background: var(--purple-50);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.mood-board-date {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mood-board-sticker-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: #5B3CE8;
  background: #FFFDF0;
  border: 1px solid #F8E7A2;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.mood-board-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #171131;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.mood-board-card-desc {
  font-size: 0.86rem;
  font-weight: 500;
  color: #5A5472;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mood-board-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed #F1ECF9;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mood-board-view-link {
  font-weight: 700;
  color: var(--purple-600);
}

.mood-board-empty {
  text-align: center;
  padding: 40px 20px;
  background: #FAF8FE;
  border: 1.5px dashed #E2D9FA;
  border-radius: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.wizard-step-pane--loading {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 38px;
}

.wizard-step-pane--loading.is-active {
  display: flex;
  flex-direction: column;
  animation: fadeInLoading 0.35s var(--ease-smooth);
}

@keyframes fadeInLoading {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

.loading-scene-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Status Bar in Loading Mockup */
.loading-top-statusbar {
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #170E38;
  font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-svg {
  width: 16px;
  height: 12px;
}

.status-svg--battery {
  width: 22px;
  height: 12px;
}

.loading-scenery-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.loading-message-block {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: -36px;
  text-align: center;
  padding: 0 20px;
}

.loading-title {
  font-family: var(--font-sans);
  font-size: 1.82rem;
  font-weight: 800;
  color: #1A1342;
  line-height: 1.34;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.95);
}

.loading-pulse-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pulse-dot {
  display: inline-block;
  border-radius: 50%;
  background: #C4B0FA;
  animation: dotPulseWave 1.4s infinite ease-in-out both;
}

.pulse-dot--left {
  width: 12px;
  height: 12px;
  animation-delay: -0.32s;
}

.pulse-dot--center {
  width: 18px;
  height: 18px;
  background: #6A4CE8;
  box-shadow: 0 4px 14px rgba(106, 76, 232, 0.42);
  animation-delay: -0.16s;
}

.pulse-dot--right {
  width: 12px;
  height: 12px;
  animation-delay: 0s;
}

@keyframes dotPulseWave {
  0%, 80%, 100% {
    transform: scale(0.75);
    opacity: 0.55;
  }
  40% {
    transform: scale(1.18);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   마음 기록하기 대화창(채팅) 스타일링 (시안과 1:1 일치)
   -------------------------------------------------------------------------- */
.wizard-step-pane#wizardPaneChat {
  height: 100%;
  max-height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.chat-top-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
}

.chat-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1B1538;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.chat-back-btn:hover {
  background: #ECE7F8;
}

.chat-back-btn svg {
  width: 20px;
  height: 20px;
}

.chat-header-center {
  flex: 1;
  text-align: center;
}

.chat-screen-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #150F2F;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.chat-screen-sub {
  font-size: 0.76rem;
  color: #6C6684;
  margin-top: 2px;
  letter-spacing: -0.01em;
}

.chat-top-spacer {
  width: 38px;
}

.chat-thread-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 4px 16px 2px;
}

.chat-thread-container::-webkit-scrollbar {
  width: 4px;
}

.chat-thread-container::-webkit-scrollbar-thumb {
  background: #E1DAF4;
  border-radius: 999px;
}

.chat-turn-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.is-chat-hidden {
  display: none !important;
}

@keyframes chatBubbleIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.is-appear-once {
  animation: chatBubbleIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1 both !important;
}

/* 봇 메시지 행 */
.chat-bot-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-bot-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-top: 2px;
}

.avatar-heart-svg {
  width: 100%;
  height: 100%;
}

.chat-bot-content-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 82%;
}

.chat-bot-bubble {
  background: #EFF0F7;
  border-radius: 20px;
  border-top-left-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.bot-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8467F8;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bot-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bot-q-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #171131;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.bot-q-desc {
  font-size: 0.78rem;
  color: #6C6684;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.chat-bubble-time {
  font-size: 0.68rem;
  color: #9D98AF;
  padding-left: 6px;
}

.chat-bubble-time--right {
  padding-left: 0;
  padding-right: 6px;
  text-align: right;
}

/* 사용자 응답 메시지 행 */
.chat-user-row {
  display: flex;
  justify-content: flex-end;
  padding-left: 48px;
  animation: chatBubbleIn 0.25s var(--ease-smooth);
}

.chat-user-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 90%;
}

.chat-user-bubble {
  display: inline-grid;
  align-items: center;
  background: #FFE8EC;
  border-radius: 20px;
  border-top-right-radius: 4px;
  padding: 13px 16px;
  box-shadow: 0 3px 12px rgba(230, 150, 165, 0.16);
  cursor: text;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
  width: fit-content;
  min-width: 64px;
  max-width: 100%;
}

.chat-user-bubble::after {
  content: attr(data-replicated-value) " ";
  grid-area: 1 / 1 / 2 / 2;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  white-space: pre-wrap;
  word-break: break-word;
  visibility: hidden;
  pointer-events: none;
  min-height: 1.5em;
}

.chat-user-bubble:focus-within {
  background: #FFDFE5;
  box-shadow: 0 4px 16px rgba(230, 140, 155, 0.28);
}

.chat-user-textarea {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  height: 100%;
  min-height: 1.5em;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: #1D1535;
  line-height: 1.5;
  letter-spacing: -0.015em;
  resize: none;
  overflow: hidden;
  outline: none !important;
  display: block;
  padding: 0;
  margin: 0;
}

.chat-user-textarea::placeholder {
  color: #B59FAB;
  font-weight: 500;
}

/* 나에게 한마디 섹션 (연노랑 테두리 카드 & 2개 선택지) */
.chat-affirmation-card {
  background: #FFFDF9;
  border: 1.5px solid #F8ECD5;
  border-radius: 24px;
  padding: 16px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(240, 210, 160, 0.12);
  animation: chatBubbleIn 0.3s var(--ease-smooth);
}

.affirmation-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.affirmation-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1A1237;
  letter-spacing: -0.02em;
}

.affirmation-sub-title {
  font-size: 0.77rem;
  color: #79718E;
}

.affirmation-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.affirm-select-box {
  position: relative;
  border-radius: 18px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: 1.5px solid transparent;
  text-align: left;
}

.affirm-box--sun {
  background: #FFFDF2;
  border-color: #FEE7A8;
}

.affirm-box--cloud {
  background: #F4F1FD;
  border-color: #E2DAF8;
}

.affirm-select-box.is-active {
  border-color: #6347F5;
  box-shadow: 0 4px 14px rgba(99, 71, 245, 0.15);
  transform: translateY(-1px);
}

.affirm-illus-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.affirm-sun-svg,
.affirm-cloud-svg {
  width: 100%;
  height: 100%;
}

.affirm-text-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.affirm-opt-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #181232;
  letter-spacing: -0.015em;
}

.affirm-opt-desc {
  font-size: 0.7rem;
  color: #6D6684;
  line-height: 1.35;
}

.affirm-check-indicator {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
}

.check-svg-icon {
  width: 100%;
  height: 100%;
}

.affirm-radio-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #C4BED8;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.affirm-select-box.is-active .affirm-radio-indicator {
  border-color: #6347F5;
  background: #6347F5;
  box-shadow: inset 0 0 0 3px #FFFFFF;
}

/* 카톡 스타일 하단 고정 도크 (입력창 + 마음 보내기 버튼) */
.chat-bottom-fixed-dock {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 2px 2px;
  background: linear-gradient(180deg, rgba(249, 248, 253, 0) 0%, #F9F8FD 16%, #F9F8FD 100%);
  position: relative;
  z-index: 10;
}

/* 하단 툴바 (갤러리 아이콘 + 텍스트 인풋 + 비행기 버튼) */
.chat-input-toolbar {
  background: #FFFFFF;
  border: 1.5px solid #E6E1F4;
  border-radius: 26px;
  padding: 6px 8px 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.chat-photo-btn {
  color: #9790AD;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  transition: color var(--transition-fast);
}

.chat-photo-btn:hover {
  color: #6347F5;
}

.chat-photo-btn svg {
  width: 21px;
  height: 21px;
}

.chat-bottom-input {
  flex: 1;
  font-size: 0.92rem;
  color: #21193B;
  border: none;
  outline: none;
}

.chat-bottom-input::placeholder {
  color: #A099B6;
}

.chat-send-plane-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6347F5;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(99, 71, 245, 0.35);
  transition: all var(--transition-bounce);
}

.chat-send-plane-btn:hover {
  background: #5234E8;
  transform: scale(1.05);
}

.chat-send-plane-btn svg {
  width: 17px;
  height: 17px;
  transform: translateX(-1px) translateY(1px);
}

/* 최하단 마음 보내기 버튼 */
.chat-submit-action {
  margin-top: 0;
}

.btn-chat-submit {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 24px;
  background: #5B3CE8;
  box-shadow: 0 8px 24px rgba(91, 60, 232, 0.35);
  transition: all var(--transition-bounce);
}

.btn-chat-submit:hover {
  background: #4C2DD4;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(91, 60, 232, 0.42);
}

.step-counter-text {
  font-size: 0.95rem;
  font-weight: 800;
  color: #5B3CE8;
}

.wizard-step-title {
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 800;
  color: #110E26;
  line-height: 1.32;
  letter-spacing: -0.035em;
  margin: 3px 0 6px;
}

.wizard-step-sub {
  font-size: 0.88rem;
  color: #7A758D;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Real Paper Styled Memo Container & Pink Sticky Note */
.real-memo-container {
  padding: 14px 6px 18px;
  display: flex;
  justify-content: center;
}

.postit-card {
  position: relative;
  border-radius: 22px;
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(220, 140, 130, 0.08);
}

.postit-card--memo-pink {
  width: 100%;
  min-height: 320px;
  background: #FFE8EC;
  border-radius: 20px;
  padding: 24px 20px 16px;
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 36px -8px rgba(220, 150, 170, 0.28), 0 4px 14px rgba(120, 90, 160, 0.06);
  border: 1px solid rgba(255, 200, 210, 0.6);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.postit-card--memo-pink::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: #FFFDFC;
  border-radius: 12px;
  z-index: 0;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.postit-card--memo-yellow {
  width: 100%;
  min-height: 320px;
  background: #FFF4B8;
  border-radius: 20px;
  padding: 24px 20px 16px;
  box-shadow: 0 16px 36px -8px rgba(220, 195, 110, 0.3), 0 4px 14px rgba(150, 130, 90, 0.08);
  border: 1px solid rgba(255, 230, 140, 0.7);
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.postit-card--memo-yellow::before {
  content: '';
  position: absolute;
  inset: 12px;
  background: #FFFDF9;
  border-radius: 12px;
  z-index: 0;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

.postit-card--peach {
  background: #FFF5F3;
  border: 1.5px solid #FFE4E0;
}

.postit-card--yellow {
  background: #FFFDF0;
  border: 1.5px solid #FFF2C7;
}

.postit-card--step3 {
  min-height: 175px;
}

.postit-tape-deco {
  position: absolute;
  top: -9px;
  left: 28px;
  width: 48px;
  height: 17px;
  background: rgba(214, 203, 238, 0.85);
  border-radius: 2px;
  transform: rotate(-2deg);
  z-index: 2;
}

.postit-tape-deco--apricot {
  top: -12px;
  right: 24px;
  left: auto;
  width: 72px;
  height: 24px;
  background: rgba(255, 185, 160, 0.72);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: rotate(11deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(180, 100, 80, 0.15);
}

.postit-tape-deco--step2 {
  top: -11px;
  left: 24px;
  width: 70px;
  height: 23px;
  background: rgba(206, 196, 246, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: rotate(-3deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(120, 100, 160, 0.14);
}

.postit-label {
  font-size: 1rem;
  font-weight: 800;
  color: #1A152E;
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.postit-textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2D2644;
  resize: none;
}

.postit-textarea--clean {
  padding: 12px 10px 4px;
  font-size: 1.02rem;
  color: #2E2744;
  min-height: 230px;
}

.postit-textarea--clean::placeholder {
  color: #9A93A9;
  font-size: 1rem;
}

.postit-char-counter {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  font-size: 0.82rem;
  color: #A29DB1;
  padding-right: 6px;
  padding-bottom: 4px;
}

/* Quick Tags Helpers (연보라 캡슐형 뱃지) */
.quick-tags-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.quick-tags-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4C465E;
}

.quick-tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tag-pill--soft-purple {
  background: #F4F1FD;
  color: #5B3CE8;
  border: 1px solid #E2D9FA;
}

.tag-pill--soft-purple:hover {
  background: #EAE3FC;
  transform: translateY(-1px);
}

/* Footer Action Buttons */
.wizard-footer-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.wizard-footer-actions--step1,
.wizard-footer-actions--step2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.btn-step-prev {
  background: #F2F1F8;
  color: #8F89A3;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-step-prev-purple {
  background: #F2F1FD;
  color: #6347F5;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-bounce);
}

.btn-step-prev-purple:hover {
  background: #E8E5FB;
  transform: translateY(-1px);
}

.btn-step-prev:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.btn-step-next-purple {
  background: #6347F5;
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 16px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 22px rgba(99, 71, 245, 0.35);
  transition: all var(--transition-bounce);
}

.btn-step-next-purple:hover {
  background: #5437E5;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(99, 71, 245, 0.42);
}

/* Step 3 Header with Purple Pencil Illustration */
.wizard-pane-header--with-pencil {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.header-text-block {
  flex: 1;
}

.pencil-deco-scene {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  pointer-events: none;
}

.pencil-svg {
  width: 100%;
  height: 100%;
}

/* Step 3: 나에게 하고 싶은 말 & 스티커 선택 카드 */
.self-word-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.self-word-heart-sparkle {
  font-size: 1.15rem;
}

.selection-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #170E38;
  letter-spacing: -0.02em;
}

.sticker-selector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sticker-choice-card {
  border-radius: 20px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  border: 1.5px solid transparent;
}

.sticker-choice-card--sun {
  background: #FFFDF0;
  border-color: #FFF2C7;
}

.sticker-choice-card--cloud {
  background: #F4F0FD;
  border-color: #E6DCFA;
}

.sticker-choice-card.is-active {
  box-shadow: 0 6px 18px rgba(91, 60, 232, 0.16);
  border-color: #5B3CE8;
  transform: translateY(-2px);
}

.sticker-face-wrap {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-face-svg,
.cloud-face-svg {
  width: 100%;
  height: 100%;
}

.sticker-card-text {
  font-size: 0.98rem;
  font-weight: 800;
  color: #170E38;
}

.sticker-choice-card.is-active .sticker-card-text {
  color: #5B3CE8;
}

/* Step 3 Footer '마음 보내기 ->' Button */
.wizard-footer-actions--step3 {
  margin-top: 10px;
}

.btn-send-heart {
  width: 100%;
  background: #5B3CE8;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(91, 60, 232, 0.35);
  transition: all var(--transition-bounce);
}

.btn-send-heart:hover {
  background: #4C2DD4;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(91, 60, 232, 0.42);
}

.arrow-forward-svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.5;
  transition: transform var(--transition-fast);
}

.btn-send-heart:hover .arrow-forward-svg {
  transform: translateX(4px);
}

/* Iceberg Stage Graphic in Wizard (Screen 4) */
.iceberg-stage-visual {
  background: linear-gradient(180deg, #E6F3FE 0%, #CDE7FD 35%, #9DCFFB 70%, #57A9F2 100%);
  border-radius: var(--radius-xl);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.iceberg-layer--deep {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iceberg-card-bubble {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(25, 60, 95, 0.08);
}

.bubble-header-tag {
  font-size: 0.74rem;
  font-weight: 800;
}

.bubble-text-content {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* Envelope Graphic & Self Sticker in Wizard (Screen 5) */
.envelope-letter-card {
  background: #FFFFFF;
  border: 1px solid var(--purple-100);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.envelope-illus {
  display: flex;
  justify-content: center;
}

.envelope-heart-stamp {
  width: 58px;
  height: 48px;
  background: var(--purple-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.envelope-textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-main);
  resize: none;
}

.envelope-char-counter {
  align-self: flex-end;
  font-size: 0.72rem;
  color: var(--text-hint);
}

.self-word-selection-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selection-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.sticker-selector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sticker-choice-btn {
  background: var(--bg-surface-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-bounce);
}

.sticker-choice-btn.is-active {
  background: var(--purple-50);
  border-color: var(--purple-500);
  box-shadow: 0 4px 14px rgba(108, 71, 255, 0.16);
}

.choice-icon {
  font-size: 1.6rem;
}

.choice-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.sticker-choice-btn.is-active .choice-label {
  color: var(--purple-600);
}

/* --------------------------------------------------------------------------
   11-B. Challenge Day Check-In Popup Modal (시안 1:1 완벽 일치)
   -------------------------------------------------------------------------- */
.challenge-popup-dialog {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FE 100%);
  border-radius: 36px;
  padding: 24px 22px 28px;
  box-shadow: 0 24px 54px -10px rgba(50, 28, 110, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-spring);
}

.modal-backdrop.is-open .challenge-popup-dialog {
  transform: translateY(0) scale(1);
}

.challenge-popup-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #79718E;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F1FB;
  transition: all var(--transition-fast);
  z-index: 5;
}

.challenge-popup-close-btn:hover {
  background: #E8E2F8;
  color: #171131;
}

.challenge-popup-deco {
  width: 150px;
  height: 120px;
  margin: -6px 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.popup-calendar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.challenge-popup-title {
  font-family: var(--font-sans);
  font-size: 1.52rem;
  font-weight: 800;
  color: #170E38;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-top: 4px;
}

.challenge-popup-subtitle {
  font-size: 0.92rem;
  font-weight: 500;
  color: #6D6786;
  margin-top: 5px;
  letter-spacing: -0.015em;
}

.challenge-popup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
  width: 100%;
}

.checkin-choice-card {
  position: relative;
  border-radius: 26px;
  padding: 22px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(110, 85, 200, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all var(--transition-bounce);
  border: 1.5px solid transparent;
}

.checkin-choice--wook {
  background: linear-gradient(180deg, #FDF4F8 0%, #F8ECF5 100%);
  border-color: #F6E2EE;
}

.checkin-choice--calm {
  background: linear-gradient(180deg, #F4F7FF 0%, #EDF2FE 100%);
  border-color: #E2EBFE;
}

.checkin-choice-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(100, 70, 200, 0.16);
}

.checkin-choice-card:active {
  transform: scale(0.96);
}

.checkin-char-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-bounce);
}

.checkin-choice-card:hover .checkin-char-wrap {
  transform: scale(1.08);
}

.checkin-char-svg {
  width: 100%;
  height: 100%;
}

.checkin-choice-label {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.checkin-choice--wook .checkin-choice-label {
  color: #4C268F;
}

.checkin-choice--calm .checkin-choice-label {
  color: #2D398E;
}

/* --------------------------------------------------------------------------
   12. Challenge Period Modal (Screen 9)
   -------------------------------------------------------------------------- */
.period-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
}

.period-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface-tint);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.period-option-card input {
  position: absolute;
  opacity: 0;
}

.period-option-card.is-selected {
  border-color: var(--purple-500);
  background: var(--purple-50);
}

.period-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.period-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.period-radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  position: relative;
}

.period-option-card.is-selected .period-radio-indicator {
  border-color: var(--purple-500);
  background: var(--purple-500);
}

.period-option-card.is-selected .period-radio-indicator::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Real-time Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.status-pill--calm {
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  color: var(--sage-600);
}

.status-pill--calm .status-dot {
  background-color: var(--sage-500);
  box-shadow: 0 0 0 2px rgba(85, 127, 99, 0.2);
}

.status-pill--warning {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-600);
}

.status-pill--warning .status-dot {
  background-color: var(--amber-500);
  box-shadow: 0 0 0 2px rgba(204, 122, 49, 0.25);
}

.status-pill--danger {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-600);
}

.status-pill--danger .status-dot {
  background-color: var(--rose-500);
  box-shadow: 0 0 0 2px rgba(194, 86, 66, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(85, 127, 99, 0.28);
  }
}

/* SOS Quick Button */
.sos-quick-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--rose-gradient);
  color: var(--text-inverse);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--shadow-sos);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sos-quick-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 28px -3px rgba(194, 86, 66, 0.45);
}

.sos-quick-btn:active {
  transform: translateY(1px) scale(0.97);
}

.sos-ripple {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(226, 121, 100, 0.6);
  opacity: 0;
  animation: ripplePulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes ripplePulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  60% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.sos-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.sos-text {
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   6. Emotional Welcome Card
   -------------------------------------------------------------------------- */
.welcome-card {
  padding: 24px 22px;
  background: linear-gradient(135deg, #FFFBF5 0%, #F6EFE3 100%);
  border: 1px solid #ECE3D3;
  position: relative;
  isolation: isolate;
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.welcome-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.welcome-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-600);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.welcome-pill-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sage-600);
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.welcome-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.38;
  letter-spacing: -0.025em;
  margin-top: 2px;
}

.welcome-desc {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.welcome-decoration {
  position: absolute;
  right: -25px;
  top: -25px;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}

.sunbeam-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 209, 166, 0.5) 0%, rgba(254, 246, 236, 0) 70%);
  filter: blur(22px);
  animation: sunGlow 7s infinite alternate ease-in-out;
}

.sunbeam-inner-glow {
  position: absolute;
  top: 20%;
  right: 20%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 185, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(12px);
}

@keyframes sunGlow {
  0% { transform: scale(0.88) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.15) translate(-6px, 8px); opacity: 0.95; }
}

/* --------------------------------------------------------------------------
   7. Section Headers & Badges
   -------------------------------------------------------------------------- */
.section-card {
  padding: 22px 20px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid var(--amber-200);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.section-badge--sage {
  background: var(--sage-50);
  color: var(--sage-600);
  border-color: var(--sage-200);
}

.section-badge--amber {
  background: var(--amber-50);
  color: var(--amber-600);
  border-color: var(--amber-200);
}

.section-heading {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.section-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Emotion Logger Section (지금 내 마음 캐치하기)
   -------------------------------------------------------------------------- */
.mood-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emotion-picker-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.emotion-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 4px;
}

.emotion-item {
  position: relative;
  display: block;
  cursor: pointer;
}

.emotion-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.emotion-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-tint);
  text-align: center;
  transition: all var(--transition-bounce);
  min-height: 88px;
}

.emotion-emoji {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 5px;
  transition: transform var(--transition-bounce);
}

.emotion-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.25;
  white-space: nowrap;
}

.emotion-level {
  font-size: 0.65rem;
  color: var(--text-hint);
  margin-top: 2px;
}

/* Emotion Color Theme Classes */
.emotion-tile--serene {
  --active-border: var(--sky-400);
  --active-bg: var(--sky-50);
  --active-color: var(--sky-500);
}
.emotion-tile--tired {
  --active-border: #C6B59B;
  --active-bg: #F7F3EB;
  --active-color: #8C7554;
}
.emotion-tile--frustrated {
  --active-border: var(--lavender-400);
  --active-bg: var(--lavender-50);
  --active-color: var(--lavender-500);
}
.emotion-tile--warning {
  --active-border: var(--amber-400);
  --active-bg: var(--amber-50);
  --active-color: var(--amber-500);
}
.emotion-tile--danger {
  --active-border: var(--rose-400);
  --active-bg: var(--rose-50);
  --active-color: var(--rose-500);
}

.emotion-item:hover .emotion-tile {
  border-color: var(--active-border);
  transform: translateY(-2px);
  background: #FFFFFF;
}

.emotion-radio:checked + .emotion-tile {
  border-color: var(--active-border);
  background: var(--active-bg);
  box-shadow: 0 8px 18px -4px rgba(130, 110, 95, 0.16);
  transform: translateY(-4px) scale(1.03);
}

.emotion-radio:checked + .emotion-tile .emotion-emoji {
  transform: scale(1.22);
}

.emotion-radio:checked + .emotion-tile .emotion-name {
  color: var(--active-color);
  font-weight: 800;
}

.emotion-radio:checked + .emotion-tile .emotion-level {
  color: var(--active-color);
  font-weight: 600;
  opacity: 0.9;
}

/* Form Groups & Chip Clusters */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-label-row,
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-label-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-hint);
}

.chip-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition-fast);
}

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

.chip-btn.is-active {
  background: var(--amber-50);
  border-color: var(--amber-400);
  color: var(--amber-600);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(204, 122, 49, 0.18);
  transform: translateY(-1px);
}

.chip-btn--sage.is-active {
  background: var(--sage-50);
  border-color: var(--sage-400);
  color: var(--sage-600);
  box-shadow: 0 3px 10px rgba(85, 127, 99, 0.18);
}

/* Textarea & Notes */
.form-textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-tint);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-main);
  resize: vertical;
  min-height: 86px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-textarea::placeholder {
  color: var(--text-hint);
  font-size: 0.82rem;
}

.form-textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(122, 163, 135, 0.22);
}

.char-counter {
  font-size: 0.72rem;
  color: var(--text-hint);
}

/* Button Component Standards */
.form-actions {
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition-bounce);
  text-align: center;
  border: none;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--purple-gradient);
  color: var(--text-inverse);
  box-shadow: var(--shadow-floating);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(108, 71, 255, 0.42);
}

.btn-purple-solid {
  background: var(--purple-600) !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 22px rgba(99, 71, 245, 0.35) !important;
}

.btn-purple-solid:hover {
  background: var(--purple-700) !important;
  box-shadow: 0 10px 26px rgba(99, 71, 245, 0.42) !important;
  transform: translateY(-1px);
}

.btn-purple-outline {
  background: #FFFFFF !important;
  border: 1.5px solid var(--purple-200) !important;
  color: var(--purple-600) !important;
  font-weight: 700;
}

.btn-purple-outline:hover {
  background: var(--purple-50) !important;
  border-color: var(--purple-400) !important;
}

.btn-secondary {
  background: var(--bg-surface-soft);
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #EFE9DD;
}

.btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   9. Mental Care Challenge Section
   -------------------------------------------------------------------------- */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  font-size: 0.76rem;
  color: var(--amber-600);
}

.streak-icon {
  font-size: 0.95rem;
}

.challenge-progress-summary {
  background: var(--bg-surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
}

.progress-percentage {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sage-600);
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: var(--radius-pill);
  background: #E9E3D6;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--sage-gradient);
  transition: width 0.7s var(--ease-smooth);
}

.progress-counter-text {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.progress-counter-text strong {
  color: var(--sage-600);
}

/* Challenge List & Stamp Micro-interactions */
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  position: relative;
}

.challenge-card:hover {
  border-color: #D4CABE;
  transform: translateY(-1px);
}

.challenge-card.is-completed {
  background: #F8FAF8;
  border-color: var(--sage-200);
}

.challenge-stamp-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--bg-surface-soft);
  border: 1.5px solid #D7CEBF;
  color: #B5AB9A;
  transition: all var(--transition-bounce);
}

.challenge-stamp-btn:hover {
  transform: scale(1.08);
}

.challenge-card.is-completed .challenge-stamp-btn {
  background: var(--sage-500);
  border-color: var(--sage-600);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(85, 127, 99, 0.35);
  animation: stampBounce 0.42s var(--ease-spring);
}

@keyframes stampBounce {
  0% { transform: scale(0.6); opacity: 0.5; }
  60% { transform: scale(1.24); }
  100% { transform: scale(1); opacity: 1; }
}

.stamp-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.stamp-mark svg {
  width: 100%;
  height: 100%;
}

.challenge-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.challenge-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.challenge-category {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--sage-600);
  background: var(--sage-50);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.challenge-days {
  font-size: 0.7rem;
  color: var(--text-hint);
}

.challenge-name {
  font-size: 0.89rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.challenge-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.challenge-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sage-600);
  background: var(--sage-50);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  align-self: center;
}

.challenge-status-pill--pending {
  color: var(--text-hint);
  background: var(--bg-surface-soft);
}

/* --------------------------------------------------------------------------
   10. WebAssembly Real-time Mental Report Section
   -------------------------------------------------------------------------- */
.wasm-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 100%);
}

.wasm-badge-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wasm-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sage-600);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage-500);
  animation: liveBlink 1.6s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* High-Performance Resilience Gauge Card */
.resilience-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
  background: #FAF8F5;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.gauge-wrapper {
  position: relative;
  width: 114px;
  height: 114px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: #EAE3D6;
  stroke-width: 12;
}

.gauge-bar {
  fill: none;
  stroke: url(#gaugeGradient, var(--sage-500));
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s var(--ease-smooth);
}

.gauge-inner-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.gauge-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-hint);
  line-height: 1;
}

.gauge-score-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  margin: 4px 0 2px;
}

.gauge-score-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.gauge-score-unit {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 2px;
}

.gauge-status-text {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--sage-600);
}

.resilience-narrative {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.narrative-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.narrative-body {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.48;
}

/* Multi-Metric Triplet Grid */
.metric-triplet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.metric-icon {
  font-size: 0.85rem;
}

.metric-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-card-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 2px 0;
}

.metric-card-foot {
  font-size: 0.65rem;
  font-weight: 700;
}

.text-sage { color: var(--sage-600); }
.text-blue { color: var(--sky-500); }
.text-amber { color: var(--amber-600); }

/* Weekly Trend Visualizer */
.trend-visualizer {
  background: var(--bg-surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 14px 12px;
  margin-bottom: 14px;
}

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

.trend-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.trend-legend {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.legend-chip::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-chip--sage::before { background-color: var(--sage-400); }
.legend-chip--amber::before { background-color: var(--amber-400); }
.legend-chip--terracotta::before { background-color: var(--rose-400); }

.trend-bars-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: flex-end;
  height: 106px;
  padding-bottom: 4px;
}

.trend-bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
}

.trend-bar-track {
  width: 15px;
  height: 76px;
  background: #EAE3D6;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.trend-bar-fill {
  width: 100%;
  border-radius: var(--radius-pill);
  transition: height 0.8s var(--ease-smooth);
}

.bar-calm { background: var(--sage-gradient); }
.bar-warning { background: var(--amber-gradient); }
.bar-danger { background: var(--rose-gradient); }

.trend-day {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trend-bar-column.is-today .trend-day {
  color: var(--sage-600);
  font-weight: 800;
}

.trend-bar-column.is-today .trend-bar-track {
  box-shadow: 0 0 0 2px var(--sage-500);
}

/* Therapeutic Prescription Papyrus Box */
.prescription-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  background: #FFFDF7;
  border: 1px solid #F5E8C9;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(204, 122, 49, 0.05);
}

.prescription-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.prescription-text {
  font-size: 0.79rem;
  color: #5C4F32;
  line-height: 1.52;
}

.prescription-text strong {
  color: #3C331F;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   11. Clean Minimal Bottom Navigation (첨부 이미지와 1:1 일치)
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #FFFFFF;
  border-top: 1px solid #ECE7F5;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px;
  color: #79718E;
  transition: all var(--transition-fast);
  flex: 1;
}

.nav-svg {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform var(--transition-bounce), color var(--transition-fast);
}

.nav-svg--home {
  fill: currentColor;
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.nav-btn:hover {
  color: var(--purple-600);
}

.nav-btn.is-active {
  color: var(--purple-600);
}

.nav-btn.is-active .nav-svg {
  transform: translateY(-2px);
  color: var(--purple-600);
}

.nav-btn {
  position: relative;
}

.nav-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3.5px;
  border-radius: 999px;
  background: var(--purple-600);
}

.nav-btn.is-active .nav-svg--trophy .trophy-cup-path {
  fill: var(--purple-600);
}

.nav-btn.is-active .nav-label {
  font-weight: 800;
  color: var(--purple-600);
}

/* Center Floating SOS Button */
.nav-center-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -26px;
  background: none;
  border: none;
  padding: 0 4px;
  z-index: 2;
  transition: transform var(--transition-bounce);
}

.nav-center-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--rose-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(194, 86, 66, 0.4);
  border: 3.5px solid #FFFFFF;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.nav-center-bubble svg {
  width: 23px;
  height: 23px;
}

.nav-center-text {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--rose-600);
  margin-top: 3px;
}

.nav-center-action:hover .nav-center-bubble {
  transform: scale(1.08);
  box-shadow: 0 12px 26px rgba(194, 86, 66, 0.48);
}

.nav-center-action:active {
  transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   12. 10-Second SOS Breathing Guide Modal (긴급 멘탈 세이프티존)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(36, 42, 38, 0.54);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 410px;
  padding: 28px 22px 24px;
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s var(--ease-spring);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #E8E1D4;
  color: var(--text-main);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.modal-header {
  margin-bottom: 18px;
}

.modal-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--rose-600);
  background: var(--rose-50);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 7px;
}

.modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.81rem;
  color: var(--text-muted);
}

/* 3-Phase Rhythm Indicator Bar */
.breathing-rhythm-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
}

.rhythm-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 700;
  background: var(--bg-surface-soft);
  color: var(--text-body);
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--ease-smooth);
}

.rhythm-chip .rhythm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.rhythm-chip--inhale .rhythm-dot { background-color: var(--sky-500); }
.rhythm-chip--hold .rhythm-dot { background-color: var(--amber-500); }
.rhythm-chip--exhale .rhythm-dot { background-color: var(--sage-500); }

.rhythm-arrow {
  font-size: 0.75rem;
  color: var(--text-hint);
}

/* Organic 10-Second Hypnotic Breathing Stage */
.breathing-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 18px;
}

.breathing-outer-ring,
.breathing-middle-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.breathing-outer-ring {
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(122, 163, 135, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  animation: breathingOuterRing 10s infinite ease-in-out;
}

.breathing-middle-ring {
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(122, 163, 135, 0.32) 0%, rgba(255, 255, 255, 0) 70%);
  animation: breathingMiddleRing 10s infinite ease-in-out;
}

.breathing-orb {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7DB590 0%, #4C7B5D 100%);
  box-shadow: 0 10px 32px rgba(85, 127, 99, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: breathingOrbCycle 10s infinite ease-in-out;
}

/* Exact 10s Cycle Animation (Inhale 40%, Hold 20%, Exhale 40%) */
@keyframes breathingOrbCycle {
  0% { transform: scale(0.85); box-shadow: 0 6px 20px rgba(85, 127, 99, 0.25); }
  40% { transform: scale(1.3); box-shadow: 0 18px 46px rgba(85, 127, 99, 0.52); }
  60% { transform: scale(1.3); box-shadow: 0 18px 46px rgba(85, 127, 99, 0.52); }
  100% { transform: scale(0.85); box-shadow: 0 6px 20px rgba(85, 127, 99, 0.25); }
}

@keyframes breathingMiddleRing {
  0% { transform: scale(0.88); opacity: 0.35; }
  40% { transform: scale(1.38); opacity: 0.95; }
  60% { transform: scale(1.38); opacity: 0.95; }
  100% { transform: scale(0.88); opacity: 0.35; }
}

@keyframes breathingOuterRing {
  0% { transform: scale(0.92); opacity: 0.25; }
  40% { transform: scale(1.42); opacity: 0.85; }
  60% { transform: scale(1.42); opacity: 0.85; }
  100% { transform: scale(0.92); opacity: 0.25; }
}

.breathing-orb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  padding: 10px;
}

.breathing-phase-text {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  opacity: 0.95;
}

.breathing-timer-display {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2px;
}

.breathing-affirmation {
  background: var(--bg-surface-soft);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid var(--border-subtle);
}

.affirmation-text {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.52;
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.modal-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 12px 14px;
}

/* --------------------------------------------------------------------------
   13. Emotion Calendar & History Modal
   -------------------------------------------------------------------------- */
.modal-dialog--calendar {
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
  align-items: stretch;
  padding: 24px 20px;
}

.modal-dialog--calendar::-webkit-scrollbar {
  width: 6px;
}

.modal-dialog--calendar::-webkit-scrollbar-track {
  background: transparent;
}

.modal-dialog--calendar::-webkit-scrollbar-thumb {
  background: #E0D7C9;
  border-radius: var(--radius-pill);
}

.modal-category--sage {
  color: var(--sage-600);
  background: var(--sage-50);
}

.calendar-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.calendar-month-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.calendar-legend-mini {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-legend {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-legend--serene { background-color: var(--sky-400); }
.dot-legend--tired { background-color: #B59F82; }
.dot-legend--frustrated { background-color: var(--lavender-400); }
.dot-legend--warning { background-color: var(--amber-400); }
.dot-legend--danger { background-color: var(--rose-400); }

/* Calendar Week Header & Days Grid */
.calendar-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface-tint);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.cal-day.is-muted {
  color: #C7BFB3;
  background: transparent;
}

.cal-day.is-selected {
  border-color: var(--sage-500);
  background: var(--sage-50);
  font-weight: 800;
  color: var(--sage-600);
}

.cal-day .cal-dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cal-day.has-log--serene .cal-dot { background-color: var(--sky-400); }
.cal-day.has-log--tired .cal-dot { background-color: #A8906F; }
.cal-day.has-log--frustrated .cal-dot { background-color: var(--lavender-500); }
.cal-day.has-log--warning .cal-dot { background-color: var(--amber-500); }
.cal-day.has-log--danger .cal-dot { background-color: var(--rose-500); }

/* History Entry Stream */
.history-stream-wrap {
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.stream-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}

.stream-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.history-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-log-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-tint);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.history-log-item:hover {
  background: #FFFFFF;
  border-color: var(--border-color);
}

.history-log-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.bg-sage { background: var(--sage-50); }
.bg-lavender { background: var(--lavender-50); }
.bg-amber { background: var(--amber-50); }
.bg-rose { background: var(--rose-50); }

.history-log-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-log-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.history-log-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.history-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--sage-600);
  background: var(--sage-50);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.history-tag--warning {
  color: var(--amber-600);
  background: var(--amber-50);
}

.history-tag--danger {
  color: var(--rose-600);
  background: var(--rose-50);
}

.history-log-note {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.45;
}

.history-log-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.chip-mini {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-soft);
  color: var(--text-muted);
  font-weight: 500;
}

.chip-mini--sage {
  background: var(--sage-50);
  color: var(--sage-600);
}

/* --------------------------------------------------------------------------
   14. Toast Notification Overlay
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 120;
  padding: 0 16px;
}

.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(39, 44, 40, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.35s var(--ease-spring);
  pointer-events: auto;
}

.toast-item.is-hidden {
  transform: translateY(-24px);
  opacity: 0;
  pointer-events: none;
}

.toast-icon {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   15. Responsive Adaptations & Mobile Refinements
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .emotion-picker {
    gap: 4px;
  }

  .emotion-tile {
    padding: 9px 2px 7px;
    min-height: 78px;
  }

  .emotion-emoji {
    font-size: 1.3rem;
  }

  .emotion-name {
    font-size: 0.65rem;
  }

  .metric-card-val {
    font-size: 1rem;
  }

  .resilience-card {
    flex-direction: column;
    text-align: center;
  }

  .narrative-heading {
    margin-top: 4px;
  }
}

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

/* Keyboard Accessibility Focus Rings */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

.chat-user-textarea:focus-visible,
.chat-bottom-input:focus-visible,
.login-input-field:focus-visible {
  outline: none !important;
}

/* --------------------------------------------------------------------------
   18. Admin Screen Styles (프론트엔드 분리 및 독립 PC 콘솔 모드)
   -------------------------------------------------------------------------- */
body.is-admin-active {
  overflow-x: auto;
  background-color: #F8FAFC !important;
}

body.is-admin-active .app-header,
body.is-admin-active .app-main,
body.is-admin-active .bottom-nav,
body.is-admin-active .bottom-spacer,
body.is-admin-active .ambient-glow-layer {
  display: none !important;
}

body.is-admin-active .app-viewport {
  display: contents !important;
}

body.is-admin-active .modal-backdrop.is-open {
  z-index: 10000 !important;
}

.admin-card-badge-pill.admin-badge-rest {
  background: #F1F5F9;
  color: #64748B;
}

body.is-admin-active .admin-app-root {
  display: block !important;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* 회원관리 테이블 내 활동 지표 3줄 표시 셀 */
.admin-activity-stats-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

.admin-stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: nowrap;
}

.admin-stat-line strong {
  font-weight: 700;
  color: #0F172A;
}

.stat-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  line-height: 1.3;
}

.stat-badge--mood {
  background: #F4EFFD;
  color: #6D43F9;
}

.stat-badge--challenge {
  background: #FEF3C7;
  color: #B45309;
}

.stat-badge--visit {
  background: #E0F2FE;
  color: #0369A1;
}

body.is-admin-active .ambient-glow-layer {
  opacity: 0.15;
}

body.is-admin-active .app-viewport {
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

body.is-admin-active .app-header,
body.is-admin-active .bottom-nav,
body.is-admin-active .bottom-spacer {
  display: none !important;
}

body.is-admin-active .app-main {
  padding: 24px 32px 60px !important;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.admin-screen-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* 관리자 로그인 카드 (PC 중앙 정렬) */
.admin-login-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 28px;
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 40px -10px rgba(70, 50, 140, 0.12);
  max-width: 460px;
  margin: 60px auto;
  width: 100%;
}

.admin-shield-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.admin-login-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: #16103A;
  letter-spacing: -0.03em;
}

.admin-login-sub {
  font-size: 0.88rem;
  color: #6D6786;
  line-height: 1.48;
  margin-top: 6px;
  margin-bottom: 22px;
}

.admin-temp-guide {
  color: #6D43F9;
  font-weight: 700;
}

.admin-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.admin-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2D244D;
}

.admin-input {
  width: 100%;
  height: 48px;
  background: #FAF8FE;
  border: 1.5px solid #E5DDF8;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F163C;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-input:focus {
  border-color: #6D43F9;
  box-shadow: 0 0 0 3px rgba(109, 67, 249, 0.12);
  background: #FFFFFF;
}

.admin-submit-btn {
  height: 52px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 6px;
}

.admin-back-service-btn {
  font-size: 0.84rem;
  font-weight: 700;
  color: #79718E;
  margin-top: 8px;
  padding: 6px;
  transition: color var(--transition-fast);
}

.admin-back-service-btn:hover {
  color: #6D43F9;
}

/* 관리자 대시보드 패널 (PC 웹 확장 레이아웃) */
.admin-dashboard-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* PC 전용 2열 레이아웃: 좌측 사이드바 + 우측 메인 콘텐츠 */
.admin-pc-layout {
  display: flex;
  gap: 24px;
  width: 100%;
  min-height: calc(100vh - 80px);
}

/* 1. 좌측 관리자 사이드바 */
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.admin-sidebar-header {
  padding-bottom: 20px;
  border-bottom: 1.5px solid #F1F5F9;
  margin-bottom: 16px;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #F4EFFD;
  border: 1px solid #DFCEFC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.admin-main-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.admin-console-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #6D43F9;
  letter-spacing: 0.08em;
}

.admin-sidebar-nav {
  flex: 1;
}

.admin-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.admin-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.admin-nav-item:hover {
  background: #F8FAFC;
  color: #6D43F9;
  transform: translateX(2px);
}

.admin-nav-item.is-active {
  background: #6D43F9;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(109, 67, 249, 0.28);
}

.admin-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.admin-nav-label {
  letter-spacing: -0.01em;
}

.admin-sidebar-footer {
  padding-top: 16px;
  border-top: 1.5px solid #F1F5F9;
}

.admin-back-home-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748B;
  transition: all var(--transition-fast);
}

.admin-back-home-link:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* 2. 우측 메인 콘텐츠 */
.admin-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 상단 헤더: 메뉴 타이틀 + 우측 로그인 계정 정보 & 로그아웃 */
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.admin-header-title-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-current-menu-heading {
  font-size: 1.48rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.admin-header-breadcrumb {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
}

/* 우측 맨 오른쪽: 관리자 프로필 배지 + 로그아웃 */
.admin-top-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
}

.admin-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C5CFF 0%, #5E39EB 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(109, 67, 249, 0.28);
}

.admin-profile-meta {
  display: flex;
  flex-direction: column;
}

.admin-profile-id {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.admin-profile-role {
  font-size: 0.72rem;
  color: #16A34A;
  font-weight: 700;
}

.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF1F2;
  color: #E11D48;
  border: 1.5px solid #FECDD3;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-logout-btn:hover {
  background: #E11D48;
  color: #FFFFFF;
}

.admin-logout-svg {
  width: 16px;
  height: 16px;
}

.admin-sub-btn {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #F4EFFD;
  color: #6D43F9;
  border: 1.5px solid #DFCEFC;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-sub-btn:hover {
  background: #6D43F9;
  color: #FFFFFF;
}

/* 통계 카드 4개 가로 그리드 (PC 4열) */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.admin-stat-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #79718E;
}

.admin-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.admin-stat-sub {
  font-size: 0.68rem;
  color: #A39BBF;
  margin-top: 2px;
}

/* 서브 탭 내비게이션 */
.admin-sub-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 8px;
  border-radius: var(--radius-pill);
  background: #F4EFFD;
  border: 1.5px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: #62587E;
  white-space: nowrap;
  transition: all var(--transition-bounce);
}

.admin-tab-btn.is-active {
  background: #6D43F9;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(109, 67, 249, 0.28);
}

/* 검색 & 필터 툴바 (PC 와이드) */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.admin-search-box {
  flex: 1;
  min-width: 280px;
  height: 50px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.admin-filter-select-wrap {
  width: 170px;
  height: 50px;
}

.admin-filter-select {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 0 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.admin-filter-select:focus {
  border-color: #6D43F9;
}

.admin-refresh-btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.admin-refresh-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #0F172A;
}

/* PC 전용 데이터 테이블 레이아웃 */
.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.admin-pc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 960px;
}

.admin-pc-table th {
  background: #F8FAFC;
  padding: 16px 18px;
  border-bottom: 2px solid #E2E8F0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  white-space: nowrap;
}

.admin-pc-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  font-size: 0.92rem;
  color: #1E293B;
}

.admin-table-row:hover td {
  background-color: #F8FAFF;
}

.admin-tbl-date {
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}

.admin-tbl-mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F4EFFD;
  color: #6D43F9;
  border: 1px solid #E4DAFA;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-tbl-emoji {
  font-size: 1rem;
}

.admin-tbl-cell-text {
  font-size: 0.9rem;
  line-height: 1.48;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-tbl-innermind {
  color: #1E40AF;
  font-weight: 600;
}

.admin-tbl-sticker-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #FFFDF0;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-tbl-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* PC 전용 2열 카드 그리드 (챌린지/회원) */
.admin-pc-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-pc-card-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.admin-pc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-card-badge-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: #16A34A;
  background: #DCFCE7;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.admin-pc-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
}

.admin-pc-card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.94rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed #F1F5F9;
}

.admin-meta-row span {
  color: #64748B;
  font-weight: 600;
}

.admin-meta-row strong {
  color: #0F172A;
}

.admin-progress-bar-wrap {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #E2E8F0;
  overflow: hidden;
}

.admin-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B5CF6 0%, #6D28D9 100%);
  border-radius: var(--radius-pill);
}

.admin-pc-policy-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475569;
}

.admin-pc-table--compact th {
  padding: 10px 14px;
  font-size: 0.82rem;
}

.admin-pc-table--compact td {
  padding: 12px 14px;
  font-size: 0.88rem;
}

.admin-gender-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.badge-boy {
  background: #EFF6FF;
  color: #2563EB;
}

.badge-girl {
  background: #FFF1F2;
  color: #E11D48;
}

/* 공지사항 및 관리자 관리 카드/테이블 스타일 */
.admin-notices-container,
.admin-admin-list-container {
  width: 100%;
}

.admin-notice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  margin-bottom: 10px;
  transition: background-color var(--transition-fast);
}

.admin-notice-item:hover {
  background: #F1F5F9;
}

.admin-notice-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-notice-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: #EFF6FF;
  color: #2563EB;
}

.admin-notice-badge--important {
  background: #FEF2F2;
  color: #DC2626;
}

.admin-notice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.admin-notice-date {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   어드민 회원 상세 전용 마음기록 모달 (Admin Mood Record View Modal)
   -------------------------------------------------------------------------- */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 26px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: adminModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes adminModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px 16px;
  border-bottom: 1.5px solid #F1F5F9;
  background: #FAF8FE;
}

.admin-modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-modal-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #6D43F9;
  background: #ECE5FD;
  padding: 3px 10px;
  border-radius: 999px;
}

.admin-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.admin-modal-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748B;
}

.admin-modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-modal-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.admin-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-modal-body::-webkit-scrollbar {
  width: 6px;
}
.admin-modal-body::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

.admin-modal-member-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 0.86rem;
  color: #334155;
  flex-wrap: wrap;
}

.admin-modal-member-meta .meta-item strong {
  color: #0F172A;
}

.admin-modal-member-meta .meta-sep {
  color: #CBD5E1;
}

/* 빙산 심리 모델 시각화 카드 */
.admin-iceberg-view-card {
  background: linear-gradient(180deg, #F0F7FF 0%, #E3F0FE 48%, #CFE6FD 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 2px 6px rgba(37, 99, 235, 0.05);
}

.admin-iceberg-surface-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ice-tag-above {
  font-size: 0.74rem;
  font-weight: 800;
  color: #4338CA;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.ice-keyword-above {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1E1B4B;
}

.admin-iceberg-deep-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #DBEAFE;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ice-tag-under {
  font-size: 0.72rem;
  font-weight: 800;
  color: #1D4ED8;
}

.ice-primary-under {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
}

.ice-secondary-under {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
  font-weight: 500;
}

/* 3단계 상세 내용 카드 */
.admin-record-detail-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-detail-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1.5px solid transparent;
}

.step-card--behavior {
  background: #FAF8FE;
  border-color: #ECE5FD;
}

.step-card--inner {
  background: #FFF5F7;
  border-color: #FFE4E8;
}

.step-card--alt {
  background: #F0FDF4;
  border-color: #DCFCE7;
}

.step-card--sticker {
  background: #FFFDF0;
  border-color: #FEF3C7;
}

.step-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.badge-purple { background: #ECE5FD; color: #6D43F9; }
.badge-rose { background: #FFE4E8; color: #E11D48; }
.badge-green { background: #DCFCE7; color: #16A34A; }
.badge-amber { background: #FEF3C7; color: #D97706; }

.text-amber-bold { color: #D97706; }

.step-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-label {
  font-size: 0.86rem;
  font-weight: 800;
}

.step-desc-text {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #1E293B;
  white-space: pre-wrap;
}

.admin-modal-footer {
  padding: 16px 26px;
  border-top: 1.5px solid #F1F5F9;
  background: #FAF8FE;
  display: flex;
  justify-content: flex-end;
}

.admin-modal-primary-btn {
  padding: 10px 24px;
  border-radius: 12px;
  background: #6D43F9;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 67, 249, 0.28);
  transition: all var(--transition-fast);
}

.admin-modal-primary-btn:hover {
  background: #5B2DE6;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-pc-grid-2col {
    grid-template-columns: 1fr;
  }
  .admin-pc-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
}

.admin-search-icon {
  font-size: 0.9rem;
  color: #8C82A8;
}

.admin-search-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1F163C;
  outline: none;
}

.admin-search-input::placeholder {
  color: #A39BBF;
}

.admin-refresh-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #EAE2F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-refresh-btn:hover {
  background: #F4EFFD;
  border-color: #6D43F9;
}

/* 레코드 카드 목록 */
.admin-records-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-record-item {
  background: #FFFFFF;
  border: 1.5px solid #EFEAF6;
  border-radius: 20px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(110, 85, 200, 0.04);
}

.admin-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-record-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-record-emoji {
  font-size: 1.1rem;
}

.admin-record-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #6D43F9;
  background: #F4EFFD;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.admin-record-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: #17103A;
}

.admin-record-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-act-view-btn,
.admin-act-del-btn {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.admin-act-view-btn {
  background: #F4EFFD;
  color: #6D43F9;
  border: 1px solid #DFCEFC;
}

.admin-act-del-btn {
  background: #FFF5F5;
  color: var(--rose-500);
  border: 1px solid var(--rose-200);
}

.admin-act-view-btn:hover {
  background: #E8DCFD;
}

.admin-act-del-btn:hover {
  background: #FFE5E5;
}

.admin-record-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.admin-field-line {
  color: #2F274E;
}

.admin-field-line strong {
  color: #79718E;
  font-size: 0.78rem;
  margin-right: 4px;
}

.admin-empty-notice {
  text-align: center;
  padding: 36px 16px;
  background: #FAF8FE;
  border: 1.5px dashed #E2D9FA;
  border-radius: 20px;
  color: #79718E;
  font-size: 0.88rem;
}

.admin-section-box {
  background: #FFFFFF;
  border: 1.5px solid #EFEAF6;
  border-radius: 24px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #17103A;
  letter-spacing: -0.02em;
}

.admin-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #FAF8FE;
  border-radius: 14px;
  font-size: 0.88rem;
}

/* 회원관리 목록 / 상세 전용 스타일 */
.admin-member-view-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.admin-sub-guide {
  font-size: 0.84rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 4px;
}

.admin-member-total-badge {
  font-size: 0.86rem;
  font-weight: 800;
  color: #6D43F9;
  background: #F4EFFD;
  border: 1.5px solid #DFCEFC;
  padding: 12px 18px;
  border-radius: 16px;
  white-space: nowrap;
}

.admin-member-row-clickable {
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.admin-member-row-clickable:hover td {
  background-color: #F8FAFF !important;
}

.admin-member-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.admin-member-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-member-back-btn:hover {
  background: #6D43F9;
  border-color: #6D43F9;
  color: #FFFFFF;
  transform: translateX(-2px);
}

.admin-member-detail-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-member-detail-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.admin-member-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.admin-member-sub-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.admin-member-sub-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
}

/* 회원 상세 페이지 하단 탭 (마음기록 / 챌린지 참여기록) */
.admin-member-tab-section {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.admin-member-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

/* 회원 상세 내 마음기록 서브 필터 툴바 */
.admin-member-sub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0 12px;
}

.admin-sub-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
}

.admin-sub-search-input {
  flex: 1;
  height: 42px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 0.88rem;
  color: #1E293B;
  outline: none;
  transition: all var(--transition-fast);
}

.admin-sub-search-input:focus {
  background: #FFFFFF;
  border-color: #6D43F9;
  box-shadow: 0 0 0 3px rgba(109, 67, 249, 0.12);
}

.admin-sub-filter-select {
  height: 42px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  outline: none;
  cursor: pointer;
}

.admin-member-tab-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-member-detail-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-member-detail-tab-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.admin-member-detail-tab-btn.is-active {
  background: #6D43F9;
  border-color: #6D43F9;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(109, 67, 249, 0.28);
}

.admin-member-tab-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #475569;
}

.admin-member-detail-tab-btn.is-active .admin-member-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.admin-member-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* 리포트 한 행 옆 아이콘 조회 버튼 */
.admin-tbl-report-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #F4EFFD;
  border: 1.2px solid #DFCEFC;
  color: #6D43F9;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(109, 67, 249, 0.08);
  transition: all var(--transition-bounce);
}

.admin-tbl-report-icon-btn:hover {
  background: #6D43F9;
  border-color: #6D43F9;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 67, 249, 0.28);
}

.admin-tbl-report-icon-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* MyPage Profile Auth Button */
.user-profile-card {
  justify-content: space-between;
}

.user-profile-card .profile-info {
  flex: 1;
  min-width: 0;
}

.profile-auth-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  color: var(--purple-600);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.profile-auth-btn:hover {
  background: var(--purple-600);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   15-B. 개인정보 조회 및 수정 페이지 (첨부 시안 1:1 일치 디자인)
   -------------------------------------------------------------------------- */
.personal-info-modal-backdrop {
  padding: 0;
  background: rgba(34, 24, 64, 0.45);
  z-index: 114;
}

.personal-info-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #FAF7FF 0%, #F4EDFD 50%, #ECE2FC 100%);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(45, 25, 95, 0.25);
}

.personal-info-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFE6FA;
  flex-shrink: 0;
}

.personal-info-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F4EFFD;
  border: 1px solid #E4DAFA;
  color: #2A204A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.personal-info-back-btn:hover {
  background: #FFFFFF;
  color: var(--purple-600);
}

.personal-info-back-btn svg {
  width: 22px;
  height: 22px;
}

.personal-info-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #17113A;
  letter-spacing: -0.025em;
}

.personal-info-topbar-spacer {
  width: 38px;
  height: 38px;
}

.personal-info-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 18px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.personal-info-scroll-body::-webkit-scrollbar {
  width: 4px;
}

.personal-info-scroll-body::-webkit-scrollbar-thumb {
  background: #D9CEF8;
  border-radius: 999px;
}

/* 1. 상단 이메일 박스 (시안 1:1) */
.user-info-email-box {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #ECE4F8;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(110, 85, 200, 0.04);
}

.user-info-email-icon {
  width: 24px;
  height: 24px;
  color: #8C82A8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-info-email-icon svg {
  width: 22px;
  height: 22px;
}

.user-info-email-input {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1B133A;
  background: transparent;
  border: none;
  outline: none;
  letter-spacing: -0.01em;
}

/* 2. 자녀 등록 섹션 헤더 (시안 1:1) */
.info-child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 2px;
}

.info-child-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-child-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: #17113A;
  letter-spacing: -0.025em;
}

.info-child-add-btn {
  font-size: 0.88rem;
  font-weight: 800;
  color: #6D43F9;
  background: #EFE7FD;
  border: 1px solid #E1D2FC;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-bounce);
}

.info-child-add-btn:hover {
  background: #E4D5FB;
  transform: translateY(-1px);
}

/* 3. 자녀 카드 목록 컨테이너 (시안 1:1) */
.info-child-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-child-card {
  background: #FFFFFF;
  border: 1.5px solid #F0EAFB;
  border-radius: 26px;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(110, 85, 200, 0.05);
  transition: all var(--transition-bounce);
}

.info-child-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-child-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-child-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-child-avatar svg {
  width: 100%;
  height: 100%;
}

.info-child-hearts {
  width: 22px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-child-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ✏️ 수정 버튼 (시안 1:1) */
.info-child-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1.5px solid #BCA4F9;
  color: #6D43F9;
  font-size: 0.86rem;
  font-weight: 700;
  transition: all var(--transition-bounce);
}

.info-child-edit-btn:hover {
  background: #F4EFFD;
  border-color: #6D43F9;
  transform: translateY(-1px);
}

.info-child-edit-btn.is-editing {
  background: #6D43F9;
  color: #FFFFFF;
  border-color: #6D43F9;
}

.info-child-delete-btn {
  display: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rose-500);
  background: #FFF5F5;
  border: 1px solid var(--rose-200);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.info-child-card.is-editing-mode .info-child-delete-btn {
  display: inline-flex;
}

.info-child-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6D43F9;
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.info-child-toggle-btn:hover {
  background: #F4EFFD;
}

.info-child-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.info-child-card.is-collapsed .info-child-body {
  display: none;
}

.info-child-card.is-collapsed .info-child-toggle-btn svg {
  transform: rotate(180deg);
}

/* 자녀 카드 내부 필드들 (이름, 성별, 나이 - 시안 1:1) */
.info-child-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-child-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-child-label {
  width: 44px;
  font-size: 1rem;
  font-weight: 800;
  color: #17113A;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.info-child-input-box {
  flex: 1;
  height: 48px;
  background: #FFFFFF;
  border: 1.5px solid #ECE4F8;
  border-radius: 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.info-child-card.is-editing-mode .info-child-input-box {
  background: #FAF8FE;
  border-color: #BCA4F9;
}

.info-child-card.is-editing-mode .info-child-input-box:focus-within {
  border-color: #6D43F9;
  box-shadow: 0 0 0 3px rgba(109, 67, 249, 0.12);
}

.info-child-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1B133A;
  outline: none;
}

.info-child-input:read-only {
  cursor: default;
}

/* 성별 선택 토글 버튼 (수정 모드일 때 선택 가능) */
.info-child-gender-picker {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.info-child-card.is-editing-mode .info-child-gender-picker {
  display: grid;
}

.info-child-card.is-editing-mode .info-gender-readonly-box {
  display: none;
}

.info-gender-choice-btn {
  height: 48px;
  border-radius: 14px;
  background: #F5EEFD;
  border: 1.5px solid #ECE4F8;
  font-size: 0.92rem;
  font-weight: 700;
  color: #4A4266;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-bounce);
}

.info-gender-choice-btn.is-active {
  background: #E8DCFD;
  border-color: #7B4DFF;
  color: #5527E6;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(110, 68, 249, 0.16);
}

/* 하단 수정 내용 저장 CTA 버튼 */
.personal-info-save-btn {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(90deg, #8A64FF 0%, #683AF8 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  box-shadow: 0 10px 24px -4px rgba(104, 58, 248, 0.42), inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-bounce);
}

.personal-info-save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(104, 58, 248, 0.52);
}

/* --------------------------------------------------------------------------
   15-C. 비밀번호 변경 페이지 (첨부 시안 1:1 일치 디자인)
   -------------------------------------------------------------------------- */
.change-password-modal-backdrop {
  padding: 0;
  background: rgba(34, 24, 64, 0.45);
  z-index: 114;
}

.change-password-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #FAF7FF 0%, #F5EEFE 50%, #ECE2FC 100%);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(45, 25, 95, 0.25);
}

.change-pw-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #EFE6FA;
  flex-shrink: 0;
}

.change-pw-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F4EFFD;
  border: 1px solid #E4DAFA;
  color: #2A204A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.change-pw-back-btn:hover {
  background: #FFFFFF;
  color: var(--purple-600);
}

.change-pw-back-btn svg {
  width: 22px;
  height: 22px;
}

.change-pw-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #17113A;
  letter-spacing: -0.025em;
}

.change-pw-topbar-spacer {
  width: 38px;
  height: 38px;
}

.change-pw-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
}

.change-pw-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 시안 1:1 일치 화이트 둥근 입력창 */
.change-pw-input-box {
  width: 100%;
  height: 58px;
  background: #FFFFFF;
  border: 1.5px solid #E8E0F5;
  border-radius: 20px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 3px 12px rgba(110, 85, 200, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.change-pw-input-box:focus-within {
  border-color: #7B4DFF;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.12);
}

.change-pw-icon {
  width: 24px;
  height: 24px;
  color: #7A6F9E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.change-pw-icon svg {
  width: 22px;
  height: 22px;
}

.change-pw-input-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1E163B;
  outline: none;
  letter-spacing: -0.015em;
}

.change-pw-input-field::placeholder {
  color: #6B6285;
  font-size: 0.93rem;
  font-weight: 500;
}

.change-pw-eye-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #7A6F9E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.change-pw-eye-btn:hover {
  color: #6336F8;
  background: rgba(123, 77, 255, 0.08);
}

.change-pw-eye-btn svg {
  width: 21px;
  height: 21px;
}

/* 시안 1:1 일치 둥근 보라색 수정하기 버튼 */
.change-pw-submit-btn {
  width: 100%;
  height: 58px;
  border-radius: 20px;
  background: #683AF8;
  color: #FFFFFF;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  box-shadow: 0 10px 26px -4px rgba(104, 58, 248, 0.42), inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-bounce);
}

.change-pw-submit-btn:hover {
  background: #5B2DE6;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -4px rgba(104, 58, 248, 0.52);
}

/* --------------------------------------------------------------------------
   16. 마음 기록하기 로그인 화면 (첨부 시안 1:1 일치 디자인)
   -------------------------------------------------------------------------- */
.login-modal-backdrop {
  padding: 0;
  background: rgba(34, 24, 64, 0.45);
  z-index: 115;
}

.login-screen-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #F4EEFF 0%, #ECE1FE 45%, #E0D2FC 100%);
  padding: 22px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 20px 60px rgba(45, 25, 95, 0.25);
}

.login-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px 6px;
  z-index: 5;
}

.login-back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid #B7AED2;
  color: #2A204A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.login-back-btn:hover {
  background: #FFFFFF;
  border-color: #7B4DFF;
  color: #6236FF;
}

.login-back-btn svg {
  width: 22px;
  height: 22px;
}

.login-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-brand-logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-butterfly-svg {
  width: 100%;
  height: 100%;
}

.login-brand-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  color: #6336F8;
  letter-spacing: -0.035em;
}

.login-topbar-spacer {
  width: 44px;
  height: 44px;
}

/* Peeking Pink Heart Character Art */
.login-hero-art {
  width: 100%;
  max-width: 360px;
  margin-top: 8px;
  margin-bottom: -16px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}

.login-mascot-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Main White Rounded Card Sheet */
.login-card-sheet {
  position: relative;
  z-index: 3;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 38px;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 50px -12px rgba(92, 62, 175, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.login-card-title {
  font-family: var(--font-sans);
  font-size: 1.88rem;
  font-weight: 800;
  color: #18113C;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.login-card-sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: #524B6E;
  line-height: 1.52;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input-box {
  width: 100%;
  height: 56px;
  background: #F4F0FD;
  border: 1.5px solid #E5DDF8;
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: text;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.login-input-box:focus-within {
  background: #FFFFFF;
  border-color: #7B4DFF;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.14);
}

.login-input-icon {
  width: 22px;
  height: 22px;
  color: #887FA8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-input-icon svg {
  width: 20px;
  height: 20px;
}

.login-input-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1E163B;
}

.login-input-field::placeholder {
  color: #8D84AB;
  font-weight: 500;
}

.login-pw-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #887FA8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.login-pw-toggle-btn:hover {
  color: #6236FF;
  background: rgba(123, 77, 255, 0.08);
}

.login-pw-toggle-btn svg {
  width: 21px;
  height: 21px;
}

/* Remember Checkbox Row */
.login-remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 4px 2px 6px;
  cursor: pointer;
  user-select: none;
}

.login-remember-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.login-remember-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.6px solid #8A81A9;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.login-remember-box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.7);
  transition: all var(--transition-fast);
}

.login-remember-checkbox:checked + .login-remember-box {
  background: #7348F8;
  border-color: #7348F8;
}

.login-remember-checkbox:checked + .login-remember-box svg {
  opacity: 1;
  transform: scale(1);
}

.login-remember-label {
  font-size: 0.94rem;
  font-weight: 600;
  color: #231B42;
  letter-spacing: -0.015em;
}

/* 로그인 Primary CTA Button */
.login-submit-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(180deg, #8B63FF 0%, #6A3DF8 100%);
  color: #FFFFFF;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px rgba(106, 61, 248, 0.42), inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-bounce);
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(106, 61, 248, 0.52);
}

/* 또는 Divider */
.login-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background: #E5DFF3;
}

.login-divider-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: #7F7799;
}

/* 회원가입 Button */
.login-signup-btn {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: #EFE9FC;
  color: #6236FF;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-bounce);
}

.login-signup-btn:hover {
  background: #E4DAFA;
  transform: translateY(-1px);
}

.login-signup-btn svg {
  width: 18px;
  height: 18px;
}

/* 아이디 찾기 | 비밀번호 찾기 Footer */
.login-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.login-link-btn {
  font-size: 0.9rem;
  font-weight: 600;
  color: #352E52;
  transition: color var(--transition-fast);
}

.login-link-btn:hover {
  color: #6236FF;
}

.login-link-sep {
  font-size: 0.85rem;
  color: #CFC8E4;
}

.login-bottom-clouds {
  position: absolute;
  bottom: -18px;
  left: -20px;
  right: -20px;
  height: 64px;
  background:
    radial-gradient(circle at 12% 80%, rgba(210, 192, 250, 0.65) 0%, transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(210, 192, 250, 0.65) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   17. 회원가입 화면 (시안 1:1 일치 디자인)
   -------------------------------------------------------------------------- */
.signup-modal-backdrop {
  padding: 0;
  background: rgba(34, 24, 64, 0.45);
  z-index: 116;
}

.signup-screen-dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #FDFBFF 0%, #F5EEFE 50%, #ECE2FC 100%);
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 20px 60px rgba(45, 25, 95, 0.25);
}

.signup-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 8px;
}

.signup-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #E4DAFA;
  color: #2A204A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.signup-back-btn:hover {
  background: #FFFFFF;
  border-color: #7B4DFF;
  color: #6236FF;
}

.signup-back-btn svg {
  width: 22px;
  height: 22px;
}

.signup-brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signup-brand-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signup-butterfly-svg {
  width: 100%;
  height: 100%;
}

.signup-brand-title {
  font-family: var(--font-sans);
  font-size: 1.42rem;
  font-weight: 800;
  color: #6336F8;
  letter-spacing: -0.03em;
}

.signup-topbar-spacer {
  width: 40px;
  height: 40px;
}

/* 회원가입 타이틀 및 서브텍스트 */
.signup-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 14px 0 20px;
}

.signup-title-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signup-main-title {
  font-family: var(--font-sans);
  font-size: 1.95rem;
  font-weight: 800;
  color: #17113A;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.signup-sparkle-deco {
  position: absolute;
  top: -8px;
  right: -18px;
  width: 16px;
  height: 16px;
}

.signup-sparkle-deco svg {
  width: 100%;
  height: 100%;
}

.signup-sub-desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: #554D6C;
  line-height: 1.45;
  margin-top: 6px;
  letter-spacing: -0.015em;
}

/* Form Styles */
.signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-input-box {
  width: 100%;
  height: 54px;
  background: #FFFFFF;
  border: 1.5px solid #ECE4F8;
  border-radius: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: text;
  box-shadow: 0 2px 8px rgba(100, 80, 160, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.signup-input-box:focus-within {
  border-color: #7B4DFF;
  box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.12);
}

.signup-input-icon {
  width: 22px;
  height: 22px;
  color: #8C82A8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signup-input-icon svg {
  width: 20px;
  height: 20px;
}

.signup-input-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1F163C;
}

.signup-input-field::placeholder {
  color: #9A92B6;
  font-weight: 500;
}

.signup-pw-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #8C82A8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.signup-pw-toggle-btn:hover {
  color: #6236FF;
  background: rgba(123, 77, 255, 0.08);
}

.signup-pw-toggle-btn svg {
  width: 21px;
  height: 21px;
}

/* 자녀 등록 섹션 */
.signup-child-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.signup-child-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.child-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.child-accent-bar {
  width: 5px;
  height: 18px;
  border-radius: 999px;
  background: #9B82F4;
}

.child-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #18113A;
  letter-spacing: -0.025em;
}

.child-add-pill-btn {
  font-size: 0.82rem;
  font-weight: 800;
  color: #6D43F9;
  background: #EFE7FD;
  border: 1px solid #DFCEFC;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-bounce);
}

.child-add-pill-btn:hover {
  background: #E3D4FB;
  transform: translateY(-1px);
}

.child-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.child-card-box {
  background: #FDFBFF;
  border: 1.5px solid #EFE6FB;
  border-radius: 22px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(110, 85, 180, 0.04);
}

.child-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.child-card-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.child-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.child-avatar-svg {
  width: 100%;
  height: 100%;
}

.child-deco-hearts {
  width: 24px;
  height: 20px;
}

.child-deco-hearts svg {
  width: 100%;
  height: 100%;
}

.child-card-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6E44F9;
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.child-card-toggle-btn:hover {
  background: #F2EBFC;
}

.child-card-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.child-card-box.is-collapsed .child-card-body {
  display: none;
}

.child-card-box.is-collapsed .child-card-toggle-btn svg {
  transform: rotate(180deg);
}

.child-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.child-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.child-field-label {
  width: 40px;
  font-size: 0.94rem;
  font-weight: 800;
  color: #1A1237;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.child-field-input-box {
  flex: 1;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid #ECE4F8;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
}

.child-field-input-box:focus-within {
  border-color: #7B4DFF;
}

.child-name-input,
.child-age-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1F163C;
}

.child-name-input::placeholder,
.child-age-input::placeholder {
  color: #A098BD;
}

/* 성별 선택 버튼 그룹 */
.child-gender-group {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.child-gender-btn {
  height: 42px;
  border-radius: var(--radius-pill);
  background: #F4EFFD;
  border: 1.5px solid #ECE4F8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4C4468;
  transition: all var(--transition-bounce);
}

.child-gender-btn:hover {
  background: #EAE0FC;
}

.child-gender-btn.is-selected {
  background: #E8DCFD;
  border-color: #8B65F8;
  color: #5527E6;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(110, 68, 249, 0.18);
}

.gender-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

/* 회원가입 완료 버튼 */
.signup-submit-btn {
  width: 100%;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(90deg, #7E56F8 0%, #6336F8 100%);
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  box-shadow: 0 10px 24px -4px rgba(99, 54, 248, 0.42), inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-bounce);
}

.signup-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(99, 54, 248, 0.52);
}

/* 이미 계정이 있나요? 로그인 링크 */
.signup-footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.9rem;
}

.signup-footer-desc {
  color: #58506E;
  font-weight: 500;
}

.signup-login-link-btn {
  color: #6336F8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.signup-login-link-btn:hover {
  color: #481DE0;
}
```