/* ==========================================================================
   掌心解碼 (Kaiyun Code) - 全站通用宇宙星空玻璃擬態樣式庫
   ========================================================================== */

:root {
  --bg-dark: #070614;
  --bg-card: rgba(22, 19, 48, 0.72);
  --bg-card-hover: rgba(38, 33, 80, 0.9);
  --bg-card-selected: rgba(147, 51, 234, 0.18);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-active: #A855F7;
  --border-gold: #F59E0B;
  --primary-gold: #F59E0B;
  --gold-gradient: linear-gradient(135deg, #F6D365 0%, #FDA085 100%);
  --purple-gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  --pink-gradient: linear-gradient(135deg, #EC4899 0%, #F43F5E 100%);
  --cta-gradient: linear-gradient(90deg, #F59E0B 0%, #EF4444 100%);
  --cta-purple: linear-gradient(135deg, #9333EA 0%, #4F46E5 100%);
  --emerald-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --text-main: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --text-gold: #FCD34D;
  --radius-card: 16px;
  --radius-btn: 14px;
  --shadow-glow: 0 0 25px rgba(168, 85, 247, 0.35);
  --shadow-gold: 0 0 22px rgba(245, 158, 11, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 50% 5%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 35%),
    url("../assets/atmosphere/night-nebula.jpg?v=q1");
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-attachment: scroll;
}

.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cosmic-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.glow-1 {
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.22);
}
.glow-2 {
  bottom: 40px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(245, 158, 11, 0.15);
}
.glow-3 {
  top: 45%;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(236, 72, 153, 0.12);
}

.app-container {
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: rgba(11, 9, 29, 0.85);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
}

/* Header */
.header {
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 12, 38, 0.88);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-family: 'Cinzel', 'Noto Serif TC', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text-main);
}
.brand-sparkle {
  color: var(--primary-gold);
  font-size: 1.25rem;
  animation: pulse-glow 2s infinite ease-in-out;
}
.brand-mark-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  flex: none;
  border: 1px solid rgba(212, 181, 106, 0.45);
}
.brand-name {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: clamp(0.78rem, 3.2vw, 1.05rem);
}
.brand-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--purple-gradient);
  -webkit-text-fill-color: #FFF;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.step-counter {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--text-gold);
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, #8B5CF6, #EC4899, #F59E0B);
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
}

/* Screen Content */
.screen-container {
  flex: 1;
  padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

.fade-in {
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.6)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 1)); }
}

/* Title & Subtitle */
.screen-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.screen-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Option Cards (General) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.45);
}
.option-card:active {
  transform: scale(0.98);
}
.option-card.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-active);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.option-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.option-content {
  flex: 1;
}
.option-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}
.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.option-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.option-card.selected .option-check {
  border-color: #A855F7;
  background: #A855F7;
}
.option-check::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #FFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.option-card.selected .option-check::after {
  display: block;
}

/* Grid Options (for Tarots, Elements, Zodiacs) */
.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.grid-card {
  flex-direction: column;
  text-align: center;
  padding: 20px 14px;
}
.grid-card .option-icon {
  margin: 0 auto 8px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

/* Laser Palm Scan Ritual Animation */
.palm-scanner-box {
  width: 100%;
  height: 280px;
  background: rgba(15, 12, 40, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 24px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}
.palm-hand-svg {
  width: 170px;
  height: 210px;
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}
.laser-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #38BDF8, #F59E0B, transparent);
  box-shadow: 0 0 15px #38BDF8, 0 0 25px #F59E0B;
  animation: laserSweep 2.2s infinite ease-in-out alternate;
}
@keyframes laserSweep {
  0% { top: 5%; opacity: 0.4; }
  50% { opacity: 1; }
  100% { top: 92%; opacity: 0.4; }
}
.scan-grid-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(168, 85, 247, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* CTA Primary Button */
.cta-button {
  width: 100%;
  height: 54px;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--cta-gradient);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-gold);
  margin-top: 20px;
  text-decoration: none;
  position: relative;
}
.cta-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}
.cta-button:active {
  transform: scale(0.98);
}
.cta-button:disabled,
.cta-button[disabled] {
  background: #4b5563;
  color: #d1d5db;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
  transform: none;
  opacity: 1;
  pointer-events: none;
}
.cta-button:disabled:hover,
.cta-button[disabled]:hover,
.cta-button:disabled:active,
.cta-button[disabled]:active {
  transform: none;
  box-shadow: none;
  filter: none;
}
.cta-purple-btn {
  background: var(--cta-purple);
  box-shadow: var(--shadow-glow);
}
.cta-purple-btn:hover {
  box-shadow: 0 0 30px rgba(147, 51, 234, 0.7);
}

/* Corner Pointing Finger Guide (右上角無方框手勢動畫，上下上下反覆作動) */
.cta-guide-wrapper {
  position: relative;
  width: 100%;
  display: block;
}
.cta-corner-finger {
  position: absolute;
  top: -30px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  z-index: 20;
  user-select: none;
  will-change: transform;
  animation: cornerFingerTap 0.85s ease-in-out infinite !important;
}
.cta-corner-finger .corner-finger-icon {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.95));
  display: inline-block;
}
.cta-corner-finger .corner-finger-text {
  font-size: 0.95rem;
  font-weight: 900;
  color: #FEF08A;
  letter-spacing: 1px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 1),
    0 0 12px rgba(245, 158, 11, 0.9),
    0 0 24px rgba(239, 68, 68, 0.7);
  font-family: inherit;
}

@keyframes cornerFingerTap {
  0%, 100% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(12px);
  }
}

/* Paywall & Combined Checkout Form */
.paywall-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.paywall-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
  accent-color: #f59e0b;
}
.paywall-wrapper input[type="checkbox"]:checked {
  width: 16px;
  height: 16px;
}
.pricing-card {
  background: rgba(22, 19, 48, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.pricing-card.popular {
  border-color: var(--primary-gold);
  background: rgba(45, 30, 70, 0.75);
  box-shadow: var(--shadow-gold);
}
.badge-popular {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--gold-gradient);
  color: #070614;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}
.price-amount {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFF;
}
.price-currency {
  font-size: 1.1rem;
  color: var(--text-gold);
}
.price-old {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Combined Registration + Payment Form */
.auth-checkout-box {
  background: rgba(18, 15, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
}
.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.input-group {
  margin-bottom: 14px;
}
.input-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.custom-input {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0 14px;
  color: #FFF;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.custom-input:focus {
  border-color: #A855F7;
  background: rgba(255, 255, 255, 0.1);
}

/* Birth Date Segmented Inputs */
.birth-date-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: text;
}
.birth-date-box:focus-within {
  border-color: #A855F7;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}
.birth-date-segment-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.birth-date-field {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.birth-date-input {
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-size: 1.12rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  padding: 2px 2px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.birth-date-input::-webkit-outer-spin-button,
.birth-date-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.birth-date-input:focus {
  background: rgba(168, 85, 247, 0.25);
  color: #F3E8FF;
}
.birth-date-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-weight: 400;
  font-size: 0.95rem;
}
.birth-date-year {
  width: 56px;
}
.birth-date-month,
.birth-date-day {
  width: 34px;
}
.birth-date-slash {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.15rem;
  font-weight: 300;
  user-select: none;
  margin: 0 2px;
}
.birth-date-unit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  user-select: none;
}
.birth-date-icon {
  font-size: 1.2rem;
  opacity: 0.7;
  user-select: none;
  margin-left: 6px;
}
.cta-button:focus,
.cta-button:focus-visible {
  outline: 2px solid #F59E0B;
  outline-offset: 3px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.85);
}
.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Footer */
.footer {
  padding: 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 7, 24, 0.95);
  text-align: center;
  margin-top: auto;
}
.footer-security {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
}
.footer-security span {
  white-space: normal;
}
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.footer-link {
  color: #D1D5DB;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--text-gold);
}

.app-container--legal {
  max-width: 680px;
}
.legal-article {
  padding: 8px 4px 28px;
  color: #E5E7EB;
}
.legal-article h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #FFF;
  margin: 8px 0 6px;
}
.legal-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.legal-article h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-gold);
  margin: 22px 0 8px;
}
.legal-article p,
.legal-article li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #D1D5DB;
}
.legal-article p {
  margin-bottom: 10px;
}
.legal-article ul {
  margin: 0 0 12px 1.15rem;
}
.legal-article li {
  margin-bottom: 6px;
}
.legal-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-gold);
  text-decoration: none;
}
.legal-back:hover {
  text-decoration: underline;
}

/* Hub Navigation Menu */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}
.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.hub-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.4);
}
.hub-hero-art {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center center;
  background: #070b18;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 16px;
  margin: 0 auto 16px;
  border: 1px solid rgba(212, 181, 106, 0.28);
}
.hub-palm-link {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.hub-palm-link .hub-hero-art {
  margin-bottom: 0;
}
.hub-start-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px auto 14px;
  pointer-events: none;
}
.hub-start-cue-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FDE68A;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
  animation: hub-cue-text-drop 1.1s ease-in-out infinite;
}
.hub-start-cue-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #FCD34D;
  border-bottom: 2px solid #FCD34D;
  animation: hub-cue-arrow-drop 1.1s ease-in-out infinite;
}
.hub-start-cue-text,
.hub-start-cue-arrow {
  animation-duration: 1.1s !important;
  animation-iteration-count: infinite !important;
}
@keyframes hub-cue-text-drop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(14px); }
}
@keyframes hub-cue-arrow-drop {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(6px, 6px); }
}
.hub-themes {
  scroll-margin-top: 76px;
  text-align: center;
}
.hub-hero-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
  font-size: 1.45rem;
  line-height: 1;
}
.hub-hero-title-row .screen-title {
  margin: 0;
  font-size: 1em;
  line-height: 1.15;
}
.hub-title-palm {
  width: 1em;
  height: 1em;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.45));
}
@media (min-width: 768px) {
  .hub-hero-title-row {
    font-size: 1.65rem;
  }
}
html {
  scroll-behavior: smooth;
}
.hub-card-cover {
  width: 100%;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}
.hub-card-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}
.hub-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.hub-card-tag {
  font-size: 0.72rem;
  color: var(--text-gold);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  margin-bottom: 6px;
}
.hub-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Test-unlock + teaser */
.test-unlock-banner {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6EE7B7;
  line-height: 1.5;
  text-align: center;
}
.test-unlock-banner strong {
  color: #6EE7B7;
  font-size: 0.88rem;
}
.checkout-legal-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 12px 0 18px;
  line-height: 1.5;
}
.checkout-legal-note code {
  color: var(--text-gold);
  font-size: 0.72rem;
}
.checkout-preview-price {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.palm-ritual-note,
.birth-owner-hint {
  text-align: center;
  color: var(--text-gold);
  font-size: 0.82rem;
  margin: 0 0 16px;
  line-height: 1.5;
}
.teaser-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}
.teaser-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.teaser-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gold);
}
.teaser-zodiac {
  font-size: 0.75rem;
  color: #A7F3D0;
  background: rgba(16, 185, 129, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
}
.teaser-hook {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.teaser-list li {
  font-size: 0.82rem;
  color: #E5E7EB;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.teaser-list li span:first-child {
  color: var(--primary-gold);
}
.teaser-work-link {
  text-align: center;
  font-size: 0.82rem;
  color: #C4B5FD;
  margin: 0 0 12px;
}
.teaser-work-link a,
.report-inline-link {
  color: #FCD34D;
}
.report-core-sentence {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #FFF;
  text-align: center;
  font-weight: 700;
  margin: 8px 0 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 0 4px;
}
/* 未解鎖的付費字段。文字本身已在 JS 換成星號，這裡只負責讓它看起來像刻意遮住的。 */
.report-locked {
  display: inline-block;
  letter-spacing: 2px;
  color: rgba(252, 211, 77, 0.75);
  background: rgba(245, 158, 11, 0.14);
  border-radius: 4px;
  padding: 0 4px;
}
.report-timing {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-gold);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}
.report-inline-link {
  display: block;
  text-align: center;
  margin: 8px 0 0;
  font-size: 0.85rem;
}
.report-section-card {
  background: rgba(22, 19, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.report-section-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 8px;
}
.report-section-card p {
  font-size: 0.86rem;
  color: #E5E7EB;
  line-height: 1.6;
}
.wealth-life-axis {
  margin: 2px 0 18px;
  padding: 12px 10px 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.32) 0%, rgba(12, 8, 28, 0.72) 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.12);
}
.wealth-life-axis-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.wealth-life-axis-track {
  position: relative;
  height: 118px;
}
.wealth-life-axis-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.18), rgba(251, 191, 36, 0.9), rgba(168, 85, 247, 0.18));
}
.wealth-life-tick {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  color: #6b7280;
  font-size: 0.62rem;
  text-align: center;
  pointer-events: none;
}
.wealth-life-tick i {
  display: block;
  width: 1px;
  height: 10px;
  margin: 0 auto 3px;
  background: rgba(255, 255, 255, 0.22);
}
.wealth-life-node {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}
.wealth-life-orb {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff7d1 0%, #fbbf24 42%, #b45309 100%);
}
.wealth-life-orb[data-glow="max"] {
  width: 22px;
  height: 22px;
  box-shadow: 0 0 10px 4px rgba(253, 230, 138, 0.98), 0 0 28px 12px rgba(245, 158, 11, 0.78), 0 0 58px 22px rgba(168, 85, 247, 0.38);
  animation: wealth-orb-pulse-max 1.8s ease-in-out infinite;
}
.wealth-life-orb[data-glow="high"] {
  width: 16px;
  height: 16px;
  box-shadow: 0 0 8px 3px rgba(251, 191, 36, 0.78), 0 0 18px 8px rgba(245, 158, 11, 0.48);
  animation: wealth-orb-pulse-high 2.2s ease-in-out infinite;
}
.wealth-life-orb[data-glow="mid"] {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 6px 2px rgba(217, 119, 6, 0.55), 0 0 12px 5px rgba(245, 158, 11, 0.28);
  animation: wealth-orb-pulse-mid 2.6s ease-in-out infinite;
}
.wealth-life-orb[data-glow="low"] {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 4px 1px rgba(180, 83, 9, 0.42), 0 0 8px 3px rgba(245, 158, 11, 0.16);
  animation: wealth-orb-pulse-low 3s ease-in-out infinite;
}
.wealth-life-age {
  margin-top: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fde68a;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}
.wealth-life-node[data-lane="1"] .wealth-life-age {
  margin-top: 0;
  position: absolute;
  top: -22px;
}
.wealth-life-now {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}
.wealth-life-now-orb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d1fae5 0%, #34d399 42%, #047857 100%);
  box-shadow: 0 0 8px 3px rgba(52, 211, 153, 0.95), 0 0 22px 9px rgba(16, 185, 129, 0.55);
  animation: wealth-now-pulse 2s ease-in-out infinite;
}
.wealth-life-now-label {
  position: absolute;
  top: -20px;
  font-size: 0.66rem;
  font-weight: 800;
  color: #6ee7b7;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}
@keyframes wealth-orb-pulse-max {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.35); transform: scale(1.08); }
}
@keyframes wealth-orb-pulse-high {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.22); transform: scale(1.05); }
}
@keyframes wealth-orb-pulse-mid {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.12); transform: scale(1.03); }
}
@keyframes wealth-orb-pulse-low {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.06); transform: scale(1.02); }
}
@keyframes wealth-now-pulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.25); transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .wealth-life-orb[data-glow="max"],
  .wealth-life-orb[data-glow="high"],
  .wealth-life-orb[data-glow="mid"],
  .wealth-life-orb[data-glow="low"],
  .wealth-life-now-orb {
    animation: none;
  }
}
.report-structured {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-block {
  margin: 0;
}
.report-h2 {
  font-size: 1.14rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.report-h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f9a8d4;
  margin: 0 0 8px;
}
.report-points {
  margin: 0;
  padding-left: 1.2rem;
  padding-right: 4px;
  max-width: 100%;
}
.report-point {
  font-size: 0.9rem;
  color: #f3f4f6;
  line-height: 1.7;
  margin: 0 0 8px;
  font-weight: 500;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.report-points .report-point::marker {
  color: #f59e0b;
}
.report-structured.is-mosaic .report-h2,
.report-structured.is-mosaic .report-h3,
.report-structured.is-mosaic .report-point {
  filter: blur(7px) contrast(1.25);
  user-select: none;
  pointer-events: none;
}
.palm-line-block {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.palm-line-block:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}
.palm-line-title {
  margin: 0 0 8px;
  color: var(--text-gold);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.palm-line-body {
  margin: 0 0 8px;
  color: #e5e7eb;
  font-size: 0.98rem;
  line-height: 1.85;
}
.report-advanced-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.report-advanced-row a,
.report-advanced-row button {
  flex: 1;
  min-width: 140px;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
  }
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .screen-title {
    font-size: 1.65rem;
  }
}

/* Palm camera dialog (cosmic theme, adapted from 掌心密碼) */
.camera-dialog { width: min(680px, calc(100% - 28px)); margin: auto; padding: 0; border: 1px solid rgba(168, 85, 247, 0.45); color: var(--text-main); background: #0c0818; box-shadow: 0 28px 90px rgba(0, 0, 0, .65); }
.camera-dialog::backdrop { background: rgba(4, 4, 16, .84); backdrop-filter: blur(6px); }
.camera-dialog-inner { padding: 23px; background: radial-gradient(circle at 50% 8%, rgba(139, 92, 246, .18), transparent 37%), #0c0818; }
.camera-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.camera-dialog-heading .section-kicker { margin: 0 0 6px; color: var(--text-gold); font-size: 12px; letter-spacing: .08em; }
.camera-dialog-heading h2 { margin: 0; color: #FFF; font-family: "Noto Serif TC", serif; font-size: 22px; font-weight: 700; }
.camera-close { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(168, 85, 247, .42); color: #FFF; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; border-radius: 10px; }
.camera-close:hover { color: var(--text-gold); border-color: var(--text-gold); }
.camera-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(168, 85, 247, .35); background: #060412; border-radius: 14px; }
.camera-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-guides { position: absolute; inset: 4%; display: grid; place-items: center; pointer-events: none; }
.palm-guide { position: absolute; top: 2%; left: 50%; width: auto; height: 96%; overflow: visible; filter: drop-shadow(0 0 12px rgba(7, 6, 20, .6)); transform: translateX(-50%); }
.camera-guides.is-mirrored .palm-guide { transform: translateX(-50%) scaleX(-1); }
.palm-guide-outline { fill: rgba(168, 85, 247, .08); stroke: rgba(252, 211, 77, .88); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s ease, stroke .2s ease, filter .2s ease; }
.camera-guides.is-positioned .palm-guide-outline { fill: rgba(245, 158, 11, .15); stroke: #F59E0B; filter: drop-shadow(0 0 16px rgba(245, 158, 11, .75)); }
.camera-guides.is-ready .palm-guide-outline { fill: rgba(16, 185, 129, .2); stroke: #10B981; filter: drop-shadow(0 0 20px rgba(16, 185, 129, .85)); }
.camera-guide-label { position: absolute; bottom: 5%; max-width: calc(100% - 22px); padding: 7px 10px; color: #FFF; border: 1px solid rgba(168, 85, 247, .46); background: rgba(7, 6, 20, .68); font-size: 11px; line-height: 1.45; letter-spacing: .05em; text-align: center; border-radius: 10px; }
.camera-focus-countdown {
  position: absolute;
  top: 38%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: #FFF;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .88), 0 0 22px rgba(168, 85, 247, .45);
}
.camera-focus-countdown[hidden] { display: none !important; }
.camera-focus-countdown strong {
  font-size: clamp(64px, 22vw, 108px);
  font-weight: 800;
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.camera-focus-countdown small {
  color: #FDE68A;
  font-size: 13px;
  letter-spacing: .14em;
}
.camera-error { min-height: 20px; margin: 13px 0; color: #C4B5FD; font-size: 12px; line-height: 1.6; }
.camera-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.camera-actions .primary-button,
.camera-actions .secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.camera-actions .primary-button { border: 1px solid #A855F7; color: #FFF; background: var(--purple-gradient); }
.camera-actions .secondary-button { border: 1px solid rgba(255,255,255,.2); color: #FFF; background: rgba(255,255,255,.06); }
.palm-capture-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.palm-capture-actions .cta-button { margin-top: 0; }
.palm-hand-toggle { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; color: var(--text-muted); font-size: 13px; }
.palm-hand-btn {
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #FFF;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}
.palm-hand-btn.is-active,
.palm-hand-btn[aria-pressed="true"] {
  border-color: #A855F7;
  background: var(--purple-gradient);
}
.kaiyun-palm-thumb-wrap { margin: 12px 0; text-align: center; }
.kaiyun-palm-thumb-wrap img { max-width: 220px; border-radius: 14px; border: 1px solid rgba(168,85,247,.4); }
.palm-privacy-note {
  margin: 14px 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.report-tabs-hint { text-align: center; color: var(--text-gold); font-size: 0.82rem; margin: 8px 0 10px; }
.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.report-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #E5E7EB;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  line-height: 1.35;
  min-height: 46px;
}
.report-tab-btn:hover { border-color: #C084FC; background: rgba(168, 85, 247, 0.16); }
.report-tab-btn:active { transform: scale(0.98); }
.report-tab-btn.active {
  background: var(--purple-gradient);
  color: white;
  border-color: #A855F7;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.report-consult-quiet { text-align: center; margin: 22px 0 8px; }
.report-consult-quiet a {
  color: var(--text-gold);
  font-size: 0.9rem;
  text-decoration: underline;
}
.report-advanced-row { width: 100%; box-sizing: border-box; }
.report-save-btn {
  margin-top: 0;
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  min-height: 48px;
  height: auto;
  padding: 12px 18px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  line-height: 1.4;
}
.print-hint {
  text-align: center;
  color: #FCD34D;
  font-size: clamp(0.75rem, 2.8vw, 0.85rem);
  margin: 10px auto 0;
  line-height: 1.6;
  max-width: 95%;
  word-break: break-word;
}
.print-report-all { display: none; }

@media (max-width: 767px) {
  .camera-dialog-inner { padding: 17px; }
  .camera-frame { aspect-ratio: 3 / 4; max-height: 68vh; }
  .camera-actions { justify-content: stretch; }
  .camera-actions button { flex: 1 1 150px; }
  .camera-focus-countdown strong { font-size: clamp(72px, 28vw, 120px); }
  .camera-focus-countdown small { font-size: 15px; }
  .header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .screen-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .report-tab-btn {
    font-size: 11px;
    padding: 8px 4px;
  }
  .header-member-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   開運密碼 AI - 全篇章專屬 Prelanding 導引首頁樣式
   ========================================================================== */
.prelanding-container {
  text-align: center;
  padding: 10px 4px 20px;
}
.prelanding-orb {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.75));
  animation: pulseOrb 2.8s ease-in-out infinite alternate;
}
.prelanding-cover,
.palm-ritual-art,
.quiz-atmosphere,
.report-atmosphere {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(212, 181, 106, 0.28);
}
.prelanding-cover { height: 168px; }
.palm-ritual-art { height: 150px; }
.quiz-atmosphere { height: 120px; }
.report-atmosphere { height: 140px; }
@keyframes pulseOrb {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.5)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 32px rgba(245, 158, 11, 0.85)); }
}
.prelanding-hero-title {
  font-size: clamp(23px, 5.2vw, 30px);
  font-weight: 900;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.prelanding-hero-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.prelanding-checklist-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 26px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
}
.prelanding-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #f1f5f9;
  font-size: 14px;
  line-height: 1.4;
}
.prelanding-checklist-item:last-child {
  margin-bottom: 0;
}
.prelanding-checklist-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.prelanding-checklist-text strong {
  color: #ffffff;
  font-weight: 700;
}
.prelanding-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 16px 24px !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.45) !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  letter-spacing: 0.5px;
}
.prelanding-btn:hover {
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.65) !important;
  filter: brightness(1.08);
}
.prelanding-btn:active {
  transform: scale(0.98);
}
.prelanding-trust-footer {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}
.prelanding-trust-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Palm-line AI result (heart / head / life / marriage) */
.ai-line-screen .screen-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 22px;
  line-height: 1.7;
}
.ai-line-result {
  width: 100%;
  margin: 4px 0 8px;
}
.ai-line-kicker {
  margin: 0 0 10px;
  color: var(--text-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-align: left;
}
.ai-line-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 24px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 18px;
  background: rgba(22, 19, 48, 0.78);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.28);
}
.ai-line-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}
.ai-line-shape {
  margin: 0;
  color: #fff;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.45;
}
.ai-line-trait-label {
  margin: 10px 0 0;
  color: var(--text-gold);
  font-size: 0.92rem;
  font-weight: 700;
}
.ai-line-trait {
  margin: 0;
  color: #e5e7eb;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
}

.palm-ai-loading[hidden],
#report-body[hidden] {
  display: none !important;
}
.palm-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52vh;
  padding: 36px 16px 24px;
  text-align: center;
}
.palm-ai-loading-title {
  margin: 22px 0 8px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.45;
}
.palm-ai-loading-sub {
  margin: 0 auto 22px;
  max-width: 22em;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}
.palm-ai-loading-bar {
  width: min(280px, 80%);
  height: 6px;
  border-radius: 3px;
}
.loader-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.18);
  border-top-color: #f59e0b;
  border-right-color: #ef4444;
  animation: palmAiSpin 0.9s linear infinite;
}
@keyframes palmAiSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   掌紋深度辨識專屬 — 占卜掌心光陣／星盤掌紋羅盤 (Palm Divination Astrolabe)
   與報告解鎖階段的 3D 水晶球視覺完全區隔
   ========================================================================== */
.palm-divination-compass {
  position: relative;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.palm-compass-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.palm-compass-ring.ring-outer {
  border: 2px solid;
  border-color: rgba(245, 158, 11, 0.8) rgba(236, 72, 153, 0.7) rgba(168, 85, 247, 0.8) rgba(56, 189, 248, 0.6);
  animation: palmCompassSpinOuter 8s linear infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), inset 0 0 14px rgba(168, 85, 247, 0.2);
}

.palm-compass-ring.ring-inner {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border: 1.5px dashed rgba(254, 240, 138, 0.7);
  box-shadow: 0 0 10px rgba(254, 240, 138, 0.25);
  animation: palmCompassSpinInner 12s linear infinite reverse;
}

.palm-mandala-core {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.45) 0%, rgba(30, 8, 54, 0.7) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(245, 158, 11, 0.3);
  animation: palmMandalaPulse 2.4s ease-in-out infinite alternate;
}

.palm-mandala-icon {
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 0 8px #FEF08A) drop-shadow(0 0 14px #EC4899);
  animation: palmIconFloat 2s ease-in-out infinite alternate;
}

.palm-scan-line {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #38BDF8 30%, #FFF 50%, #38BDF8 70%, transparent 100%);
  box-shadow: 0 0 8px #38BDF8, 0 0 14px #818CF8;
  border-radius: 2px;
  animation: palmLaserSweep 2.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 3;
}

@keyframes palmCompassSpinOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes palmCompassSpinInner {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes palmMandalaPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
  100% { transform: scale(1.05); box-shadow: 0 0 24px rgba(245, 158, 11, 0.6); }
}

@keyframes palmIconFloat {
  0% { transform: translateY(1px) scale(0.96); }
  100% { transform: translateY(-2px) scale(1.04); }
}

@keyframes palmLaserSweep {
  0% { top: 18%; opacity: 0.4; }
  50% { opacity: 0.95; }
  100% { top: 78%; opacity: 0.4; }
}

/* ==========================================================================
   掌心解碼 - 經典占卜水晶球（生動幀數流光與電漿星芒動態）
   ========================================================================== */
.divination-oracle-ring {
  position: relative;
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.oracle-inner-glow {
  position: relative;
  width: 52px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: crystalFloating 2.4s ease-in-out infinite alternate;
}

/* 水晶球主體 */
.oracle-crystal-sphere {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #581C87 0%, #3B0764 60%, #1E0836 100%);
  box-shadow: 
    0 0 20px rgba(168, 85, 247, 0.9),
    0 0 35px rgba(245, 158, 11, 0.5),
    inset 0 0 14px rgba(217, 70, 239, 0.8);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* 內部動態星雲漩渦 (Swirling Nebula) */
.crystal-swirl-layer {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  border-radius: 42%;
  background: conic-gradient(
    from 0deg,
    rgba(244, 63, 94, 0.85) 0deg,
    rgba(168, 85, 247, 0.95) 70deg,
    rgba(56, 189, 248, 0.85) 140deg,
    rgba(250, 204, 21, 0.9) 210deg,
    rgba(236, 72, 153, 0.95) 280deg,
    rgba(244, 63, 94, 0.85) 360deg
  );
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: swirlRotate 3.2s steps(16) infinite;
}

/* 電漿能量核心 (Plasma Core) */
.crystal-plasma-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0%, #FEF08A 30%, #E879F9 70%, transparent 100%);
  filter: blur(1.5px);
  mix-blend-mode: color-dodge;
  animation: plasmaPulse 1.6s steps(8) infinite alternate;
}

/* 幀數星芒閃爍 (Stepped Sparkle Stars) */
.crystal-sparkle {
  position: absolute;
  font-size: 10px;
  line-height: 1;
  color: #FFF;
  text-shadow: 0 0 6px #FDE047, 0 0 12px #EC4899;
  pointer-events: none;
  z-index: 5;
}
.crystal-sparkle.s-1 {
  top: 8px;
  left: 10px;
  animation: sparkleStep1 1.8s steps(6) infinite;
}
.crystal-sparkle.s-2 {
  top: 14px;
  right: 8px;
  font-size: 8px;
  animation: sparkleStep2 2.2s steps(6) infinite 0.4s;
}
.crystal-sparkle.s-3 {
  bottom: 12px;
  left: 14px;
  font-size: 9px;
  animation: sparkleStep3 2s steps(6) infinite 0.8s;
}
.crystal-sparkle.s-4 {
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  animation: sparkleStep4 2.5s steps(6) infinite 0.2s;
}

/* 表面弧形高光 (Glass Glint) */
.crystal-glass-glint {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 14px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: rotate(-35deg);
  z-index: 6;
  filter: blur(0.3px);
}

/* 掃光束動態 (Caustic Sweep) */
.crystal-sweep-flare {
  position: absolute;
  top: -40%;
  left: -80%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  transform: rotate(25deg);
  animation: sweepFlare 2.8s steps(12) infinite;
  mix-blend-mode: overlay;
  z-index: 7;
}

/* 黃金底座 */
.oracle-crystal-base {
  position: relative;
  margin-top: -4px;
  width: 34px;
  height: 9px;
  background: linear-gradient(180deg, #FDE047 0%, #D97706 65%, #78350F 100%);
  border-radius: 2px 2px 8px 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  z-index: 3;
}

/* 外圍旋轉光環（完整開闊同心圓星軌） */
.oracle-spin-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}
.oracle-spin-ring.ring-outer {
  border: 2px solid;
  border-color: rgba(245, 158, 11, 0.7) rgba(236, 72, 153, 0.6) rgba(168, 85, 247, 0.7) rgba(56, 189, 248, 0.5);
  animation: oracleSpinOuter 6s linear infinite;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25), inset 0 0 15px rgba(168, 85, 247, 0.15);
}
.oracle-spin-ring.ring-inner {
  width: 82%;
  height: 82%;
  top: 9%;
  left: 9%;
  border: 1.5px dashed rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  animation: oracleSpinInner 10s linear infinite reverse;
}

/* 幀數動畫 Keyframes */
@keyframes crystalFloating {
  0% { transform: translateY(0) scale(0.96); filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.6)); }
  100% { transform: translateY(-4px) scale(1.04); filter: drop-shadow(0 0 28px rgba(245, 158, 11, 0.95)); }
}

@keyframes swirlRotate {
  0% { transform: rotate(0deg) scale(0.95); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(0.95); }
}

@keyframes plasmaPulse {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.75; }
}

@keyframes sparkleStep1 {
  0%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  35% { opacity: 1; transform: scale(1.4) rotate(45deg); }
  70% { opacity: 0.2; transform: scale(0.8) rotate(90deg); }
}

@keyframes sparkleStep2 {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.5) rotate(-30deg); }
  80% { opacity: 0.1; transform: scale(0.6) rotate(60deg); }
}

@keyframes sparkleStep3 {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.3) rotate(60deg); }
  80% { opacity: 0.2; transform: scale(0.4); }
}

@keyframes sparkleStep4 {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  45% { opacity: 1; transform: scale(1.4) rotate(-45deg); }
  75% { opacity: 0.3; transform: scale(0.7); }
}

@keyframes sweepFlare {
  0%, 30% { left: -80%; opacity: 0; }
  55% { opacity: 0.85; }
  80%, 100% { left: 140%; opacity: 0; }
}

@keyframes oracleSpinOuter {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes oracleSpinInner {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.loading-mystic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #fcd34d;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.loading-percent-badge {
  font-family: 'Cinzel', 'Noto Sans TC', sans-serif;
  font-size: 2.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 6px 0 10px;
  line-height: 1;
  filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.6));
  letter-spacing: -0.5px;
}

.loading-step-tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
}

/* ==========================================================================
   不規則浮動大氣泡與地圖分裂排列
   ========================================================================== */
.bubble-map-wrapper {
  margin-top: 8px;
  position: relative;
  min-height: 360px;
}

/* 放射星軌大氣泡容器 (Radial Orbital Cloud Layout) */
.big-bubbles-cloud {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 360px;
  margin: 14px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 宇宙星系軌道光環背景 (Cosmic Orbit Background) */
.big-bubbles-cloud::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.12) inset;
  pointer-events: none;
}

.big-bubbles-cloud::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px dotted rgba(245, 158, 11, 0.24);
  pointer-events: none;
}

.big-bubble-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  backdrop-filter: blur(8px);
}

.big-bubble-item:hover {
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
  border-color: rgba(245, 158, 11, 0.9);
  z-index: 25 !important;
}

.big-bubble-item:active {
  transform: scale(0.94) !important;
}

/* 台灣主氣泡（位於最中央核心，最大、最醒目耀眼） */
.big-bubble-tw {
  position: relative; /* 居中核心 */
  z-index: 12;
  width: 145px;
  height: 145px;
  background: radial-gradient(circle at 35% 35%, rgba(245, 158, 11, 0.42), rgba(217, 70, 239, 0.52) 60%, rgba(30, 27, 75, 0.96));
  border-color: rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45), 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: bubbleFloatCenter 4.2s ease-in-out infinite alternate;
}
.big-bubble-tw .bubble-icon { font-size: 2.2rem; }
.big-bubble-tw .bubble-name { font-size: 1.1rem; font-weight: 800; color: #fef08a; margin-top: 2px; }
.big-bubble-tw .bubble-hint { font-size: 0.72rem; color: #fde047; opacity: 0.95; }

/* 放射四周 1：左上方（中國大陸） */
.big-bubble-cn {
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.35), rgba(168, 85, 247, 0.45) 65%, rgba(15, 23, 42, 0.9));
  border-color: rgba(239, 68, 68, 0.7);
  animation: bubbleFloatNW 4.8s ease-in-out infinite alternate;
}
.big-bubble-cn .bubble-icon { font-size: 1.6rem; }
.big-bubble-cn .bubble-name { font-size: 0.92rem; font-weight: 700; color: #fecaca; }
.big-bubble-cn .bubble-hint { font-size: 0.68rem; color: #fca5a5; opacity: 0.88; }

/* 放射四周 2：右上方（港澳星馬） */
.big-bubble-sea {
  top: 10px;
  right: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.35), rgba(147, 51, 234, 0.45) 65%, rgba(15, 23, 42, 0.9));
  border-color: rgba(96, 165, 250, 0.7);
  animation: bubbleFloatNE 4.5s ease-in-out infinite alternate;
}
.big-bubble-sea .bubble-icon { font-size: 1.55rem; }
.big-bubble-sea .bubble-name { font-size: 0.92rem; font-weight: 700; color: #bae6fd; }
.big-bubble-sea .bubble-hint { font-size: 0.68rem; color: #7dd3fc; opacity: 0.88; }

/* 放射四周 3：左下方（亞洲鄰國） */
.big-bubble-asia {
  bottom: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(236, 72, 153, 0.35), rgba(99, 102, 241, 0.45) 65%, rgba(15, 23, 42, 0.9));
  border-color: rgba(244, 114, 182, 0.7);
  animation: bubbleFloatSW 5s ease-in-out infinite alternate;
}
.big-bubble-asia .bubble-icon { font-size: 1.55rem; }
.big-bubble-asia .bubble-name { font-size: 0.92rem; font-weight: 700; color: #fbcfe8; }
.big-bubble-asia .bubble-hint { font-size: 0.68rem; color: #f472b6; opacity: 0.88; }

/* 放射四周 4：右下方（美國歐美） */
.big-bubble-global {
  bottom: 10px;
  right: 10px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(16, 185, 129, 0.35), rgba(59, 130, 246, 0.45) 65%, rgba(15, 23, 42, 0.9));
  border-color: rgba(52, 211, 153, 0.7);
  animation: bubbleFloatSE 5.2s ease-in-out infinite alternate;
}
.big-bubble-global .bubble-icon { font-size: 1.6rem; }
.big-bubble-global .bubble-name { font-size: 0.92rem; font-weight: 700; color: #a7f3d0; }
.big-bubble-global .bubble-hint { font-size: 0.68rem; color: #6ee7b7; opacity: 0.88; }

/* 浮動微動動畫 (Floating Keyframes) */
@keyframes bubbleFloatCenter {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-7px) scale(1.03); }
}
@keyframes bubbleFloatNW {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-6px) rotate(-3deg); }
}
@keyframes bubbleFloatNE {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(3deg); }
}
@keyframes bubbleFloatSW {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(6px) rotate(2deg); }
}
@keyframes bubbleFloatSE {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(7px) rotate(-2deg); }
}

@media (max-width: 480px) {
  .big-bubbles-cloud {
    min-height: 330px;
    max-width: 350px;
  }
  .big-bubbles-cloud::before {
    width: 260px;
    height: 260px;
  }
  .big-bubbles-cloud::after {
    width: 180px;
    height: 180px;
  }
  .big-bubble-tw {
    width: 126px;
    height: 126px;
  }
  .big-bubble-tw .bubble-icon { font-size: 1.85rem; }
  .big-bubble-tw .bubble-name { font-size: 0.98rem; }
  .big-bubble-cn,
  .big-bubble-sea,
  .big-bubble-asia,
  .big-bubble-global {
    width: 86px;
    height: 86px;
  }
  .big-bubble-cn { top: 4px; left: 4px; }
  .big-bubble-sea { top: 4px; right: 4px; }
  .big-bubble-asia { bottom: 4px; left: 4px; }
  .big-bubble-global { bottom: 4px; right: 4px; }
  .big-bubble-cn .bubble-icon,
  .big-bubble-sea .bubble-icon,
  .big-bubble-asia .bubble-icon,
  .big-bubble-global .bubble-icon { font-size: 1.3rem; }
  .big-bubble-cn .bubble-name,
  .big-bubble-sea .bubble-name,
  .big-bubble-asia .bubble-name,
  .big-bubble-global .bubble-name { font-size: 0.8rem; }
}

/* ==========================================================================
   分裂後的地圖排列容器 (Map Dispersion Container)
   ========================================================================== */
.bubble-scatter-stage {
  animation: bubbleScatterIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubbleScatterIn {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.scatter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.scatter-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fcd34d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.back-btn-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e5e7eb;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.back-btn-pill:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fcd34d;
}

/* ==========================================================================
   台灣白線地圖與座標氣泡舞台 (Taiwan White-line Map & Geo-Coordinates Stage)
   ========================================================================== */
.taiwan-map-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 540px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 45%, rgba(30, 27, 75, 0.8) 0%, rgba(10, 10, 26, 0.98) 80%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2) inset;
}

.taiwan-svg-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tw-geo-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  color: #f3f4f6;
  padding: 5px 9px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
  z-index: 5;
  backdrop-filter: blur(4px);
}

.tw-geo-chip:hover {
  background: rgba(245, 158, 11, 0.4);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
  z-index: 15;
}

.tw-geo-chip.active {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-color: #fef08a;
  color: #fff;
  font-weight: 800;
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.9);
  z-index: 20;
}

@media (max-width: 480px) {
  .taiwan-map-stage {
    height: 500px;
    max-width: 360px;
  }
  .tw-geo-chip {
    padding: 4px 7px;
    font-size: 0.72rem;
    border-radius: 12px;
  }
}

.geo-map-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.geo-map-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 420px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 45%, rgba(30, 27, 75, 0.8) 0%, rgba(10, 10, 26, 0.98) 80%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.2) inset;
}

.geo-map-caption {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 6;
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.geo-map-stage--china { height: 400px; }
.geo-map-stage--sea { height: 520px; }
.geo-map-stage--japan { height: 500px; }
.geo-map-stage--korea { height: 420px; }
.geo-map-stage--seasia { height: 500px; }
.geo-map-stage--usa { height: 320px; }
.geo-map-stage--canada { height: 280px; }
.geo-map-stage--europe { height: 360px; }
.geo-map-stage--oceania { height: 360px; }

.geo-map-stage--china .tw-geo-chip,
.geo-map-stage--seasia .tw-geo-chip {
  padding: 4px 7px;
  font-size: 0.7rem;
}

@media (max-width: 480px) {
  .geo-map-stage {
    max-width: 360px;
  }
  .geo-map-stage--china { height: 360px; }
  .geo-map-stage--sea { height: 480px; }
  .geo-map-stage--japan,
  .geo-map-stage--seasia { height: 460px; }
  .geo-map-stage--usa { height: 280px; }
  .geo-map-stage--canada { height: 250px; }
}

/* 小氣泡樣式 */
.sub-bubble-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f3f4f6;
  padding: 7px 13px;
  border-radius: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  user-select: none;
}
.sub-bubble-chip:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fef08a;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.sub-bubble-chip.active {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  border-color: #fef08a;
  color: #fff;
  font-weight: 800;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* 一般區域散開排列 (網格) */
.general-scatter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 6px;
}

.palm-retake-note {
  color: var(--text-gold);
  font-size: 1.02rem;
  font-weight: 600;
}

.kaiyun-mosaic {
  display: inline-block;
  color: #fde68a;
  letter-spacing: 0.18em;
  filter: blur(6px) contrast(1.35);
  transform: scale(1.05);
  user-select: none;
  pointer-events: none;
}

.report-addons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.addon-column {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 14px;
}

.addon-column-title {
  color: #fcd34d;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.addon-open-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.addon-open-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.addon-open-btn.addon-header-badge,
.addon-open-btn.addon-header-badge:disabled {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  margin-bottom: 12px;
}

.addon-body {
  margin-top: 12px;
}

.addon-column.is-locked {
  position: relative;
}

.addon-mosaic-wrap {
  position: relative;
  max-height: 168px;
  overflow: hidden;
  margin-bottom: 10px;
}

.addon-mosaic-text {
  filter: blur(7px) contrast(1.25);
  user-select: none;
  pointer-events: none;
}

.addon-mosaic-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 24, 0.08), rgba(10, 8, 24, 0.82));
  pointer-events: none;
}

.addon-last-chance-note {
  font-size: 0.78rem;
  color: var(--text-gold);
  margin: 0 0 8px;
}

/* ==========================================================================
   掌心解碼 - 無障礙與漸進增強防護層 (A11y & Progressive Enhancement)
   ========================================================================== */

/* 動態偏好適應：照顧前庭敏感與動態不適族群 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cosmic-glow,
  .brand-sparkle,
  .glow-1, .glow-2, .glow-3 {
    animation: none !important;
    opacity: 0.5;
  }
}

/* backdrop-filter 漸進增強 */
@supports not (backdrop-filter: blur(8px)) {
  .header {
    background: rgba(15, 12, 38, 0.96);
  }
  .app-container {
    background: rgba(11, 9, 29, 0.96);
  }
}

/* ==========================================================================
   掌心解碼 - 權威評分與真實評價系統 (Review System)
   ========================================================================== */
.review-system-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.review-summary-card {
  background: linear-gradient(145deg, rgba(30, 24, 54, 0.9), rgba(18, 14, 38, 0.95));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.review-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-score-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 95px;
  text-align: center;
}

.review-score-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: #FCD34D;
  line-height: 1;
  font-family: 'Cinzel', serif;
}

.review-score-stars {
  color: #FBBF24;
  font-size: 0.95rem;
  margin: 4px 0 2px;
  letter-spacing: 1px;
}

.review-score-total {
  font-size: 0.72rem;
  color: #9CA3AF;
}

.review-bars-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.review-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #D1D5DB;
}

.review-bar-label {
  min-width: 22px;
  text-align: right;
  font-size: 0.7rem;
}

.review-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  border-radius: 10px;
}

.review-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-tag-chip {
  font-size: 0.72rem;
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.review-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, background 0.2s;
}

.review-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.review-user-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #F3F4F6;
}

.review-verified-badge {
  font-size: 0.65rem;
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  padding: 1px 5px;
  border-radius: 10px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.review-time {
  font-size: 0.7rem;
  color: #6B7280;
}

.review-item-stars {
  font-size: 0.82rem;
  color: #FBBF24;
  font-weight: 700;
}

.review-item-text {
  font-size: 0.86rem;
  color: #E5E7EB;
  line-height: 1.55;
  margin: 0;
}

.review-quick-scroll {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.review-quick-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #9CA3AF;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

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

.review-quick-item.just-added {
  animation: slideInDownFade 0.5s ease-out forwards;
}

@keyframes slideInDownFade {
  0% {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(245, 158, 11, 0.12);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

.live-indicator-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #34D399;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}



/* ==========================================================================
   會員系統、認證彈窗與結帳自動載入樣式
   ========================================================================== */

/* Site passcode gate — independent of member modal */
#kaiyun-site-gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #0B0A12;
}
html.kaiyun-gate-locked,
html.kaiyun-gate-locked body {
  overflow: hidden;
}
.kaiyun-site-gate-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.kaiyun-site-gate-title {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: 0.04em;
}
.kaiyun-site-gate-sub {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
}
.kaiyun-site-gate-alert {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
  font-size: 0.88rem;
}
.kaiyun-site-gate-form {
  text-align: left;
}
.kaiyun-site-gate-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: #CBD5E1;
}
.kaiyun-site-gate-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #111827;
  color: #F8FAFC;
  font-size: 1rem;
  box-sizing: border-box;
}
.kaiyun-site-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #FBBF24, #D97706);
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}

/* Header Member Slot */
.header-member-slot {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-member-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.header-member-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.8);
}

.header-member-btn.logged-in {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.6);
  color: #FFFFFF;
}

.member-avatar-mini {
  font-size: 0.95rem;
}

.member-name-mini {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-badge-mini {
  background: #059669;
  color: #FFFFFF;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
}

/* Member Modal Backdrop & Card */
.member-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.member-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.member-modal-card {
  background: linear-gradient(180deg, #1E1B2E 0%, #13111C 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.member-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9CA3AF;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.member-modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.member-modal-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.member-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.member-modal-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* Tabs */
.member-modal-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.member-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #9CA3AF;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Alerts */
.member-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 12px;
}

.member-alert.is-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

.member-alert.is-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}

/* Verification Code Input */
.verify-code-input {
  font-size: 1.4rem;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 700;
  color: #FCD34D;
}

.resend-code-btn {
  background: none;
  border: none;
  color: #60A5FA;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.resend-code-btn:hover {
  color: #93C5FD;
}

.auth-switch-link {
  color: #FCD34D;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.auth-switch-link:hover {
  color: #FDE68A;
}

/* Profile Card */
.member-profile-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.member-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.member-profile-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.member-profile-label {
  color: var(--text-muted);
}

.member-profile-value {
  color: #FFFFFF;
}

.member-profile-value.font-bold {
  font-weight: 700;
}

.verified-badge {
  color: #34D399;
  background: rgba(52, 211, 153, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.unverified-badge {
  color: #F87171;
  background: rgba(248, 113, 113, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.verify-now-btn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
}

.member-logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9CA3AF;
  font-size: 0.88rem;
  padding: 10px;
  border-radius: var(--radius-btn);
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.member-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
}

/* Checkout Member Autofill Box */
.member-autofill-box {
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(19, 17, 28, 0.8) 100%) !important;
}

.member-autofill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.member-badge-gold {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.member-switch-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.member-switch-btn:hover {
  color: #F3F4F6;
}

.member-autofill-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.member-autofill-avatar {
  font-size: 1.8rem;
}

.member-autofill-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.member-autofill-email {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.verified-tag {
  color: #34D399;
  font-size: 0.75rem;
  font-weight: 600;
}

.unverified-tag {
  color: #F87171;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}

.member-autofill-hint {
  font-size: 0.82rem;
  color: #D1D5DB;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}


/* ----------------------------------------------------
   12 時辰星盤圖與子泡泡樣式 (12 Shichen Astrolabe Dial)
   ---------------------------------------------------- */
.shichen-dial-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.shichen-wheel-container {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 10px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* 天體星盤背景軌道環 */
.shichen-orbit-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.18) inset, 0 0 25px rgba(245, 158, 11, 0.12);
  pointer-events: none;
  animation: slow-rotate 120s linear infinite;
}
.shichen-orbit-bg::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 1px dotted rgba(168, 85, 247, 0.3);
}

@keyframes slow-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 中央核心資訊樞紐 */
.shichen-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 26, 62, 0.96) 0%, rgba(12, 10, 28, 0.96) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25), 0 0 15px rgba(0, 0, 0, 0.6) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(10px);
}
.shichen-hub-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}
.shichen-hub-title {
  font-family: "Noto Serif TC", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFDF7;
  line-height: 1.2;
  background: linear-gradient(135deg, #FFFDF7 0%, #FDE68A 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shichen-hub-desc {
  font-size: 0.65rem;
  color: #94A3B8;
  margin-top: 2px;
  line-height: 1.1;
}

/* 十二時辰子泡泡 (Clockwise Circular Bubbles) */
.shichen-bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(22, 19, 48, 0.88);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  user-select: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-135px) rotate(calc(-1 * var(--deg)));
  backdrop-filter: blur(8px);
  z-index: 5;
  color: #F8FAFC;
  padding: 2px;
}
.shichen-bubble-branch {
  font-family: "Cinzel", "Noto Serif TC", serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  color: #FDE68A;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}
.shichen-bubble-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: #CBD5E1;
  line-height: 1;
  margin-top: 1px;
}
.shichen-bubble-range {
  font-size: 0.52rem;
  color: #94A3B8;
  transform: scale(0.9);
  line-height: 1;
  white-space: nowrap;
}

/* Hover & Active States */
.shichen-bubble:hover {
  transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-135px) rotate(calc(-1 * var(--deg))) scale(1.15);
  border-color: rgba(245, 158, 11, 0.95);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
  background: rgba(35, 30, 75, 0.95);
  z-index: 10;
}
.shichen-bubble.selected {
  background: linear-gradient(135deg, #FFFDF7 0%, #FDE68A 30%, #F59E0B 100%);
  border-color: #FFF;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.95), 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-135px) rotate(calc(-1 * var(--deg))) scale(1.18);
  z-index: 12;
}
.shichen-bubble.selected .shichen-bubble-branch,
.shichen-bubble.selected .shichen-bubble-name,
.shichen-bubble.selected .shichen-bubble-range {
  color: #070614 !important;
  text-shadow: none;
  font-weight: 800;
}

/* 不清楚時辰 底部專用按鈕 */
.shichen-unknown-box {
  width: 100%;
  max-width: 360px;
  margin: 4px auto 18px;
}
.shichen-unknown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 19, 48, 0.65);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.shichen-unknown-btn:hover {
  background: rgba(35, 30, 75, 0.85);
  border-color: rgba(245, 158, 11, 0.8);
  color: #FFF;
  transform: translateY(-2px);
}
.shichen-unknown-btn.selected {
  background: rgba(245, 158, 11, 0.18);
  border-color: #F59E0B;
  color: #FDE68A;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}
.shichen-unknown-btn .unknown-icon {
  font-size: 1.1rem;
}
.shichen-unknown-btn .unknown-text {
  flex: 1;
  text-align: left;
}

/* Responsive Adaptation for Smaller Mobile Screens (< 380px) */
@media (max-width: 380px) {
  .shichen-wheel-container {
    width: 310px;
    height: 310px;
  }
  .shichen-orbit-bg {
    width: 230px;
    height: 230px;
  }
  .shichen-center-hub {
    width: 98px;
    height: 98px;
  }
  .shichen-hub-title {
    font-size: 0.78rem;
  }
  .shichen-hub-desc {
    font-size: 0.6rem;
  }
  .shichen-bubble {
    width: 46px;
    height: 46px;
    transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-116px) rotate(calc(-1 * var(--deg)));
  }
  .shichen-bubble:hover {
    transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-116px) rotate(calc(-1 * var(--deg))) scale(1.15);
  }
  .shichen-bubble.selected {
    transform: translate(-50%, -50%) rotate(var(--deg)) translateY(-116px) rotate(calc(-1 * var(--deg))) scale(1.18);
  }
  .shichen-bubble-branch {
    font-size: 0.95rem;
  }
  .shichen-bubble-name {
    font-size: 0.55rem;
  }
}
