/* ===== Index / Hero Page ===== */
.hero {
  min-height: calc(75vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg) var(--space-xl);
  position: relative;
}

/* Scroll hint arrow */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: scrollHintBounce 2.5s ease-in-out infinite;
  cursor: default;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold-primary);
  opacity: 0.7;
}

@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-content {
  max-width: 720px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: var(--space-lg);
  text-transform: lowercase;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-slogan {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  animation: glow 3s ease-in-out infinite;
}

/* ===== Homepage Sections ===== */
.home-section {
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

.home-section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: -24px;
  margin-bottom: var(--space-2xl);
}

/* How It Works — 3 Steps */
.home-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.home-step {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.home-step:hover {
  border-color: var(--border-gold);
}

.home-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.home-step h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.home-step p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.home-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Example Names — 3 Cards */
.home-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.home-example-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.home-example-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.home-example-english {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.home-example-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  min-height: 100px;
}

.home-example-old,
.home-example-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.home-example-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.home-example-new .home-example-label {
  color: var(--gold-primary);
}

.home-example-strikethrough {
  font-family: var(--font-chinese-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 80, 80, 0.55);
  text-decoration-thickness: 2px;
  opacity: 0.55;
  word-break: keep-all;
}

.home-example-arrow {
  color: var(--gold-primary);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
}

.home-example-chinese {
  font-family: var(--font-chinese-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  margin-bottom: 0;
  white-space: nowrap;
}

.home-example-new .home-example-chinese {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-example-pinyin {
  font-size: 0.9rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: 0;
}

.home-example-reason {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.home-example-reason em {
  color: var(--gold-primary);
  font-style: normal;
  font-weight: 500;
}

.home-example-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-primary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .home-example-versus {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .home-example-arrow {
    transform: rotate(90deg);
  }
  .home-example-chinese {
    font-size: 1.8rem;
  }
}

/* Comparison */
.home-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.home-compare-col {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.home-compare-col h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.home-compare-col ul {
  display: grid;
  gap: var(--space-md);
}

.home-compare-col li {
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 8px;
}

.home-compare-other {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.home-compare-other h3 {
  color: var(--text-muted);
}

.home-compare-other li {
  color: var(--text-muted);
  border-left: 2px solid var(--border-color);
}

.home-compare-us {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02));
  border: 1px solid var(--border-gold);
}

.home-compare-us h3 {
  color: var(--gold-primary);
}

.home-compare-us li {
  color: var(--text-primary);
  border-left: 2px solid var(--gold-primary);
}

/* Bottom CTA */
.home-cta-bottom {
  padding-bottom: var(--space-4xl);
}

/* Responsive */
@media (max-width: 768px) {
  .home-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .home-step-arrow {
    justify-content: center;
    padding-top: 0;
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .home-examples {
    grid-template-columns: 1fr;
  }

  .home-comparison {
    grid-template-columns: 1fr;
  }
}

/* ===== Input Page ===== */
.input-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-lg);
}

.input-form-wrapper {
  max-width: 560px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

.input-form-wrapper h1 {
  font-size: 2rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: var(--space-md);
}

.input-form-wrapper .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: 0.95rem;
}

.input-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.input-form:hover {
  border-color: var(--border-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.06);
}

/* ── Form Step Wizard ── */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ── Progress Bar ── */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.form-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.form-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-base);
  background: var(--bg-card);
}

.form-progress-step.active .form-progress-dot {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #fff;
}

.form-progress-step.completed .form-progress-dot {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #fff;
}

.form-progress-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.form-progress-step.active .form-progress-label,
.form-progress-step.completed .form-progress-label {
  color: var(--gold-primary);
}

.form-progress-line {
  width: 80px;
  height: 2px;
  background: var(--border-color);
  margin: 0 var(--space-md);
  margin-bottom: 22px;
  border-radius: 999px;
  overflow: hidden;
}

.form-progress-fill {
  width: 0;
  height: 100%;
  background: var(--gold-primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ── Back Button ── */
.form-back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.form-back-btn:hover {
  color: var(--gold-primary);
}

/* ── Submit Loading State ── */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn-loading .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}
/* ===== Loading Page ===== */
.loading-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.loading-content {
  max-width: 560px;
  width: 100%;
}

.loading-title {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-2xl);
}

.loading-stage-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  min-height: 1.5em;
}

.loading-ornament {
  font-size: 1.5rem;
  color: var(--gold-primary);
  letter-spacing: 0.5em;
  margin-bottom: var(--space-xl);
}

.loading-error {
  display: none;
  margin-top: var(--space-xl);
}

.loading-error.show {
  display: block;
}

.loading-error p {
  color: var(--error);
  margin-bottom: var(--space-lg);
}

/* ===== Result Page ===== */
.result-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.result-section {
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
  animation: fadeInUp 0.8s ease;
}

.result-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* Destiny Profile */
.destiny-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.destiny-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.destiny-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.destiny-subsection {
  margin-bottom: var(--space-xl);
}

.destiny-subsection h4 {
  color: var(--gold-primary);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.destiny-subsection p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Five Elements Section */
.five-elements {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.five-elements-grid {
  display: flex;
  gap: var(--space-2xl);
  align-items: center;
  justify-content: center;
}

.radar-chart-wrapper {
  flex-shrink: 0;
}

.energy-bars-wrapper {
  flex: 1;
  max-width: 400px;
}

@media (max-width: 768px) {
  .five-elements-grid {
    flex-direction: column;
  }
}

/* Name Cards Grid */
.name-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .name-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* Quality Assurance Badge */
.qa-badge {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(201, 168, 76, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.qa-badge-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.qa-badge-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.qa-badge-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.qa-check {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.qa-advisor {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-top: var(--space-sm);
}

.qa-advisor strong {
  color: var(--gold-primary);
  font-weight: 500;
}

.debug-panel {
  background: rgba(13, 14, 20, 0.82);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.debug-summary {
  cursor: pointer;
  padding: var(--space-lg) var(--space-xl);
  color: var(--gold-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  list-style: none;
  user-select: none;
}

.debug-summary::-webkit-details-marker {
  display: none;
}

.debug-summary::after {
  content: '+';
  float: right;
  color: var(--text-secondary);
}

.debug-panel[open] .debug-summary::after {
  content: '−';
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: 0 var(--space-xl) var(--space-xl);
}

.debug-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.debug-card h4 {
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.debug-list {
  display: grid;
  gap: 10px;
}

.debug-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.debug-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.debug-key {
  color: var(--text-secondary);
}

.debug-value {
  color: var(--text-primary);
  text-align: right;
}

.debug-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.debug-badge.local {
  color: #8fd3a8;
  background: rgba(48, 103, 66, 0.28);
  border: 1px solid rgba(143, 211, 168, 0.2);
}

.debug-badge.model {
  color: #8ec9ff;
  background: rgba(45, 76, 112, 0.28);
  border: 1px solid rgba(142, 201, 255, 0.22);
}

.debug-badge.auto {
  color: #f0cd7a;
  background: rgba(120, 92, 28, 0.28);
  border: 1px solid rgba(240, 205, 122, 0.22);
}

@media (max-width: 768px) {
  .debug-grid {
    grid-template-columns: 1fr;
  }

  .debug-row {
    flex-direction: column;
  }

  .debug-value {
    text-align: left;
  }
}

/* ===== Detail Page ===== */
.detail-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.detail-content {
  max-width: 720px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.detail-name-display {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.detail-chinese-name {
  font-family: var(--font-chinese-serif);
  font-size: 5rem;
  color: var(--text-primary);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-md);
  transition: all 0.6s ease;
}

/* Calligraphy upgrade (Tier 1+) */
.detail-chinese-name.calligraphy-unlocked {
  font-family: var(--font-chinese-calligraphy);
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* Tattoo-Ready Section */
.tattoo-ready-section {
  text-align: center;
  padding: var(--space-xl);
  margin-top: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.6s ease;
}

.tattoo-ready-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.tattoo-ready-checks {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.tattoo-ready-checks span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tattoo-ready-checks span::before {
  content: '✓ ';
  color: var(--gold-primary);
}

.tattoo-canvas-preview {
  display: inline-block;
  padding: var(--space-xl) var(--space-2xl);
  background: #ffffff;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.tattoo-canvas-preview .tattoo-text {
  font-family: var(--font-chinese-calligraphy);
  font-size: 3rem;
  color: #111;
  letter-spacing: 0.2em;
}

.detail-pinyin {
  font-size: 1.25rem;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.detail-section h3 {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.deep-reading-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.deep-reading-header h3 {
  margin-bottom: var(--space-sm);
}

.deep-reading-intro,
.deep-reading-hint {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.deep-reading-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.deep-reading-card {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.deep-reading-card h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.deep-reading-card p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.deep-reading-hint {
  margin-top: var(--space-lg);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.detail-meta-card {
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.detail-meta-card h4 {
  color: var(--gold-primary);
  font-size: 0.92rem;
  margin-bottom: var(--space-sm);
}

.detail-meta-card p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.detail-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.detail-meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-primary);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.character-breakdown {
  margin-bottom: var(--space-md);
}

.character-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

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

.character-char {
  font-family: var(--font-chinese-serif);
  font-size: 2rem;
  color: var(--gold-primary);
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.character-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.character-info p {
  font-size: 0.85rem;
}

.detail-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .deep-reading-header {
    flex-direction: column;
    align-items: stretch;
  }

  .deep-reading-preview-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

.detail-back {
  text-align: center;
}

.detail-back a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-back a:hover {
  color: var(--gold-primary);
}

/* ===== Deep Reading Pay Page ===== */
.deepreading-pay-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.deepreading-pay-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.deepreading-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.deepreading-eyebrow,
.deepreading-section-kicker {
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.deepreading-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: var(--space-sm) 0 var(--space-md);
}

.deepreading-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.9;
}

.deepreading-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
}

.deepreading-selected-name {
  font-family: var(--font-chinese-calligraphy);
  font-size: 3.2rem;
  letter-spacing: 0.22em;
  color: var(--text-primary);
  margin: var(--space-sm) 0;
}

.deepreading-selected-pinyin {
  color: var(--gold-primary);
  letter-spacing: 0.14em;
}

.deepreading-selected-note {
  max-width: 420px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.deepreading-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.deepreading-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.deepreading-value-card {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.deepreading-value-card h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.deepreading-value-card p,
.deepreading-matter-copy p,
.deepreading-price-copy,
.deepreading-notes li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.deepreading-matter-copy p + p {
  margin-top: var(--space-md);
}

.deepreading-outline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-lg);
  padding-left: 1.25rem;
}

.deepreading-outline li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.deepreading-pricing {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
}

.deepreading-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.deepreading-plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(201, 168, 76, 0.16);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.07), rgba(201, 168, 76, 0.02));
}

.deepreading-plan-card.is-featured {
  border-color: rgba(201, 168, 76, 0.38);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.04));
}

.deepreading-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.deepreading-plan-eyebrow {
  color: var(--gold-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 8px;
}

.deepreading-plan-head h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.deepreading-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.16);
  color: var(--gold-primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deepreading-plan-features {
  padding-left: 1.15rem;
  margin: 0;
  display: grid;
  gap: 10px;
}

.deepreading-plan-features li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

.deepreading-plan-card .btn {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.deepreading-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.deepreading-price {
  font-size: 2.4rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.deepreading-price-note {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.deepreading-notes {
  padding-left: 1.2rem;
}

/* ===== Deep Reading Report Page ===== */
.deepreading-report-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.deepreading-report-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.deepreading-report-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.deepreading-tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.14);
  color: var(--gold-primary);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.deepreading-report-pinyin {
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  margin: var(--space-sm) 0 var(--space-md);
}

.deepreading-report-subtitle {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.deepreading-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-xl);
}

.deepreading-snapshot-item {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.14);
}

.deepreading-snapshot-item .label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.deepreading-snapshot-item strong {
  color: var(--text-primary);
  line-height: 1.5;
}

.deepreading-report-section {
  margin-bottom: var(--space-xl);
}

.deepreading-prose p {
  color: var(--text-secondary);
  line-height: 1.95;
  font-size: 0.95rem;
}

.deepreading-prose p + p {
  margin-top: var(--space-md);
}

.deepreading-motto-box {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.03));
  text-align: center;
}

.deepreading-motto-hanzi {
  font-family: var(--font-chinese-calligraphy);
  font-size: 3rem;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.deepreading-motto-pinyin {
  color: var(--gold-primary);
  letter-spacing: 0.14em;
  margin-bottom: var(--space-md);
}

.deepreading-element-list {
  display: grid;
  gap: var(--space-lg);
}

.deepreading-element-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02));
}

.deepreading-element-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.deepreading-element-head h4 {
  color: var(--gold-primary);
  font-size: 1rem;
}

.deepreading-element-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .deepreading-selected,
  .deepreading-grid-two,
  .deepreading-value-grid,
  .deepreading-plan-grid,
  .deepreading-outline,
  .deepreading-snapshot {
    grid-template-columns: 1fr;
  }

  .deepreading-selected {
    flex-direction: column;
    align-items: flex-start;
  }

  .deepreading-selected-name {
    font-size: 2.6rem;
    letter-spacing: 0.16em;
  }

  .deepreading-price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .deepreading-element-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .deepreading-element-meta {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
}

/* Name Card Image Preview */
.name-card-preview {
  margin: var(--space-xl) auto;
  max-width: 400px;
}

.name-card-preview canvas {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.1);
}

/* ===== About Page ===== */
.about-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.about-section {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.about-section .card {
  padding: var(--space-2xl);
}

.about-section h2 {
  color: var(--gold-primary);
  margin-bottom: var(--space-lg);
  font-size: 1.3rem;
}

.about-section p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.about-cta {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  max-width: 800px;
  margin: 0 auto;
}

.about-cta h2 {
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.about-cta p {
  margin-bottom: var(--space-xl);
}

/* ===== Articles Page ===== */
.articles-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  cursor: pointer;
}

.article-card-image {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.article-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

.article-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.article-card .date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Article Detail Page ===== */
.article-detail-page {
  padding: calc(64px + var(--space-xl)) var(--space-lg) var(--space-2xl);
}

.article-detail {
  max-width: 760px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.article-back-link {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--space-xl);
  text-decoration: none;
  transition: color var(--transition-base);
}

.article-back-link:hover {
  color: var(--gold-primary);
}

.article-detail-hero {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.article-hero-symbol {
  font-size: 4rem;
  color: rgba(26, 26, 46, 0.08);
  font-family: var(--font-chinese-serif);
}

.article-detail-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.article-date,
.article-reading-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-body p {
  margin-bottom: var(--space-lg);
}

.article-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-primary);
  border-left: 3px solid var(--gold-primary);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-2xl) !important;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-primary);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.04em;
}

.article-body h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-body ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.article-body li {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.article-body li strong {
  color: var(--text-primary);
}

.article-body em {
  color: var(--gold-primary);
  font-style: italic;
}

/* Article Info Grid */
.article-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.article-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--transition-base);
}

.article-info-card:hover {
  border-color: var(--border-gold);
}

.article-info-card h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.article-info-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* Zodiac Grid */
.article-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}

.zodiac-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color var(--transition-base);
}

.zodiac-item:hover {
  border-color: var(--border-gold);
}

.zodiac-emoji {
  font-size: 1.6rem;
}

.zodiac-item strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.zodiac-element {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.zodiac-element.wood { color: #6bcf7f; background: rgba(107, 207, 127, 0.12); }
.zodiac-element.fire { color: #f07070; background: rgba(240, 112, 112, 0.12); }
.zodiac-element.earth { color: #d4a843; background: rgba(212, 168, 67, 0.12); }
.zodiac-element.metal { color: #c0c0c0; background: rgba(192, 192, 192, 0.12); }
.zodiac-element.water { color: #6faed9; background: rgba(111, 174, 217, 0.12); }

/* Five Elements Showcase */
.article-elements-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.element-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border-left: 4px solid;
  transition: transform var(--transition-base);
}

.element-card:hover {
  transform: translateX(4px);
}

.element-card.element-wood  { border-left-color: #6bcf7f; }
.element-card.element-fire  { border-left-color: #f07070; }
.element-card.element-earth { border-left-color: #d4a843; }
.element-card.element-metal { border-left-color: #c0c0c0; }
.element-card.element-water { border-left-color: #6faed9; }

.element-symbol {
  font-family: var(--font-chinese-serif);
  font-size: 2rem;
  float: right;
  opacity: 0.2;
  margin-left: var(--space-md);
}

.element-card h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.element-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: var(--space-xs) !important;
}

/* Cycle Diagram */
.article-cycle-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
}

.cycle-item {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

.cycle-arrow {
  font-size: 0.78rem;
  color: var(--gold-primary);
  white-space: nowrap;
}

/* Example Box */
.article-example-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.article-example-pair {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.article-example-pair:last-child {
  border-bottom: none;
}

.example-char {
  font-family: var(--font-chinese-serif);
  font-size: 2.2rem;
  color: var(--gold-primary);
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.example-meaning {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.inline-chinese {
  font-family: var(--font-chinese-serif);
  color: var(--text-muted);
}

/* Article CTA */
.article-cta {
  text-align: center;
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-xl);
}

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg) !important;
  font-size: 1.05rem;
}

/* Article Detail Responsive */
@media (max-width: 768px) {
  .article-detail-header h1 {
    font-size: 1.5rem;
  }

  .article-detail-hero {
    height: 180px;
  }

  .article-info-grid {
    grid-template-columns: 1fr;
  }

  .article-zodiac-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-cycle-diagram {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .article-zodiac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Coming Soon Page ===== */
.coming-soon-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
}

.coming-soon-content {
  max-width: 480px;
  animation: fadeInUp 0.8s ease;
}

.coming-soon-content h1 {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.coming-soon-content p {
  margin-bottom: var(--space-xl);
}

/* ===== Login Page ===== */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-lg);
}

.auth-form-wrapper {
  max-width: 440px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

.auth-form-wrapper h1 {
  font-size: 2rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.auth-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.auth-form .form-group:last-of-type {
  margin-bottom: var(--space-xl);
}

.auth-link {
  text-align: center;
  margin-top: var(--space-xl);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-link a {
  color: var(--gold-primary);
  font-weight: 500;
}

.auth-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--error);
  display: none;
  text-align: center;
}

.auth-error.show {
  display: block;
}

/* ===== Membership Page ===== */
.membership-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.membership-grid {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  align-items: stretch;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.membership-card {
  flex: 1;
  min-width: 280px;
  display: flex;
}

.membership-card .card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.membership-card .card ul {
  flex: 1;
}

/* ===== Settings Page ===== */
.settings-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.settings-content {
  max-width: 560px;
  margin: 0 auto;
}

.settings-content h1 {
  font-size: 2rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.settings-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.settings-upgrade {
  text-align: center;
}

/* ===== Responsive Hero ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.15em;
  }

  .hero-slogan {
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .detail-chinese-name {
    font-size: 3.5rem;
  }

  .input-form {
    padding: var(--space-xl);
  }

  .auth-form {
    padding: var(--space-xl);
  }
}

/* ===== Tier System: Insight Preview & Locked Modules ===== */

/* Insight Preview Section */
.insight-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.insight-preview h3 {
  color: var(--gold-primary);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.insight-text-truncated {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gold-primary);
  text-decoration: none;
  transition: opacity var(--transition-base);
}

.insight-read-more:hover {
  opacity: 0.8;
}

/* Personality Strengths (Free: only first 2) */
.insight-list-preview {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insight-list-preview li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) 24px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.insight-list-preview li:last-child {
  border-bottom: none;
}

.insight-list-preview li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.7rem;
  top: calc(var(--space-sm) + 4px);
}

/* Motto Section */
.motto-section {
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.motto-section h3 {
  color: var(--gold-primary);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.motto-chinese {
  font-family: var(--font-chinese-calligraphy);
  font-size: 2.2rem;
  color: var(--text-primary);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.motto-pinyin {
  font-size: 0.9rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.motto-english {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.motto-element-tag {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-primary);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Motto Blurred (Free Tier) */
.motto-blurred .motto-chinese,
.motto-blurred .motto-pinyin,
.motto-blurred .motto-english {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.motto-blurred .motto-unlock-overlay {
  display: flex;
}

.motto-unlock-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-md);
  background: rgba(248, 243, 227, 0.85);
  z-index: 2;
}

.motto-unlock-overlay span {
  font-size: 0.95rem;
  color: var(--gold-primary);
}

/* Unified Locked Card — truncate + gradient fade + lock */
.locked-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.locked-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
}

.locked-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.03em;
}

.locked-card-preview {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-height: 3.6em; /* ~2 lines */
  overflow: hidden;
}

/* Motto variant — show Chinese characters larger */
.locked-card-motto {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 4px;
  max-height: 1.6em;
  overflow: hidden;
}

.locked-card-motto-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Gradient fade overlay */
.locked-card-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-card, var(--bg-primary)) 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-md);
  pointer-events: none;
}

.locked-card-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  pointer-events: auto;
  opacity: 0.85;
}

/* Tier badge in lock label */
.locked-card-lock .tier-label {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.locked-card-lock .tier-label.tier1 {
  color: #8ec9ff;
  background: rgba(45, 76, 112, 0.28);
  border: 1px solid rgba(142, 201, 255, 0.22);
}

.locked-card-lock .tier-label.tier2 {
  color: #d4a5ff;
  background: rgba(90, 50, 120, 0.28);
  border: 1px solid rgba(180, 140, 220, 0.22);
}

.locked-cards-grid {
  display: grid;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

/* Unlock CTA Banner */
.unlock-cta {
  max-width: 900px;
  margin: var(--space-xl) auto var(--space-2xl);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(201, 168, 76, 0.03));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
}

.unlock-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-md);
}

.unlock-cta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.unlock-cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Report Page Styles */
.report-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.report-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.report-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.report-header h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.report-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-meta-item strong {
  color: var(--text-secondary);
}

/* Report Section */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.report-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.report-section p,
.report-section li {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.report-section ul {
  list-style: none;
  padding: 0;
}

.report-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: var(--space-sm);
}

.report-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.7rem;
  top: 4px;
}

/* Talent Grade */
.talent-grade {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.talent-grade-letter {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold-primary);
  line-height: 1;
}

.talent-grade-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Career Stages */
.career-stages {
  display: grid;
  gap: var(--space-md);
}

.career-stage {
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.career-stage h4 {
  font-size: 0.92rem;
  color: var(--gold-primary);
  margin-bottom: var(--space-sm);
}

.career-stage p {
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Health Disclaimer */
.health-disclaimer {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border-left: 3px solid rgba(201, 168, 76, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* Yearly Forecast Score */
.forecast-score {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.forecast-score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold-primary);
  line-height: 1;
}

.forecast-score-bar {
  flex: 1;
  height: 8px;
  background: rgba(26, 26, 46, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.forecast-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  transition: width 1s ease;
}

/* Report Closing Note */
.report-closing {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06), rgba(201, 168, 76, 0.02));
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
}

.report-closing p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.report-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid rgba(180, 50, 50, 0.7);
  border-radius: var(--radius-sm);
  font-family: var(--font-chinese-serif);
  font-size: 0.85rem;
  color: rgba(180, 50, 50, 0.8);
  line-height: 1.2;
  letter-spacing: 0.05em;
  transform: rotate(-6deg);
  margin-top: var(--space-md);
}

.report-methodology {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-lg);
  letter-spacing: 0.04em;
}

/* Responsive for tier elements */
@media (max-width: 768px) {
  .locked-card {
    padding: var(--space-lg) var(--space-xl);
  }

  .locked-card-motto {
    font-size: 1.3rem;
  }

  .unlock-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .talent-grade-letter {
    font-size: 2rem;
  }

  .forecast-score-number {
    font-size: 2.2rem;
  }

  .report-meta {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Cases Page ===== */
.cases-page {
  padding: calc(64px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.case-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}

.case-card-names {
  flex: 1;
}

.case-card-english {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.case-card-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 2px 0;
}

.case-card-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}

.case-card-pinyin {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.case-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.case-card-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.case-card-tag.accent {
  background: rgba(194, 155, 88, 0.1);
  color: var(--accent);
}

/* ===== Case Detail Page ===== */
.case-detail-page {
  padding: calc(64px + var(--space-xl)) var(--space-lg) var(--space-2xl);
}

.case-detail {
  max-width: 720px;
  margin: 0 auto;
}

.case-back-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color 0.2s;
}

.case-back-link:hover {
  color: var(--accent);
}

.case-hero {
  text-align: center;
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.case-hero-english {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

.case-hero-chinese {
  font-family: 'Noto Serif SC', serif;
  font-size: 3.5rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.case-hero-pinyin {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.case-hero-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 480px;
  margin: 0 auto;
}

.case-section {
  margin-bottom: var(--space-2xl);
}

.case-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.case-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.case-elements-bar {
  display: flex;
  gap: 4px;
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 32px;
}

.case-element-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  padding: 0 8px;
  white-space: nowrap;
}

.case-element-segment.wood  { background: #4caf50; }
.case-element-segment.fire  { background: #f44336; }
.case-element-segment.earth { background: #ff9800; }
.case-element-segment.metal { background: #9e9e9e; }
.case-element-segment.water { background: #2196f3; }

.case-insight-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--accent);
  margin: var(--space-md) 0;
}

.case-insight-box p {
  margin: 0;
  font-size: 0.9rem;
}

.case-char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.case-char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.case-char-card .char {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.2rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}

.case-char-card .pinyin {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.case-char-card .meaning {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.case-char-card .element-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: var(--space-sm);
  font-weight: 500;
}

.case-char-card .element-tag.wood  { background: rgba(76,175,80,0.1); color: #4caf50; }
.case-char-card .element-tag.fire  { background: rgba(244,67,54,0.1); color: #f44336; }
.case-char-card .element-tag.earth { background: rgba(255,152,0,0.1); color: #ff9800; }
.case-char-card .element-tag.metal { background: rgba(158,158,158,0.1); color: #757575; }
.case-char-card .element-tag.water { background: rgba(33,150,243,0.1); color: #2196f3; }

.case-phonetic-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-size: 1.1rem;
}

.case-phonetic-flow .eng {
  font-family: 'Cinzel', serif;
  color: var(--text-secondary);
}

.case-phonetic-flow .arrow {
  color: var(--text-muted);
}

.case-phonetic-flow .chn {
  font-family: 'Noto Serif SC', serif;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
}

.case-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-light);
}

.case-cta h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.case-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .case-hero-chinese {
    font-size: 2.5rem;
  }
  .case-char-grid {
    grid-template-columns: 1fr;
  }
  .case-phonetic-flow {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
