#trialResultModal .trial-modal-container {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#trialResultModal .modal-header {
  flex-shrink: 0;
}

#trialResultModal .modal-body {
  overflow-y: auto;
  min-height: 0;
}

.readiness-result .modal-body {
  display: flex;
  flex-direction: column;
}

.readiness-result .modal-body > div {
  flex-shrink: 0;
}

.readiness-result #trialFeedbackBox {
  order: 0;
}

.readiness-result #trialScoreSummary {
  order: 1;
}

.readiness-result .modal-body > div:last-child {
  order: 2;
}

#trialAssessmentReport {
  color: #334155;
  overflow-wrap: anywhere;
}

#trialAssessmentReport h4 {
  font-size: 16px;
  margin: 8px 0;
  color: #0f172a;
}

.readiness-summary,
.readiness-next {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bbd6ed;
  border-radius: 12px;
  background: #eff6ff;
}

.readiness-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #075985;
}

.readiness-chart {
  margin-top: 18px;
}

.readiness-chart svg {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.readiness-grid {
  fill: none;
  stroke: #b5c4d3;
  stroke-width: 1;
}

.readiness-area {
  fill: #0078d433;
  stroke: #0078d4;
  stroke-width: 2;
}

.readiness-dot {
  fill: #075985;
}

.readiness-axis {
  fill: #334155;
  font-size: 12px;
}

.readiness-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-left: 22px;
}

.readiness-signal {
  padding: 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.readiness-signal p {
  margin: 6px 0 0;
}

.readiness-status {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}

.readiness-review .readiness-status {
  color: #92400e;
}

.readiness-observed .readiness-status {
  color: #166534;
}

.readiness-note {
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

.readiness-next ol {
  padding-left: 20px;
}

.readiness-next li + li {
  margin-top: 8px;
}

.readiness-review.btn {
  white-space: normal;
  max-width: 100%;
}

.readiness-evidence {
  margin-top: 18px;
}

.readiness-evidence-card {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.readiness-evidence-card summary {
  cursor: pointer;
  font-weight: 600;
}

.readiness-quote {
  margin: 12px 0;
  padding: 10px;
  border-left: 3px solid #0078d4;
  background: #eff6ff;
  white-space: pre-wrap;
}

@media (max-width: 480px) {
  .readiness-signals {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🎯 高轉化付費牆 7 大行為心理學升級樣式 (paywall-upgrade-cro × loss-aversion)
   ========================================================================== */

/* 頂部高對比緊急度條 */
.paywall-urgency-header {
  background: linear-gradient(135deg, #f59e0b 0%, #e11d48 50%, #d97706 100%);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.urgency-badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgency-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ① 沉沒成本卡 (Sunk Cost Card) */
.trial-sunk-cost-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.sunk-cost-icon {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sunk-cost-headline {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.45;
}

.highlight-time {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sunk-cost-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

/* 答對率概覽卡 */
.trial-score-summary-card {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.06) 0%, rgba(16, 124, 65, 0.06) 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1.5px solid rgba(0, 120, 212, 0.15);
  text-align: center;
}

.score-label-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.score-main-value {
  font-size: 38px;
  font-weight: 800;
  color: #0078d4;
  line-height: 1.1;
}

.score-accuracy-detail {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
}

/* 答錯題目解析模糊阻斷卡 (Blurred Teaser) */
.trial-locked-preview-card {
  position: relative;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  color: #e2e8f0;
}

.blurred-teaser-content {
  filter: blur(4.5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.35;
  font-size: 12px;
  line-height: 1.6;
}

.teaser-overlay-lock {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.lock-icon-badge {
  width: 36px;
  height: 36px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 6px;
}

.teaser-lock-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.teaser-lock-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  max-width: 380px;
}

/* ③ 考期倒數與報名費損失框架 (Deadline Loss Framing) */
.trial-deadline-loss-card {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: #713f12;
}

.deadline-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.deadline-exam-title {
  font-size: 13px;
  font-weight: 700;
  color: #854d0e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deadline-days-badge {
  background: #fef08a;
  color: #713f12;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid #facc15;
}

.deadline-loss-warning {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #854d0e;
}

/* ④ 15 分鐘限時計時器 (Time-Scarcity Loss) */
.trial-scarcity-countdown-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #881337;
}

.countdown-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #be123c;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.countdown-desc {
  font-size: 11.5px;
  color: #9f1239;
  line-height: 1.45;
}

.timer-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 26px;
  font-weight: 900;
  color: #e11d48;
  letter-spacing: -0.02em;
}

/* ⑤ 高轉換 CTA 按鈕 (paywall-upgrade-cro 公式) */
.btn-paywall-cro-primary {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.38);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-paywall-cro-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #1e40af 100%);
}

.btn-paywall-cro-primary:active {
  transform: scale(0.98);
}

.cro-btn-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 35%, rgba(255, 255, 255, 0.2) 50%, transparent 65%);
  transform: rotate(25deg);
  animation: croShine 3.8s ease-in-out infinite;
}

@keyframes croShine {
  0%, 75% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.cro-btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  flex-wrap: wrap;
  justify-content: center;
}

.cro-price-deal {
  font-size: 18px;
  color: #fef08a;
  font-weight: 900;
}

.cro-action-text {
  letter-spacing: -0.01em;
}

.cro-original-price {
  font-size: 12px;
  color: #bfdbfe;
  text-decoration: line-through;
  font-weight: 500;
}

/* ⑥ 信任訊號下移至 CTA 正下方 */
.paywall-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 10px;
  flex-wrap: wrap;
}

.paywall-trust-badges i {
  color: #10b981;
  margin-right: 3px;
}

.paywall-trust-badges .trust-sep {
  color: #cbd5e1;
}

/* ⑦ 次要 CTA 視覺降級 (Ghost Button / 連結樣式) */
.paywall-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.btn-ghost-secondary {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s ease;
}

.btn-ghost-secondary:hover {
  color: #475569;
}

.ghost-sep {
  color: #e2e8f0;
  font-size: 12px;
}

.features-guide-link {
  font-size: 12px;
  color: #0284c7;
  text-decoration: underline;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

