/**
 * Site-wide light theme · aligned with tarotqa.com day mode
 * Clean white surfaces, neutral text, purple accent on interaction only
 */

html[data-theme="light"] {
  color-scheme: light;
  --primary: #7c3aed;
  --primary-glow: #6d28d9;
  --secondary: #d97706;
  --dark-card: #ffffff;
  --glass: #ffffff;
  --border-dim: rgba(0, 0, 0, 0.08);
  --lt-bg: #ffffff;
  --lt-bg-soft: #fafafa;
  --lt-surface: #ffffff;
  --lt-surface-2: #f5f5f5;
  --lt-text: #111827;
  --lt-text-muted: #6b7280;
  --lt-text-soft: #9ca3af;
  --lt-border: rgba(0, 0, 0, 0.08);
  --lt-border-strong: rgba(0, 0, 0, 0.12);
  --lt-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --lt-hero-bg: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* ── Base ── */
html[data-theme="light"] body {
  background: var(--lt-bg);
  background-image: none;
  color: var(--lt-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] .meteor-sky,
html[data-theme="light"] .meteor-sky::before {
  opacity: 0.06;
}

html[data-theme="light"] ::selection {
  background: rgba(124, 58, 237, 0.14);
  color: #111827;
}

/* ── Universal clarity (all ts-scope pages) ── */
html[data-theme="light"] .ts-scope .lj-daily-lower {
  background: var(--lt-bg-soft) !important;
}

html[data-theme="light"] .ts-scope .lj-aurora,
html[data-theme="light"] .ts-scope .lj-orb,
html[data-theme="light"] .ts-scope [class*="-aurora"]:not(.site-maint-aurora) {
  opacity: 0.1 !important;
}

html[data-theme="light"] .ts-scope .lj-meteor-canvas,
html[data-theme="light"] .ts-scope [class*="-particle-canvas"],
html[data-theme="light"] .ts-scope [class*="-starfield"],
html[data-theme="light"] .ts-scope [class*="-meteor"] {
  opacity: 0.12 !important;
}

html[data-theme="light"] .ts-scope h1.lj-mainline,
html[data-theme="light"] .ts-scope .lj-mainline,
html[data-theme="light"] .ts-scope .zh-masthead-title,
html[data-theme="light"] .ts-scope .zh-title,
html[data-theme="light"] .ts-scope .cs-title,
html[data-theme="light"] .ts-scope .ms-hero-title {
  background: none !important;
  background-size: unset !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--lt-text) !important;
  color: var(--lt-text) !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
}

html[data-theme="light"] .ts-scope .lj-subline,
html[data-theme="light"] .ts-scope .lj-subline span:not(.lj-accent) {
  color: var(--lt-text-muted) !important;
  text-shadow: none !important;
}

html[data-theme="light"] .page .glass-card {
  background: var(--lt-surface);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
  color: var(--lt-text);
}

html[data-theme="light"] .page {
  color: var(--lt-text-muted);
}

/* ── Navbar & auth ── */
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--lt-border-strong);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .logo h1 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #111827;
}

html[data-theme="light"] .logo span {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .nav-links li a,
html[data-theme="light"] .nav-links li a:visited {
  color: #374151;
}

html[data-theme="light"] .nav-links li:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .nav-links li.active {
  background: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

html[data-theme="light"] .nav-links li.active a,
html[data-theme="light"] .nav-links a:hover {
  color: #111827;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] .btn-outline,
html[data-theme="light"] a.btn-outline {
  color: #374151;
  border-color: var(--lt-border-strong);
  background: #fff;
}

html[data-theme="light"] .btn-outline:hover,
html[data-theme="light"] a.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

html[data-theme="light"] .btn-primary,
html[data-theme="light"] a.btn-primary {
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* ── Toolbar ── */
html[data-theme="light"] .site-tool-btn {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.08);
  color: #374151;
}

html[data-theme="light"] .site-tool-wrap-theme .site-tool-btn-theme {
  border-color: transparent;
  color: #1f2937;
}

html[data-theme="light"] .site-tool-wrap-theme .site-tool-btn-theme:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: transparent;
  color: #111827;
}

html[data-theme="light"] .site-tool-wrap-lang .site-tool-btn-lang:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.12);
  color: #111827;
}

html[data-theme="light"] .site-tool-panel,
html[data-theme="light"] .site-lang-panel,
html[data-theme="light"] .site-music-panel {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .site-lang-head,
html[data-theme="light"] .site-music-head-title {
  color: var(--lt-text-muted);
  border-bottom-color: var(--lt-border);
}

html[data-theme="light"] .site-lang-option,
html[data-theme="light"] .site-music-track {
  color: var(--lt-text);
}

html[data-theme="light"] .site-lang-option:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

html[data-theme="light"] .site-lang-option.is-active {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

html[data-theme="light"] .site-music-status,
html[data-theme="light"] .site-music-current {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .site-music-track.is-active {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
  border-color: var(--lt-border);
}

html[data-theme="light"] .site-music-track:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── User menu ── */
html[data-theme="light"] .user-menu-trigger {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: #374151;
}

html[data-theme="light"] .user-menu-trigger:hover,
html[data-theme="light"] .user-menu-wrap.is-open .user-menu-trigger {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .user-menu-dropdown {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .user-menu-link {
  color: var(--lt-text);
}

html[data-theme="light"] .user-menu-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}

html[data-theme="light"] .user-menu-vip-banner {
  background: rgba(251, 191, 36, 0.08);
  border-bottom-color: var(--lt-border);
}

/* ── Footer ── */
html[data-theme="light"] .site-footer {
  background: #fafafa;
  border-top-color: var(--lt-border-strong);
}

html[data-theme="light"] .site-footer-copy {
  color: var(--lt-text);
}

html[data-theme="light"] .site-footer-tagline,
html[data-theme="light"] .site-footer-disclaimer {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .site-footer-legal-link {
  color: #374151;
  border-color: var(--lt-border-strong);
  background: #fff;
}

html[data-theme="light"] .site-footer-legal-link:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.04);
  box-shadow: none;
}

/* ── Dialogs & modals ── */
html[data-theme="light"] .ui-dialog-overlay {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .ui-dialog {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ui-dialog-title {
  color: var(--lt-text);
}

html[data-theme="light"] .ui-dialog-message {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .modal {
  background: rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .modal-content {
  background: #fff;
  color: var(--lt-text);
  border: 1px solid var(--lt-border-strong);
}

html[data-theme="light"] .form-group input {
  background: #fff;
  border: 1px solid var(--lt-border-strong);
  color: var(--lt-text);
}

html[data-theme="light"] .psm-overlay {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .psm-modal {
  background: #fff;
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .psm-title,
html[data-theme="light"] .psm-body,
html[data-theme="light"] .psm-meta {
  color: var(--lt-text);
}

html[data-theme="light"] .psm-meta {
  color: var(--lt-text-muted);
}

/* ── Global cards & tabs ── */
html[data-theme="light"] .glass-card,
html[data-theme="light"] .page .glass-card {
  background: var(--lt-surface);
  color: var(--lt-text);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .section-title {
  color: var(--lt-text);
}

html[data-theme="light"] .spread-tab {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: #374151;
}

html[data-theme="light"] .spread-tab.active {
  color: #fff;
}

/* ── ts-scope · hero stage ── */
html[data-theme="light"] .ts-scope .lj-daily-hero-bg {
  background: var(--lt-hero-bg);
}

html[data-theme="light"] .ts-scope .lj-daily-hero-bg::after {
  opacity: 0.08;
}

html[data-theme="light"] .ts-scope .lj-daily-hero-bg img.cover,
html[data-theme="light"] .ms-premium .lj-daily-hero-bg .cover,
html[data-theme="light"] .cs-premium .cs-hero-bg img.cover {
  opacity: 0.12;
  filter: saturate(0.5) brightness(1.35) contrast(0.9);
}

html[data-theme="light"] .ts-scope .lj-hero-vignette,
html[data-theme="light"] .ms-premium .lj-hero-vignette,
html[data-theme="light"] .cs-premium .cs-hero-vignette {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 55%,
    rgba(250, 250, 250, 0.95) 100%
  );
}

html[data-theme="light"] .ts-scope .lj-meteor-canvas,
html[data-theme="light"] .ts-scope .ms-particle-canvas,
html[data-theme="light"] .cs-premium .cs-meteor-canvas,
html[data-theme="light"] .cs-premium .cs-particle-canvas {
  opacity: 0.12;
}

html[data-theme="light"] .ms-premium .ms-aurora,
html[data-theme="light"] .zh-premium .zh-aurora {
  opacity: 0.1;
}

html[data-theme="light"] .ms-premium .ms-orb--1,
html[data-theme="light"] .ms-premium .ms-orb--2,
html[data-theme="light"] .zh-premium .zh-orb {
  opacity: 0.15;
}

/* ── ts-scope · hero typography (solid dark, no gradient) ── */
html[data-theme="light"] .ts-scope .lj-daily-hero h1.lj-mainline,
html[data-theme="light"] .ms-premium .lj-mainline,
html[data-theme="light"] .zh-premium .zh-title,
html[data-theme="light"] .cs-premium .cs-title {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #111827;
  filter: none;
  text-shadow: none;
}

html[data-theme="light"] .ts-scope .lj-subline,
html[data-theme="light"] .ms-premium .ms-hero-tagline,
html[data-theme="light"] .ms-premium .lj-subline {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .lj-accent {
  color: #6d28d9;
}

html[data-theme="light"] .ms-premium .ms-hero-kicker,
html[data-theme="light"] .ms-premium .ms-section-eyebrow,
html[data-theme="light"] .zh-premium .zh-section-eyebrow,
html[data-theme="light"] .cs-premium .cs-kicker {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.12);
}

html[data-theme="light"] .ms-premium .ms-scroll-hint,
html[data-theme="light"] .zh-premium .zh-scroll-hint {
  color: var(--lt-text-soft);
}

html[data-theme="light"] .ms-premium .ms-hero-path {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ms-premium .ms-hero-path-item {
  background: var(--lt-bg-soft);
  border-color: var(--lt-border);
}

html[data-theme="light"] .ms-premium .ms-hero-path-label {
  color: var(--lt-text);
}

/* ── ts-scope · content sections ── */
html[data-theme="light"] .ts-scope .lj-daily-lower,
html[data-theme="light"] .ts-scope.tarot-home .lj-daily-lower,
html[data-theme="light"] .ts-scope.daily-home .lj-daily-lower,
html[data-theme="light"] .ts-scope.zodiac-home .zh-lower-premium,
html[data-theme="light"] .zh-premium .zh-lower-premium {
  background: var(--lt-bg-soft);
}

html[data-theme="light"] .ts-scope .lj-section.alt {
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .ts-scope .lj-block-title,
html[data-theme="light"] .ms-premium .ms-pricing-head h2,
html[data-theme="light"] .ms-premium .ms-redeem-head h2,
html[data-theme="light"] .ms-premium .ms-shop-head h2,
html[data-theme="light"] .zh-premium .zh-section-head h2 {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope .lj-block-sub,
html[data-theme="light"] .ms-premium .ms-pricing-head p,
html[data-theme="light"] .ms-premium .ms-redeem-head p,
html[data-theme="light"] .ms-premium .ms-shop-head p,
html[data-theme="light"] .zh-premium .zh-section-head p {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .lj-rule,
html[data-theme="light"] .ts-scope .lj-card-caption,
html[data-theme="light"] .ts-scope .lj-step-item,
html[data-theme="light"] .ts-scope .lj-step-item p {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .lj-step-item.is-active,
html[data-theme="light"] .ts-scope .lj-step-item:hover {
  background: rgba(124, 58, 237, 0.06);
}

html[data-theme="light"] .ts-scope .lj-birth-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-scope .lj-birth-panel-title,
html[data-theme="light"] .ts-scope .lj-birth-panel-sub {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .lj-birth-selects select,
html[data-theme="light"] .ts-scope input,
html[data-theme="light"] .ts-scope textarea,
html[data-theme="light"] .ts-scope select {
  background: #fff;
  border: 1px solid var(--lt-border-strong);
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope .lj-birth-pill {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--lt-border-strong);
  color: #5b21b6;
}

/* ── Membership ── */
html[data-theme="light"] .ms-premium .ms-flow-step,
html[data-theme="light"] .ms-premium .ms-redeem-hub,
html[data-theme="light"] .ms-premium .ms-cs-card,
html[data-theme="light"] .ms-premium .ms-redeem-card,
html[data-theme="light"] .ms-premium .ms-shop-card,
html[data-theme="light"] .ms-card .ms-card-inner {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ms-premium .ms-flow-body h3,
html[data-theme="light"] .ms-card-name,
html[data-theme="light"] .ms-premium .ms-cs-title,
html[data-theme="light"] .ms-premium .ms-redeem-card-title,
html[data-theme="light"] .ms-premium .ms-shop-name {
  color: var(--lt-text);
}

html[data-theme="light"] .ms-premium .ms-flow-body p,
html[data-theme="light"] .ms-card-note,
html[data-theme="light"] .ms-card-tier,
html[data-theme="light"] .ms-card-features li span,
html[data-theme="light"] .ms-premium .ms-cs-hint,
html[data-theme="light"] .ms-premium .ms-redeem-card-sub,
html[data-theme="light"] .ms-premium .ms-redeem-tip,
html[data-theme="light"] .ms-premium .ms-shop-desc,
html[data-theme="light"] .ms-premium .ms-shop-wallet,
html[data-theme="light"] .ms-premium .ms-foot-disclaimer {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ms-card-metric {
  background: rgba(124, 58, 237, 0.06);
  border-color: var(--lt-border);
  color: var(--lt-text);
}

html[data-theme="light"] .ms-card-metric.is-hot {
  background: rgba(251, 191, 36, 0.12);
  color: #92400e;
}

html[data-theme="light"] .ms-redeem-input {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: var(--lt-text);
}

html[data-theme="light"] .ms-premium .ms-hero-btn--ghost {
  color: #6d28d9;
  border-color: var(--lt-border-strong);
  background: rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .ms-premium .ms-plan-btn--outline {
  color: var(--lt-text-muted);
  border-color: var(--lt-border-strong);
  background: #fff;
}

/* ── Zodiac ── */
html[data-theme="light"] .zh-premium .zh-filter-btn,
html[data-theme="light"] .zh-premium .zh-hub-tab,
html[data-theme="light"] .zh-premium .zh-type-chip {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--lt-border-strong);
  color: var(--lt-text-muted);
}

html[data-theme="light"] .zh-premium .zh-filter-btn.is-active,
html[data-theme="light"] .zh-premium .zh-hub-tab.is-active,
html[data-theme="light"] .zh-premium .zh-type-chip.is-active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.28);
  color: #5b21b6;
}

html[data-theme="light"] .zh-premium .zh-masthead-preview,
html[data-theme="light"] .zh-premium .zh-feature,
html[data-theme="light"] .zh-premium .zh-hub-nav-card,
html[data-theme="light"] .zh-premium .zh-section--premium {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .zh-premium .zh-feature h3,
html[data-theme="light"] .zh-premium .zh-hub-nav-title,
html[data-theme="light"] .zh-premium .zh-preview-cta .zh-btn-cta-title {
  color: var(--lt-text);
}

html[data-theme="light"] .zh-premium .zh-feature p,
html[data-theme="light"] .zh-premium .zh-hub-nav-desc,
html[data-theme="light"] .zh-premium .zh-hub-birth-hint,
html[data-theme="light"] .zh-premium .zh-hub-score-label,
html[data-theme="light"] .zh-premium .zh-hub-score-val,
html[data-theme="light"] .zh-premium #zhHubPreviewText,
html[data-theme="light"] .zh-premium #zhHubInsight {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .zh-premium .zh-lower-premium {
  background: var(--lt-bg-soft);
}

html[data-theme="light"] .zh-premium .dr-trend-stat-label,
html[data-theme="light"] .zh-premium .dr-trend-stat-val {
  color: var(--lt-text-muted);
}

/* ── Money Tree (warm cream day variant) ── */
html[data-theme="light"] .cs-premium .cs-hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(253, 224, 71, 0.25) 0%, transparent 55%),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 45%, #fefce8 100%);
}

html[data-theme="light"] .cs-premium .cs-panel,
html[data-theme="light"] .cs-premium .cs-deity-meta,
html[data-theme="light"] .cs-premium .cs-picker-sheet,
html[data-theme="light"] .cs-premium .cs-detail-sheet,
html[data-theme="light"] .cs-premium .cs-verdict-sheet {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.98));
  border-color: rgba(217, 119, 6, 0.2);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.08);
}

html[data-theme="light"] .cs-premium .cs-panel-title,
html[data-theme="light"] .cs-premium .cs-deity-name,
html[data-theme="light"] .cs-premium .cs-meta-label {
  color: #451a03;
}

html[data-theme="light"] .cs-premium .cs-panel-desc,
html[data-theme="light"] .cs-premium .cs-deity-title,
html[data-theme="light"] .cs-premium .cs-sub,
html[data-theme="light"] .cs-premium .cs-incense-hint,
html[data-theme="light"] .cs-premium #csMsg {
  color: #78350f;
}

html[data-theme="light"] .cs-premium .cs-wallet--active,
html[data-theme="light"] .cs-premium .cs-wallet--guest {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 119, 6, 0.22);
  color: #78350f;
}

html[data-theme="light"] .cs-premium .cs-picker-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(217, 119, 6, 0.18);
}

html[data-theme="light"] .cs-premium .cs-picker-card.is-picked,
html[data-theme="light"] .cs-premium .cs-picker-card.is-selected,
html[data-theme="light"] .cs-picker-card.is-selected {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35);
}

/* ── Auth & legal pages ── */
html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-foot {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .legal-page,
html[data-theme="light"] .legal-page__title {
  color: var(--lt-text);
}

html[data-theme="light"] .legal-page__kicker {
  color: #92400e;
}

html[data-theme="light"] .legal-page__lead,
html[data-theme="light"] .legal-page__updated,
html[data-theme="light"] .legal-page__body p,
html[data-theme="light"] .legal-page__body li {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .legal-page__body h2,
html[data-theme="light"] .legal-page__body h3 {
  color: var(--lt-text);
}

html[data-theme="light"] .legal-page__body a {
  color: #6d28d9;
}

html[data-theme="light"] .legal-page__callout {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
  color: var(--lt-text-muted);
}

html[data-theme="light"] .legal-page__head {
  border-bottom-color: var(--lt-border);
}

html[data-theme="light"] .legal-page__foot {
  color: var(--lt-text-soft);
}

html[data-theme="light"] .site-legal-page,
html[data-theme="light"] .site-legal-card {
  color: var(--lt-text);
}

html[data-theme="light"] .site-legal-card {
  background: var(--glass);
  border-color: var(--lt-border);
}

/* ── AI loader & zodiac gate ── */
html[data-theme="light"] .lj-ai-loader__backdrop {
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .lj-ai-loader__stage,
html[data-theme="light"] .lj-ai-loader__daily-panel,
html[data-theme="light"] .lj-ai-loader__daily-hud {
  color: var(--lt-text);
}

html[data-theme="light"] .lj-ai-loader__title,
html[data-theme="light"] .lj-daily-hud__title {
  color: var(--lt-text);
}

html[data-theme="light"] .lj-ai-loader__status,
html[data-theme="light"] .lj-daily-hud__status,
html[data-theme="light"] .lj-daily-hud__card-meta {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .zh-ai-gate {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .zh-ai-gate-title,
html[data-theme="light"] .zh-ai-gate-desc {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .zh-ai-gate-btn {
  color: #1a1030;
  border: 1px solid rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 42%, #f59e0b 100%);
  box-shadow:
    0 4px 18px rgba(251, 191, 36, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

html[data-theme="light"] .zh-ai-gate-btn:hover:not(:disabled) {
  color: #1a1030;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 38%, #ea580c 100%);
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow:
    0 10px 32px rgba(251, 191, 36, 0.48),
    0 0 0 3px rgba(251, 191, 36, 0.18);
}

html[data-theme="light"] .zh-ai-gate-btn:active:not(:disabled) {
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.32);
}

html[data-theme="light"] .zh-ai-gate-btn-glow {
  opacity: 0.4;
}

/* ── Auth pages ── */
html[data-theme="light"] .auth-tab {
  color: var(--lt-text-muted);
  border-color: var(--lt-border-strong);
  background: #fff;
}

html[data-theme="light"] .auth-tab.is-active {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.28);
}

html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-panel {
  background: var(--glass);
  border-color: var(--lt-border);
  color: var(--lt-text);
}

html[data-theme="light"] .auth-label,
html[data-theme="light"] .auth-hint {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .auth-input,
html[data-theme="light"] .auth-card input {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: var(--lt-text);
}

/* ── Tarot home / catalog lower ── */
html[data-theme="light"] .ts-scope.tarot-home .th-spread-card,
html[data-theme="light"] .ts-scope.tsc-catalog-home .tsc-card {
  background: linear-gradient(165deg, #fff, #f5f5f5);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-scope.tarot-home .th-spread-card h3,
html[data-theme="light"] .ts-scope.tsc-catalog-home .tsc-card-title {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope.tarot-home .th-spread-card p,
html[data-theme="light"] .ts-scope.tsc-catalog-home .tsc-card-desc {
  color: var(--lt-text-muted);
}

/* ── Misc modals ── */
html[data-theme="light"] .ts-modal-box {
  background: #fff;
  border: 1px solid var(--lt-border-strong);
  color: var(--lt-text);
}

html[data-theme="light"] .ts-modal-box h2 {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-modal-box .ts-sub {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .cs-ai-ritual__backdrop {
  background: rgba(255, 251, 235, 0.82);
}

html[data-theme="light"] .cs-ai-ritual__stage {
  color: #451a03;
}

html[data-theme="light"] .cs-ai-ritual__title,
html[data-theme="light"] .cs-ai-ritual__status,
html[data-theme="light"] .cs-ai-ritual__meta {
  color: #78350f;
}

/* ── ts-scope · FAQ & content cards ── */
html[data-theme="light"] .ts-scope .lj-faq-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-scope .lj-faq-item h4 {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope .lj-faq-item p {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .lj-card-caption {
  color: #6d28d9;
}

/* ── Daily result page ── */
html[data-theme="light"] .dr-page {
  --dr-bg: #fafafa;
  --dr-panel: rgba(255, 255, 255, 0.94);
  --dr-text: #1e1528;
  --dr-muted: #5b4b6f;
  --dr-purple-dim: rgba(124, 58, 237, 0.18);
}

html[data-theme="light"] .dr-vignette {
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.03) 100%);
}

html[data-theme="light"] .dr-aurora {
  opacity: 0.4;
}

html[data-theme="light"] .dr-star-canvas {
  opacity: 0.18;
}

html[data-theme="light"] .dr-hero-copy,
html[data-theme="light"] .dr-panel,
html[data-theme="light"] .dr-dims-section,
html[data-theme="light"] .dr-trend-section,
html[data-theme="light"] .dr-share-sheet,
html[data-theme="light"] .dr-share-preview {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .dr-hero-eyebrow,
html[data-theme="light"] .dr-hero-date-text,
html[data-theme="light"] .dr-hero-sub,
html[data-theme="light"] .dr-panel-lead,
html[data-theme="light"] .dr-main-text,
html[data-theme="light"] .dr-dim-label,
html[data-theme="light"] .dr-trend-stat-label {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .dr-hero-title,
html[data-theme="light"] .dr-panel-head h2,
html[data-theme="light"] .dr-dim-val,
html[data-theme="light"] .dr-trend-stat-val {
  color: var(--lt-text);
}

html[data-theme="light"] .dr-tag {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--lt-border-strong);
  color: #5b21b6;
}

html[data-theme="light"] .dr-share-overlay {
  background: rgba(255, 255, 255, 0.78);
}

/* ── Daily insight premium ── */
html[data-theme="light"] .ts-scope.daily-home {
  --da-glass: rgba(255, 255, 255, 0.92);
  --da-border: rgba(124, 58, 237, 0.22);
}

html[data-theme="light"] .ts-scope.daily-home .da-node-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-scope.daily-home .da-node-card h3,
html[data-theme="light"] .ts-scope.daily-home .da-node-card .da-node-title {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope.daily-home .da-node-card p,
html[data-theme="light"] .ts-scope.daily-home .da-node-card .da-node-body {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope.daily-home .df-search {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope.daily-home .df-search::placeholder {
  color: var(--lt-text-soft);
}

html[data-theme="light"] .ts-scope.daily-home .df-faq-item {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
}

html[data-theme="light"] .ts-scope.daily-home .df-faq-item h4 {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope.daily-home .df-faq-item p {
  color: var(--lt-text-muted);
}

/* ── Tarot flow (ask / draw / result) ── */
html[data-theme="light"] .tq-flow-badge,
html[data-theme="light"] .tq-flow-label {
  color: var(--lt-text-soft);
}

html[data-theme="light"] .tq-flow-step.is-current .tq-flow-badge {
  color: #7c3aed;
}

html[data-theme="light"] .tq-flow-step.is-current .tq-flow-label {
  color: var(--lt-text);
}

html[data-theme="light"] .tq-flow-sub,
html[data-theme="light"] .tq-ask-spread-pill-count {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .tq-ask-spread-pill {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--lt-border-strong);
}

html[data-theme="light"] .tq-ask-spread-pill-name {
  color: var(--lt-text);
}

html[data-theme="light"] .tq-ask-bg::after {
  background: linear-gradient(180deg, rgba(244, 240, 250, 0.35) 0%, rgba(244, 240, 250, 0.88) 70%);
}

html[data-theme="light"] .tq-ask-compose,
html[data-theme="light"] .td-spread-bar,
html[data-theme="light"] .td-result-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .td-picker-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--lt-border);
}

html[data-theme="light"] .td-picker-card:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.06);
}

html[data-theme="light"] .td-picker-card.is-active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.15);
}

html[data-theme="light"] .td-picker-card-name {
  color: var(--lt-text);
}

/* ── Spread modal & reading sheet ── */
html[data-theme="light"] .ts-mask {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .ts-modal-box.ts-spread-modal {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-modal-close {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

html[data-theme="light"] .ts-reading-box {
  background: #fff;
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-reading-head,
html[data-theme="light"] .ts-reading-body {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-reading-head {
  border-bottom-color: var(--lt-border);
}

/* ── Universe / profile ── */
html[data-theme="light"] .uv-shell {
  color: var(--lt-text);
}

html[data-theme="light"] .uv-tab,
html[data-theme="light"] .uv-card,
html[data-theme="light"] .uv-panel,
html[data-theme="light"] .uv-feed-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--lt-border-strong);
}

html[data-theme="light"] .uv-tab.is-active {
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
}

html[data-theme="light"] .uv-profile-name,
html[data-theme="light"] .uv-card-title {
  color: var(--lt-text);
}

html[data-theme="light"] .uv-profile-tag,
html[data-theme="light"] .uv-profile-bio,
html[data-theme="light"] .uv-profile-stats,
html[data-theme="light"] .uv-card-meta {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .site-tool-item {
  color: var(--lt-text);
}

html[data-theme="light"] .site-tool-item:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
}

/* ── Spread catalog premium ── */
html[data-theme="light"] .ts-scope.tsc-catalog-home.tsc-premium .tsc-filter-bar,
html[data-theme="light"] .ts-scope.tsc-catalog-perf .tsc-filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--lt-border-strong);
}

html[data-theme="light"] .ts-scope.tsc-catalog-home.tsc-premium .tsc-filter-count {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope.tsc-catalog-home.tsc-premium .tsc-catalog-head h2 {
  background: none !important;
  background-size: unset !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
  filter: none !important;
  text-shadow: none !important;
  animation: none !important;
}

html[data-theme="light"] .ts-scope.tsc-premium .tsc-spread-tile,
html[data-theme="light"] .ts-scope.tsc-catalog-perf .tsc-spread-tile {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .ts-scope.tsc-premium .tsc-spread-tile-title,
html[data-theme="light"] .ts-scope.tsc-premium .tsc-spread-tile-meta {
  color: var(--lt-text);
}

html[data-theme="light"] .ts-scope.tsc-premium .tsc-spread-tile-desc {
  color: var(--lt-text-muted);
}

/* ── Filter tabs (tarot home / catalog) ── */
html[data-theme="light"] .ts-scope .ts-filter-tab {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--lt-border-strong);
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope .ts-filter-tab.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.28);
  color: #5b21b6;
}

/* ── Site maintenance overlay ── */
html[data-theme="light"] .site-maint-bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(167, 139, 250, 0.2) 0%, transparent 62%),
    radial-gradient(ellipse 50% 45% at 18% 78%, rgba(236, 72, 153, 0.08) 0%, transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

html[data-theme="light"] .site-maint-card {
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 250, 0.98));
  border-color: var(--lt-border-strong);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .site-maint-title {
  color: var(--lt-text);
}

html[data-theme="light"] .site-maint-subtitle,
html[data-theme="light"] .site-maint-meta {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .spread-desc {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .spread-card {
  background: #fff;
  border-color: var(--lt-border-strong);
  color: var(--lt-text);
  box-shadow: var(--lt-shadow);
}

html[data-theme="light"] .spread-card small {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .spread-card:hover {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: var(--lt-shadow), 0 0 0 1px rgba(124, 58, 237, 0.08);
}

/* ── Global ts-scope text (tarotqa-style neutral copy) ── */
html[data-theme="light"] .ts-scope {
  color: var(--lt-text-muted);
}

html[data-theme="light"] .ts-scope h1,
html[data-theme="light"] .ts-scope h2,
html[data-theme="light"] .ts-scope h3,
html[data-theme="light"] .ts-scope h4,
html[data-theme="light"] .ts-scope .lj-block-title {
  color: var(--lt-text);
}
