/* ═══════════════════════════════════════════════════
   MysticAI · 东方玄学美学
   墨色为骨，金为神，朱砂点睛，翠微润色
   ═══════════════════════════════════════════════════ */

:root {
  --bg-base: #080a0f;--bg-surface: #0f1219;--bg-elevated: #161a24;--bg-overlay: #1c2130;
  --gold-100: #fdf3d0;--gold-200: #f5dea8;--gold-400: #d4a853;--gold-500: #b8892a;--gold-600: #8c6318;
  --cinnabar: #e04a4a;--cinnabar-light: #f06a6a;--cinnabar-dark: #b83838;
  --text-primary: #e8e4dd;--text-secondary: #9a9590;--text-tertiary: #6b6662;--text-disabled: #484440;
  --text-dim: #9a9590;
  --border-default: #252832;--border-light: #323746;--border-gold: rgba(212,168,83,0.20);
  --color-success: #5d9b7a;--color-warning: #d4983a;--color-error: #e04a4a;--color-info: #6b8cce;
  --font-display: 'Source Han Serif SC','Noto Serif SC','SimSun',serif;
  --font-body: 'Source Han Sans SC','Noto Sans SC','PingFang SC',-apple-system,sans-serif;
  --font-mono: 'Cascadia Code','Fira Code','Consolas',monospace;
  --text-xs: 0.75rem;--text-sm: 0.875rem;--text-base: 1rem;--text-lg: 1.125rem;--text-xl: 1.25rem;
  --text-2xl: 1.5rem;--text-3xl: 1.875rem;--text-4xl: 2.25rem;--text-5xl: 3rem;--text-6xl: 3.75rem;--text-7xl: 4.5rem;
  --space-1:0.25rem;--space-2:0.5rem;--space-3:0.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;
  --space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--space-20:5rem;--space-24:6rem;
  --radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:16px;--radius-2xl:24px;--radius-full:9999px;
  --shadow-sm:0 1px 2px rgba(0,0,0,0.4);--shadow-md:0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:0 8px 24px rgba(0,0,0,0.6);--shadow-xl:0 16px 48px rgba(0,0,0,0.7);
  --shadow-gold:0 0 24px rgba(212,168,83,0.15);--shadow-cinnabar:0 0 24px rgba(224,74,74,0.15);
  --transition-fast:150ms cubic-bezier(0.4,0,0.2,1);
  --transition-base:250ms cubic-bezier(0.4,0,0.2,1);
  --transition-slow:400ms cubic-bezier(0.4,0,0.2,1);
}

/* ═══════ RESET ═══════ */
* { margin:0; padding:0; box-sizing:border-box; }
html { font-size:18px; scroll-behavior:smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height:100vh; overflow-x:hidden;
  line-height:1.7;
}
::selection { background: rgba(212,168,83,0.15); color: var(--gold-400); }

/* ═══════ 宣纸纹理覆盖层 ═══════ */
body::before {
  content: '';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    repeating-linear-gradient(0deg,
      transparent, transparent 2px,
      rgba(160,130,100,0.012) 2px, rgba(160,130,100,0.012) 4px),
    repeating-linear-gradient(90deg,
      transparent, transparent 3px,
      rgba(140,120,90,0.008) 3px, rgba(140,120,90,0.008) 6px);
  opacity:0.6;
}

/* ═══════ SVG 背景 ═══════ */
.bg-svg { position:fixed; top:0; left:0; width:100vw; height:100vh; z-index:0; pointer-events:none; }

/* ═══════ HEADER ═══════ */
.app-header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 60px;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(212, 168, 83, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  box-sizing: border-box;
}

/* 印章风格 Logo */
.logo {
  font-family: var(--font-display);
  font-size:1.3rem; font-weight:700;
  color:var(--gold-400);
  text-decoration:none;
  letter-spacing:2px;
  position:relative;
  padding:4px 14px 4px 12px;
  border:none;
  border-radius:2px;
  background:transparent;
}
.logo::before {
  content:'玄';
  font-size:0.65rem;
  color:var(--gold-400);
  position:absolute;
  top:-6px; right:-8px;
  background:var(--bg-base);
  padding:0 3px;
}

.main-nav { display:flex; gap:32px; align-items:center; }
.nav-link {
  padding:8px 0; color:var(--text-secondary); text-decoration:none;
  font-size:14px; letter-spacing:0.05em; text-transform:uppercase;
  transition:color var(--transition-base);
  position:relative;
}
.nav-link::after {
  content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px;
  background:var(--gold-400); transform:scaleX(0);
  transition:transform var(--transition-base);
}
.nav-link:hover { color:var(--gold-400); }
.nav-link:hover::after { transform:scaleX(1); }
.nav-link.active { color:var(--gold-400); }
.nav-link.active::after { transform:scaleX(1); }

.header-actions { display:flex; align-items:center; gap:12px; }
.btn-login {
  background:linear-gradient(135deg,var(--gold-400),var(--gold-500));
  color:var(--bg-base); border:none;
  padding:8px 24px; border-radius:999px; cursor:pointer;
  font-size:14px; font-weight:600; letter-spacing:0.5px;
  transition:all var(--transition-base); font-family:var(--font-body);
  position:relative; overflow:hidden;
}
.btn-login:hover { transform:scale(1.03); box-shadow:0 0 32px rgba(212,168,83,0.3); }
.btn-login:active { transform:scale(0.97); }
.user-info { display:flex; align-items:center; gap:8px; font-size:0.85rem; color:var(--text-secondary); }
.btn-logout {
  background:transparent; color:var(--text-tertiary);
  --text-dim: #9a9590;
  border:1px solid var(--border-default); border-radius:var(--radius-md);
  padding:6px 14px; cursor:pointer; font-size:13px; transition:all var(--transition-base);
}
.btn-logout:hover { color:var(--cinnabar); border-color:var(--cinnabar); }
.mobile-menu-btn {
  display:none; background:none; border:none;
  color:var(--text-primary); font-size:1.5rem; cursor:pointer;
}

/* ═══════ MAIN ═══════ */
.main-content { position:relative; z-index:1; }
.page { display:none; min-height:calc(100vh - 64px); }
.page.active { display:block; }
.page-container {
  max-width:1100px; margin:0 auto;
  padding:clamp(20px,5vw,48px) clamp(16px,4vw,32px);
}

.page-title {
  font-family:var(--font-display);
  font-size:clamp(1.6rem,3vw,2.2rem); margin-bottom:8px;
  color:var(--gold-400); letter-spacing:4px;
  position:relative; padding-bottom:14px;
}
.page-title::after {
  content:''; position:absolute; bottom:0; left:0;
  width:48px; height:1px; background:var(--gold-400);
}
.page-desc { color:var(--text-tertiary); margin-bottom:32px; font-size:0.9rem; }
  --text-dim: #9a9590;

/* ═══════ HERO ═══════ */
.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: clamp(60px, 12vh, 100px) clamp(20px, 4vw, 40px);
  text-align: center;
  box-sizing: border-box;
  background:radial-gradient(ellipse 120% 80% at 50% 20%, rgba(212,168,83,0.08) 0%, transparent 60%);
}
.hero-content {
  text-align: center;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-in-up 0.8s ease-out;
}
.hero-title {
  font-family:var(--font-display);
  font-size:clamp(2.5rem,5vw,4.5rem);
  font-weight:700;
  line-height:1.1; margin-bottom:24px;
}
.gradient-text {
  background:linear-gradient(135deg,var(--gold-400),var(--gold-200));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-sub {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  margin: 8px auto 28px;
  max-width: 600px;
  line-height: 1.8;
  letter-spacing: 2px;
  text-align: center;
}
.hero-btns { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:first-of-type {
  background: linear-gradient(135deg, #d4a853 0%, #b8892a 50%, #8c6318 100%);
  color: #080a0f;
  border: none;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
}
.btn-primary:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35);
}
.btn-primary:last-of-type {
  background: transparent;
  color: var(--gold-400);
  border: 1.5px solid var(--border-gold);
}
.btn-primary:last-of-type:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.15);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display:inline-block;
  background:transparent; color:var(--gold-400);
  padding:11px 30px; border-radius:var(--radius-xl); text-decoration:none;
  font-weight:600; border:1px solid var(--border-gold); cursor:pointer;
  transition:all var(--transition-base); font-size:15px;
}
.btn-secondary:hover { background:rgba(212,168,83,0.08); border-color:var(--gold-400); }
.btn-lg { padding:14px 44px; font-size:1rem; letter-spacing:3px; }
.btn-full { width:100%; }

/* Free trial button pulse */
.master-btn.free-trial {
  background: linear-gradient(135deg, #2a4a2a, #1a3a1a);
  border-color: #4a7a4a;
  animation: freePulse 2s ease-in-out infinite;
}
@keyframes freePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(74,122,74,0.2); }
  50% { box-shadow: 0 0 20px rgba(74,122,74,0.45); }
}

.hero-svg { width:min(380px,55vw); height:auto; opacity:0.78; }

/* ═══════ FEATURES 六合 ═══════ */
.features {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 40px) clamp(80px, 12vh, 120px);
  box-sizing: border-box;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(212, 168, 83, 0.06);
  border-radius: 16px;
  padding: 40px 28px 32px;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(212, 168, 83, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(212, 168, 83, 0.03);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.feature-card p {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.7;
  margin: 0;
}
.feature-card p span {
  display: block;
}
.feature-card p span:first-child {
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 6px;
}

/* 卡片入场动画（stagger延迟） */
.feature-card:nth-child(1) { animation: fade-in-up 0.8s ease-out 0.1s both; }
.feature-card:nth-child(2) { animation: fade-in-up 0.8s ease-out 0.2s both; }
.feature-card:nth-child(3) { animation: fade-in-up 0.8s ease-out 0.3s both; }
.feature-card:nth-child(4) { animation: fade-in-up 0.8s ease-out 0.35s both; }
.feature-card:nth-child(5) { animation: fade-in-up 0.8s ease-out 0.4s both; }
.feature-card:nth-child(6) { animation: fade-in-up 0.8s ease-out 0.45s both; }
  --text-dim: #9a9590;

.ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-400);
  position: relative;
  flex-shrink: 0;
}
.ficon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1.5px solid var(--border-gold);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.feature-card:hover .ficon::before {
  border-color: var(--gold-400);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.2);
}
.ficon.s2 { color: #f06a6a; }
.ficon.s2::before { border-color: rgba(240, 106, 106, 0.35); }
.feature-card:hover .ficon.s2::before { border-color: #f06a6a; box-shadow: 0 0 12px rgba(240, 106, 106, 0.2); }
.ficon.s3 { color: #5d9b7a; }
.ficon.s3::before { border-color: rgba(93, 155, 122, 0.35); }
.feature-card:hover .ficon.s3::before { border-color: #5d9b7a; box-shadow: 0 0 12px rgba(93, 155, 122, 0.2); }
.ficon.s4 { color: #d4a853; }
.ficon.s4::before { border-color: rgba(212, 168, 83, 0.35); }
.feature-card:hover .ficon.s4::before { border-color: #d4a853; box-shadow: 0 0 12px rgba(212, 168, 83, 0.2); }
.ficon.s5 { color: #a078c4; }
.ficon.s5::before { border-color: rgba(160, 120, 196, 0.35); }
.feature-card:hover .ficon.s5::before { border-color: #a078c4; box-shadow: 0 0 12px rgba(160, 120, 196, 0.2); }
.ficon.s6 { color: #b8892a; }
.ficon.s6::before { border-color: rgba(184, 137, 42, 0.35); }
.feature-card:hover .ficon.s6::before { border-color: #b8892a; box-shadow: 0 0 12px rgba(184, 137, 42, 0.2); }

/* ═══════ CARD ═══════ */
.card {
  background:var(--bg-elevated);
  border:1px solid var(--border-default);
  border-radius:var(--radius-xl); padding:2rem;
  transition:all var(--transition-base);
  position:relative;
}
.card:hover { border-color:var(--border-gold); }
.card::before {
  content:''; display:block; position:absolute;
  top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,transparent,var(--gold-400),transparent);
}

/* ═══════ FORMS ═══════ */
.form-row { display:flex; gap:12px; flex-wrap:wrap; }
.form-group { display:flex; flex-direction:column; gap:8px; min-width:120px; }
.form-group label {
  display:block; font-size:var(--text-sm); color:var(--text-secondary);
  margin-bottom:8px; font-weight:500;
}
.form-group input, .form-group select, .form-group textarea {
  background:var(--bg-surface); color:var(--text-primary);
  border:1px solid var(--border-default); border-radius:var(--radius-md);
  padding:12px 16px; font-size:var(--text-base); outline:none;
  transition:all var(--transition-fast); width:100%;
  font-family:var(--font-body);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--gold-400);
  box-shadow:0 0 0 3px rgba(212,168,83,0.15);
}
.form-group input::placeholder, .form-group select::placeholder, .form-group textarea::placeholder {
  color:var(--text-tertiary);
  --text-dim: #9a9590;
}
.form-hint { font-size:0.78rem; color:var(--text-tertiary); margin-top:4px; }
  --text-dim: #9a9590;

/* ═══════ BAZI ═══════ */
.bazi-form { margin-bottom:32px; }
.bazi-form .form-row { margin-bottom:20px; }
.bazi-result .card { margin-bottom:20px; }
.pillar-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin:24px 0; background:var(--border-gold); }
.pillar-box {
  background:var(--bg-surface); padding:24px 16px; text-align:center;
}
.pillar-box .main {
  font-family:var(--font-display);
  font-size:2rem; font-weight:700; color:var(--gold-400);
}
.pillar-box .sub { font-size:0.8rem; color:var(--text-tertiary); margin-top:4px; }
  --text-dim: #9a9590;
.element-chart { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.element-bar { flex:1; min-width:60px; text-align:center; }
.element-bar .bar-label { font-size:0.78rem; color:var(--text-tertiary); letter-spacing:1px; }
  --text-dim: #9a9590;
.element-bar .bar-val { font-size:1.5rem; font-weight:700; margin:4px 0; color:var(--gold-400); }
.element-bar .bar-fill { height:4px; border-radius:2px; background:rgba(212,168,83,0.08); overflow:hidden; }
.element-bar .bar-fill-inner { height:100%; border-radius:2px; transition:width 0.8s ease; }
.element-bar:nth-child(1) .bar-fill-inner { background:#c9a96e; }
.element-bar:nth-child(2) .bar-fill-inner { background:#c23b22; }
.element-bar:nth-child(3) .bar-fill-inner { background:#5b8c5a; }
.element-bar:nth-child(4) .bar-fill-inner { background:#7a7060; }
.element-bar:nth-child(5) .bar-fill-inner { background:#b8953e; }

/* ═══════ SIGN GRID ═══════ */
.sign-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:1px; background:var(--border-gold); }
.sign-item {
  background:var(--bg-elevated); padding:18px 12px; text-align:center;
  transition:var(--transition-base); cursor:pointer;
}
.sign-item:hover {
  background:var(--bg-elevated);
}
.sign-item .sign-symbol { font-size:2rem; margin-bottom:4px; }
.sign-item .sign-name { font-size:0.88rem; color:var(--text-primary); letter-spacing:1px; }

.horoscope-result { margin-top:24px; }
.horoscope-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:1px; margin-top:16px; background:var(--border-gold); }
.horoscope-item { text-align:center; padding:18px 8px; background:var(--bg-surface); }
.horoscope-item .h-val { font-family:var(--font-display); font-size:1.8rem; font-weight:700; color:var(--gold-400); }
.horoscope-item .h-label { font-size:0.78rem; color:var(--text-tertiary); margin-top:4px; }
/* ═══════ TAROT ═══════ */
/* === OLD TAROT V1 (replaced by V2) === */
/*
.tarot-area { text-align:center; padding:40px 24px; }
.tarot-cards { display:flex; gap:20px; justify-content:center; flex-wrap:wrap; margin-top:24px; }
.tarot-card {
  width:140px; background:var(--bg-surface);
  border:1px solid var(--border-gold); border-radius:2px;
  padding:28px 16px; text-align:center; transition:var(--transition-base);
}
.tarot-card:hover { border-color:var(--gold-400); }
.tarot-card .card-name { font-family:var(--font-display); font-size:1rem; font-weight:600; margin-bottom:4px; color:var(--text-primary); letter-spacing:1px; }
.tarot-card .card-pos { font-size:0.78rem; color:var(--text-tertiary); margin-bottom:8px; }
  --text-dim: #9a9590;
.tarot-card .card-meaning { font-size:0.8rem; color:var(--text-secondary); line-height:1.4; }
.tarot-card.reversed { border-color:rgba(194,59,34,0.35); }
.tarot-card.reversed .card-name { color:var(--cinnabar); }
.tarot-card .pos-label { font-size:0.7rem; color:var(--text-tertiary); letter-spacing:1px; }
  --text-dim: #9a9590;
*/

.master-result {
  margin-top:20px; padding:24px; background:var(--bg-surface);
  border:1px solid var(--border-gold); border-radius:2px;
  white-space:pre-wrap; line-height:1.9; font-size:0.93rem;
  color:var(--text-secondary);
}

/* ═══════ DASHBOARD ═══════ */
.dash-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:1px; background:var(--border-gold); }
.dash-stat {
  background:var(--bg-elevated); padding:28px; text-align:center;
}
.dash-stat .stat-val { font-family:var(--font-display); font-size:2rem; font-weight:700; color:var(--gold-400); }
.dash-stat .stat-label { font-size:0.8rem; color:var(--text-tertiary); margin-top:4px; letter-spacing:1px; }
  --text-dim: #9a9590;
#ordersList { max-height:400px; overflow-y:auto; }
.order-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px; border-bottom:1px solid var(--border-gold); font-size:0.85rem;
}
.order-row:last-child { border-bottom:none; }
.order-row .status-pending { color:var(--gold-600); }
.order-row .status-paid { color:#7ba37a; }
.order-row .status-cancelled { color:var(--cinnabar); }

/* === OLD PRICING CSS (replaced) === */
/* ═══════ PRICING ═══════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}
.pricing-card.pricing-free {
  background: var(--bg-surface);
  border-color: var(--border-default);
  opacity: 0.9;
}
.pricing-card.pricing-free:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-default);
}
.pricing-card.pricing-free .pricing-name {
  color: var(--text-tertiary);
  --text-dim: #9a9590;
}
.pricing-card.pricing-free .pricing-price {
  color: var(--text-tertiary);
  --text-dim: #9a9590;
}
.pricing-card.pricing-free .pricing-features li {
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  opacity: 0.8;
}

.pricing-card.featured {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}
.pricing-card.featured:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 32px rgba(212,168,83,0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg,var(--gold-400),var(--gold-500));
  color: #1a1610;
  padding: 4px 18px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: var(--font-display);
}
.pricing-card-header {
  margin-bottom: 16px;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 3px;
  margin: 0;
}
.pricing-price {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.pricing-currency {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  font-family: var(--font-display);
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
}
.pricing-save {
  font-size: 0.82rem;
  color: #7ba37a;
  margin-bottom: 16px;
  margin-top: -10px;
  letter-spacing: 1px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
  text-align: left;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(201,169,110,0.08);
  line-height: 1.4;
}
.pricing-features li::before {
  content: '\2714';
  color: var(--gold-400);
  margin-right: 8px;
  font-size: 0.75rem;
}
.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  margin-top: auto;
}
.pricing-btn:hover {
  background: rgba(212,168,83,0.08);
  border-color: var(--gold-400);
}
.featured-btn {
  background: linear-gradient(135deg,var(--gold-400),var(--gold-500)) !important;
  color: var(--bg-base) !important;
  border-color: transparent !important;
  font-weight: 600;
}
.featured-btn:hover {
  opacity: 0.95;
  box-shadow: 0 0 24px rgba(212,168,83,0.3);
/* === /OLD === */
}

/* ═══════ MEMBERSHIP BADGE ═══════ */
.membership-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: var(--font-display);
  margin-left: 8px;
  vertical-align: middle;
}
.badge-trial {
  background: rgba(91,140,90,0.15);
  color: #7ba37a;
  border: 1px solid rgba(91,140,90,0.3);
}
.badge-basic {
  background: rgba(74,111,165,0.12);
  color: #6ba3d6;
  border: 1px solid rgba(74,111,165,0.3);
}
.badge-premium {
  background: rgba(201,169,110,0.12);
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
}
.badge-annual {
  background: rgba(160,120,196,0.12);
  color: #b894d6;
  border: 1px solid rgba(160,120,196,0.3);
}

/* ═══════ UPGRADE MODAL ═══════ */
.upgrade-prompt {
  text-align: center;
}
.upgrade-icon {
  font-size: 2.5rem;
  color: var(--gold-400);
  margin-bottom: 12px;
}
.upgrade-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-400);
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.upgrade-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.upgrade-required {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.upgrade-label {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
}
/* === OLD UPGRADE-TIER (replaced) === */
.upgrade-tier {
  font-size: 0.95rem;
  color: var(--gold-400);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 2px;
  padding: 4px 14px;
  background: rgba(201,169,110,0.1);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
}
/* === /OLD === */

/* ═══════ RESPONSIVE PRICING ═══════ */
@media (max-width: 768px) {
/* [OLD]   .pricing-grid { */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pricing-card {
    padding: 24px 16px;
  }
  .pricing-amount {
    font-size: 2.4rem;
  }
}
@media (max-width: 480px) {
/* [OLD]   .pricing-grid { */
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ═══════ MODAL ═══════ */
.modal {
  display:none; position:fixed; inset:0; z-index:200;
  align-items:center; justify-content:center;
}
.modal-bg { background:rgba(8,10,15,0.85); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); position:fixed; inset:0; }
.modal.active { display:flex; }
.modal-card {
  background:var(--bg-elevated); border:1px solid var(--border-light); border-radius:var(--radius-2xl);
  padding:2rem; width:min(480px, 90vw); position:relative;
}
.modal-close { position:absolute; top:12px; right:16px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; font-size:1.25rem; cursor:pointer; color:var(--text-tertiary); border-radius:var(--radius-full); transition:all var(--transition-base); border:none; background:transparent; }
  --text-dim: #9a9590;
.modal-close:hover { color:var(--text-primary); transform:rotate(90deg); }
.modal-card h3 { font-family:var(--font-display); margin-bottom:24px; letter-spacing:2px; color:var(--text-primary); }
.modal-card .form-group { margin-bottom:14px; }
/* ═══════ AUTH TABS ═══════ */
.auth-tabs { display:flex; gap:0; margin-bottom:24px; border-bottom:1px solid var(--border-light); }
.auth-tab { flex:1; padding:10px 0; text-align:center; cursor:pointer; background:none; border:none; color:var(--text-tertiary); font-size:0.95rem; font-family:var(--font-display); letter-spacing:2px; border-bottom:2px solid transparent; transition:all 0.3s; }
  --text-dim: #9a9590;
.auth-tab:hover { color:var(--text-primary); }
.auth-tab.active { color:var(--gold-400); border-bottom-color:var(--gold-400); }
.auth-form { display:none; }
.auth-form.active { display:block; }
.auth-form .form-group label .req { color:var(--gold-400); margin-left:2px; }
.auth-card { max-height:90vh; overflow-y:auto; }


.pay-methods { display:flex; gap:12px; margin-top:24px; }

/* ═══════ TOAST ═══════ */
.toast {
  position:fixed; bottom:32px; left:50%; transform:translateX(-50%);
  background:var(--bg-overlay); color:var(--text-primary);
  border-left:3px solid var(--gold-400);
  padding:14px 28px; border-radius:var(--radius-md);
  font-size:0.9rem; z-index:300; opacity:0;
  transition:opacity var(--transition-base);
  pointer-events:none;
  box-shadow:var(--shadow-lg);
}
.toast.show { opacity:1; animation:slide-in-right 0.3s ease-out; }

/* ═══════ ZIWEI ═══════ */
.ziwei-table {
  width:100%; border-collapse:collapse; table-layout:fixed;
}
.ziwei-table td {
  border:1px solid var(--border-gold); padding:8px 6px;
  vertical-align:top; min-width:100px; min-height:80px;
  background:var(--bg-surface);
}
.zw-cell { text-align:center; }
.zw-gong-name {
  font-family:var(--font-display); font-size:0.9rem; font-weight:bold;
  color:var(--gold-400); margin-bottom:2px; letter-spacing:1px;
}
.zw-gdz { font-size:0.75rem; color:var(--text-tertiary); margin-bottom:4px; }
  --text-dim: #9a9590;
.zw-stars { line-height:1.3; }

/* ═══════ LIUREN ═══════ */
.liuren-table {
  width:100%; border-collapse:collapse; font-size:0.85rem;
}
.liuren-table th {
  padding:8px 10px; text-align:center; color:var(--text-tertiary);
  --text-dim: #9a9590;
  font-weight:normal; border-bottom:1px solid var(--border-light);
  font-size:0.78rem; letter-spacing:1px;
}
.liuren-table td {
  padding:6px 10px; text-align:center;
  border-bottom:1px solid var(--border-gold);
}
.sanchuan-item { flex:1; min-width:80px; }

/* ═══════ DAYUN ═══════ */
.dayun-pills { display:flex; flex-wrap:wrap; gap:6px; }
.dayun-pill {
  background:rgba(212,168,83,0.08); padding:8px 12px; border-radius:2px;
  text-align:center; font-size:0.76rem; min-width:60px;
  border:1px solid transparent; transition:var(--transition-base);
}
.dayun-pill .dy-age { color:var(--text-tertiary); font-size:0.7rem; }
  --text-dim: #9a9590;
.dayun-pill .dy-gz { color:var(--text-primary); font-weight:bold; }
.dayun-pill .dy-ss { color:var(--gold-400); font-size:0.7rem; }
.dayun-pill.active-dy { background:rgba(194,59,34,0.12); border-color:rgba(194,59,34,0.25); }

/* ═══════ EMOTION TAGS ═══════ */
.emotion-tags {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-bottom:28px; margin-top:-4px;
}
.emotion-label {
  font-size:0.78rem; color:var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing:1px; font-family:var(--font-display);
}
.emotion-tag {
  display:inline-block; padding:3px 12px;
  border:1px solid rgba(212,168,83,0.15); border-radius:12px;
  color:var(--text-tertiary); text-decoration:none;
  font-size:0.75rem; letter-spacing:0.5px;
  transition:var(--transition-base); cursor:pointer;
}
.emotion-tag:hover {
  background:rgba(212,168,83,0.08); border-color:var(--border-gold);
  color:var(--gold-400);
}

/* ═══════ TRUST SECTION ═══════ */
.trust-section {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:1px; background:var(--border-gold);
  max-width:1100px; margin:0 auto;
  padding:0 clamp(16px,4vw,32px) clamp(48px,8vh,80px);
}
.trust-item {
  background:var(--bg-base);
  padding:28px 20px; text-align:center;
  color:var(--text-tertiary); font-size:0.85rem;
  --text-dim: #9a9590;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.trust-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border-gold);
  font-family:var(--font-display); font-size:1rem;
  color:var(--gold-400);
}

/* ═══════ DAILY FORTUNE ═══════ */
.daily-widget { margin:0 auto; }
.daily-date {
  font-family:var(--font-display); font-size:1.1rem;
  color:var(--text-tertiary); letter-spacing:2px;
  --text-dim: #9a9590;
}
.daily-label { font-size:0.9rem; letter-spacing:2px; font-family:var(--font-display); }
.daily-sign { margin:0 auto; }

/* ═══════ SHARE CARD ═══════ */
.share-card {
  background:var(--bg-surface);
  border:1px solid var(--border-gold); border-radius:2px;
  padding:32px 24px; max-width:400px; margin:20px auto;
  text-align:center; position:relative;
}
.share-card .share-brand {
  font-family:var(--font-display); font-size:0.9rem;
  color:var(--gold-400); letter-spacing:3px; margin-bottom:16px;
}
.share-card .share-title {
  font-family:var(--font-display); font-size:1.3rem;
  color:var(--gold-400); letter-spacing:2px; margin-bottom:12px;
}
.share-card .share-content {
  font-size:0.9rem; color:var(--text-secondary);
  line-height:1.8; margin-bottom:16px;
}
.share-card .share-footer {
  font-size:0.75rem; color:var(--text-tertiary);
  --text-dim: #9a9590;
  border-top:1px solid var(--border-gold);
  padding-top:12px; margin-top:12px;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width:768px) {
  .main-nav {
    display:none; flex-direction:column; position:fixed;
    top:64px; left:0; right:0;
    background:rgba(16,18,24,0.98);
    border-bottom:1px solid var(--border-gold); padding:8px 16px; z-index:99;
  }
  .main-nav.open { display:flex; }
  .nav-link { padding:12px 18px; border-radius:2px; }
  .mobile-menu-btn { display:block; }
  .hero { flex-direction:column; text-align:center; padding:80px 16px 48px; min-height:auto; }
  .hero-content { max-width:100%; }
  .hero-btns { justify-content:center; }
  .hero-svg { width:min(260px,65vw); margin-top:20px; }
  .pillar-grid { grid-template-columns:repeat(2, 1fr); }
  .features { grid-template-columns:repeat(2, 1fr); gap:24px; padding:0 clamp(16px,4vw,32px) clamp(60px,8vh,100px); }
  .feature-card { padding:24px 16px; min-height:200px; }
  .dash-cards { grid-template-columns:repeat(2, 1fr); }
  .sign-grid { grid-template-columns:repeat(3, 1fr); }
  .pricing-grid { grid-template-columns:repeat(2, 1fr); }
  .bazi-form .form-row { flex-direction:column; }
  .form-group { min-width:auto; }
  .tarot-cards { flex-direction:column; align-items:center; }
  .tarot-card { width:100%; max-width:300px; }
}

@media (max-width:480px) {
  .features { grid-template-columns:1fr; gap:20px; padding:0 clamp(12px,3vw,24px) clamp(50px,6vh,80px); }
  .feature-card { min-height:auto; padding:24px 18px; }
  .dash-cards { grid-template-columns:1fr; }
  .sign-grid { grid-template-columns:repeat(2, 1fr); }
/* [OLD]   .pricing-grid { grid-template-columns:1fr; } */
  .pillar-grid { grid-template-columns:1fr 1fr; }
  .header-actions { gap:6px; }
  .btn-login { padding:6px 14px; font-size:0.8rem; }
  .lang-btn { padding:4px 10px; font-size:0.75rem; }
  .tarot-card { max-width:100%; }
  .btn-primary, .btn-secondary { padding:10px 22px; font-size:0.85rem; }
}

/* ═══════════════════════════════════════════════════
   仪式感改造 · 动画与组件样式
   进入仪式 → 过程仪式 → 结果仪式 → 收尾仪式
   ═══════════════════════════════════════════════════ */

/* ─── 仪式遮罩 ─── */
.ritual-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 4, 3, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  opacity: 1;
  pointer-events: all;
}
.ritual-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ─── 仪式引导文字 ─── */
.ritual-guide {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-400);
  letter-spacing: 4px;
  text-align: center;
  animation: ritualFadeIn 0.8s ease;
  margin-bottom: 20px;
  padding: 0 20px;
}
@keyframes ritualFadeIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ritual-subtitle {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 2px;
  margin-top: 8px;
  animation: ritualFadeIn 1.2s ease;
  text-align: center;
}

/* ─── 倒计时数字 ─── */
.ritual-countdown {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold-400);
  animation: countdownPulse 1s ease;
  margin-top: 12px;
}
@keyframes countdownPulse {
  0% { transform: scale(1.4); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ─── 烛光摇曳 ─── */
.candle-flicker {
  width: 40px;
  height: 60px;
  background: radial-gradient(ellipse at 50% 25%, rgba(235,185,100,0.65), rgba(180,100,40,0.2), transparent);
  border-radius: 50% 50% 45% 45%;
  animation: candleFlicker 1.5s ease-in-out infinite alternate;
  margin: 0 auto 20px;
  position: relative;
}
.candle-flicker::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  background: radial-gradient(ellipse, rgba(255,220,140,0.8), transparent);
  border-radius: 50%;
  animation: candleFlicker 1.2s ease-in-out infinite alternate;
}
@keyframes candleFlicker {
  0% { opacity: 0.7; transform: scaleY(1) scaleX(1); }
  25% { opacity: 0.92; transform: scaleY(1.15) scaleX(0.88); }
  50% { opacity: 0.6; transform: scaleY(0.9) scaleX(1.08); }
  75% { opacity: 0.88; transform: scaleY(1.08) scaleX(0.92); }
  100% { opacity: 0.7; transform: scaleY(1) scaleX(1); }
}

/* ─── 卡牌翻转 ─── */
.card-flip {
  perspective: 800px;
}
.card-flip .card-flip-inner {
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}
.card-flip.flipped .card-flip-inner {
  transform: rotateY(180deg);
}
.card-flip-front,
.card-flip-back {
  backface-visibility: hidden;
}
.card-flip-back {
  transform: rotateY(180deg);
}
@keyframes cardFlip {
  0% { transform: perspective(600px) rotateY(90deg); opacity: 0; }
  100% { transform: perspective(600px) rotateY(0deg); opacity: 1; }
}

/* ─── 星座符号旋转 ─── */
.star-spin {
  display: inline-block;
  animation: starSpin 3s linear infinite;
}
@keyframes starSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── 金色脉冲光晕 ─── */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(201,169,110,0.15); }
  50% { box-shadow: 0 0 28px rgba(201,169,110,0.38); }
}

/* ─── 逐层展开 ─── */
.reveal-step {
  opacity: 0;
  transform: translateY(12px);
}
.reveal-step.visible {
  animation: revealStep 0.6s ease forwards;
}
@keyframes revealStep {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── 卷轴展开 ─── */
.scroll-unfold {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  animation: scrollUnfold 1.2s ease forwards;
}
@keyframes scrollUnfold {
  0% { max-height: 0; opacity: 0; }
  100% { max-height: 3000px; opacity: 1; }
}

/* ─── 上浮淡入 ─── */
.fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.7s ease forwards;
}
@keyframes fade-in-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes pulse-gold{0%,100%{box-shadow:0 0 0 0 rgba(212,168,83,0.4)}50%{box-shadow:0 0 0 8px rgba(212,168,83,0)}}
@keyframes slide-in-right{from{transform:translateX(120%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes nav-underline{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ─── 能量环旋转 ─── */
.energy-ring {
  animation: energyRing 8s linear infinite;
}
@keyframes energyRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ─── 人生K线图 ─── */
.kline-chart {
  width: 100%;
  max-width: 700px;
  height: 240px;
  margin: 24px auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  padding: 12px 8px 8px 0;
}
.kline-chart svg {
  width: 100%;
  height: 100%;
}

/* ─── 五行能量环 ─── */
.wuxing-ring {
  width: 260px;
  height: 260px;
  margin: 24px auto;
  position: relative;
}
.wuxing-ring svg {
  width: 100%;
  height: 100%;
}

/* ─── 标签云 ─── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 16px;
}
.tag-cloud .tag-item {
  padding: 6px 18px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-400);
  background: rgba(212,168,83,0.08);
  letter-spacing: 1px;
  transition: var(--transition-base);
}
.tag-cloud .tag-item:hover {
  background: rgba(212,168,83,0.15);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

/* ─── 吉凶仪表盘 ─── */
.gauge-meter {
  width: 220px;
  height: 130px;
  margin: 20px auto;
  position: relative;
}
.gauge-meter svg {
  width: 100%;
  height: 100%;
}

/* ─── 每日仪式卡片 ─── */
.daily-ritual {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  margin-top: 20px;
  text-align: center;
}
.daily-ritual h4 {
  font-family: var(--font-display);
  color: var(--gold-400);
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.daily-ritual p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* ─── 签文卡片 ─── */
.sign-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  max-width: 440px;
  margin: 16px auto;
  animation: cardFlip 0.8s ease;
  position: relative;
}
.sign-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,169,110,0.12);
  pointer-events: none;
}

/* ─── 每日肯定语 ─── */
.affirmation {
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(91,140,90,0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-top: 18px;
  text-align: center;
}
.affirmation .aff-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-400);
  letter-spacing: 2px;
  line-height: 1.9;
}
.affirmation .aff-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* ─── 分享卡片预览 ─── */
.share-card-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  max-width: 380px;
  margin: 20px auto;
  text-align: center;
  position: relative;
}
.share-card-preview::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201,169,110,0.15);
  pointer-events: none;
}
.share-card-preview .scp-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-400);
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.share-card-preview .scp-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.share-card-preview .scp-footer {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  border-top: 1px solid var(--border-gold);
  padding-top: 12px;
}

/* ─── 塔罗牌洗牌动画区 ─── */
.tarot-ritual-area {
  text-align: center;
  padding: 40px 20px;
}
.tarot-ritual-area .shuffle-anim {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 28px 0;
}
.tarot-ritual-area .shuffle-card {
  width: 36px;
  height: 54px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  border-radius: 3px;
  opacity: 0.7;
  animation: shuffleMove 0.55s ease infinite alternate;
  box-shadow: 0 2px 8px rgba(201,169,110,0.2);
}
.tarot-ritual-area .shuffle-card:nth-child(odd) { animation-delay: 0.2s; }
.tarot-ritual-area .shuffle-card:nth-child(3n) { animation-delay: 0.35s; }
@keyframes shuffleMove {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-12px) rotate(5deg); }
}

/* ─── 塔罗牌翻牌过渡 ─── */
.tarot-card.flip-in {
  animation: tarotFlipIn 0.7s ease forwards;
}
@keyframes tarotFlipIn {
  0% { transform: perspective(600px) rotateY(90deg); opacity: 0; }
  60% { transform: perspective(600px) rotateY(-10deg); opacity: 0.8; }
  100% { transform: perspective(600px) rotateY(0deg); opacity: 1; }
}

/* ─── 运势分滚动 ─── */
.daily-score-rolling {
  display: inline-block;
  transition: all 0.4s ease;
}
.daily-score-rolling.bump {
  transform: scale(1.15);
  color: var(--gold-400);
}

/* ─── 紫微十二宫点亮 ─── */
.zw-palace {
  opacity: 0;
  transition: opacity 0.5s ease, background 0.5s ease;
}
.zw-palace.palace-lit {
  opacity: 1;
  animation: palaceLight 0.5s ease forwards;
}
@keyframes palaceLight {
  0% { opacity: 0; background: rgba(201,169,110,0.2); }
  100% { opacity: 1; background: var(--bg-surface); }
}

/* ─── 天盘旋转动画 ─── */
.tianpan-spin {
  display: inline-block;
  animation: tianpanRotate 2s ease-out;
}
@keyframes tianpanRotate {
  0% { transform: rotate(0deg); opacity: 0.4; }
  50% { transform: rotate(180deg); opacity: 0.7; }
  100% { transform: rotate(360deg); opacity: 1; }
}

/* ─── 焚香烟雾 ─── */
.incense-smoke {
  position: relative;
  width: 60px;
  height: 80px;
  margin: 0 auto 16px;
}
.incense-smoke::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: linear-gradient(to top, rgba(201,169,110,0.5), transparent);
}
.incense-smoke::after {
  content: '';
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  background: radial-gradient(ellipse at 50% 100%, rgba(200,180,150,0.3), transparent);
  border-radius: 50%;
  animation: smokeRise 2s ease-out infinite;
}
@keyframes smokeRise {
  0% { transform: translateX(-50%) translateY(0) scale(0.8); opacity: 0.5; }
  100% { transform: translateX(-50%) translateY(-30px) scale(1.6); opacity: 0; }
}

/* ─── 幸运元素逐个揭示 ─── */
.lucky-reveal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.lucky-reveal .lucky-item {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s ease;
  padding: 6px 16px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  font-size: 0.88rem;
  color: var(--gold-400);
}
.lucky-reveal .lucky-item.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ─── 开运指引卡片 ─── */
.kaiyun-guide {
  background: linear-gradient(135deg, rgba(194,59,34,0.06), rgba(201,169,110,0.06));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}
.kaiyun-guide h4 {
  font-family: var(--font-display);
  color: var(--cinnabar-light);
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.kaiyun-guide p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.8;
}

/* ─── 激励文案 ─── */
.motivation-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #7ba37a;
  letter-spacing: 2px;
  margin-top: 12px;
  line-height: 1.8;
  animation: ritualFadeIn 1s ease;
}

/* ═══════════════════════════════════════════════════
   V2 八字排盘 · 传统命理师风格命盘
   ═══════════════════════════════════════════════════ */

/* ─── 命盘容器 ─── */
.bazi-chart-v2 {
  margin-top: 8px;
  animation: fade-in-up 0.7s ease;
}

/* ─── 标题区 ─── */
.bazi-title-area {
  text-align: center;
  padding: 8px 0 4px;
}
.bazi-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold-400);
  letter-spacing: 8px;
  margin: 8px 0;
  position: relative;
  display: inline-block;
}
.bazi-main-title::before,
.bazi-main-title::after {
  content: '◆';
  color: var(--gold-600);
  font-size: 0.5rem;
  position: relative;
  top: -10px;
  margin: 0 12px;
}
.bazi-border-decor {
  display: block;
  width: 100%;
  max-width: 700px;
  height: 8px;
  margin: 0 auto;
  opacity: 0.5;
  object-fit: cover;
}
.bazi-border-decor.flip {
  transform: scaleY(-1);
}

/* ─── 日主横幅 ─── */
.dm-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  padding: 18px 24px;
  margin: 16px auto;
  max-width: 700px;
  background: linear-gradient(135deg, rgba(201,169,110,0.1), rgba(194,59,34,0.06), rgba(201,169,110,0.1));
  border: 2px solid var(--border-gold);
  border-radius: 2px;
  position: relative;
  flex-wrap: wrap;
}
.dm-banner::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(201,169,110,0.12);
  pointer-events: none;
}
.dm-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dm-char {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold-400);
  line-height: 1;
  text-shadow: 0 0 20px rgba(201,169,110,0.3);
}
.dm-element {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-600);
  letter-spacing: 2px;
}
.dm-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-left: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
}
.dm-label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cinnabar-light);
  letter-spacing: 4px;
  writing-mode: vertical-rl;
}
.dm-yinyang {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-600);
  letter-spacing: 2px;
  margin-top: 4px;
  writing-mode: vertical-rl;
}
.dm-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.dm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}
.dm-info-label {
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  font-family: var(--font-display);
  letter-spacing: 2px;
  white-space: nowrap;
}
.dm-info-val {
  color: var(--text-secondary);
  font-family: var(--font-body);
}
.dm-info-val.xi { color: #5C9E6B; }
.dm-info-val.ji { color: var(--cinnabar-light); }

/* ─── 田字格表格 ─── */
.bazi-grid-wrap {
  max-width: 700px;
  margin: 20px auto;
  overflow-x: auto;
}
.bazi-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: var(--font-display);
  border: 2px solid rgba(180,150,100,0.4);
  background: var(--bg-surface);
}
.bazi-grid-table thead th,
.bazi-grid-table tbody td {
  border: 1px solid rgba(180,150,100,0.35);
  text-align: center;
  padding: 12px 6px;
  vertical-align: middle;
}
.bazi-grid-table thead th {
  background: rgba(201,169,110,0.1);
}
.pillar-th {
  padding: 10px 6px !important;
}
.pillar-pos {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-400);
  letter-spacing: 4px;
}
.col-label-th {
  width: 72px;
  background: rgba(160,140,100,0.08) !important;
}

/* 行标签 */
.row-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-600);
  letter-spacing: 3px;
  font-weight: 700;
  background: rgba(160,140,100,0.06) !important;
  padding: 14px 8px !important;
}

/* 日柱高亮列 */
.col-day {
  background: rgba(201,169,110,0.12) !important;
  position: relative;
}
.col-day::before {
  content: '日';
  position: absolute;
  top: -1px;
  right: 4px;
  font-size: 0.55rem;
  color: var(--cinnabar-light);
  font-family: var(--font-display);
  background: var(--bg-surface);
  padding: 0 3px;
  border-radius: 1px;
  border: 1px solid rgba(194,59,34,0.25);
}

/* 干支大字 */
.stems-char {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 34px);
  color: var(--text-primary);
  display: block;
  line-height: 1.2;
}
.gan-cell .stems-char {
  color: var(--gold-400);
}

/* ─── 十神颜色系统 ─── */
.ten-god {
  display: block;
  font-size: 0.72rem;
  margin-top: 3px;
  letter-spacing: 1px;
  font-family: var(--font-display);
}
.tg-bijian { color: #D4A85C; }
.tg-shishen { color: #5C9E6B; }
.tg-zhengcai { color: #C8A84E; }
.tg-zhengguan { color: #C04040; }
.tg-zhengyin { color: #4A6FA5; }
.tg-rizhu {
  color: var(--cinnabar-light);
  font-weight: 700;
  font-size: 0.8rem;
  position: relative;
}
.tg-rizhu::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--cinnabar);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: middle;
}

/* 藏干项 */
.cg-item {
  display: inline-block;
  margin: 1px 3px;
  text-align: center;
}
.cg-gan {
  display: block;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.cg-ts {
  display: block;
  font-size: 0.62rem;
  line-height: 1.1;
}

/* 纳音行 */
.nayin-cell {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 1px;
  font-family: var(--font-display);
}

/* ─── 五行柱状图 V2 ─── */
.wuxing-section-v2 {
  max-width: 700px;
  margin: 24px auto;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-400);
  letter-spacing: 4px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gold);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--gold-400);
}
.wuxing-columns {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 4vw, 32px);
  padding: 8px 0;
  height: 200px;
}
.wx-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 48px;
}
.wx-col-val {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-400);
  font-weight: 700;
}
.wx-col-bar-wrap {
  width: 28px;
  height: 120px;
  background: rgba(160,140,100,0.06);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.wx-col-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  transition: height 1s ease;
  min-height: 4px;
  position: relative;
}
.wx-col-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px;
}
.wx-col-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 2px;
}

/* ─── 大运横向卡片 V2 ─── */
.dayun-section-v2 {
  max-width: 700px;
  margin: 24px auto;
}
.dayun-meta {
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  font-size: 0.82rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.dayun-meta strong {
  color: var(--gold-400);
}
.dayun-card-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-600) transparent;
}
.dayun-card-scroll::-webkit-scrollbar { height: 4px; }
.dayun-card-scroll::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 2px; }
.dayun-card {
  flex: 0 0 auto;
  min-width: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 12px 14px;
  text-align: center;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dayun-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.dyc-age {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 1px;
}
.dyc-ganzhi {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-400);
  font-weight: 700;
  letter-spacing: 2px;
}
.dyc-shishen {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
}

/* ─── 神煞徽章 V2 ─── */
.shensha-section-v2 {
  max-width: 700px;
  margin: 24px auto;
}
.shensha-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shensha-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 16px;
  border-radius: 2px;
  border: 1px solid;
  min-width: 72px;
  transition: var(--transition-base);
}
.shensha-badge:hover {
  transform: translateY(-2px);
}
.ss-good {
  border-color: rgba(91,140,90,0.35);
  background: rgba(91,140,90,0.08);
}
.ss-alert {
  border-color: rgba(194,59,34,0.25);
  background: rgba(194,59,34,0.06);
}
.ss-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-400);
  letter-spacing: 2px;
}
.ss-pos {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   紫微斗数 · V2 美化
   ═══════════════════════════════════════════════════ */

.zw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(180,150,100,0.25);
  padding: 2px;
  border-radius: var(--radius-md);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.zw-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/static/img/compass-ring.png') center/contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.zw-palace {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  padding: 14px 8px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(180,150,100,0.2);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.zw-palace.zw-ming {
  border-color: rgba(201,169,110,0.5) !important;
  background: linear-gradient(135deg, rgba(201,169,110,0.1), var(--bg-surface)) !important;
}
.zw-palace.zw-ming::after {
  content: '命';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.5rem;
  color: var(--cinnabar-light);
  font-family: var(--font-display);
  border: 1px solid rgba(194,59,34,0.3);
  border-radius: 2px;
  padding: 0 3px;
}
.zw-palace-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-400);
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.zw-ganzhi {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  margin-bottom: 4px;
}
.zw-main-stars {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 3px;
  line-height: 1.3;
}
.zw-aux-stars {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  margin-bottom: 2px;
}
.zw-sihua {
  font-size: 0.68rem;
  letter-spacing: 1px;
}

/* 四化颜色 */
.sihua-tag { padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; margin: 2px 4px; display: inline-block; }
.si-lu { color: #5C9E6B; border: 1px solid rgba(92,158,107,0.35); background: rgba(92,158,107,0.08); }
.si-quan { color: #C8A84E; border: 1px solid rgba(200,168,78,0.35); background: rgba(200,168,78,0.08); }
.si-ke { color: #4A6FA5; border: 1px solid rgba(74,111,165,0.35); background: rgba(74,111,165,0.08); }
.si-ji { color: #C04040; border: 1px solid rgba(192,64,64,0.35); background: rgba(192,64,64,0.08); }

.zw-sihua-section {
  max-width: 800px;
  margin: 16px auto;
}
.zw-sihua-section h4 {
  font-family: var(--font-display);
  color: var(--gold-400);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.sihua-list { display: flex; flex-wrap: wrap; gap: 6px; }

.zw-stars-section {
  max-width: 800px;
  margin: 16px auto;
}
.zw-stars-section h4 {
  font-family: var(--font-display);
  color: var(--gold-400);
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.stars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.star-item {
  padding: 5px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(212,168,83,0.08);
  transition: var(--transition-base);
  font-family: var(--font-display);
  letter-spacing: 1px;
}
.star-item:hover {
  background: rgba(212,168,83,0.15);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

.zw-header {
  text-align: center;
  margin-bottom: 16px;
}
.zw-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-400);
  letter-spacing: 4px;
  margin-bottom: 4px;
}
.zw-header p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════
   塔罗牌 · V2 美化
   ═══════════════════════════════════════════════════ */

.tarot-spread {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tarot-title {
  font-family: var(--font-display);
  text-align: center;
  color: var(--gold-400);
  letter-spacing: 4px;
  font-size: 1.2rem;
}
.tarot-card {
  width: 150px;
  min-height: 250px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 2px solid var(--border-gold);
  border-radius: 6px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}
.tarot-card::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 4px;
  pointer-events: none;
}
.tarot-card:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(201,169,110,0.15);
}
.tarot-card.tarot-reversed {
  border-color: rgba(194,59,34,0.45);
  transform: rotate(180deg);
}
.tarot-card.tarot-reversed:hover {
  transform: rotate(180deg) translateY(-4px);
}
.card-position {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 2px;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.card-name-cn {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-400);
  letter-spacing: 2px;
  line-height: 1.3;
}
.card-name-en {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 1px;
  font-style: italic;
}
.card-keywords {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-top: 8px;
  border-top: 1px solid var(--border-gold);
}
.card-keywords strong { color: var(--gold-600); }
.card-meaning {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  line-height: 1.5;
  flex: 1;
}

/* ═══════════════════════════════════════════════════
   六壬 · V2 美化
   ═══════════════════════════════════════════════════ */

.lr-header {
  text-align: center;
  margin-bottom: 20px;
}
.lr-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-400);
  letter-spacing: 4px;
  margin-bottom: 6px;
}
.lr-header p {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.lr-header strong { color: var(--gold-400); }
.lr-section { margin-bottom: 20px; }
.lr-section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-400);
  letter-spacing: 3px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-gold);
}
.lr-tianpan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.lr-tp-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.lr-tp-dz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--gold-400);
  background: var(--bg-surface);
}
.lr-tp-ss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(194,59,34,0.3);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--cinnabar-light);
  background: rgba(194,59,34,0.06);
}

.lr-sike {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.lr-ke-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lr-sanchuan {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.lr-chuan-item {
  flex: 1;
  max-width: 200px;
  background: linear-gradient(180deg, rgba(201,169,110,0.08), var(--bg-surface));
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lr-chuan-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-600);
  letter-spacing: 3px;
}
.lr-chuan-zhi {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-400);
}
.lr-chuan-jiang {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  line-height: 1.4;
}

.lr-tianjiang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.lr-tj-item {
  padding: 5px 12px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(212,168,83,0.08);
  transition: var(--transition-base);
}
.lr-tj-item:hover {
  background: rgba(212,168,83,0.15);
  border-color: var(--gold-400);
}

/* ═══════════════════════════════════════════════════
   星座运势 · V2 美化
   ═══════════════════════════════════════════════════ */

.daily-card { animation: fade-in-up 0.6s ease; }
.daily-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-400);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.daily-overall {
  text-align: center;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(212,168,83,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
}
.daily-rating {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-400);
  letter-spacing: 2px;
}
.daily-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2px;
  background: var(--border-gold);
  margin-bottom: 20px;
}
.daily-item {
  background: var(--bg-surface);
  padding: 16px 12px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.daily-lucky {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.daily-lucky span {
  padding: 8px 18px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--gold-400);
  background: rgba(212,168,83,0.08);
  font-family: var(--font-display);
  letter-spacing: 2px;
}
.daily-todo, .daily-dont {
  font-size: 0.88rem;
  padding: 8px 16px;
  margin-bottom: 6px;
  border-radius: 2px;
}
.daily-todo { color: #5C9E6B; background: rgba(92,158,107,0.06); }
.daily-todo strong { color: #5C9E6B; }
.daily-dont { color: #C04040; background: rgba(192,64,64,0.06); }
.daily-dont strong { color: #C04040; }
.daily-comment {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ─── 星座运势响应式 ─── */
@media (max-width: 768px) {
  .bazi-grid-table .stems-char { font-size: 22px; }
  .dm-banner { flex-direction: column; gap: 10px; padding: 14px; }
  .dm-center { flex-direction: row; writing-mode: horizontal-tb; border: none; border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); padding: 6px 0; }
  .dm-label, .dm-yinyang { writing-mode: horizontal-tb; }
  .zw-grid { grid-template-columns: repeat(3, 1fr); }
  .tarot-spread { flex-direction: column; align-items: center; }
  .tarot-card { width: 100%; max-width: 260px; min-height: auto; }
  .lr-sike { grid-template-columns: 1fr; }
  .lr-sanchuan { flex-direction: column; align-items: center; }
  .lr-chuan-item { max-width: 100%; width: 100%; }
  .wuxing-columns { gap: 12px; height: 160px; }
  .wx-column { flex: 0 0 32px; }
  .wx-col-bar-wrap { width: 22px; height: 90px; }
  .col-label-th { width: 48px; }
}

@media (max-width: 480px) {
  .bazi-grid-table .stems-char { font-size: 18px; }
  .bazi-grid-table thead th, .bazi-grid-table tbody td { padding: 8px 3px; }
  .zw-grid { grid-template-columns: repeat(2, 1fr); }
  .bazi-main-title { font-size: 1.3rem; letter-spacing: 4px; }
  .dm-char { font-size: 2rem; }
  .wuxing-columns { height: 130px; gap: 8px; }
  .wx-column { flex: 0 0 26px; }
  .wx-col-bar-wrap { width: 18px; height: 70px; }
}

/* ─── 响应式：移动端头部菜单优化 ─── */
@media (max-width:768px) {
  .app-header { padding: 0 16px; height:56px; }
  .logo { font-size: 20px; }
  .header-actions { gap: 6px; }
}

/* ─── 星座星级展示 ─── */
.daily-overall { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.daily-stars {
  font-size: 1.6rem;
  color: var(--gold-400);
  letter-spacing: 4px;
  font-family: var(--font-display);
  text-shadow: 0 0 12px rgba(201,169,110,0.3);
}
.daily-score-num {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 2px;
}
.di-icon {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
  opacity: 0.7;
}
.di-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  letter-spacing: 2px;
  font-family: var(--font-display);
  margin-bottom: 2px;
}
.di-val {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.lucky-chip {
  padding: 8px 18px;
  border: 1px solid var(--border-gold);
  border-radius: 2px;
  font-size: 0.85rem;
  color: var(--gold-400);
  background: rgba(212,168,83,0.08);
  font-family: var(--font-display);
  letter-spacing: 2px;
}

/* ─── 塔罗逆位已在上方定义 ── */

/* ═══════ 全局字体增强 ═══════ */
body { font-weight: 500; letter-spacing: 0.03em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
.nav-link { font-size: 0.95rem; font-weight: 600; }
.card-desc { font-size: 0.95rem; }
.btn-primary, .btn-secondary { font-size: 0.95rem; font-weight: 600; padding: 10px 20px; }
.bazi-main-title { font-size: 1.8rem; font-weight: 700; }
/* 干支大字 */
.bazi-grid-table .stems-char { font-size: 2rem; font-weight: 700; }
/* 紫微宫位 */
.zw-palace-name { font-size: 1.05rem; font-weight: 700; }
.zw-main-stars { font-size: 0.95rem; font-weight: 600; }
/* 塔罗 */
.card-name-cn { font-size: 1.15rem; font-weight: 700; }
.card-name-en { font-size: 0.75rem; }
/* 六壬 */
.lr-tp-dz { font-size: 1.15rem; font-weight: 700; }
.lr-tp-god { font-size: 0.85rem; }
/* 标签 */
.tag-item { font-size: 0.9rem; font-weight: 600; }
.shensha-tag { font-size: 0.85rem; font-weight: 600; }
/* 日主横幅 */
.day-master-banner .dm-value { font-size: 1.5rem; }
/* 结果区域 */
.result-section { font-size: 0.95rem; }
/* AI解读结果 */
.master-result, .master-interpretation { font-size: 0.95rem; line-height: 1.9; }
/* 表格 */
.pillars-table td { font-size: 0.9rem; }
.pillars-table .row-label { font-size: 0.75rem; font-weight: 600; }

/* ═══════ 品牌升级组件 ═══════ */

/* 玻璃宣纸卡片 */
.card {
  background: rgba(26,28,37,0.7);
  /* [PERF] backdrop-filter removed */
  /* [PERF] -webkit-backdrop-filter removed */
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 32px;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* 鎏金边框高亮卡片 */
.card-gold {
  border-color: rgba(201,169,110,0.3);
  box-shadow: 0 0 40px rgba(201,169,110,0.06), 0 8px 32px rgba(0,0,0,0.3);
}

/* 主要按钮 - 鎏金渐变 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary:first-of-type {
  background: linear-gradient(135deg, #d4a853 0%, #b8892a 50%, #8c6318 100%);
  color: #080a0f;
  border: none;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.2);
}
.btn-primary:first-of-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.35);
}
.btn-primary:last-of-type {
  background: transparent;
  color: var(--gold-400);
  border: 1.5px solid var(--border-gold);
}
.btn-primary:last-of-type:hover {
  background: rgba(212, 168, 83, 0.08);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.15);
}
.btn-primary:active {
  transform: scale(0.97);
}

/* 次要按钮 - 鎏金描边幽灵 */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(217,74,74,0.4);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-secondary:hover {
  background: rgba(217,74,74,0.08);
  border-color: rgba(217,74,74,0.7);
}

/* 禁用状态 */
.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* 横向滑动卡片区 */
.insight-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-600) transparent;
}
.insight-cards::-webkit-scrollbar { height: 4px; }
.insight-cards::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 2px; }

.insight-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: all var(--transition-base);
}
.insight-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.insight-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--gold-400);
}
.insight-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.insight-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ─── 语言切换 ─── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 16px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  --text-dim: #9a9590;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}
.lang-btn:hover {
  color: var(--gold-400);
}
.lang-btn.active {
  color: var(--gold-400);
  background: rgba(212,168,83,0.08);
  font-weight: 600;
}
.lang-divider {
  color: var(--border-default);
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 768px) {
  .lang-switch {
    margin: 0 8px;
  }
  .lang-btn {
    padding: 2px 6px;
    font-size: 0.8rem;
  }
}

/* 悬浮对话入口 */
.floating-master {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
}
.floating-master-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cinnabar);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px rgba(217,74,74,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
}
.floating-master-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(217,74,74,0.6);
}
.floating-master-btn::after {
  content: '问问你的玄学向导';
  position: absolute;
  right: 68px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}
.floating-master-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* 星图背景 canvas */
.starfield-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* 移动端调整 */
@media (max-width: 768px) {
  .floating-master { bottom: 20px; right: 20px; }
  .floating-master-btn { width: 48px; height: 48px; }
  .floating-master-btn::after { display: none; }
}

/* ═══════ 玻璃宣纸卡片系统 ═══════ */
.card {
  background: rgba(26,28,37,0.7);
  /* [PERF] backdrop-filter removed */
  /* [PERF] -webkit-backdrop-filter removed */
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03);
  padding: 32px;
  transition: all var(--transition-base);
}
.card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* 鎏金边框高亮卡片 */
.card-gold {
  border-color: rgba(201,169,110,0.3);
  box-shadow: 0 0 40px rgba(201,169,110,0.06), 0 8px 32px rgba(0,0,0,0.3);
}

/* ═══════ 按钮重设计 ═══════ */
.btn-primary {
  background: var(--cinnabar);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(217,74,74,0.3);
}
.btn-primary:hover {
  background: var(--cinnabar-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(217,74,74,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(217,74,74,0.4);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base);
}
.btn-secondary:hover {
  background: rgba(217,74,74,0.08);
  border-color: rgba(217,74,74,0.7);
}

.btn-primary:disabled, .btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════ 横向滑动解读卡片 ═══════ */
.insight-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-600) transparent;
}
.insight-cards::-webkit-scrollbar { height: 4px; }
.insight-cards::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 2px; }

.insight-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: all var(--transition-base);
}
.insight-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.insight-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--gold-400);
}
.insight-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.insight-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
/* Custom Scrollbar */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:var(--bg-surface)}
::-webkit-scrollbar-thumb{background:var(--gold-600);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--gold-400)}

.loading-spinner {
  width:40px; height:40px;
  border:3px solid var(--border-default);
  border-top-color:var(--gold-400);
  border-radius:50%;
  animation:spin 0.8s linear infinite;
}

/* ============================================
   宇宙星空动态背景系统
   纯 CSS 实现，GPU 加速，零 JS 开销
   ============================================ */

.starfield-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at bottom, #0f1219 0%, #080a0f 80%);
}

/* 星云光晕 - 缓慢漂移 */
.starfield-bg::before {
  content: '';
  position: absolute;
  width: 160%; height: 160%;
  left: -30%; top: -30%;
  background:
    radial-gradient(ellipse 400px 500px at 20% 50%, rgba(90,70,180,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(180,140,70,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 350px 500px at 70% 75%, rgba(60,100,180,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 50% 20%, rgba(212,168,83,0.03) 0%, transparent 70%);
  animation: nebula-drift 120s ease-in-out infinite alternate;
  filter: blur(2px);
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-3%, 2%) scale(1.05); }
  50% { transform: translate(2%, -1%) scale(0.98); }
  75% { transform: translate(1%, -2%) scale(1.03); }
  100% { transform: translate(-1%, 1%) scale(1); }
}

/* === 三层视差星星 === */
.stars-layer {
  position: absolute;
  top: 0; left: 0;
  background: transparent;
  border-radius: 50%;
  will-change: transform;
}

/* 远景星 - 数量多，小，冷白，最慢 */
.stars-far {
  width: 1px; height: 1px;
  box-shadow: 456px 102px #c8d6e5,1126px 1003px #c8d6e5,914px 571px #c8d6e5,419px 2233px #c8d6e5,356px 1728px #c8d6e5,130px 122px #c8d6e5,383px 895px #c8d6e5,952px 2069px #c8d6e5,108px 2298px #c8d6e5,814px 2232px #c8d6e5,1718px 902px #c8d6e5,1839px 1139px #c8d6e5,26px 653px #c8d6e5,1731px 1393px #c8d6e5,1138px 636px #c8d6e5,881px 1378px #c8d6e5,418px 379px #c8d6e5,1556px 396px #c8d6e5,1470px 1408px #c8d6e5,1083px 177px #c8d6e5,1881px 2196px #c8d6e5,511px 1550px #c8d6e5,322px 2261px #c8d6e5,1200px 1481px #c8d6e5,787px 284px #c8d6e5,187px 933px #c8d6e5,1185px 326px #c8d6e5,953px 413px #c8d6e5,1556px 1138px #c8d6e5,1857px 1494px #c8d6e5,666px 1516px #c8d6e5,1455px 858px #c8d6e5,1093px 292px #c8d6e5,700px 2187px #c8d6e5,1002px 669px #c8d6e5,1893px 1554px #c8d6e5,1105px 2281px #c8d6e5,899px 1328px #c8d6e5,229px 938px #c8d6e5,131px 1292px #c8d6e5,1643px 1096px #c8d6e5,271px 864px #c8d6e5,1288px 870px #c8d6e5,2044px 1620px #c8d6e5,1879px 585px #c8d6e5,1084px 571px #c8d6e5,1010px 2299px #c8d6e5,1076px 2394px #c8d6e5,1754px 2390px #c8d6e5,1635px 1482px #c8d6e5,898px 566px #c8d6e5,2087px 2021px #c8d6e5,372px 192px #c8d6e5,449px 626px #c8d6e5,655px 1729px #c8d6e5,260px 1576px #c8d6e5,1563px 1917px #c8d6e5,1029px 2266px #c8d6e5,47px 469px #c8d6e5,1092px 1393px #c8d6e5,456px 1202px #c8d6e5,1780px 647px #c8d6e5,1858px 13px #c8d6e5,1078px 2050px #c8d6e5,731px 2079px #c8d6e5,435px 1222px #c8d6e5,2079px 814px #c8d6e5,626px 1531px #c8d6e5,661px 2209px #c8d6e5,2px 1327px #c8d6e5,2001px 79px #c8d6e5,458px 1486px #c8d6e5,1259px 980px #c8d6e5,237px 986px #c8d6e5,322px 350px #c8d6e5,1990px 283px #c8d6e5,515px 525px #c8d6e5,1946px 2251px #c8d6e5,676px 1085px #c8d6e5,1733px 867px #c8d6e5;
  animation: stars-twinkle-far 6s ease-in-out infinite alternate,
             stars-scroll 140s linear infinite;
}

/* 中景星 - 数量中等，蓝白 */
.stars-mid {
  width: 2px; height: 2px;
  box-shadow: 823px 1276px #a0c8f0,1634px 1529px #a0c8f0,1794px 2119px #a0c8f0,1849px 495px #a0c8f0,1015px 920px #a0c8f0,262px 1384px #a0c8f0,86px 2268px #a0c8f0,942px 902px #a0c8f0,29px 290px #a0c8f0,241px 937px #a0c8f0,276px 128px #a0c8f0,1353px 290px #a0c8f0,974px 1140px #a0c8f0,1988px 877px #a0c8f0,541px 2338px #a0c8f0,1936px 995px #a0c8f0,1937px 1667px #a0c8f0,779px 386px #a0c8f0,397px 1765px #a0c8f0,1451px 1734px #a0c8f0,1683px 1912px #a0c8f0,221px 403px #a0c8f0,248px 1649px #a0c8f0,1389px 447px #a0c8f0,1018px 784px #a0c8f0,779px 2196px #a0c8f0,1837px 574px #a0c8f0,1728px 751px #a0c8f0,1140px 1894px #a0c8f0,1023px 308px #a0c8f0,1815px 2254px #a0c8f0,401px 207px #a0c8f0,60px 382px #a0c8f0,968px 681px #a0c8f0,1664px 1989px #a0c8f0,1971px 875px #a0c8f0,1642px 240px #a0c8f0,674px 1552px #a0c8f0,8px 1599px #a0c8f0,1086px 1863px #a0c8f0,1168px 1732px #a0c8f0,1993px 634px #a0c8f0,777px 1215px #a0c8f0,891px 239px #a0c8f0,249px 1284px #a0c8f0,234px 205px #a0c8f0,1952px 2059px #a0c8f0,644px 232px #a0c8f0,2080px 328px #a0c8f0,761px 280px #a0c8f0;
  animation: stars-twinkle-mid 8s ease-in-out infinite alternate,
             stars-scroll 100s linear infinite;
}

/* 近景星 - 数量少，金色，最快，有辉光 */
.stars-near {
  width: 3px; height: 3px;
  box-shadow: 278px 963px #f5dea8,1653px 491px #f5dea8,1008px 2371px #f5dea8,162px 335px #f5dea8,1717px 2390px #f5dea8,1295px 1068px #f5dea8,836px 1286px #f5dea8,977px 1087px #f5dea8,1621px 536px #f5dea8,1228px 1872px #f5dea8,1295px 297px #f5dea8,38px 1877px #f5dea8,409px 300px #f5dea8,873px 2072px #f5dea8,1086px 542px #f5dea8,1429px 281px #f5dea8,1000px 1513px #f5dea8,1167px 646px #f5dea8,1794px 2225px #f5dea8,1239px 2166px #f5dea8,32px 2271px #f5dea8,1226px 424px #f5dea8,550px 1083px #f5dea8,472px 438px #f5dea8,636px 1115px #f5dea8;
  animation: stars-twinkle-near 5s ease-in-out infinite alternate,
             stars-scroll 65s linear infinite;
}

@keyframes stars-scroll {
  from { transform: translateY(100vh); }
  to { transform: translateY(-120vh); }
}

@keyframes stars-twinkle-far {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes stars-twinkle-mid {
  0%, 100% { opacity: 0.5; }
  33% { opacity: 0.9; }
  66% { opacity: 0.5; }
}

@keyframes stars-twinkle-near {
  0% { opacity: 0.7; }
  25% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 0.95; }
  100% { opacity: 0.6; }
}

/* === 流星 === */
.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(245,222,179,0.9) 50%, rgba(245,222,179,0) 100%);
  border-radius: 50%;
  animation: shooting 3s linear infinite;
  opacity: 0;
}

.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245,222,179,0.6), transparent);
  right: 100%;
}

@keyframes shooting {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 0; }
  5% { opacity: 1; }
  20% { transform: translateX(-300px) translateY(200px) rotate(-35deg); opacity: 0; }
  100% { transform: translateX(-300px) translateY(200px) rotate(-35deg); opacity: 0; }
}

.shooting-star:nth-child(1) {
  top: 26%;
  left: 36%;
  animation-delay: 4.2s;
  animation-duration: 2.4s;
}
.shooting-star:nth-child(2) {
  top: 37%;
  left: 72%;
  animation-delay: 10.3s;
  animation-duration: 3.7s;
}
.shooting-star:nth-child(3) {
  top: 8%;
  left: 21%;
  animation-delay: 3.8s;
  animation-duration: 3.8s;
}
.shooting-star:nth-child(4) {
  top: 7%;
  left: 10%;
  animation-delay: 9.5s;
  animation-duration: 3.7s;
}
.shooting-star:nth-child(5) {
  top: 21%;
  left: 30%;
  animation-delay: 5.0s;
  animation-duration: 2.3s;
}

/* === 两侧星系光团 === */
.galaxy-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: galaxy-orbit linear infinite;
  opacity: 0.7;
  pointer-events: none;
}

.galaxy-blob:nth-child(1) {
  left: 5%;
  top: 25%;
  width: 300px;
  height: 400px;
  background:
    radial-gradient(ellipse at center, rgba(100,80,200,0.12) 0%, transparent 60%),
    conic-gradient(from 226deg, rgba(140,100,220,0.06) 0%, transparent 30%, rgba(140,100,220,0.06) 60%, transparent 100%);
  animation-duration: 75s;
  animation-delay: -22s;
}
.galaxy-blob:nth-child(2) {
  left: 90%;
  top: 65%;
  width: 350px;
  height: 450px;
  background:
    radial-gradient(ellipse at center, rgba(180,130,60,0.10) 0%, transparent 60%),
    conic-gradient(from 218deg, rgba(200,150,80,0.05) 0%, transparent 30%, rgba(200,150,80,0.05) 60%, transparent 100%);
  animation-duration: 75s;
  animation-delay: -0s;
}
.galaxy-blob:nth-child(3) {
  left: 8%;
  top: 80%;
  width: 250px;
  height: 350px;
  background:
    radial-gradient(ellipse at center, rgba(80,120,200,0.08) 0%, transparent 60%),
    conic-gradient(from 57deg, rgba(100,150,220,0.04) 0%, transparent 30%, rgba(100,150,220,0.04) 60%, transparent 100%);
  animation-duration: 44s;
  animation-delay: -30s;
}
.galaxy-blob:nth-child(4) {
  left: 88%;
  top: 15%;
  width: 280px;
  height: 380px;
  background:
    radial-gradient(ellipse at center, rgba(150,100,200,0.09) 0%, transparent 60%),
    conic-gradient(from 353deg, rgba(170,120,210,0.04) 0%, transparent 30%, rgba(170,120,210,0.04) 60%, transparent 100%);
  animation-duration: 49s;
  animation-delay: -17s;
}

@keyframes galaxy-orbit {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(-20px, 15px) rotate(90deg) scale(1.1); }
  50% { transform: translate(10px, -10px) rotate(180deg) scale(0.95); }
  75% { transform: translate(25px, -20px) rotate(270deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* === 响应式调整 === */
@media (max-width: 768px) {
  .galaxy-blob { opacity: 0.4; }
  .shooting-star { display: none; }
}
/* ============================================================
   Followup Chat — Arcane Edition
   ============================================================ */

.followup-chat {
  margin-top: 36px;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  animation: followupSlideUp 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.06), inset 0 0 80px rgba(212, 175, 55, 0.02);
}

/* Arcane border shimmer — top */
.followup-arcane-top {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), rgba(255,215,0,0.8), rgba(212,175,55,0.5), transparent);
  animation: arcaneShimmer 3s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* Arcane border shimmer — bottom */
.followup-arcane-bottom {
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.35), rgba(255,215,0,0.5), rgba(212,175,55,0.35), transparent);
  animation: arcaneShimmer 3s ease-in-out 1.5s infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes arcaneShimmer {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

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

.followup-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(180, 130, 60, 0.03), rgba(212, 175, 55, 0.06));
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.followup-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
}

.followup-header-icon-wrap {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.followup-header-icon {
  font-size: 20px;
  color: var(--gold-400);
  animation: iconPulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.followup-header-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
  animation: headerGlowExpand 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 8px rgba(212,175,55,0.4); }
  50% { transform: scale(1.15); text-shadow: 0 0 18px rgba(212,175,55,0.7); }
}

@keyframes headerGlowExpand {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.6); opacity: 0.15; }
}

.followup-header-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-400);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.followup-header-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-left: auto;
  font-style: italic;
  opacity: 0.7;
}

.followup-messages {
  max-height: 420px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.03), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.02), transparent 60%);
}

.followup-messages::-webkit-scrollbar {
  width: 4px;
}

.followup-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 2px;
}

.followup-msg {
  display: flex;
  animation: followupMsgIn 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.followup-msg.user-msg {
  justify-content: flex-end;
}

.followup-msg.master-msg {
  justify-content: flex-start;
}

.followup-msg.system-msg {
  justify-content: center;
  position: relative;
}

.followup-msg.system-msg::before,
.followup-msg.system-msg::after {
  content: '\25C7';
  color: rgba(212, 175, 55, 0.2);
  font-size: 10px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: runeFloat 3s ease-in-out infinite;
}

.followup-msg.system-msg::before {
  left: 4px;
}

.followup-msg.system-msg::after {
  right: 4px;
  animation-delay: 1.5s;
}

@keyframes runeFloat {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}

.followup-msg-bubble {
  max-width: 82%;
}

.user-msg .followup-msg-content {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(180, 130, 60, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--text-primary);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.08);
}

.master-msg .followup-msg-content {
  background: rgba(18, 18, 30, 0.7);
  border-left: 3px solid var(--gold-400);
  border-radius: 4px 16px 16px 16px;
  color: var(--text-secondary);
  padding: 13px 18px;
  font-size: 0.93rem;
  line-height: 1.85;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.04), inset 0 0 30px rgba(212, 175, 55, 0.02);
  position: relative;
}

.master-msg .followup-msg-content::after {
  content: '';
  position: absolute;
  top: 0; left: -3px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-400), rgba(212, 175, 55, 0.1));
  border-radius: 3px 0 0 3px;
}

.system-msg .followup-msg-content {
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-style: italic;
  padding: 8px 16px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.followup-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(10, 10, 20, 0.3);
  position: relative;
}

.followup-input-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

.followup-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.93rem;
  padding: 10px 14px;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.6;
  transition: all 0.3s ease;
  min-height: 42px;
  max-height: 120px;
}

.followup-input:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08), 0 0 24px rgba(212, 175, 55, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.followup-input::placeholder {
  color: var(--text-dim);
  opacity: 0.4;
  letter-spacing: 0.03em;
}

.followup-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.followup-send {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.06));
  color: var(--gold-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.followup-send::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.followup-send:hover {
  background: linear-gradient(135deg, var(--gold-400), rgba(200, 150, 40, 0.7));
  color: #1a1a2e;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.15);
  transform: scale(1.06);
}

.followup-send:hover::after {
  opacity: 1;
}

.followup-send:active {
  transform: scale(0.95);
}

.followup-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.followup-send.loading svg {
  animation: followupSendSpin 0.8s linear infinite;
}

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

.followup-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 0;
}

.followup-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: followupBounce 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.5);
}

.followup-typing span:nth-child(2) { animation-delay: 0.2s; }
.followup-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes followupBounce {
  0%, 80%, 100% { transform: scale(0.4); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 640px) {
  .followup-chat { margin-top: 24px; }
  .followup-messages { max-height: 320px; padding: 14px; }
  .followup-msg-bubble { max-width: 90%; }
  .followup-header { padding: 12px 14px; }
  .followup-header-sub { display: none; }
  .followup-input-wrap { padding: 10px 14px; }
  .followup-arcane-top,
  .followup-arcane-bottom { left: 4%; right: 4%; }
  .followup-msg.system-msg::before,
  .followup-msg.system-msg::after { display: none; }
}

/* ═══════ 星空呼吸闪烁 ═══════ */
@keyframes star-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes star-pulse-slow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

.stars-far { animation: star-pulse-slow 6s ease-in-out infinite; }
.stars-mid { animation: star-pulse 4s ease-in-out infinite; }
.stars-near { animation: star-pulse 3s ease-in-out infinite; }


/* ══════════════════════════════════
   HOME PAGE REDESIGN — ASTROAI STYLE
   ══════════════════════════════════ */

/* --- Panel Layout --- */
.home-panel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 140px) clamp(24px, 5vw, 64px) clamp(40px, 8vh, 80px);
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  box-sizing: border-box;
  animation: fade-in-up 0.8s ease-out both;
}

/* --- Left: Astronomical Illustration --- */
.home-illustration {
  flex: 0 0 clamp(260px, 35vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.astro-orbits {
  width: 100%;
  height: auto;
  opacity: 0.85;
  animation: orbit-rotate 60s linear infinite;
  transform-origin: center center;
}
@keyframes orbit-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Right: Text Content --- */
.home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

/* Badge */
.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 8px rgba(212,168,83,0.5);
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Headline */
.home-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin: 0;
}

/* Description */
.home-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #a0a0a0;
  margin: 0;
  max-width: 500px;
}

/* Action Buttons */
.home-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-hero-primary {
  background: var(--text-primary);
  color: #080a0f;
  border: none;
}
.btn-hero-primary:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,168,83,0.3);
}
.btn-hero-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
}

/* --- Service Cards Grid --- */
.home-cards {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px) clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  box-sizing: border-box;
}

.home-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.home-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,83,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.home-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(212,168,83,0.2);
  transform: translateY(-4px);
}
.home-card:hover::after {
  opacity: 1;
}

.hc-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.hc-bazi  { color: var(--gold-400); background: rgba(212,168,83,0.08); }
.hc-ziwei { color: #f06a6a;   background: rgba(240,106,106,0.08); }
.hc-tarot { color: #a078c4;   background: rgba(160,120,196,0.08); }
.hc-liuren{ color: #5d9b7a;   background: rgba(93,155,122,0.08); }
.hc-scope { color: #6b8cce;   background: rgba(107,140,206,0.08); }
.hc-daily { color: #d4983a;   background: rgba(212,152,58,0.08); }

.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin: 0;
}
.home-card p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.6;
  margin: 0;
}

/* --- Card Stagger Animation --- */
.home-card:nth-child(1) { animation: fade-in-up 0.6s ease-out 0.15s both; }
.home-card:nth-child(2) { animation: fade-in-up 0.6s ease-out 0.25s both; }
.home-card:nth-child(3) { animation: fade-in-up 0.6s ease-out 0.35s both; }
.home-card:nth-child(4) { animation: fade-in-up 0.6s ease-out 0.4s both; }
.home-card:nth-child(5) { animation: fade-in-up 0.6s ease-out 0.45s both; }
.home-card:nth-child(6) { animation: fade-in-up 0.6s ease-out 0.5s both; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .home-panel {
    flex-direction: column;
    text-align: center;
    padding-top: clamp(60px, 10vh, 100px);
  }
  .home-illustration {
    flex: 0 0 auto;
    width: min(240px, 55vw);
  }
  .home-content {
    align-items: center;
    max-width: 100%;
  }
  .home-desc {
    text-align: center;
    max-width: 100%;
  }
  .home-actions {
    justify-content: center;
  }
  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-card {
    padding: 24px 20px;
  }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════
   PRICING PAGE REDESIGN
   ══════════════════════════════════ */

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 100px) clamp(20px, 4vw, 40px);
}

/* --- Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* --- Card --- */
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Free card - subtle */
.pricing-free {
  background: var(--bg-surface);
  border-color: var(--border-default);
  opacity: 0.85;
}
.pricing-free:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.pricing-free .pricing-name {
  color: var(--text-tertiary);
}
.pricing-free .pricing-amount {
  color: var(--text-tertiary);
}

/* Featured card */
.pricing-featured {
  border-color: var(--gold-400);
  box-shadow: 0 0 32px rgba(212,168,83,0.08), 0 4px 20px rgba(0,0,0,0.3);
  background: linear-gradient(180deg, rgba(212,168,83,0.04) 0%, var(--bg-elevated) 60%);
}
.pricing-featured:hover {
  border-color: var(--gold-400);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 48px rgba(212,168,83,0.18);
}
.pricing-featured .pricing-amount {
  background: linear-gradient(135deg, #d4a853, #f5dea8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge */
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #1a1610;
  padding: 5px 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: var(--font-display);
  box-shadow: 0 2px 12px rgba(212,168,83,0.3);
}

/* Header */
.pricing-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  margin: 0;
}
.pricing-tag {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  font-family: var(--font-display);
  padding: 2px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  opacity: 0.7;
}

/* Price */
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}
.pricing-currency {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
  align-self: flex-start;
  margin-top: 0.4rem;
}
.pricing-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.pricing-period {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.pricing-save {
  font-size: 0.8rem;
  color: #7ba37a;
  margin-bottom: 16px;
  margin-top: -12px;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Features */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
  text-align: left;
}
.pricing-features li {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.pricing-features li:hover {
  transform: translateX(4px);
  color: var(--text-primary);
}
.pricing-features li::before {
  content: '\2714';
  color: var(--gold-400);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Buttons */
.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  letter-spacing: 1px;
}
.pricing-btn:hover {
  background: rgba(212,168,83,0.08);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}

.pricing-btn-free {
  color: var(--text-tertiary);
  border-color: var(--border-default);
}
.pricing-btn-free:hover {
  color: var(--text-secondary);
  border-color: var(--text-tertiary);
  background: rgba(255,255,255,0.02);
}

.pricing-btn-featured {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500)) !important;
  color: #0a0a0a !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,168,83,0.2);
}
.pricing-btn-featured:hover {
  box-shadow: 0 8px 28px rgba(212,168,83,0.35);
  transform: translateY(-2px);
}

/* --- Fade-in stagger animation --- */
.pricing-card:nth-child(1) { animation: fade-in-up 0.6s ease-out both; }
.pricing-card:nth-child(2) { animation: fade-in-up 0.6s ease-out 0.15s both; }
.pricing-card:nth-child(3) { animation: fade-in-up 0.6s ease-out 0.25s both; }
.pricing-card:nth-child(4) { animation: fade-in-up 0.6s ease-out 0.35s both; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .pricing-card {
    padding: 28px 20px;
  }
  .pricing-amount {
    font-size: 2.6rem;
  }
  .pricing-badge {
    font-size: 0.7rem;
    padding: 4px 16px;
    top: -10px;
  }
}

@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card {
    padding: 28px 24px;
  }
  .pricing-amount {
    font-size: 2.8rem;
  }
}


/* ══════════════════════════════════
   QUOTA EXHAUSTED MODAL
   ══════════════════════════════════ */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Container */
.quota-modal-container {
  background: var(--bg-base);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  padding: 40px 36px 32px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212,168,83,0.06);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .quota-modal-container {
  transform: translateY(0);
}

/* Close button */
.quota-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.quota-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* Header */
.quota-modal-header {
  text-align: center;
  margin-bottom: 28px;
}
.quota-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  margin: 0 0 12px;
}
.quota-modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.quota-modal-desc strong {
  color: var(--gold-400);
  font-weight: 600;
}

/* Options grid */
.quota-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

/* Single option card */
.quota-option {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quota-option:hover {
  border-color: var(--border-gold);
  background: rgba(212,168,83,0.04);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.quota-option.quota-option-featured {
  border-color: var(--gold-400);
  background: linear-gradient(180deg, rgba(212,168,83,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.quota-option.quota-option-featured:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 24px rgba(212,168,83,0.12);
}

/* Option badge */
.quota-option-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-400);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 2px 8px;
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: 999px;
}

/* Option price */
.quota-option-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  margin-bottom: 2px;
}
.quota-option-currency {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-family: var(--font-display);
}
.quota-option-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-400);
}
.quota-option-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.quota-option-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 150px;
}

/* Actions */
.quota-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.quota-btn-primary {
  width: 100%;
  max-width: 300px;
  padding: 13px 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px rgba(212,168,83,0.2);
}
.quota-btn-primary:hover {
  box-shadow: 0 8px 28px rgba(212,168,83,0.35);
  transform: translateY(-2px);
}
.quota-btn-secondary {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 6px 16px;
}
.quota-btn-secondary:hover {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 600px) {
  .quota-modal-container {
    padding: 28px 20px 24px;
    border-radius: 16px;
  }
  .quota-modal-title {
    font-size: 1.15rem;
    letter-spacing: 2px;
  }
  .quota-modal-desc {
    font-size: 0.82rem;
  }
  .quota-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .quota-option {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 16px;
    text-align: left;
  }
  .quota-option-badge {
    margin-bottom: 0;
    margin-right: 8px;
  }
  .quota-option-price {
    margin-bottom: 0;
    margin-right: 6px;
  }
  .quota-option-label {
    margin-bottom: 0;
    margin-right: 8px;
  }
  .quota-option-desc {
    font-size: 0.7rem;
    max-width: none;
    flex: 1;
  }
  .quota-btn-primary {
    max-width: 100%;
  }
}
