:root {
  --bg-main: #0b1320;
  --bg-card: #131f33;
  --bg-card-hover: #192942;
  --bg-input: #0d1726;
  --border-col: rgba(148, 163, 184, 0.16);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #10b981;
  --primary-hover: #059669;
  --accent-zen: #a78bfa;
  --accent-gold: #f59e0b;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  --bg-main: #f4f7f5;
  --bg-card: #ffffff;
  --bg-card-hover: #eef2f0;
  --bg-input: #f1f5f9;
  --border-col: rgba(15, 23, 42, 0.11);
  --text-main: #0f172a;
  --text-muted: #475569;
  --shadow-lg: 0 12px 30px -10px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Banner */
.top-banner {
  background: linear-gradient(90deg, #065f46, #1e3a8a, #4c1d95);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #6ee7b7;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
}

.btn-link-banner {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}

.btn-link-banner:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 19, 32, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-col);
  padding: 14px 0;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.18rem;
}

.brand-highlight {
  color: var(--primary);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-col);
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.nav-pill:hover,
.nav-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-theme {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-col);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-donate-header {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.32);
  transition: transform 0.2s;
}

.btn-donate-header:hover {
  transform: translateY(-2px);
}

/* Hero */
.hero {
  padding: 42px 0 28px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.24;
  max-width: 820px;
  margin: 0 auto 12px;
}

.gradient-text {
  background: linear-gradient(90deg, #34d399, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 22px;
  font-size: 1rem;
}

.mood-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mood-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mood-chip {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-col);
  padding: 9px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.mood-chip:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

/* Sections & Layout */
.pillar-section {
  margin-bottom: 52px;
  padding-top: 10px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 4px;
}

.eyebrow-zen { color: var(--accent-zen); }
.eyebrow-gold { color: var(--accent-gold); }

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 780px;
  font-size: 0.94rem;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.panel-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 960px) {
  .panel-grid-2,
  .panel-grid-3 {
    grid-template-columns: 1fr !important;
  }
}

.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.card-box h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card-hint {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

/* Zone 1: Sound Mixer & Pomodoro */
.sound-mixer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .sound-mixer-grid {
    grid-template-columns: 1fr;
  }
}

.sound-tile {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 14px;
  padding: 12px 14px;
}

.sound-tile-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.sound-tile-top strong {
  color: var(--primary);
}

.sound-tile input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.pomo-box {
  text-align: center;
  padding: 8px 0;
}

.pomo-mode-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.14);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.pomo-time {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}

.pomo-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.hydration-tracker {
  margin-top: 6px;
}

.hydration-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.hydration-count {
  color: #38bdf8;
  font-weight: 800;
}

.water-cups {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.water-cup {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.2s;
}

.water-cup.drank {
  opacity: 1;
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  transform: scale(1.05);
}

/* Zone 2: Mokugyo, Bubble Wrap & Worry Burner */
.zen-center-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mokugyo-stage {
  position: relative;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), var(--bg-input));
  border: 1px solid var(--border-col);
  border-radius: 18px;
  height: 195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  margin-bottom: 12px;
}

.mokugyo-icon {
  font-size: 4.4rem;
  transition: transform 0.08s ease;
}

.mokugyo-icon.hit {
  transform: scale(0.86) rotate(-6deg);
}

.mokugyo-tap-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.mokugyo-float-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.merit-float {
  position: absolute;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fbbf24;
  animation: floatUpFade 1.1s ease-out forwards;
}

@keyframes floatUpFade {
  0% { opacity: 1; transform: translateY(0) scale(0.9); }
  100% { opacity: 0; transform: translateY(-65px) scale(1.1); }
}

.merit-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg-input);
  border-radius: 10px;
}

/* Bubble Wrap */
.bubble-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--bg-input);
  padding: 14px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.bubble-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #60a5fa, #1d4ed8);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.45), 0 4px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: all 0.12s ease;
}

.bubble-cell.popped {
  background: rgba(148, 163, 184, 0.12);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  box-shadow: none;
  transform: scale(0.86);
}

/* Zone 3: Breathing & Desk Stretch */
.breath-circle-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.breath-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), rgba(16, 185, 129, 0.14));
  border: 3px solid #a78bfa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1s linear;
}

.breath-phase {
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  padding: 0 10px;
}

.breath-sec {
  font-size: 1.55rem;
  font-weight: 800;
  color: #c4b5fd;
}

.stretch-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.stretch-tab-btn {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-col);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.stretch-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.stretch-detail-card {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  min-height: 135px;
}

.stretch-detail-card h4 {
  color: var(--primary);
  margin-bottom: 6px;
}

.stretch-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  padding: 10px 14px;
  border-radius: 12px;
}

.stretch-countdown {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-gold);
}

/* Zone 4: Koi Pond & Decision Wheel */
.koi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.koi-canvas-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: #06283d;
}

#koiCanvas {
  width: 100%;
  height: 335px;
  display: block;
  cursor: pointer;
}

.wheel-category-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wheel-category-btns .active-cat {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
}

.spin-result-box {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  margin-bottom: 12px;
}

.spin-emoji {
  font-size: 2.4rem;
}

.spin-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 4px 0;
}

.spin-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.tarot-box {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.14), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 8px;
}

.tarot-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #c4b5fd;
  margin-bottom: 4px;
}

.tarot-msg {
  font-size: 0.92rem;
  font-style: italic;
}

/* Common Controls */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

input[type="text"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  color: var(--text-main);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-family: inherit;
  outline: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-col);
  padding: 9px 13px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-worry-burn {
  width: 100%;
  margin-top: 12px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.worry-quote-box {
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

.btn-wrap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-col);
  margin: 16px 0;
}

/* Donate Banner & Modals */
.donate-banner-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(139, 92, 246, 0.12));
  border-color: rgba(16, 185, 129, 0.35);
}

@media (max-width: 820px) {
  .donate-banner-card { grid-template-columns: 1fr; }
}

.donate-banner-left h2 { font-size: 1.45rem; margin-bottom: 10px; }
.donate-banner-left p { color: var(--text-muted); margin-bottom: 10px; font-size: 0.94rem; }
.donate-banner-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

.mini-qr-card {
  background: #fff;
  color: #0f172a;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  max-width: 230px;
  margin: 0 auto;
}

.mini-qr-title { font-weight: 800; font-size: 0.84rem; margin-bottom: 6px; }
.mini-qr-card img { width: 100%; border-radius: 8px; }
.mini-qr-sub { font-size: 0.75rem; color: #475569; margin-top: 6px; }

.site-footer {
  border-top: 1px solid var(--border-col);
  padding: 26px 0;
  margin-top: 36px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-link-footer {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  text-decoration: underline;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 26px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-col);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 8px 0 16px;
}

.donate-qr-showcase {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.donate-qr-showcase img {
  max-width: 215px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.donate-bank-details {
  text-align: left;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-tiny-copy {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  margin-left: 6px;
}

.modal-footer-note { margin-top: 14px; text-align: center; }

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 2000;
}

.toast-msg.show { opacity: 1; }


/* =========================================================
   MYSTIC SECTION: TỬ VI, GIEO QUẺ XIN XĂM, TAROT & THẦN SỐ HỌC
   ========================================================= */
.nav-pill-mystic {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.nav-pill-mystic:hover,
.nav-pill-mystic.active {
  background: linear-gradient(135deg, #f59e0b, #9333ea);
  color: #fff;
  border-color: transparent;
}

.eyebrow-mystic {
  color: #f59e0b;
}

.mystic-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.mystic-tab {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-col);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s;
}

.mystic-tab:hover,
.mystic-tab.active {
  background: linear-gradient(135deg, #f59e0b, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
}

.mystic-panel {
  display: none;
}

.mystic-panel.active {
  display: block;
}

.mystic-card {
  border-color: rgba(245, 158, 11, 0.25);
}

.mystic-result-card {
  border-color: rgba(167, 139, 250, 0.32);
  background: linear-gradient(160deg, var(--bg-card), rgba(88, 28, 135, 0.16));
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

input[type="number"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  color: var(--text-main);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.quick-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.quick-presets span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-presets button {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-col);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: inherit;
}

.quick-presets button:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-mystic {
  background: linear-gradient(135deg, #f59e0b, #7c3aed);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}

.btn-mystic:hover {
  opacity: 0.94;
}

.tuvi-header-badge {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  text-align: center;
}

.tuvi-canchi-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.tuvi-menh-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tuvi-grid-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.tuvi-spec-item {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.tuvi-spec-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.tuvi-reading-box {
  background: var(--bg-input);
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Xăm Stage */
.xam-stage {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), var(--bg-input));
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 18px;
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 14px 0;
  user-select: none;
}

.xam-tube {
  font-size: 4.6rem;
  transition: transform 0.12s ease;
}

.xam-tube.shaking {
  animation: shakeTubeAnim 0.45s infinite;
}

@keyframes shakeTubeAnim {
  0% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-14deg) translateY(-6px); }
  50% { transform: rotate(12deg) translateY(4px); }
  75% { transform: rotate(-10deg) translateY(-4px); }
  100% { transform: rotate(0deg) translateY(0); }
}

.xam-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.xam-poem {
  font-style: italic;
  text-align: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 14px;
  color: #fcd34d;
  line-height: 1.75;
}

html[data-theme="light"] .xam-poem {
  color: #b45309;
}

/* Tarot 3-Card Spread */
.tarot-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tarot-spread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .tarot-spread-grid {
    grid-template-columns: 1fr;
  }
}

.tarot-card-slot {
  background: var(--bg-input);
  border: 2px solid rgba(167, 139, 250, 0.35);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.tarot-card-slot:hover {
  transform: translateY(-4px);
  border-color: #f59e0b;
}

.tarot-card-slot.flipped {
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(245, 158, 11, 0.1));
  border-color: #f59e0b;
  cursor: default;
}

.tarot-slot-aspect {
  font-size: 0.78rem;
  font-weight: 800;
  color: #a78bfa;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.tarot-card-icon {
  font-size: 3.1rem;
  margin: 8px 0;
}

.tarot-card-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 8px;
}

.tarot-card-meaning {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
}


/* =========================================================
   LIVE TRAFFIC COUNTERS & WHACK-A-MOLE GAME
   ========================================================= */
.live-traffic-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  margin-right: 4px;
  animation: pulseLive 1.4s infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.badge-today {
  background: rgba(59, 130, 246, 0.25);
  border: 1px solid #60a5fa;
  color: #bfdbfe;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
}

.hero-traffic-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.traffic-box {
  background: var(--bg-card);
  border: 1px solid var(--border-col);
  border-radius: 14px;
  padding: 10px 22px;
  min-width: 195px;
}

.traffic-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.traffic-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Whack-A-Mole Game */
.whack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.whack-scoreboard {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.whack-stat {
  background: var(--bg-input);
  border: 1px solid var(--border-col);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.whack-stat strong {
  color: #fbbf24;
  font-size: 1.05rem;
}

.whack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  user-select: none;
}

.whack-hole {
  position: relative;
  height: 118px;
  background: radial-gradient(ellipse at center bottom, #1e293b 0%, var(--bg-input) 75%);
  border: 2px solid var(--border-col);
  border-bottom: 6px solid #334155;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.whack-mole {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(115%);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.whack-hole.up .whack-mole {
  transform: translateY(0%);
}

.whack-hole.bonked .whack-mole {
  transform: scale(0.75) translateY(35%);
  filter: brightness(1.4);
}

.mole-emoji {
  font-size: 2.65rem;
  line-height: 1;
}

.mole-tag {
  background: rgba(15, 23, 42, 0.88);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
  white-space: nowrap;
}


.salary-live-box {
  cursor: pointer;
  border-color: rgba(251, 191, 36, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.salary-live-box:hover {
  transform: translateY(-2px);
  border-color: #fbbf24;
}

.live-activity-popup {
  position: fixed;
  bottom: 22px;
  left: 22px;
  background: rgba(19, 31, 51, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #f1f5f9;
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1500;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  max-width: 90vw;
}

html[data-theme="light"] .live-activity-popup {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.live-activity-popup.visible {
  opacity: 1;
  transform: translateY(0);
}
