:root {
  /* Colors - Backgrounds */
  --bg-main: #D4E2F0;
  /* 파스텔 아기 블루 */
  --bg-pattern: rgba(255, 255, 255, 0.8);
  /* 화이트 도트 */
  --bg-card: #EAF3FB;
  /* or #E8F1F8 */
  --bg-tab-inactive: #E8EEF3;

  /* Colors - TopBar & Headers */
  --topbar-grad-start: #5E9BEA;
  --topbar-grad-mid: #2E6FC8;
  --topbar-grad-end: #1E4D97;
  --topbar-border: #153A74;

  /* Colors - Borders */
  --border-outer: #2E5FA7;
  --border-inner: #9EBFE3;
  --border-frame: #4A79B6;
  --border-dotted: #3D73B0;

  /* Colors - Texts */
  --text-dark: #163A72;
  --text-title: #102C58;
  --text-sub: #4E6488;
  --text-light: #6C7F9E;

  /* Colors - Primary Green Button */
  --btn-grad-top: #54E35D;
  --btn-grad-mid: #21BF36;
  --btn-grad-bottom: #148C22;
  --btn-border: #136A1B;
  --btn-highlight: #B9F8BE;
  --btn-shadow-color: #295038;

  /* Colors - Points */
  --point-yellow: #F4D53D;

  /* Shadows */
  --shadow-rigid: 4px 4px 0 #3A6090;

  /* Layout/Spacing */
  --container-max-width: 480px;
  /* limits width on desktop, but behaves like mobile */
  --padding-side: 16px;
  --gap-section: 16px;
  --padding-card: 16px;
  --padding-section: 18px;
  --topbar-height: 44px;
  --tabbar-height: 84px;
}

/* ==================================================
   Global Resets & Fonts
================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: 'DungGeunMo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Galmuri9';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-10-21@1.0/Galmuri9.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* 부드럽고 세련된 현대식 폰트 렌더링 활성화 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f0f0;
  /* Outer background for desktop framing */
  color: var(--text-dark);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* 모바일에서 스크롤바 숨김 (레이아웃 시프트 방지) */
#app::-webkit-scrollbar { display: none; }
#app { -ms-overflow-style: none; scrollbar-width: none; }

/* App Shell (Mobile Container) */
#app {
  max-width: var(--container-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-main);
  /* Dot pattern background */
  background-image: radial-gradient(var(--bg-pattern) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  position: relative;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* Main Content Area */
.main-content {
  padding-top: calc(var(--topbar-height) + 44px);
  /* topbar + bgm bar */
  padding-bottom: 96px;
  padding-left: var(--padding-side);
  padding-right: var(--padding-side);
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
  width: 100%;
  box-sizing: border-box;
}

/* ==================================================
   Typography Classes
================================================== */
.pixel-font {
  font-family: 'DungGeunMo', sans-serif;
  letter-spacing: 0.06em;
}

.text-sub {
  color: var(--text-sub);
}

.text-light {
  color: var(--text-light);
}

.text-title {
  color: var(--text-title);
  font-weight: 700;
}

/* ==================================================
   UI Components - TopBar
================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-width);
  height: var(--topbar-height);
  background: linear-gradient(180deg, var(--topbar-grad-start) 0%, var(--topbar-grad-mid) 40%, var(--topbar-grad-end) 100%);
  border-bottom: 2px solid var(--topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--padding-side);
  z-index: 100;
  color: white;
}

.top-bar h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.top-bar .date {
  font-size: 13px;
  font-weight: 600;
}

/* ==================================================
   UI Framework - Retro Cards
================================================== */
.retro-frame-outer {
  background: var(--bg-card);
  border: 2px solid var(--border-outer);
  padding: 2px;
  box-shadow: var(--shadow-rigid), inset 1px 1px 0 rgba(255, 255, 255, 0.75);
}

.retro-frame-inner {
  border: 2px solid var(--border-inner);
  padding: var(--padding-section);
}

.retro-card-header {
  background: linear-gradient(180deg, var(--topbar-grad-start) 0%, var(--topbar-grad-mid) 50%, var(--topbar-grad-end) 100%);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: white;
  border-bottom: 2px solid var(--border-outer);
  /* Place header before inner frame inside inner card? No, header is part of outer usually */
}

/* Specific Card Layouts - 100% Exact Retro Replication */
.hero-card {
  background: #EAF3FB;
  border: 2px solid #2E5FA7;
  border-radius: 0;
  /* removing outer shadow to keep it strictly 2D/Windows 98 flat frame */
}

.hero-header {
  height: 48px;
  background: linear-gradient(180deg, #5E9BEA 0%, #2E6FC8 50%, #1E4D97 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: white;
  border-bottom: 2px solid #2E5FA7;
}

.hero-header-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
}


.hero-header-decoration {
  display: flex;
  gap: 4px;
}

.hero-header-decoration div {
  width: 12px;
  height: 12px;
  background-color: #EAF3FB;
  border: 1px solid #9EBFE3;
}

.hero-card-body {
  border: 2px solid #9EBFE3;
  padding: 18px;
  border-radius: 0;
  /* ensuring nested frame effect is exact */
}

.hero-top-row {
  display: flex;
  align-items: center;
}

.hero-avatar-frame {
  width: 120px;
  height: 120px;
  border: 2px solid #2E5FA7;
  padding: 2px;
  background: white;
  flex-shrink: 0;
  border-radius: 0;
  margin-right: 16px;
}

.hero-avatar-inner {
  border: 2px solid #9EBFE3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: #EAF3FB;
}

.hero-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-quote-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hero-quote {
  font-size: 22px;
  font-weight: 700;
  color: #102C58;
}

.hero-name {
  font-size: 14px;
  color: #4E6488;
  margin-top: 8px;
}

.dotted-divider {
  border-bottom: 2px dotted #3D73B0;
  width: 100%;
  margin: 12px 0;
}

.hero-desc {
  font-size: 14px;
  color: #4E6488;
  word-spacing: 0.25em;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.btn-primary {
  width: 100%;
  height: 58px;
  background: linear-gradient(180deg, #54E35D 0%, #21BF36 50%, #148C22 100%);
  border: 2px solid #136A1B;
  box-shadow: inset 0 2px 0 #B9F8BE;
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  border-radius: 0;
  margin-top: 16px;
  transition: transform 0.05s ease;
}

.btn-primary:active {
  transform: translateY(2px) translateX(2px);
  background: linear-gradient(180deg, #21BF36 0%, #148C22 100%);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.2);
}

.hero-secondary-action {
  text-align: right;
  font-size: 13px;
  color: #4E6488;
  margin-top: 8px;
  cursor: pointer;
  font-weight: 700;
}

/* ==================================================
   Today's Top 3 Tabs
================================================== */
.tabs-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tabs-title {
  font-size: 13px;
  color: var(--text-sub);
}

.tabs-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tab-btn {
  flex: 1;
  height: 44px;
  background: var(--bg-tab-inactive);
  border: 2px solid var(--border-outer);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-rigid);
  transition: transform 0.08s ease;
}

.tab-btn.active {
  background: linear-gradient(180deg, #5D97E3 0%, #2D71C8 100%);
  color: white;
  border: 2px solid #C8A017;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-rigid);
}

.tab-btn:active {
  transform: translateY(2px) translateX(2px);
  box-shadow: none;
}

/* ==================================================
   Trending List
================================================== */
.trending-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.section-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-title);
  margin-left: 4px;
  letter-spacing: 0.12em;
  word-spacing: 0.2em;
}


.trending-list-card {
  padding: 8px 16px;
}

.trending-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  cursor: pointer;
}

.trending-item:active {
  background-color: rgba(0, 0, 0, 0.03);
}

.trending-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border-outer);
  background: white;
  padding: 2px;
  flex-shrink: 0;
}

.trending-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-inner);
}

.trending-info {
  flex-grow: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}

.trending-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.trending-quote {
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.trending-arrow {
  color: var(--text-light);
  font-size: 14px;
}


/* ==================================================
   Bottom Tab Bar
================================================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-width);
  height: var(--tabbar-height);
  background: var(--bg-card);
  border-top: 2px solid var(--border-outer);
  display: flex;
  padding: 8px 12px;
  gap: 8px;
  z-index: 100;
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  border: 2px solid var(--border-outer);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), var(--shadow-rigid);
  cursor: pointer;
  color: var(--text-sub);
  transition: transform 0.08s ease;
}

.bottom-tab.active {
  background: linear-gradient(180deg, #5D97E3 0%, #2D71C8 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--shadow-rigid);
}

.bottom-tab:active {
  transform: translateY(2px) translateX(2px);
  box-shadow: none;
}

.tab-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.tab-label {
  font-size: 12px;
  font-weight: 700;
}

/* Helper Utitlies */
.mt-16 {
  margin-top: 16px;
}

/* ====================================================
   ★ CYWORLD RETRO VIBES ♪ ✦ ♡ ★
   ==================================================== */

/* --- Keyframe Animations --- */
@keyframes twinkle-star {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  20% {
    opacity: 0.2;
    transform: scale(0.6) rotate(20deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.3) rotate(-10deg);
  }

  80% {
    opacity: 0.5;
    transform: scale(0.85) rotate(12deg);
  }
}

@keyframes blink-note {

  0%,
  40%,
  60%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes counter-flip {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- BGM Bar (싸이월드 BGM 플레이어) --- */
.bgm-bar {
  position: fixed;
  top: var(--topbar-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--container-max-width);
  height: 44px;
  background: linear-gradient(90deg, #0B2248 0%, #1E4D97 45%, #0B2248 100%);
  border-bottom: 2px solid #07173A;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 99;
  overflow: hidden;
}

.bgm-note {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 24px;
  color: #F4D53D;
  animation: blink-note 1s step-start infinite;
  flex-shrink: 0;
  line-height: 1;
}

.bgm-badge {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 14px;
  color: #F4D53D;
  border: 1px solid #C8A017;
  padding: 2px 8px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.bgm-ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  /* z-index 및 ::after 레이어를 위한 기준점 */
}

/* 텍스트 위를 덮는 '물리적인 전광판 구멍 패널' 필터 */
.bgm-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 투명한 원형 구멍 외의 바탕선 불투명도를 0.4로 대폭 낮춤.
     글씨가 선 뒤로 지나갈 때 완전히 막혀서 잘려 보이지 않고 빛이 투과되도록 함 */
  background-image: radial-gradient(circle, transparent 1px, rgba(11, 34, 72, 0.4) 1px);
  background-size: 3px 3px;
  pointer-events: none;
  /* 클릭 방해 금지 */
  z-index: 10;
}

.bgm-ticker-wrap:hover .bgm-ticker-text {
  color: #FFE45E;
}

/* 텍스트를 2배 반복 → translateX(-50%)로 끊김 없이 루프 */
.bgm-ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'DungGeunMo', sans-serif;
  font-size: 20px;
  /* 폰트를 키워 가독성을 높임. 상단의 도트망이 찌그러짐을 예쁘게 가려줍니다. */
  color: #FFAA00;
  font-weight: 700;
  /* 글씨를 다시 두껍게 만들어 구멍 사이로 주황빛이 더 꽉 채워지게 함 */
  letter-spacing: 0.1em;
  font-smooth: never;
  -webkit-font-smoothing: none;
  animation: scroll-ticker 20s linear infinite;
  line-height: 1;
  padding-top: 4px;
  /* 픽셀 폰트 특성상 텍스트 박스 상단으로 치우치는 현상을 아래로 눌러 정중앙을 맞춤 */
}

.bgm-play-btn {
  flex-shrink: 0;
  font-family: 'DungGeunMo', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Visitor Counter Widget --- */
.visitor-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

.visitor-widget-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.visitor-title {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 12px;
  color: var(--text-title);
  letter-spacing: 0.08em;
}

.visitor-counts-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-count-item {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.visitor-count-label {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 10px;
  color: var(--text-sub);
  letter-spacing: 0.05em;
}

.visitor-count-num {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-title);
  animation: counter-flip 0.4s ease both;
}

.visitor-vdivider {
  width: 1px;
  height: 12px;
  background: var(--border-inner);
}

.token-badge {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 14px;
  color: var(--text-title);
  background: white;
  border: 1px solid var(--border-inner);
  padding: 2px 6px;
  display: inline-block;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.attendance-btn {
  background: linear-gradient(180deg, #F4D53D 0%, #E8B610 100%);
  border: 1px solid #B08200;
  color: white;
  font-size: 13px;
  padding: 3px 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 1px 1px 0 #8B6700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
}

.attendance-btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* --- Notice Strip --- */
.cw-notice-strip {
  background: linear-gradient(90deg, #FFFAE0, #FFFDE8, #FFFAE0);
  border: 1px solid #D4B800;
  border-left: 4px solid #C8A017;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cw-notice-text {
  font-family: 'DungGeunMo', sans-serif;
  font-size: 11px;
  color: #7A5A00;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Decorative Divider --- */
.cw-deco-divider {
  text-align: center;
  font-family: 'DungGeunMo', sans-serif;
  font-size: 11px;
  color: #9AB7D8;
  letter-spacing: 0.3em;
  padding: 2px 0;
  user-select: none;
}

/* 폰트는 본문의 Pretendard를 상속받습니다. */
.hero-header-title,
.hero-quote,
.hero-name,
.hero-desc,
.hero-secondary-action,
.btn-primary,
.tabs-title,
.tab-btn,
.section-label,
.trending-name,
.trending-quote,
.trending-arrow,
.bottom-tab .tab-label {
  font-family: 'Pretendard', sans-serif;
}

.hero-desc {
  line-height: 1.6 !important;
}

.hero-quote {
  font-size: 24px !important;
}

/* --- Enhanced hero card shadow (Windows XP 3D feel) --- */
.hero-card {
  box-shadow: 4px 4px 0 #3A6090, inset 1px 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Background dot pattern is controlled by :root variables */

/* ==================================================
   Person Detail Page Components
================================================== */
.view-wrapper {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* detail-topbar inherits from top-bar, just adding nav items */
.detail-topbar h1 {
  flex: 1;
  text-align: center;
  font-size: 16px;
  margin: 0;
}

.detail-topbar .nav-left,
.detail-topbar .nav-right {
  font-size: 13px;
  font-weight: bold;
  width: 60px;
}

.detail-topbar .nav-right {
  text-align: right;
  width: auto;
  font-size: 12px;
}

.detail-main-content {
  padding-top: calc(var(--topbar-height) + 16px);
  padding-bottom: 96px;
  padding-left: var(--padding-side);
  padding-right: var(--padding-side);
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

/* Action Row */
.action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-retro-sub {
  background: #E8EEF3;
  border: 1px solid #9EBFE3;
  color: #4E6488;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  box-shadow: 1px 1px 0 #3A6090;
  cursor: pointer;
  outline: none;
}

.btn-retro-sub:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

/* Core Info Card */
.core-info-card {
  background: #F4F8FB;
  /* Very light blue-gray */
  padding: 16px;
  /* Frame inherits retro-frame-outer */
  border-radius: 0;
}

.core-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.core-avatar-frame {
  width: 64px;
  height: 64px;
  border: 2px solid #2E5FA7;
  padding: 2px;
  background: white;
  flex-shrink: 0;
}

.core-avatar-inner {
  border: 1px solid #9EBFE3;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #EAF3FB;
}

.core-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-title-group {
  display: flex;
  flex-direction: column;
}

.core-name {
  font-size: 20px;
  font-weight: 800;
  color: #102C58;
}

.core-subtitle {
  font-size: 13px;
  color: #4E6488;
  margin-top: 4px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.core-section-title {
  font-size: 12px;
  color: #6C7F9E;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.core-achievement-list {
  padding-left: 18px;
  margin-bottom: 16px;
}

.core-achievement-list li {
  font-size: 13px;
  color: #163A72;
  margin-bottom: 6px;
  line-height: 1.4;
  list-style-type: square;
}

.core-achievement-list li::marker {
  color: #4A79B6;
}

.solid-divider {
  width: 2px;
  height: 14px;
  background: #9EBFE3;
  margin-bottom: 12px;
}

.core-summary-text {
  font-size: 14px;
  color: #4E6488;
  line-height: 1.6;
}

/* Divider Title */
.section-divider-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-divider-title.left-align {
  justify-content: flex-start;
  gap: 8px;
}

.hr-line {
  flex: 0 1 40px;
  height: 1px;
  background: #9EBFE3;
}

.hr-line.flex-match {
  flex: 1;
}

.title-text {
  font-size: 13px;
  color: #4E6488;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Featured Book Carousel - Orbit System */
.cf-orbit {
  position: relative;
  width: 100%;
  height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 16px 0;
  overflow: hidden;
}

/* 모든 책 아이템 공통 - transition이 핵심! */
.cf-item {
  position: absolute;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.cf-item-frame {
  width: 165px;
  height: 240px;
  padding: 0;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 16px rgba(16, 44, 88, 0.2);
}

.cf-item-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 화살표 버튼 */
.carousel-btn {
  background: #E8EEF3;
  border: 1px solid #9EBFE3;
  color: #4E6488;
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 0 #3A6090;
}

.carousel-btn:active {
  box-shadow: none;
}

.cf-btn-left,
.cf-btn-right {
  position: absolute;
  z-index: 15;
  top: 50%;
  transform: translateY(-50%);
}

.cf-btn-left {
  left: 4px;
}

.cf-btn-right {
  right: 4px;
}

/* 도서 정보 영역 */
.cf-info-area {
  text-align: center;
  position: relative;
  z-index: 5;
}

.cf-book-title {
  font-size: 16px;
  font-weight: bold;
  color: #102C58;
  margin-bottom: 6px;
  transition: opacity 0.3s;
}

.cf-book-meta {
  font-size: 13px;
  color: #4E6488;
  margin-bottom: 12px;
  transition: opacity 0.3s;
}

.carousel-book-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.book-frame-large {
  width: 140px;
  height: 200px;
  background: white;
  padding: 4px;
  margin-bottom: 16px;
  cursor: pointer;
}

.book-frame-small {
  width: 80px;
  height: 114px;
  background: white;
  padding: 2px;
  margin-bottom: 8px;
}

.book-cover-inner {
  border: 1px solid #9EBFE3;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-book-info {
  text-align: center;
  margin-bottom: 12px;
}

.book-title-lg {
  font-size: 16px;
  font-weight: bold;
  color: #102C58;
  margin-bottom: 4px;
}

.book-meta-lg {
  font-size: 12px;
  color: #4A79B6;
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  background: #C8D7E6;
  border: 1px solid #9EBFE3;
}

.dot.active {
  background: #102C58;
  border-color: #102C58;
}

/* Related Books */
.related-books-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.related-books-grid::-webkit-scrollbar {
  display: none;
}

.related-book-card {
  display: flex;
  flex-direction: column;
  min-width: 90px;
  width: 90px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.book-title-sm {
  font-size: 12px;
  font-weight: bold;
  color: #102C58;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  margin-bottom: 2px;
}

.book-author-sm {
  font-size: 11px;
  color: #6C7F9E;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Related People */
.related-people-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-card {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 12px;
  background: #EAF3FB;
  cursor: pointer;
}

.rp-card:active {
  background: #DCEAF7;
}

.rp-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid #2E5FA7;
  padding: 1px;
  background: white;
  flex-shrink: 0;
}

.rp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #9EBFE3;
}

.rp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rp-name {
  font-size: 14px;
  font-weight: bold;
  color: #102C58;
}

.rp-reason {
  font-size: 12px;
  color: #4E6488;
  margin-top: 2px;
}

.rp-arrow {
  color: #6C7F9E;
  font-size: 12px;
}

/* ==========================================
   Book Detail Page Styles (러버블 디자인 기준)
   ========================================== */

/* -- Author Link -- */
.bd-author-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 6px 10px;
  background: #F4F8FB;
  border: 1px solid #7c92b0;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0;
  margin-bottom: 20px;
}

.bd-author-link:active {
  background: #EAF3FB;
}

.bd-author-avatar-frame {
  width: 42px;
  height: 42px;
  border: 1px solid #9EBFE3;
  padding: 2px;
  background: white;
  flex-shrink: 0;
  overflow: hidden;
}

.bd-author-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.bd-author-text {
  display: flex;
  flex-direction: column;
}

.bd-author-label {
  font-size: 11px;
  color: #6C7F9E;
}

.bd-author-name {
  font-size: 15px;
  font-weight: bold;
  color: #102C58;
}

/* -- Book Cover Section -- */
.bd-cover-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.bd-cover-frame {
  width: 160px;
  height: 220px;
  padding: 4px;
  margin: 0 auto 16px auto;
  overflow: hidden;
}

.bd-cover-inner {
  border: 1px solid #9EBFE3;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bd-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bd-book-title {
  font-size: 20px;
  font-family: 'DungGeunMo', monospace;
  color: #102C58;
  margin-bottom: 8px;
}

.bd-book-sub-meta {
  font-size: 12px;
  color: #6C7F9E;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bd-meta-dot {
  color: #bdc3c7;
}

/* -- Meta Box -- */
.bd-meta-box {
  background: #F4F8FB;
  border-radius: 0;
  border: 1px solid #7c92b0;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 24px;
}

.bd-meta-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.bd-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 16px;
  column-gap: 12px;
}

.bd-meta-item {
  display: flex;
  flex-direction: column;
}

.bd-meta-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.bd-meta-value {
  font-size: 14px;
  color: #222;
  font-weight: 500;
}

/* -- Divider -- */
.bd-divider {
  width: 100%;
  height: 1px;
  background-color: #dce4ec;
  margin: 24px 0;
}

/* -- Hook Quote Section -- */
.bd-hook-section {
  text-align: center;
  padding: 16px 0;
}

.bd-hook-quote {
  font-size: 22px;
  font-weight: 800;
  color: #102C58;
  line-height: 1.5;
  margin-bottom: 10px;
  font-family: 'Pretendard', sans-serif;
}

.bd-hook-sub {
  font-size: 13px;
  color: #6C7F9E;
}

/* -- Summary Section -- */
.bd-summary-section {
  width: 100%;
}

.bd-section-title {
  font-size: 14px;
  font-weight: bold;
  color: #102C58;
  margin-bottom: 12px;
}

.bd-summary-text {
  font-size: 14px;
  color: #34495e;
  line-height: 1.8;
  word-break: keep-all;
}

.bd-summary-text.closed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-summary-toggle-btn {
  background: none;
  border: none;
  color: #4A79B6;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0 0 0;
  font-weight: bold;
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
}

/* -- CTA Section -- */
.bd-cta-section {
  padding: 8px 0;
}

.bd-coupang-disclaimer {
  font-size: 11px;
  color: #7f8c8d;
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}

/* -- Review Section -- */
.bd-review-section {
  width: 100%;
}

.bd-review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bd-review-title {
  font-size: 15px;
  font-weight: bold;
  color: #102C58;
}



.bd-review-list {
  display: flex;
  flex-direction: column;
}

.bd-review-box {
  background: #F4F8FB;
  border-radius: 0;
  border: 1px solid #7c92b0;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 12px;
}

.bd-review-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bd-review-nickname {
  font-weight: bold;
  font-size: 13px;
  color: #333;
}

.bd-review-stars {
  color: #FFB800;
  font-size: 13px;
  letter-spacing: 1px;
}

.bd-review-content {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
  word-break: keep-all;
}

.bd-review-date {
  font-size: 11px;
  color: #999;
}

.bd-review-write-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid #7c92b0;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  border-radius: 0;
  background: #F4F8FB;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}

.bd-review-write-btn:active {
  background: #ecf0f1;
}

/* -- Related People Section -- */
.bd-related-people-section {
  margin-top: 8px;
  margin-bottom: 24px;
}

.bd-rp-title {
  font-size: 12px;
  color: #7f8c8d;
  margin-bottom: 14px;
}

.bd-rp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-rp-card {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 14px;
  background: #EAF3FB;
  cursor: pointer;
  transition: background 0.15s;
}

.bd-rp-card:active {
  background: #DCEAF7;
}

.bd-rp-avatar-frame {
  width: 56px;
  height: 56px;
  border: 2px solid #2E5FA7;
  padding: 2px;
  background: white;
  flex-shrink: 0;
  overflow: hidden;
}

.bd-rp-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.bd-rp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bd-rp-name {
  font-size: 15px;
  font-weight: bold;
  color: #102C58;
  margin-bottom: 3px;
}

.bd-rp-reason {
  font-size: 12px;
  color: #4E6488;
}

.bd-rp-arrow {
  color: #4A79B6;
  font-size: 16px;
  flex-shrink: 0;
}

/* ==================================================
   마이페이지 고도화 스타일
   ================================================== */

/* 마이페이지 컨테이너 */
.my-page-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 카드 공통 */
.my-section-card {
  background: var(--bg-card);
  border: 2px solid var(--border-outer);
  box-shadow: var(--shadow-rigid), inset 1px 1px 0 rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.my-card-header {
  height: 42px;
  background: linear-gradient(180deg, var(--topbar-grad-start) 0%, var(--topbar-grad-mid) 50%, var(--topbar-grad-end) 100%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  gap: 6px;
  border-bottom: 2px solid var(--border-outer);
  position: relative;
}

.my-card-icon {
  color: #F4D53D;
  font-size: 16px;
  animation: twinkle-star 1.6s infinite;
}

.my-card-body {
  padding: 18px 16px;
  border: 2px solid var(--border-inner);
  margin: 2px;
}

.my-settings-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  filter: grayscale(1) brightness(2);
}

/* --- 회원가입 폼 --- */
.signup-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px dotted var(--border-dotted);
}

.signup-minimi {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  border: 2px solid var(--border-outer);
  padding: 3px;
  background: white;
  flex-shrink: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-title);
}

.form-input {
  width: 100%;
  height: 44px;
  border: 2px solid var(--border-outer);
  background: white;
  padding: 0 12px;
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;
  color: var(--text-dark);
  outline: none;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.08);
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: #5E9BEA;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(94, 155, 234, 0.2);
}

.form-input::placeholder {
  color: #a0b0c0;
  font-size: 13px;
}

/* iOS 자동 줌 방지 */
.form-input[type="text"],
.form-input[type="email"] {
  font-size: 16px;
}

.my-signup-btn {
  margin-top: 8px !important;
}

.signup-note {
  font-size: 11px;
  color: #8899aa;
  text-align: center;
  line-height: 1.5;
  margin-top: 4px;
}

/* --- 프로필 카드 --- */
.profile-top-area {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar-wrapper {
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.profile-avatar-frame {
  width: 88px;
  height: 88px;
  border: 2px solid var(--border-outer);
  padding: 2px;
  background: white;
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-inner);
  display: block;
}

.profile-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(180deg, #5D97E3 0%, #2D71C8 100%);
  border: 2px solid var(--border-outer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.profile-avatar-wrapper:active .profile-avatar-frame {
  border-color: #F4D53D;
}

.profile-info-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 4px;
}

.profile-nickname {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.2;
}

.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: bold;
  color: white;
  align-self: flex-start;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.profile-status-msg {
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  line-height: 1.4;
}

.edit-icon {
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.profile-status-msg:hover .edit-icon {
  opacity: 1;
}

/* --- 레벨 프로그레스 바 --- */
.level-progress-section {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-inner);
  padding: 12px 14px;
}

.level-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.level-progress-value {
  font-weight: bold;
  color: var(--text-title);
  font-size: 13px;
}

.level-progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #dce4ec;
  border: 1px solid var(--border-inner);
  overflow: hidden;
  position: relative;
}

.level-progress-bar-fill {
  height: 100%;
  transition: width 0.6s ease;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.level-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* --- 활동 통계 카드 --- */
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  font-family: 'DungGeunMo', monospace;
}

.stat-label {
  font-size: 11px;
  color: var(--text-sub);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-inner);
}

/* --- 토큰 & 출석 카드 --- */
.token-display-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px dotted var(--border-dotted);
}

.token-big-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.token-big-icon {
  font-size: 32px;
}

.token-big-number {
  font-size: 36px;
  font-weight: 800;
  color: #d05822;
  font-family: 'DungGeunMo', monospace;
}

.token-info-text {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

.my-attendance-btn {
  font-size: 16px !important;
}

.my-attendance-btn.checked-in {
  background: linear-gradient(180deg, #95a5a6 0%, #7f8c8d 100%) !important;
  border-color: #6c7a7d !important;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
  cursor: default !important;
}

.checkin-done-msg {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 12px;
}

/* --- 메뉴 리스트 --- */
.my-menu-list {
  display: flex;
  flex-direction: column;
}

.my-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(158, 191, 227, 0.3);
  transition: background 0.1s;
}

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

.my-menu-item:active {
  background: rgba(94, 155, 234, 0.08);
}

.menu-item-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.menu-item-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.menu-item-value {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-arrow {
  color: var(--text-light);
  font-size: 13px;
  flex-shrink: 0;
}

.logout-item:active {
  background: rgba(231, 76, 60, 0.06) !important;
}

/* --- 토글 스위치 --- */
.menu-toggle {
  width: 44px;
  height: 24px;
  background: #c0c8d0;
  border: 2px solid #a0aab0;
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.menu-toggle.on {
  background: linear-gradient(180deg, #54E35D 0%, #21BF36 100%);
  border-color: #136A1B;
}

.menu-toggle-knob {
  width: 16px;
  height: 16px;
  background: white;
  border: 1px solid #888;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.menu-toggle.on .menu-toggle-knob {
  left: 22px;
  border-color: #0a5512;
}

/* --- 풋터 --- */
.my-footer-info {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  padding: 8px 0 4px;
}

/* --- 유틸리티 추가 --- */
.mt-8 {
  margin-top: 8px;
}

.mb-64 {
  margin-bottom: 64px;
}

.pb-24 {
  padding-bottom: 24px;
}

.p-20 {
  padding: 20px;
}

.bg-grey {
  background-color: #f4f7f6;
}

/* ==========================================
   Mentor Detail Page Styles ( Professional Blue/Gray )
   ========================================== */
#mentor-detail-page {
  font-family: 'Pretendard', sans-serif;
  background-color: transparent;
  padding: 20px 16px;
  color: #333;
}

/* 1. Hero Section */
.mentor-hero {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.8), 2px 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.profile-photo-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #E2E8F0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  /* pixel art면 auto 대신 pixelated로 조절 가능 */
}

.intro-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1A365D;
  /* Professional Navy Blue */
  margin-bottom: 4px;
}

.intro-info .title {
  color: #4A5568;
  font-size: 14px;
  margin-bottom: 8px;
}

.rating-badge {
  display: inline-block;
  background-color: #FEF3C7;
  color: #D97706;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.intro-info .summary {
  font-size: 15px;
  line-height: 1.5;
  color: #2D3748;
  margin-bottom: 20px;
}

.cta-button {
  background: linear-gradient(135deg, #3182CE, #2B6CB0);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  max-width: 300px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(49, 130, 206, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:active {
  transform: scale(0.98);
}

/* 2. Bio & Expertise */
.mentor-bio {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  line-height: 1.6;
  border: 1px solid var(--color-border);
}

.mentor-bio h2,
.mentor-services h2,
.mentor-reviews h2 {
  font-size: 18px;
  color: #1A365D;
  margin-bottom: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bio-content .long-text {
  font-size: 15px;
  color: #4A5568;
  margin-bottom: 20px;
}

.key-stat-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.key-stat-group div {
  flex: 1;
  min-width: 100px;
  background: #EDF2F7;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #2C5282;
}

/* 3. Services Section */
.mentor-services {
  margin-bottom: 24px;
}

.service-card-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .service-card-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #E2E8F0;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  font-size: 17px;
  color: #2D3748;
  margin-bottom: 8px;
  font-weight: 700;
}

.service-card p {
  font-size: 14px;
  color: #718096;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-card .price {
  font-size: 16px;
  font-weight: 700;
  color: #2B6CB0;
  margin-bottom: 16px;
}

.btn-details {
  background: white;
  border: 1px solid #CBD5E0;
  color: #4A5568;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-details:hover {
  background: #EDF2F7;
}

/* 4. Reviews Section */
.mentor-reviews {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
  /* 바텀 네비게이션 여백 추가 */
  border: 1px solid var(--color-border);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.review-card {
  background: #F7FAFC;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #4299E1;
}

.review-card .review-text {
  font-size: 15px;
  color: #2D3748;
  line-height: 1.5;
  margin-bottom: 8px;
}

.review-card .reviewer-name {
  font-size: 13px;
  color: #A0AEC0;
  font-weight: 600;
}

.load-more-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed #CBD5E0;
  color: #718096;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.load-more-btn:hover {
  background: #F7FAFC;
}

/* ========================================= */
/* 5. Inquiries & Contact System Styles      */
/* ========================================= */

/* App: Inquiry Modal */
.inquiry-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #E8EBEF;
  border: 2px solid #555;
  border-right-color: #222;
  border-bottom-color: #222;
  padding: 15px;
  width: 90%;
  max-width: 400px;
  z-index: 2000;
  border-radius: 4px;
}

.inquiry-modal-header {
  font-family: 'DungGeunMo', monospace;
  font-size: 16px;
  background: #000080;
  color: white;
  padding: 4px 8px;
  margin: -10px -10px 10px -10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inquiry-modal-close {
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  background: #C0C0C0;
  color: black;
  border: 1px solid #fff;
  border-bottom-color: #555;
  border-right-color: #555;
  padding: 0 4px;
  line-height: 1;
}

.inquiry-form-group {
  margin-bottom: 15px;
}

.inquiry-form-group label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.inquiry-form-group select,
.inquiry-form-group textarea {
  width: 100%;
  border: 2px inset #9EBFE3;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  background: white;
}

.inquiry-form-group textarea {
  height: 100px;
  resize: none;
}

.inquiry-submit-btn {
  width: 100%;
  padding: 10px;
  font-weight: bold;
  color: white;
  background: #27ae60;
  border: 2px outset #2ecc71;
  cursor: pointer;
  border-radius: 4px;
}

.inquiry-submit-btn:active {
  border-style: inset;
}

/* Admin: Inquiry Table UI (Box Style) */
.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  text-align: left;
  font-size: 12px;
}

.admin-table th {
  font-weight: bold;
  color: #666;
  white-space: nowrap;
  padding: 0 15px 5px;
}

.admin-table td {
  padding: 12px 15px;
  background: white;
  border-top: 1px solid #ccd1d9;
  border-bottom: 1px solid #ccd1d9;
  transition: background 0.2s;
}

.admin-table td:first-child {
  border-left: 1px solid #ccd1d9;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.02);
}

.admin-table td:last-child {
  border-right: 1px solid #ccd1d9;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.02);
}

.admin-table tr {
  cursor: pointer;
}

.admin-table tr:hover td {
  background: #f0f7fb;
  border-color: #3498db;
}

.admin-table tr.status-done td {
  opacity: 0.6;
  background: #fdfdfd;
  border-color: #eee;
}

.admin-table tr.status-done:hover td {
  opacity: 0.9;
  background: #f0f7fb;
  border-color: #bdc3c7;
}

.td-category {
  font-weight: 600;
  color: #2980b9;
  white-space: nowrap;
}

.td-title {
  font-weight: bold;
  color: #333;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-user {
  color: #555;
  white-space: nowrap;
}

.td-date {
  color: #888;
  font-size: 12px;
  white-space: nowrap;
}

.td-status {
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.td-status span {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.status-badge-pending {
  background: #e74c3c;
  color: white;
}

.status-badge-done {
  background: #bdc3c7;
  color: white;
}

/* Admin: Inquiry Detail Modal */
#modal-inquiry-detail .modal-content {
  max-width: 600px;
  width: 90%;
}

.inq-detail-meta {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  font-size: 14px;
}

.inq-detail-meta p {
  margin: 5px 0;
}

.inq-detail-body {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
  padding: 20px;
  background: white;
  border: 1px dashed #ccc;
  border-radius: 6px;
  min-height: 150px;
  max-height: 400px;
  overflow-y: auto;
}

/* Gamification Elements */
@keyframes stamp-pop {
  0% {
    transform: translate(-50%, -300%) scale(4) rotate(20deg);
    opacity: 0;
  }

  60% {
    transform: translate(-50%, -50%) scale(0.9) rotate(-12deg);
    opacity: 1;
  }

  80% {
    transform: translate(-50%, -50%) scale(1.1) rotate(-6deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1) rotate(-8deg);
    opacity: 1;
  }
}

.quest-stamp-box {
  width: 50px;
  height: 24px;
  border: 2px dashed #9EBFE3;
  margin: 0 10px;
  /* 간격을 살짝 좁힘 */
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.quest-stamp-box.completed {
  border: 2px solid #102C58;
}

.quest-stamp-img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 65px;
  height: 65px;
  object-fit: contain;
  margin-top: 3px;
  /* 도장이 살짝 위에 떠보이는 현상을 잡기 위해 조금 내림 */
  transform: translate(-50%, -50%) rotate(-8deg);
  z-index: 10;
}

.quest-stamp-img.stamp-anim {
  opacity: 0;
  /* 초기 상태를 투명하게 */
  animation: stamp-pop 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Modal Popup Enhancements */
.gamification-letter-modal {
  background: #fcf8e3 !important;
  border: 3px solid #f1c40f !important;
  box-shadow: 6px 6px 0 #d4ac0d !important;
  background-image: repeating-linear-gradient(rgba(241, 196, 15, 0.1) 0, rgba(241, 196, 15, 0.1) 1px, transparent 1px, transparent 30px);
}

/* 멘토 순위 스왑 애니메이션 용 클래스 */
.mentor-swap-up {
  z-index: 100 !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}

.mentor-swap-down {
  z-index: 10 !important;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease !important;
  opacity: 0.6 !important;
}

/* 모바일 BGM 컨트롤 최적화: 다음 곡 버튼 숨김 (플렉스 자식이라 전광판이 자동으로 늘어남) */
.next-bgm-btn {
  display: none !important;
}

@media (min-width: 768px) {
  .next-bgm-btn {
    display: block !important;
  }
}