/* ==========================================================================
   期貨冒險者戰情誌 - 完整整合樣式表 (Complete Unified Stylesheet)
   支援：🌙 夜盤深藍金夜間模式 / ☀️ 白天白橘金明亮模式 (台灣時間 18:00 自動切換)
   ========================================================================== */

/* 預設變數：夜盤模式 (Dark Theme - Financial Deep Blue & Gold) */
:root,
html.theme-dark,
body.theme-dark {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #1a253f;
  --bg-card-secondary: #0f172a;
  --bg-input: #1e293b;
  --border-color: #1e293b;
  --border-color-light: #334155;

  /* 文字顏色 */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* 重點色彩 (金 / 青 / 綠 / 橘) */
  --color-gold: #f59e0b;
  --color-gold-light: #fbbf24;
  --color-gold-glow: rgba(245, 158, 11, 0.25);

  --color-orange: #ea580c;
  --color-orange-light: #f97316;

  --color-cyan: #06b6d4;
  --color-cyan-light: #22d3ee;
  --color-cyan-glow: rgba(6, 182, 212, 0.25);

  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  --color-emerald-glow: rgba(16, 185, 129, 0.2);

  --color-rose: #f43f5e;
  --color-purple: #a855f7;
  --color-line: #06c755;

  /* 漸層 */
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --gradient-orange: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-card: linear-gradient(180deg, #162038 0%, #0d1424 100%);
  --gradient-hero: radial-gradient(circle at 50% -20%, #1e3a8a 0%, #0b0f19 75%);

  /* 圓角與陰影 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 20px rgba(245, 158, 11, 0.35);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.35);

  --nav-bg: rgba(11, 15, 25, 0.92);
  --nav-border: rgba(30, 41, 59, 0.8);
  --card-glow-active: rgba(245, 158, 11, 0.25);
  --brand-title-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
}

/* ==========================================================================
   ☀️ 白天模式：白 / 橘 / 金等明亮風格 (Light Theme - White, Orange & Gold)
   ========================================================================== */
html.theme-light,
body.theme-light {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #fffaf0;
  --bg-card-secondary: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-color-light: #cbd5e1;

  /* 文字顏色：高對比深色 */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  /* 重點色彩 (朝氣橙橘 / 奢華暖金 / 晴空藍) */
  --color-gold: #d97706;
  --color-gold-light: #b45309;
  --color-gold-glow: rgba(217, 119, 6, 0.2);

  --color-orange: #ea580c;
  --color-orange-light: #f97316;

  --color-cyan: #0284c7;
  --color-cyan-light: #0369a1;
  --color-cyan-glow: rgba(2, 132, 199, 0.2);

  --color-emerald: #059669;
  --color-emerald-light: #047857;
  --color-emerald-glow: rgba(5, 150, 105, 0.18);

  --color-rose: #e11d48;
  --color-purple: #9333ea;
  --color-line: #059669;

  /* 漸層 (晨曦太陽金橘風) */
  --gradient-gold: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  --gradient-orange: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --gradient-cyan: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-hero: radial-gradient(circle at 50% -20%, #ffedd5 0%, #fff7ed 45%, #f8fafc 85%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.09);
  --shadow-glow-gold: 0 0 20px rgba(234, 88, 12, 0.25);
  --shadow-glow-cyan: 0 0 20px rgba(2, 132, 199, 0.25);

  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-border: rgba(226, 232, 240, 0.9);
  --card-glow-active: rgba(234, 88, 12, 0.2);
  --brand-title-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

/* 全域字體 */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* 全域重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 72px;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

.text-gold { color: var(--color-gold) !important; }
.text-emerald { color: var(--color-emerald) !important; }
.text-cyan { color: var(--color-cyan) !important; }
.text-orange { color: var(--color-orange) !important; }

.gradient-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-cyan {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-title-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px auto;
}

.chapter-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-cyan-light);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

body.theme-light .chapter-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

.section-heading-lg {
  font-size: 2.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-subtext-lg {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.5);
}

.btn-gold {
  background: var(--gradient-gold);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-glow-gold);
}

body.theme-dark .btn-gold {
  color: #0b0f19;
}

.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.5);
}

.btn-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 700;
}

.btn-gradient-cyan:hover {
  filter: brightness(1.15);
}

.btn-secondary {
  background: var(--bg-card-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color-light);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.15);
}

.btn-outline-light {
  background: transparent;
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
}

.btn-outline-light:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--text-primary);
}

.btn-line-green {
  background: var(--color-line);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
}

.btn-line-green:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 380px;
}

.toast-success {
  border-color: var(--color-emerald);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.toast-exp {
  border-color: var(--color-cyan);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

.toast-theme {
  border-color: var(--color-orange);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.25);
}

.toast-level {
  border-color: var(--color-gold);
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.35);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.floating-fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.fab-line {
  background: var(--color-line);
  color: #ffffff;
}

.fab-line:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(6, 199, 85, 0.6);
}

.fab-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--color-orange);
  font-size: 1.3rem;
}

.fab-theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1) rotate(15deg);
  border-color: var(--color-orange);
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.3);
}

.fab-admin {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--color-gold);
  font-size: 1.25rem;
}

.fab-admin:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1) rotate(45deg);
  border-color: var(--color-gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.fab-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  animation: pulse-ring 2s infinite;
  pointer-events: none;
}

.fab-scroll-top {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
}

.fab-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-scroll-top:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   HUD 導航列
   ========================================================================== */
.hud-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hud-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 6px;
  background: var(--gradient-gold);
  color: #ffffff;
  border-radius: 4px;
  letter-spacing: 1px;
}

body.theme-dark .brand-badge {
  color: #0b0f19;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--brand-title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--color-cyan);
  font-weight: 600;
}

.hud-player-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.hud-player-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan);
  box-shadow: 0 0 16px var(--color-cyan-glow);
}

.player-avatar-box {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--bg-card-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
}

.player-avatar {
  font-size: 1.25rem;
}

.player-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--color-gold);
  color: #ffffff;
  padding: 1px 4px;
  border-radius: 4px;
}

body.theme-dark .player-level-badge {
  color: #0b0f19;
}

.player-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.player-class-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan);
  font-weight: 600;
}

.player-rank-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.exp-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--bg-card-secondary);
  border-radius: 99px;
  overflow: hidden;
}

.exp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 50%, #10b981 100%);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.hud-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-link-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

body.theme-dark .nav-link-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-quest-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.2);
  color: var(--color-gold);
}

.hud-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* 主題切換按鈕 (白天/夜晚/自動) */
.hud-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--color-orange);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-theme-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-orange);
  transform: translateY(-1px);
}

.hud-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-admin-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.hud-quest-log-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.hud-quest-log-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-gold);
}

.quest-alert-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: var(--color-rose);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
  animation: pulse 1.5s infinite;
}

.hud-line-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-line);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(6, 199, 85, 0.3);
  transition: all 0.2s ease;
}

.hud-line-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.5);
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-secondary);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 1.6rem;
}

.modal-title-wrap h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card-secondary);
}

/* ==========================================================================
   管理員設置 Modal (Admin Settings Modal Styles)
   ========================================================================== */
.admin-modal-card {
  max-width: 860px;
}

.admin-class-tabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--color-cyan);
}

.admin-tab-btn.active {
  background: var(--gradient-cyan);
  color: #ffffff;
  border-color: var(--color-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}

.tab-count-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-toolbar-tip {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-skills-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.admin-skill-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-skill-checkbox-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan);
}

.admin-skill-checkbox-card.checked {
  border-color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.08);
}

.admin-skill-input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-cyan);
  flex-shrink: 0;
  cursor: pointer;
}

.admin-skill-content {
  flex: 1;
}

.admin-skill-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-skill-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.admin-skill-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-skill-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-skill-sub {
  font-size: 0.72rem;
  color: var(--color-gold);
}

.admin-skill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.admin-skill-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.admin-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Chapter 01: 四大職業選擇卡片與動態技能包 (Novice Class Picker)
   ========================================================================== */
.novice-class-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.novice-class-card {
  background: var(--bg-card-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.novice-class-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: var(--shadow-md);
}

.novice-class-card.active-selected {
  border-color: var(--color-orange);
  background: var(--bg-card);
  box-shadow: 0 0 24px var(--card-glow-active);
}

body.theme-dark .novice-class-card.active-selected {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(19, 27, 46, 0.98) 100%);
}

.novice-class-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.novice-class-icon {
  font-size: 2rem;
}

.novice-class-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.novice-class-name {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.novice-class-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.novice-class-count-pill {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.novice-class-count-pill strong {
  color: var(--color-orange);
  font-family: var(--font-mono);
}

.novice-class-action-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

.novice-class-card.active-selected .novice-class-action-hint {
  color: var(--color-emerald);
}

.novice-active-skill-box {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 10px;
}

.active-skill-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.active-skill-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.active-skill-avatar {
  font-size: 2.2rem;
}

.active-skill-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.active-skill-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.skill-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.no-skills-configured {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-skills-configured .empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

/* ==========================================================================
   職業適性試煉 Modal (Class Aptitude Trial Styles)
   ========================================================================== */
.trial-modal-card {
  max-width: 780px;
}

.trial-banner {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trial-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.banner-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.banner-text strong {
  color: var(--color-orange);
}

.trial-score-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  min-width: 120px;
  flex-shrink: 0;
}

.trial-score-pill.pass {
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid var(--color-emerald);
}

.trial-score-pill.pass .score-number {
  color: var(--color-emerald);
}

.trial-score-pill.fail {
  background: rgba(244, 63, 94, 0.12);
  border: 2px solid var(--color-rose);
}

.trial-score-pill.fail .score-number {
  color: var(--color-rose);
}

.score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.score-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
}

.score-status {
  font-size: 0.72rem;
  font-weight: 700;
}

.trial-questions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trial-question-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.trial-question-card.card-correct {
  border-color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.05);
}

.trial-question-card.card-wrong {
  border-color: var(--color-rose);
  background: rgba(244, 63, 94, 0.05);
}

.trial-q-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.q-num-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--bg-card);
  color: var(--color-orange);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.trial-q-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.trial-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trial-opt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.trial-opt-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan);
}

.trial-opt-btn.selected {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--color-cyan);
}

.trial-opt-btn.opt-correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-emerald);
}

.trial-opt-btn.opt-correct .trial-opt-bullet {
  background: var(--color-emerald);
  color: #ffffff;
}

.trial-opt-btn.opt-wrong {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--color-rose);
}

.trial-opt-btn.opt-wrong .trial-opt-bullet {
  background: var(--color-rose);
  color: #ffffff;
}

.trial-opt-bullet {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card-secondary);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trial-opt-text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
}

.opt-score-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.trial-feedback-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.5;
}

.trial-feedback-note.note-pass {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--color-emerald);
  color: var(--color-emerald);
}

.trial-feedback-note.note-fail {
  background: rgba(244, 63, 94, 0.1);
  border-left: 3px solid var(--color-rose);
  color: var(--color-rose);
}

.trial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pass-congrats-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-emerald);
}

.fail-retry-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-rose);
}

/* ==========================================================================
   Chapter 01: 統一期貨官方技能包樣式 (Skill Packs Styles)
   ========================================================================== */
.skill-packs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 50px;
}

.skill-packs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  flex-wrap: wrap;
}

.skill-header-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.skill-main-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--gradient-gold);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

body.theme-dark .skill-main-badge {
  color: #0b0f19;
}

.skill-heading {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.skill-desc strong {
  color: var(--color-orange);
}

.skill-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-pack-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-pack-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-orange);
  box-shadow: var(--shadow-md);
}

.skill-pack-card.is-explored {
  border-color: var(--color-emerald);
  background: var(--bg-card);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.skill-icon-wrap {
  font-size: 2rem;
}

.skill-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.skill-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.skill-pack-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.skill-pack-subtitle {
  font-size: 0.8rem;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-pack-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.skill-sublinks-box {
  background: var(--bg-main);
  border: 1px dashed var(--border-color);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.sublinks-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sublinks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sublink-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sublink-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.skill-exp-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-orange);
}

.explored-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}

.quests-section-divider {
  text-align: center;
  margin: 40px auto 28px auto;
  max-width: 780px;
}

.quests-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.quests-section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   新手村 (Novice Village Styles)
   ========================================================================== */
.section-novice-wrapper {
  padding: 80px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.quest-progress-tracker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-top: 12px;
}

.tracker-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tracker-bar {
  width: 140px;
  height: 8px;
  background: var(--bg-card-secondary);
  border-radius: 99px;
  overflow: hidden;
}

.tracker-fill {
  height: 100%;
  background: linear-gradient(90deg, #ea580c 0%, #10b981 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.tracker-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange);
}

.quests-cards-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.quest-card:hover {
  border-color: var(--color-cyan);
}

.quest-completed-card {
  border-color: var(--color-emerald);
  background: var(--bg-card);
}

.quest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.quest-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quest-chapter-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--bg-card-secondary);
  color: var(--color-cyan);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.quest-icon-big {
  font-size: 2.2rem;
}

.quest-card-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.quest-card-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.quest-reward-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reward-exp {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(234, 88, 12, 0.12);
  color: var(--color-orange);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.reward-badge-icon {
  font-size: 1.4rem;
}

.status-cleared-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.status-active-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.quest-lesson-box {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.lesson-summary {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.lesson-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lesson-point-item {
  background: var(--bg-main);
  border-left: 3px solid var(--color-cyan);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lesson-point-item h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-cyan);
  margin-bottom: 4px;
}

.lesson-point-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quest-quiz-container {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.quiz-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-orange);
}

.quiz-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-question-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.quiz-option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.quiz-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan);
}

.opt-label {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.85rem;
  background: var(--bg-card-secondary);
  color: var(--color-cyan);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opt-text {
  font-size: 0.88rem;
  line-height: 1.4;
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-emerald);
}

.quiz-option-btn.correct .opt-label {
  background: var(--color-emerald);
  color: #ffffff;
}

.quiz-option-btn.wrong {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--color-rose);
}

.quiz-option-btn.wrong .opt-label {
  background: var(--color-rose);
  color: #ffffff;
}

.quiz-feedback-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.quiz-feedback-box.correct {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--color-emerald);
}

.quiz-feedback-box.wrong {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid var(--color-rose);
}

.feedback-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.feedback-reward {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-orange);
}

.feedback-explanation {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.novice-grad-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.grad-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.grad-icon {
  font-size: 3rem;
}

.grad-info h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.grad-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   序章 Hero & 創角
   ========================================================================== */
.section-hero-wrapper {
  position: relative;
  padding: 60px 0 80px 0;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, rgba(245, 158, 11, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-header-block {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px auto;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
  box-shadow: 0 0 8px var(--color-orange);
}

.hero-main-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-subtext strong {
  color: var(--text-primary);
}

.character-selection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.section-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--color-cyan);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.step-num-badge.gold {
  background: var(--gradient-gold);
}

.section-heading {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.class-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.class-card {
  background: var(--bg-card-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.class-card:hover {
  border-color: var(--color-cyan);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.class-card.selected {
  border-color: var(--color-orange);
  background: var(--bg-card);
  box-shadow: 0 0 20px var(--card-glow-active);
}

body.theme-dark .class-card.selected {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9) 0%, rgba(19, 27, 46, 0.95) 100%);
}

.class-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.class-icon {
  font-size: 2.2rem;
}

.class-name {
  font-size: 1.15rem;
  font-weight: 800;
}

.class-badge-tag {
  font-size: 0.72rem;
  color: var(--color-cyan);
  font-weight: 600;
}

.class-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.class-traits-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-sm);
}

.trait-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.trait-label {
  width: 55px;
  color: var(--text-muted);
}

.trait-bar {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 99px;
  overflow: hidden;
}

.trait-fill {
  height: 100%;
  background: var(--gradient-cyan);
}

.class-card.selected .trait-fill {
  background: var(--gradient-gold);
}

.trait-score {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 22px;
  text-align: right;
}

.class-product-tags {
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.tag-title {
  color: var(--text-muted);
}

.prod-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-primary);
}

.class-skill-box {
  font-size: 0.75rem;
  border-top: 1px dashed var(--border-color);
  padding-top: 8px;
  margin-bottom: 14px;
}

.skill-label {
  color: var(--color-orange);
  font-weight: 700;
}

.skill-name {
  color: var(--text-secondary);
}

.class-select-status {
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.status-locked-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.player-name-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
}

.input-group-styled {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.input-group-styled label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.input-group-styled input {
  flex: 1;
  max-width: 320px;
  background: var(--bg-input);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.input-group-styled input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.starter-pack-card {
  background: var(--bg-card);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

body.theme-dark .starter-pack-card {
  background: linear-gradient(180deg, #16223d 0%, #111827 100%);
  border-color: rgba(245, 158, 11, 0.4);
}

.starter-pack-header {
  margin-bottom: 24px;
}

.pack-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.quest-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-orange);
}

.pack-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.pack-sub {
  font-size: 1rem;
  color: var(--text-secondary);
}

.referral-code-box {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.referral-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.referral-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.referral-code {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-orange);
  letter-spacing: 3px;
}

.referral-tip {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.referral-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.step-item-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.step-circle {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 2px solid var(--color-cyan);
  color: var(--color-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.code-highlight {
  color: var(--color-orange);
  font-family: var(--font-mono);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.highlight-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.highlight-info h5 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.highlight-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.starter-pack-footer {
  text-align: center;
}

/* ==========================================================================
   技能專欄 (Skill Tree Blog)
   ========================================================================== */
.section-articles-wrapper {
  padding: 80px 0;
  background: var(--bg-card-secondary);
  border-bottom: 1px solid var(--border-color);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.blog-categories-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover {
  color: var(--text-primary);
  border-color: var(--color-cyan);
}

.category-pill.active {
  background: var(--color-cyan);
  color: #ffffff;
  border-color: var(--color-cyan);
  box-shadow: 0 0 14px var(--color-cyan-glow);
}

.blog-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  min-width: 280px;
}

.search-icon {
  font-size: 1rem;
  color: var(--text-muted);
}

.blog-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
}

.blog-search-box input:focus {
  outline: none;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-orange);
  box-shadow: var(--shadow-md);
}

.article-card.is-read {
  border-color: var(--color-emerald);
}

.article-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.article-cover-emoji {
  font-size: 2.2rem;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.art-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan);
  padding: 3px 8px;
  border-radius: 4px;
}

.art-readtime {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.article-tag {
  font-size: 0.72rem;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.art-exp-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-orange);
}

.art-status-and-action {
  display: flex;
  align-items: center;
  gap: 10px;
}

.read-status-badge {
  font-size: 0.75rem;
  color: var(--color-emerald);
  font-weight: 600;
}

.unread-status-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.no-articles-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color-light);
}

.article-reader-card {
  max-width: 820px;
}

.reader-modal-header {
  padding: 24px 30px 16px 30px;
  border-bottom: 1px solid var(--border-color);
}

.reader-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reader-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reader-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
}

.reader-modal-body {
  padding: 30px;
  overflow-y: auto;
  max-height: 60vh;
}

.reader-content-body {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.8;
}

.reader-content-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.reader-h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-orange);
  margin: 28px 0 12px 0;
  border-left: 3px solid var(--color-orange);
  padding-left: 10px;
}

.reader-mentor-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  padding: 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.mentor-avatar-box {
  font-size: 2.2rem;
}

.mentor-cta-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.mentor-cta-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.reader-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 30px;
  background: var(--bg-card-secondary);
  border-top: 1px solid var(--border-color);
}

.reward-info-box .reward-text {
  font-size: 0.85rem;
  color: var(--color-orange);
  font-weight: 600;
}

/* ==========================================================================
   實戰演練場 (Trading Arena Styles)
   ========================================================================== */
.section-arena-wrapper {
  padding: 80px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.arena-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.arena-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arena-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.arena-tab-btn.active {
  background: var(--gradient-gold);
  color: #ffffff;
  border-color: var(--color-orange);
  box-shadow: var(--shadow-glow-gold);
}

body.theme-dark .arena-tab-btn.active {
  color: #0b0f19;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.calc-input-panel, .calc-result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.calc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.calc-panel-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.calc-tag {
  font-size: 0.75rem;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.calc-form-group {
  margin-bottom: 18px;
}

.calc-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-select, .calc-input {
  width: 100%;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.calc-select:focus, .calc-input:focus {
  outline: none;
  border-color: var(--color-cyan);
}

.direction-switch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.direction-btn {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color-light);
  background: var(--bg-card-secondary);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.direction-btn.btn-long.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-emerald);
  color: var(--color-emerald);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.direction-btn.btn-short.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--color-rose);
  color: var(--color-rose);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lots-stepper {
  display: flex;
  align-items: center;
}

.stepper-btn {
  width: 40px;
  height: 44px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

.stepper-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.stepper-btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.stepper-input {
  flex: 1;
  height: 44px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color-light);
  border-bottom: 1px solid var(--border-color-light);
  border-left: none;
  border-right: none;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
}

.quick-adjust-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.chips-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chip-btn {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.chip-btn:hover {
  background: var(--border-color-light);
  color: var(--text-primary);
}

.profit-highlight-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.profit-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profit-number {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 6px 0;
}

.text-emerald { color: var(--color-emerald) !important; text-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
.text-rose { color: var(--color-rose) !important; text-shadow: 0 0 20px rgba(244, 63, 94, 0.3); }

.profit-sub-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.result-detail-item {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}

.detail-val.gold { color: var(--color-orange); }
.detail-val.cyan { color: var(--color-cyan); }
.detail-val.sm { font-size: 0.78rem; font-family: var(--font-sans); color: var(--text-secondary); }

.risk-advisory-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(234, 88, 12, 0.08);
  border-left: 3px solid var(--color-orange);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advisory-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.advisory-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.advisory-text strong {
  color: var(--color-orange);
}

.specs-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.custom-specs-table th, .custom-specs-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.custom-specs-table th {
  background: var(--bg-card-secondary);
  color: var(--text-secondary);
  font-weight: 700;
}

.symbol-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.cat-pill {
  font-size: 0.72rem;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.gold-text { color: var(--color-orange); font-family: var(--font-mono); }
.cyan-text { color: var(--color-cyan); font-family: var(--font-mono); }

.calendar-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.event-radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-gold { background: rgba(234, 88, 12, 0.15); color: var(--color-orange); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--color-purple); }
.badge-emerald { background: rgba(16, 185, 129, 0.15); color: var(--color-emerald); }

.event-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 700;
}

.event-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.event-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.event-reminder {
  margin-top: 8px;
  background: var(--bg-card-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--color-orange);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* ==========================================================================
   導師戰情室 (Mentor War Room Styles)
   ========================================================================== */
.section-mentor-wrapper {
  padding: 80px 0 40px 0;
  background: var(--bg-card-secondary);
}

.mentor-booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 60px;
}

.mentor-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mentor-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.mentor-avatar-badge {
  font-size: 3rem;
  width: 76px;
  height: 76px;
  background: var(--bg-card-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-orange);
  flex-shrink: 0;
}

.mentor-name {
  font-size: 1.4rem;
  font-weight: 800;
}

.mentor-title-tag {
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-weight: 600;
}

.mentor-org-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mentor-exp-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--color-orange);
  margin-bottom: 20px;
}

.mentor-specialties-block h5 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.specialties-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.specialties-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  color: var(--color-emerald);
  font-weight: 900;
}

.mentor-contacts-group {
  margin-bottom: 20px;
}

.contact-sub-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
}

.contact-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-copy-line {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  color: var(--color-cyan);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.mentor-license-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.license-icon {
  font-size: 1.4rem;
}

.booking-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.booking-form-header {
  margin-bottom: 22px;
}

.booking-form-header h4 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.booking-form-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.consult-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group textarea {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: var(--font-sans);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}

.checkbox-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
}

.tag-checkbox input {
  accent-color: var(--color-orange);
}

.booking-success-box {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.booking-success-box h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.booking-success-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.faq-section-block {
  max-width: 860px;
  margin: 0 auto 60px auto;
}

.faq-title-center {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 28px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-question-btn:hover {
  background: var(--bg-card-hover);
}

.faq-q-icon {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
}

.faq-arrow-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-arrow-icon {
  transform: rotate(180deg);
  color: var(--color-orange);
}

.faq-answer-pane {
  display: none;
  padding: 0 22px 20px 64px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-accordion-item.active .faq-answer-pane {
  display: block;
}

.compliance-footer-block {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  text-align: center;
}

.compliance-inner {
  max-width: 960px;
  margin: 0 auto;
}

.compliance-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.compliance-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.compliance-meta-row {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.copyright-row {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   職業專屬 6 關觀念評估問卷與實戰鑑定報告樣式 (Role Evaluation Quest & Assessment Modal)
   ========================================================================== */
.quests-divider-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.quests-divider-title-box {
  flex: 1;
  min-width: 300px;
}

.quest-section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.quests-counter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.counter-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counter-text strong {
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.mini-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.class-quest-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.class-quest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.class-quest-card:hover {
  border-color: var(--border-color-hover);
}

.class-quest-card.card-answered {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.class-quest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quest-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-gold);
  color: #1a1003;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.quest-category-badge {
  font-size: 0.85rem;
  color: var(--color-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.quest-test-purpose-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-card-secondary);
  border-left: 4px solid var(--color-orange);
  padding: 12px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 18px;
}

.purpose-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.purpose-label {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--color-orange);
  margin-right: 4px;
}

.purpose-content {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 600;
}

.quest-scenario-box {
  margin-bottom: 20px;
}

.quest-scenario-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 600;
}

.class-quest-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.class-quest-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-card-secondary);
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.class-quest-opt-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-orange);
  transform: translateY(-2px);
}

.class-quest-opt-btn.is-selected {
  background: var(--bg-card);
  border-color: var(--color-orange);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

body.theme-dark .class-quest-opt-btn.is-selected {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, #1e293b 0%, #151d30 100%);
}

.opt-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.opt-letter-tag {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--color-orange);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.class-quest-opt-btn.is-selected .opt-letter-tag {
  background: var(--color-orange);
  color: #ffffff;
  border-color: var(--color-orange);
}

.opt-desc-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.opt-select-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.selected-check {
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.unselected-dot {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.quest-submit-action-banner {
  background: var(--gradient-card);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.submit-banner-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.submit-banner-icon {
  font-size: 3.2rem;
}

.submit-banner-info h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.submit-banner-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.btn-submit-evaluation {
  white-space: nowrap;
  padding: 16px 36px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   職業實戰鑑定報告彈出視窗 (Evaluation Report Modal)
   ========================================================================== */
.eval-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.eval-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.eval-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 10;
}

.eval-modal-close:hover {
  color: var(--text-primary);
}

.eval-report-banner {
  background: var(--gradient-gold);
  color: #1a1003;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eval-banner-class {
  display: flex;
  align-items: center;
  gap: 20px;
}

.eval-banner-avatar {
  font-size: 3.5rem;
}

.eval-banner-name {
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.eval-banner-sub {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 600;
}

.eval-banner-score-circle {
  background: #1a1003;
  color: #ffffff;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.score-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  color: #f59e0b;
  line-height: 1;
}

.score-denom {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.score-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
}

.eval-report-body {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eval-rank-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color-light);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.rank-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rank-pill {
  font-size: 0.95rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.talent-pill {
  font-size: 0.9rem;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.rank-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 交易人格評定卡 */
.eval-personality-box {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
}

.personality-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.personality-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.personality-icon {
  font-size: 2.2rem;
}

.personality-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-orange);
  text-transform: uppercase;
}

.personality-name {
  font-size: 1.4rem;
  font-weight: 900;
}

.personality-tagline {
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-orange);
}

.personality-desc {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.personality-traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trait-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.trait-strength {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.trait-strength h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-emerald);
  margin-bottom: 6px;
}

.trait-weakness {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}

.trait-weakness h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-rose);
  margin-bottom: 6px;
}

.trait-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 核心能力維度評點 */
.eval-capabilities-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eval-subheading {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.capability-item {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cap-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cap-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.cap-weight {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cap-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stars-text {
  font-size: 1.1rem;
  color: #f59e0b;
  letter-spacing: 2px;
}

.cap-score-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.eval-feedback-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.highlight-box {
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.highlight-positive {
  background: rgba(16, 185, 129, 0.06);
  border-left: 4px solid var(--color-emerald);
}

.highlight-positive h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-emerald);
  margin-bottom: 6px;
}

.highlight-improve {
  background: rgba(245, 158, 11, 0.06);
  border-left: 4px solid var(--color-orange);
}

.highlight-improve h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-orange);
  margin-bottom: 6px;
}

.highlight-box p {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* 逐題覆盤折疊選單 */
.eval-review-accordion {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.btn-toggle-review {
  width: 100%;
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-review:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-orange);
}

.review-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.review-item-card {
  background: var(--bg-card-secondary);
  border: 1px solid var(--border-color);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-item-card.review-best {
  border-left: 4px solid var(--color-emerald);
}

.review-item-card.review-warning {
  border-left: 4px solid var(--color-rose);
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-stage-tag {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-orange);
}

.review-purpose-tag {
  font-size: 0.8rem;
  color: var(--color-cyan);
}

.review-question {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.review-choices-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.choice-label {
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}

.choice-content {
  color: var(--text-primary);
  flex: 1;
}

.choice-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-best {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
}

@media (max-width: 768px) {
  .game-modal-overlay {
    padding: 0 !important;
  }
  .game-player-card {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .game-modal-header {
    padding: 8px 12px;
  }
  .game-modal-icon {
    font-size: 1.3rem;
  }
  .game-modal-title {
    font-size: 0.95rem;
  }
  .game-modal-sub {
    display: none;
  }
  .game-modal-footer {
    padding: 6px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .game-footer-tip {
    font-size: 0.72rem;
  }
  .game-footer-actions {
    justify-content: flex-end;
  }
}

.badge-warn {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-rose);
}

.review-insight-box {
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-card-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.eval-modal-footer {
  padding: 20px 40px;
  background: var(--bg-card-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.novice-eval-score-pill {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   響應式規則 (Responsive)
   ========================================================================== */
@media (max-width: 1024px) {
  .hud-nav-links { display: none; }
  .class-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .novice-class-picker-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-class-tabs-row { grid-template-columns: repeat(2, 1fr); }
  .account-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-packs-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-grid { grid-template-columns: 1fr; }
  .mentor-booking-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .calendar-cards-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { padding-top: 64px; }
  .hud-navbar { height: 64px; }
  .hud-container { padding: 0 12px; gap: 8px; }
  .brand-title { font-size: 0.92rem; }
  .brand-sub { display: none; }
  .hud-player-card { padding: 4px 10px 4px 6px; }
  .player-rank-title { display: none; }
  .player-info-wrap { min-width: 100px; }
  .hud-action-group .btn-text { display: none; }
  .hud-line-cta-btn { padding: 6px 10px; font-size: 0.8rem; }
  .hero-main-title { font-size: 2rem; }
  .hero-subtext { font-size: 0.98rem; }
  .section-heading-lg { font-size: 1.6rem; }
  .class-cards-grid { grid-template-columns: 1fr; }
  .novice-class-picker-grid { grid-template-columns: 1fr; }
  .admin-class-tabs-row { grid-template-columns: 1fr; }
  .admin-skills-checklist { grid-template-columns: 1fr; }
  .account-steps-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .skill-packs-grid { grid-template-columns: 1fr; }
  .skill-packs-header { flex-direction: column; align-items: flex-start; }
  .referral-code-box { flex-direction: column; text-align: center; }
  .referral-actions { flex-direction: column; width: 100%; }
  .referral-actions .btn { width: 100%; }
  .player-name-form-row { flex-direction: column; align-items: stretch; }
  .input-group-styled { flex-direction: column; align-items: stretch; }
  .input-group-styled input { max-width: 100%; }
  .lesson-points-grid { grid-template-columns: 1fr; }
  .quiz-options-grid { grid-template-columns: 1fr; }
  .class-quest-options-grid { grid-template-columns: 1fr; }
  .quest-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .novice-grad-banner { flex-direction: column; text-align: center; padding: 24px; }
  .grad-info { flex-direction: column; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search-box { width: 100%; }
  .calc-inputs-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-tags-grid { grid-template-columns: 1fr; }
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: 1fr; }
  .toast-container { left: 16px; right: 16px; bottom: 20px; }
  .toast-item { max-width: 100%; }
  .floating-fab-container { bottom: 20px; right: 20px; }
  .trial-banner { flex-direction: column; align-items: flex-start; }
  .trial-footer { flex-direction: column; gap: 12px; }
  .trial-footer .btn { width: 100%; }
  
  .quest-submit-action-banner { flex-direction: column; text-align: center; padding: 24px; }
  .submit-banner-info { flex-direction: column; }
  .btn-submit-evaluation { width: 100%; }
  .eval-report-banner { flex-direction: column; text-align: center; padding: 24px; }
  .eval-banner-class { flex-direction: column; }
  .eval-report-body { padding: 24px 16px; }
  .personality-traits-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .eval-feedback-highlights { grid-template-columns: 1fr; }
  .eval-modal-footer { flex-direction: column; padding: 16px; }
  .eval-modal-footer .btn { width: 100%; }
}

@keyframes pulse-ring { 0% { transform: scale(0.95); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 0; } 100% { transform: scale(1.2); opacity: 0; } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.8; } 50% { transform: scale(1.3); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.8; } }

.animate-slide-in { animation: slideInUp 0.35s ease-out forwards; }
.animate-scale-up { animation: scaleUp 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-shake { animation: shake 0.4s ease-in-out forwards; }
.animate-fade-in { animation: slideInUp 0.5s ease-out forwards; }

.hidden { display: none !important; }



/* ==========================================================================
   🎮 K線貪食蛇小遊戲專屬樣式 (K-Line Snake Game Card & Modal)
   ========================================================================== */
.article-card.is-game-card {
  position: relative;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(245, 158, 11, 0.03) 100%), var(--bg-card);
  border: 2px solid var(--color-orange);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark .article-card.is-game-card {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15) 0%, #16223d 100%);
  border-color: #f59e0b;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.2);
}

.article-card.is-game-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: #fbbf24;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.35);
}

.art-game-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.4);
  letter-spacing: 0.5px;
}

.game-cat-tag {
  background: rgba(234, 88, 12, 0.15) !important;
  color: var(--color-orange) !important;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.game-cover-icon {
  display: inline-block;
  animation: floatEmoji 3s ease-in-out infinite;
}

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

.game-title-glow {
  color: var(--text-primary);
}

body.theme-dark .game-title-glow {
  color: #fff;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.article-tag.game-tag {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

body.theme-dark .article-tag.game-tag {
  color: #fbbf24;
}

.reader-game-cta-banner {
  margin: 14px 0 6px 0;
  text-align: left;
}

/* --- 遊戲彈窗專屬 (Game Player Modal) --- */
.game-modal-overlay {
  z-index: 10000;
}

.game-player-card {
  max-width: 1000px;
  width: 95vw;
  height: 88vh;
  max-height: 850px;
  display: flex;
  flex-direction: column;
  background: #0b0f19;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(234, 88, 12, 0.3);
  overflow: hidden;
  padding: 0;
}

.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-modal-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-modal-icon {
  font-size: 1.8rem;
}

.game-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.game-modal-sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin: 2px 0 0 0;
}

.game-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.game-iframe-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #070a12;
  overflow: hidden;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.game-footer-tip {
  color: #d1d5db;
}

.game-footer-tip strong {
  color: var(--color-orange);
}

.game-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .game-modal-overlay {
    padding: 0 !important;
  }
  .game-player-card {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .game-modal-header {
    padding: 8px 12px;
  }
  .game-modal-icon {
    font-size: 1.3rem;
  }
  .game-modal-title {
    font-size: 0.95rem;
  }
  .game-modal-sub {
    display: none;
  }
  .game-modal-footer {
    padding: 6px 12px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .game-footer-tip {
    font-size: 0.72rem;
  }
  .game-footer-actions {
    justify-content: flex-end;
  }
}


/* ==========================================================================
   🎯 職業適性評估試煉 1~5 分 Likert 量表專屬樣式
   ========================================================================== */
.tier-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tier-tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
}

.tier-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tier-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tier-orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.tier-gray {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.trial-progress-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.trial-progress-box .progress-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.trial-progress-box .progress-count {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-orange);
  font-family: var(--font-mono);
}

.q-trait-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-orange);
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.likert-scale-wrapper {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.likert-buttons-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.likert-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: #1a2234;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #d1d5db;
}

.likert-opt-btn:hover:not(:disabled) {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.likert-opt-btn.active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.25) 0%, rgba(245, 158, 11, 0.35) 100%);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transform: scale(1.03);
}

.likert-opt-btn .opt-val-num {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #f3f4f6;
  margin-bottom: 2px;
}

.likert-opt-btn.active .opt-val-num {
  color: #fbbf24;
}

.likert-opt-btn .opt-val-text {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
}

.likert-opt-btn.active .opt-val-text {
  color: #ffffff;
  font-weight: 700;
}

.likert-scale-legend {
  display: none;
}

/* 評估結果卡片 */
.trial-result-analysis-card {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid;
}

.trial-result-analysis-card.result-pass {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
  border-color: #10b981;
}

.trial-result-analysis-card.result-fail {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.05) 100%);
  border-color: #ef4444;
}

.result-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.result-tier-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.result-score-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-orange);
}

.result-desc-text {
  font-size: 0.92rem;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 10px;
}

.result-mentor-tip {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--color-orange);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
}

.btn-disabled-hint {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .likert-buttons-group {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .likert-opt-btn {
    padding: 8px 2px;
  }
  .likert-opt-btn .opt-val-num {
    font-size: 1.05rem;
  }
  .likert-opt-btn .opt-val-text {
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   🎯 Chapter 03 實戰演練場（戰力工具箱）顯示/隱藏開關與收合樣式
   ========================================================================== */
.arena-toggle-control-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.arena-toggle-control-wrap .btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1d5db;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.arena-toggle-control-wrap .btn:hover {
  background: rgba(234, 88, 12, 0.15);
  border-color: var(--color-orange);
  color: #ffffff;
}

.arena-collapsed-wrapper {
  padding: 24px 0 !important;
}

.arena-collapsed-banner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1.5px dashed rgba(234, 88, 12, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s ease;
}

.arena-collapsed-banner:hover {
  border-color: var(--color-orange);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(30, 41, 59, 0.9) 100%);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.15);
}

.collapsed-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.collapsed-text-block {
  display: flex;
  flex-direction: column;
}

.collapsed-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3f4f6;
  margin: 0;
}

.collapsed-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 2px 0 0 0;
}

.nav-link-dimmed {
  opacity: 0.65;
  border-style: dashed !important;
}

.nav-dimmed-text {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* --- 管理員設定彈窗內開關控制 (Admin Visibility Switch) --- */
.admin-section-block {
  margin-bottom: 18px;
}

.admin-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-block-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(234, 88, 12, 0.15);
  color: var(--color-orange);
  border: 1px solid rgba(234, 88, 12, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.admin-block-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.admin-divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.admin-visibility-toggle-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visibility-desc {
  font-size: 0.84rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.admin-switch-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.switch-toggle-btn {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.switch-toggle-btn input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  border-radius: 28px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.switch-slider-track:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch-toggle-btn input:checked + .switch-slider-track {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
  border-color: #fbbf24;
}

.switch-toggle-btn input:checked + .switch-slider-track:before {
  transform: translateX(24px);
}

.switch-status-text {
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .arena-collapsed-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-visibility-toggle-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-switch-wrap {
    width: 100%;
    justify-content: space-between;
  }
}


/* ==========================================================
   ⚖️ 頁尾法定監管揭示與期貨風險預告卡片樣式
   ========================================================== */
.compliance-footer-block {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .compliance-footer-block {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.compliance-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

body.theme-light .compliance-title {
  color: #0f172a;
}

.compliance-disclosure-card {
  background: #111827;
  border: 1px solid rgba(234, 88, 12, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 12px 0 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

body.theme-light .compliance-disclosure-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.compliance-main-org {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .compliance-main-org {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comp-company-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
}

body.theme-light .comp-company-name {
  color: #0f172a;
}

.comp-license-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

body.theme-light .comp-license-badge {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

.compliance-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 20px;
}

.comp-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.92rem;
}

.comp-item-full {
  grid-column: 1 / -1;
}

.comp-label {
  color: #9ca3af;
  font-weight: 600;
  flex-shrink: 0;
}

body.theme-light .comp-label {
  color: #475569;
  font-weight: 700;
}

.comp-val {
  color: #f3f4f6;
}

body.theme-light .comp-val {
  color: #0f172a;
  font-weight: 700;
}

.comp-link {
  color: var(--color-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.comp-link:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.compliance-risk-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid #ef4444;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

body.theme-light .compliance-risk-box {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.04);
}

.compliance-risk-text {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.65;
  margin: 0;
}

body.theme-light .compliance-risk-text {
  color: #9f1239;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.7;
}

.copyright-row {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  padding-top: 10px;
}

body.theme-light .copyright-row {
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 640px) {
  .compliance-details-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   🏰 新手村技能包引導橫幅 (Skill Packs CTA Banner)
   ========================================================== */
.skill-packs-cta-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1.5px solid rgba(234, 88, 12, 0.4);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body.theme-light .skill-packs-cta-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fdba74;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.08);
}

.skill-cta-text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-sparkle {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.skill-cta-text strong {
  font-size: 1.05rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.skill-cta-text p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .skill-packs-cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }
  .skill-cta-text {
    flex-direction: column;
    gap: 6px;
  }
}


/* ==========================================================
   📝 1 對 1 諮詢預約訊息預覽與成功卡片 (Option A + C)
   ========================================================== */
.booking-preview-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(234, 88, 12, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  text-align: left;
}

body.theme-light .booking-preview-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.preview-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 8px;
}

.preview-body {
  font-size: 0.85rem;
  color: #f3f4f6;
  white-space: pre-wrap;
  line-height: 1.65;
  background: rgba(17, 24, 39, 0.7);
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  margin: 0;
}

body.theme-light .preview-body {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.success-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
