/* ==========================================================================
   CÔ BÉ HỮU DUYÊN — TÂM LINH, PHONG THUỶ & THIỆN NGUYỆN (https://cobehuuduyen.com)
   - Typography: Noto Serif (Tiêu đề trang nghiêm) & Plus Jakarta Sans (Nội dung rõ nét)
   - Chuẩn hoá Header & Topbar Mobile (Không tràn chữ, nút gọn đẹp)
   - Điện Thờ & Phòng Tụng Kinh Online (3 Phòng: Tam Bảo, Quán Âm, Thánh Mẫu)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #0d0a09;
  --bg-secondary: #15100e;
  --bg-card: #1c1411;
  --bg-card-hover: #251a16;
  --bg-elevated: #281c17;
  --bg-glass: rgba(18, 12, 10, 0.92);
  --bg-accent-subtle: rgba(212, 175, 55, 0.1);
  --bg-crimson-subtle: rgba(168, 32, 32, 0.2);

  --text-primary: #f9f3eb;
  --text-secondary: #d7c7b5;
  --text-muted: #a18d7b;
  --text-inverse: #120d0a;

  --gold-light: #fbe59b;
  --gold-primary: #d4af37;
  --gold-dark: #9c7a1c;
  --crimson-primary: #b82525;
  --crimson-light: #e04343;
  --crimson-dark: #6b1111;
  --jade-green: #2ea87e;

  --border-subtle: rgba(212, 175, 55, 0.24);
  --border-strong: rgba(212, 175, 55, 0.55);
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 28px rgba(212, 175, 55, 0.22);
  --gradient-gold: linear-gradient(135deg, #fbe59b 0%, #d4af37 50%, #a37b16 100%);
  --gradient-crimson: linear-gradient(135deg, #9e1b1b 0%, #5c0d0d 100%);
  --gradient-hero: radial-gradient(circle at 50% 25%, rgba(158, 27, 27, 0.28) 0%, rgba(212, 175, 55, 0.08) 40%, #0d0a09 80%);
}

[data-theme="light"] {
  --bg-primary: #f2eadc;
  --bg-secondary: #e7dbc7;
  --bg-card: #f9f4ea;
  --bg-card-hover: #f4ecdf;
  --bg-elevated: #e2d4bc;
  --bg-glass: rgba(242, 234, 220, 0.95);
  --bg-accent-subtle: rgba(140, 95, 12, 0.12);
  --bg-crimson-subtle: rgba(145, 24, 24, 0.1);

  --text-primary: #23160d;
  --text-secondary: #4a3525;
  --text-muted: #6e5440;
  --text-inverse: #fffdf9;

  --gold-light: #7c5106;
  --gold-primary: #8a5b08;
  --gold-dark: #5e3d03;
  --crimson-primary: #8f1919;
  --crimson-light: #a82020;
  --crimson-dark: #5a0d0d;
  --jade-green: #16694b;

  --border-subtle: rgba(138, 91, 8, 0.26);
  --border-strong: rgba(138, 91, 8, 0.55);
  --shadow-card: 0 10px 26px rgba(56, 36, 18, 0.1);
  --shadow-gold: 0 6px 20px rgba(138, 91, 8, 0.15);
  --gradient-gold: linear-gradient(135deg, #d4a438 0%, #b07d18 55%, #875c09 100%);
  --gradient-crimson: linear-gradient(135deg, #9c1d1d 0%, #681010 100%);
  --gradient-hero: radial-gradient(circle at 50% 20%, rgba(196, 148, 45, 0.18) 0%, rgba(145, 24, 24, 0.06) 45%, #f2eadc 85%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, .font-serif {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-primary);
  color: #120d0a;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   TOP AUSPICIOUS BAR & STICKY HEADER (FIXED NO-WRAP & MOBILE CLEAN)
   ========================================================================== */
.top-auspicious-bar {
  background: linear-gradient(90deg, #3e0a0a 0%, #661212 50%, #3e0a0a 100%);
  color: #fbe59b;
  font-size: 0.81rem;
  border-bottom: 1px solid rgba(251, 229, 155, 0.24);
  padding: 0.42rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lunar-ticker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lunar-badge {
  background: rgba(251, 229, 155, 0.18);
  border: 1px solid rgba(251, 229, 155, 0.4);
  padding: 0.1rem 0.55rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#top-lunar-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.top-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #fff5d6;
}
.top-bar-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="light"] .brand-name {
  color: var(--crimson-primary);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.nav-link {
  padding: 0.48rem 0.68rem;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-light);
  background: var(--bg-accent-subtle);
}

.nav-link-highlight {
  border: 1px solid rgba(212, 175, 55, 0.38);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  height: 40px;
  padding: 0 0.78rem;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.cart-badge {
  background: var(--crimson-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.15rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 3.8rem 0 3.2rem;
  background: var(--gradient-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-mandala {
  position: absolute;
  top: 50%;
  right: -8%;
  width: 580px;
  height: 580px;
  transform: translateY(-50%);
  opacity: 0.11;
  pointer-events: none;
  animation: rotateSlow 90s linear infinite;
}

@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 2.5rem;
  align-items: center;
}

.auspicious-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  background: var(--bg-crimson-subtle);
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.seal-stamp {
  background: var(--crimson-primary);
  color: #fff;
  font-family: "Noto Serif", serif;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.hero-title .gold-highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 1.65rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gradient-gold);
  color: #160f0a;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.32);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.48);
}

.btn-crimson {
  background: var(--gradient-crimson);
  color: #fbe59b;
  border: 1px solid rgba(251, 229, 155, 0.4);
}
.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184, 37, 37, 0.45);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-accent-subtle);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-family: "Noto Serif", serif;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Altar & Master Card */
.hero-altar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  position: relative;
  overflow: hidden;
}

.hero-altar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
}

.altar-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.altar-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  background: radial-gradient(circle, #5e1111, #1a0909);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.altar-title h2 {
  font-size: 1.35rem;
  color: var(--gold-light);
}

.altar-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--jade-green);
  font-weight: 600;
}

.lunar-daily-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.1rem;
}

.lunar-daily-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lunar-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.lunar-cell {
  background: var(--bg-card);
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.lunar-cell small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lunar-cell strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.lunar-hours {
  font-size: 0.81rem;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.55rem;
}

.master-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.channel-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.35rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.channel-pill:hover {
  border-color: var(--gold-primary);
  background: var(--bg-accent-subtle);
  transform: translateY(-2px);
}

.channel-pill span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
.section {
  padding: 4.2rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: var(--bg-accent-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.26rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   NEW FEATURE: ĐIỆN THỜ & PHÒNG TỤNG KINH ONLINE (3 PHÒNG LINH THIÊNG)
   ========================================================================== */
.sanctuary-room-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.room-select-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.room-select-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.room-select-card.active {
  background: linear-gradient(135deg, rgba(158, 27, 27, 0.28), rgba(212, 175, 55, 0.14));
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.room-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  margin-bottom: 0.45rem;
}

.sanctuary-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
}

.altar-chamber {
  background-color: #140c08;
  background-image: radial-gradient(circle at 50% 28%, #3b240f 0%, #24110d 48%, #110b09 95%);
  border: 2px solid var(--border-strong);
  border-radius: 22px;
  padding: 1.75rem;
  color: #f9f3eb;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  transition: background 0.45s ease, border-color 0.45s ease;
}

/* 3 Themed Sanctuary Room Backgrounds (100% Opaque so Light Mode never bleeds or glares) */
.altar-chamber.shrine-theme-tam-bao {
  background-color: #140c08;
  background-image: radial-gradient(circle at 50% 24%, #4a2c0d 0%, #26150a 52%, #120b07 96%);
  border-color: #d4af37;
}
.altar-chamber.shrine-theme-tam-bao .altar-stage-visual {
  background: radial-gradient(circle at 50% 38%, #573510 0%, #241409 70%, #110a07 100%);
}

.altar-chamber.shrine-theme-quan-am {
  background-color: #07151b;
  background-image: radial-gradient(circle at 50% 24%, #123e4d 0%, #0b2530 52%, #071318 96%);
  border-color: #46bac0;
}
.altar-chamber.shrine-theme-quan-am .altar-stage-visual {
  background: radial-gradient(circle at 50% 38%, #164959 0%, #0a242e 70%, #061014 100%);
  border-color: rgba(92, 225, 230, 0.45);
}

.altar-chamber.shrine-theme-thanh-mau {
  background-color: #18070b;
  background-image: radial-gradient(circle at 50% 24%, #52121e 0%, #2b0910 52%, #16070a 96%);
  border-color: #e05252;
}
.altar-chamber.shrine-theme-thanh-mau .altar-stage-visual {
  background: radial-gradient(circle at 50% 38%, #611523 0%, #2e0911 70%, #140609 100%);
  border-color: rgba(255, 107, 107, 0.45);
}

/* 12 Meditation Seats Grid (Bồ Đoàn Toạ Thiền Đạo Tràng) */
.meditation-hall-box {
  background: rgba(10, 7, 6, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
}

.meditation-seats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.meditation-seat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.25s ease;
}

.meditation-seat.occupied {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.meditation-seat.is-me {
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.28), rgba(158, 27, 27, 0.35));
  border: 2px solid #fbe59b;
  box-shadow: 0 0 18px rgba(251, 229, 155, 0.3);
}

.seat-cushions {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, rgba(107, 17, 17, 0.65) 80%);
  border: 2px solid rgba(251, 229, 155, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat-avatar {
  font-size: 1.3rem;
}

.seat-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbe59b;
  max-width: 115px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-status {
  font-size: 0.68rem;
  color: #5ce1e6;
}

.ritual-cost-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.45);
  color: #fbe59b;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  border: 1px solid rgba(251, 229, 155, 0.35);
}

.altar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.nickname-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
}

.nickname-box input {
  background: transparent;
  border: none;
  color: #fbe59b;
  font-weight: 600;
  font-size: 0.85rem;
  width: 155px;
}
.nickname-box input:focus {
  outline: none;
}

/* Sacred Shrine Visual Stage */
.altar-stage-visual {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(251, 229, 155, 0.26) 0%, rgba(20, 12, 10, 0.75) 75%);
  border: 1px solid rgba(212, 175, 55, 0.32);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.deity-halo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 229, 155, 0.45) 0%, rgba(212, 175, 55, 0.12) 60%, transparent 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 45px rgba(251, 229, 155, 0.35);
  animation: pulseHalo 4s ease-in-out infinite;
}

@keyframes pulseHalo {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(251, 229, 155, 0.32); }
  50% { transform: scale(1.04); box-shadow: 0 0 65px rgba(251, 229, 155, 0.55); }
}

/* Offerings Table on Altar */
.altar-offerings-table {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  background: rgba(28, 16, 12, 0.85);
  border-top: 3px solid #d4af37;
  border-bottom: 2px solid #785407;
  position: relative;
}

.offering-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  color: #d7c7b5;
  opacity: 0.45;
  transition: all 0.35s ease;
}

.offering-slot.active {
  opacity: 1;
  color: #fbe59b;
  transform: translateY(-3px);
}

/* Rising Incense Smoke Animation */
.incense-smoke-container {
  position: relative;
  height: 36px;
  width: 30px;
  display: flex;
  justify-content: center;
}

.smoke-wisp {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  filter: blur(3px);
  opacity: 0;
}

.offering-slot.active .smoke-wisp {
  animation: smokeRise 2.8s ease-in-out infinite;
}
.offering-slot.active .smoke-wisp:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes smokeRise {
  0% { transform: translateY(0) scaleX(1); opacity: 0.7; }
  50% { transform: translateY(-16px) translateX(4px) scaleX(1.5); opacity: 0.45; }
  100% { transform: translateY(-32px) translateX(-4px) scaleX(2); opacity: 0; }
}

/* Floating Sky Lanterns inside Altar */
.floating-lantern {
  position: absolute;
  bottom: 12px;
  padding: 0.42rem 0.85rem;
  border-radius: 99px;
  background: radial-gradient(circle at 50% 30%, #ff9838 0%, #c92a2a 65%, #7a1212 100%);
  border: 1.5px solid #fbe59b;
  color: #fffdf7;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(255, 160, 56, 0.75), 0 0 40px rgba(212, 175, 55, 0.4);
  pointer-events: none;
  animation: floatUpLantern 6.5s ease-out forwards;
  z-index: 25;
}

@keyframes floatUpLantern {
  0% { transform: translateY(0) scale(0.85); opacity: 0; }
  12% { opacity: 1; transform: translateY(-28px) scale(1); }
  50% { transform: translateY(-120px) translateX(8px) scale(1.03); }
  85% { opacity: 0.95; }
  100% { transform: translateY(-245px) translateX(-6px) scale(1.06); opacity: 0; }
}

/* ==========================================================================
   7 SACRED RITUAL VISUAL EFFECTS INSIDE ALTAR STAGE
   ========================================================================== */
/* 1. Dâng Hương Trầm (3 Glowing Incense Sticks + Fragrant Smoke Plumes) */
.fx-incense-ceremony {
  position: absolute;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 22;
  animation: fadeOutRitual 4.2s ease forwards;
}

.fx-incense-sticks {
  display: flex;
  gap: 7px;
  align-items: flex-end;
}

.fx-incense-stick {
  width: 4px;
  height: 54px;
  background: linear-gradient(to bottom, #ff4500 0%, #ffd700 12%, #b8860b 30%, #8b1e1e 100%);
  border-radius: 3px;
  position: relative;
  box-shadow: 0 -4px 12px rgba(255, 90, 0, 0.9);
  animation: stickInsert 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.fx-incense-stick:nth-child(1) { transform: rotate(-7deg); }
.fx-incense-stick:nth-child(3) { transform: rotate(7deg); }

.fx-smoke-cloud {
  position: absolute;
  bottom: 58px;
  width: 22px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 229, 155, 0.65) 0%, rgba(255, 255, 255, 0.35) 55%, transparent 80%);
  filter: blur(5px);
  animation: grandSmokeRise 3.6s ease-out forwards;
}

@keyframes stickInsert {
  0% { transform: translateY(-35px) scaleY(0.7); opacity: 0; }
  100% { transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes grandSmokeRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.9; }
  50% { transform: translateY(-75px) translateX(12px) scale(2.1); opacity: 0.65; }
  100% { transform: translateY(-165px) translateX(-10px) scale(3.2); opacity: 0; }
}

/* 2. Dâng Hoa Quả (Falling & Blooming Golden Lotus Petals) */
.fx-lotus-petal {
  position: absolute;
  top: -15px;
  font-size: 1.35rem;
  pointer-events: none;
  z-index: 20;
  filter: drop-shadow(0 0 8px rgba(251, 229, 155, 0.75));
  animation: petalFallSwirl 4s ease-in-out forwards;
}

@keyframes petalFallSwirl {
  0% { transform: translateY(0) rotate(0deg) scale(0.7); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translateY(130px) translateX(22px) rotate(160deg) scale(1.1); }
  85% { opacity: 0.9; }
  100% { transform: translateY(255px) translateX(-16px) rotate(320deg) scale(0.85); opacity: 0; }
}

/* 3. Thắp Đèn Trí Tuệ (Golden Wisdom Sunburst Halo & Twin Lotus Flames) */
.fx-wisdom-sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin-top: -140px;
  margin-left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 115, 0.55) 0%, rgba(212, 175, 55, 0.25) 45%, transparent 72%);
  border: 2px dashed rgba(251, 229, 155, 0.75);
  box-shadow: 0 0 70px rgba(255, 215, 90, 0.7);
  pointer-events: none;
  z-index: 5;
  animation: wisdomHaloExpand 4s ease-out forwards;
}

@keyframes wisdomHaloExpand {
  0% { transform: scale(0.4) rotate(0deg); opacity: 0; }
  20% { opacity: 1; transform: scale(1.05) rotate(30deg); }
  80% { opacity: 0.85; transform: scale(1.22) rotate(110deg); }
  100% { transform: scale(1.35) rotate(145deg); opacity: 0; }
}

/* 4. Thỉnh Chuông Bát Nhã (Concentric Sonic Shockwaves & Swinging Bell) */
.fx-bell-ripple {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-top: -45px;
  margin-left: -45px;
  border-radius: 50%;
  border: 2.5px solid #fbe59b;
  box-shadow: 0 0 25px rgba(251, 229, 155, 0.65), inset 0 0 15px rgba(251, 229, 155, 0.4);
  pointer-events: none;
  z-index: 18;
  animation: bellSonicWave 2.8s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}

.fx-swinging-bell {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2.3rem;
  filter: drop-shadow(0 0 14px rgba(251, 229, 155, 0.85));
  pointer-events: none;
  z-index: 24;
  transform-origin: top center;
  animation: bellSwingRing 2.6s ease-in-out forwards;
}

@keyframes bellSonicWave {
  0% { transform: scale(0.5); opacity: 0.95; }
  100% { transform: scale(3.6); opacity: 0; }
}

@keyframes bellSwingRing {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0; }
  15% { transform: rotate(22deg) scale(1.15); opacity: 1; }
  30% { transform: rotate(-18deg) scale(1.1); }
  45% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(6deg); opacity: 0.9; }
  100% { transform: rotate(0deg) scale(0.9); opacity: 0; }
}

/* 5. Gõ Mõ Tụng Kinh (Wooden Fish Strike & Rising Golden Dharma Characters) */
.fx-wooden-fish-pop {
  position: absolute;
  bottom: 72px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(38, 20, 10, 0.92);
  border: 1.5px solid #fbe59b;
  color: #fbe59b;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.82rem;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
  pointer-events: none;
  z-index: 24;
  animation: woodenFishStrikeAnim 1.4s ease-out forwards;
}

.fx-dharma-char {
  position: absolute;
  bottom: 90px;
  font-family: "Noto Serif", serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fbe59b;
  text-shadow: 0 0 12px rgba(251, 229, 155, 0.9);
  pointer-events: none;
  z-index: 23;
  animation: dharmaFloatUp 2.2s ease-out forwards;
}

@keyframes woodenFishStrikeAnim {
  0% { transform: scale(0.7); opacity: 0; }
  20% { transform: scale(1.18) rotate(-6deg); opacity: 1; }
  45% { transform: scale(0.96) rotate(3deg); }
  80% { opacity: 1; }
  100% { transform: scale(0.9) translateY(-10px); opacity: 0; }
}

@keyframes dharmaFloatUp {
  0% { transform: translateY(0) scale(0.75); opacity: 0; }
  20% { opacity: 1; transform: translateY(-20px) scale(1.08); }
  100% { transform: translateY(-135px) scale(1.2); opacity: 0; }
}

/* 6. Lần Chuỗi 108 Hạt (Rotating Golden Bodhi Mala Ring) */
.fx-mala-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 196px;
  margin-top: -128px;
  margin-left: -98px;
  border-radius: 50%;
  border: 6px dotted #fbe59b;
  box-shadow: 0 0 28px rgba(251, 229, 155, 0.65);
  pointer-events: none;
  z-index: 19;
  animation: malaOrbitSpin 3.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes malaOrbitSpin {
  0% { transform: rotate(0deg) scale(0.8); opacity: 0; }
  20% { opacity: 1; transform: rotate(45deg) scale(1.02); }
  80% { opacity: 0.95; transform: rotate(190deg) scale(1.05); }
  100% { transform: rotate(240deg) scale(1.12); opacity: 0; }
}

@keyframes fadeOutRitual {
  0%, 75% { opacity: 1; }
  100% { opacity: 0; }
}

/* Interactive Ritual Controls (Dark Solid Backing so Light Mode is Never Glaring) */
.ritual-actions-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ritual-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 0.75rem;
  border-radius: 12px;
  background: rgba(16, 10, 7, 0.82);
  border: 1px solid rgba(251, 229, 155, 0.45);
  color: #fbe59b;
  font-size: 0.83rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.ritual-btn:hover,
.ritual-btn.active {
  background: linear-gradient(135deg, #fbe59b 0%, #d4af37 55%, #9c7a1c 100%);
  color: #160f0a;
  border-color: #fff3c4;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(251, 229, 155, 0.45);
}
.ritual-btn:hover .ritual-cost-badge,
.ritual-btn.active .ritual-cost-badge {
  background: rgba(22, 15, 10, 0.85);
  color: #fbe59b;
}

/* Scripture Teleprompter Box */
.scripture-scroll-box {
  background: rgba(12, 8, 7, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.scripture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.chant-lines-list {
  max-height: 175px;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
  padding-right: 0.35rem;
}

.chant-line {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 0.98rem;
  color: #bda894;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.chant-line.current {
  background: rgba(212, 175, 55, 0.18);
  color: #fbe59b;
  border-left: 3px solid #d4af37;
  font-weight: 700;
}

/* Right Column: Community Prayer Wall & Merit Counter */
.sanctuary-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.merit-counter-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prayer-feed-list {
  display: grid;
  gap: 0.65rem;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.prayer-feed-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   DIVINATION SANCTUARY TABS
   ========================================================================== */
.divination-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-gold);
  color: #160f0a;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.divination-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.divination-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

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

.oracle-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.oracle-stage {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.6rem;
  text-align: center;
}

.xam-cylinder-wrap {
  width: 145px;
  height: 175px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xam-cylinder-wrap.shaking {
  animation: shakeCylinder 0.6s ease-in-out infinite;
}

@keyframes shakeCylinder {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-9deg) translateY(-6px); }
  50% { transform: rotate(8deg) translateY(4px); }
  75% { transform: rotate(-6deg) translateY(-4px); }
}

.oracle-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  text-align: left;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.oracle-result-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 1.65rem;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-rank-badge {
  display: inline-block;
  background: var(--gradient-crimson);
  color: #fbe59b;
  padding: 0.28rem 0.8rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.poem-scroll {
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1.12rem;
  font-style: italic;
  background: var(--bg-card);
  border-left: 3px solid var(--gold-primary);
  padding: 0.95rem 1.15rem;
  border-radius: 0 12px 12px 0;
  margin: 0.9rem 0;
  white-space: pre-line;
  color: var(--gold-light);
}

.advice-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0 1.15rem;
  font-size: 0.9rem;
}

.advice-list li {
  background: var(--bg-card);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

/* Coins & Tarot Cards */
.coins-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.1rem 0;
}

.ancient-coin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, #fbe59b 0%, #c99722 70%, #785407 100%);
  border: 3px solid #f7e08b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.ancient-coin::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #593b02;
  background: var(--bg-secondary);
}

.ancient-coin.spinning {
  animation: coinSpin 0.6s linear infinite;
}

@keyframes coinSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.tarot-spread {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.15rem 0;
}

.tarot-card-slot {
  background: linear-gradient(145deg, #2d1614, #140b0a);
  border: 2px solid var(--gold-primary);
  border-radius: 14px;
  padding: 1.1rem 0.75rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarot-card-slot:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.tarot-slot-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   PRODUCTS CATALOG
   ========================================================================== */
.shop-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cat-pill {
  padding: 0.55rem 1.05rem;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--gradient-gold);
  color: #160f0a;
  border-color: transparent;
}

.shop-filter-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.product-visual {
  position: relative;
  height: 195px;
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.2), rgba(24, 14, 12, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
[data-theme="light"] .product-visual {
  background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.28), #f3e7d4);
}

.product-real-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  z-index: 1;
}

.product-card:hover .product-real-img {
  transform: scale(1.08);
}

.admin-prod-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  background: var(--bg-card);
  display: block;
}

.admin-prod-thumb-empty {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  background: var(--bg-secondary);
}

.product-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--gradient-crimson);
  color: #fbe59b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 99px;
  border: 1px solid rgba(251, 229, 155, 0.35);
  z-index: 2;
}

.product-element-tag {
  position: absolute;
  bottom: 0.6rem;
  right: 0.7rem;
  background: rgba(15, 11, 9, 0.84);
  color: #fbe59b;
  font-size: 0.71rem;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  z-index: 2;
}

.product-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.product-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
  flex: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.price-current {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--gold-light);
}
[data-theme="light"] .price-current {
  color: var(--crimson-primary);
}

.price-old {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

/* ==========================================================================
   BOOKING & CHARITY SECTIONS
   ========================================================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.master-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.85rem;
  box-shadow: var(--shadow-card);
}

.service-check-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.service-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--bg-secondary);
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.social-connect-cards {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.social-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.social-card-link:hover {
  border-color: var(--gold-primary);
  background: var(--bg-accent-subtle);
  transform: translateX(4px);
}

.charity-banner {
  background: linear-gradient(135deg, rgba(158, 27, 27, 0.22), rgba(212, 175, 55, 0.12));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 1.65rem 1.85rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.charity-campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.25rem;
}

.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.7rem 0 0.5rem;
  border: 1px solid var(--border-subtle);
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 99px;
}

.campaign-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.donors-ledger {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 0.9rem;
}

.ledger-table th,
.ledger-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ledger-table th {
  color: var(--gold-primary);
  font-size: 0.78rem;
  text-transform: uppercase;
}

/* ==========================================================================
   MODALS, DRAWER, FLOATING CONTACTS & FOOTER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(4px);
  z-index: 2100;
  display: none;
  justify-content: flex-end;
}

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

.cart-drawer {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-strong);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
}

.vietqr-box {
  background: #ffffff;
  color: #120d0a;
  border-radius: 18px;
  padding: 1.15rem 1.15rem;
  text-align: center;
  margin: 1rem 0;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.vietqr-box-title {
  display: block;
  font-size: 0.98rem;
  line-height: 1.38;
  font-weight: 800;
  color: #8b1e1e;
  letter-spacing: 0.02em;
  margin-bottom: 0.45rem;
}

.vietqr-box img {
  max-width: 235px;
  width: 100%;
  margin: 0.5rem auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.vietqr-bank-details {
  background: #fdfaf3;
  border: 1px solid #e8d7a5;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-top: 0.65rem;
  text-align: left;
  display: grid;
  gap: 0.38rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #2b1f14;
}

.vietqr-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.vietqr-detail-label {
  color: #6e5d4f;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.vietqr-detail-val {
  font-weight: 700;
  color: #1a120b;
  text-align: right;
  white-space: nowrap;
}

.vietqr-account-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.vietqr-account-highlight {
  font-size: 1.04rem;
  font-weight: 800;
  color: #b82525;
  letter-spacing: 0.02em;
  font-family: "Plus Jakarta Sans", monospace, sans-serif;
}

.vietqr-copy-tag {
  background: #eedcb1;
  color: #633f00;
  font-size: 0.72rem;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  white-space: nowrap;
}
.vietqr-copy-tag:hover {
  background: #d4af37;
  color: #fff;
}

/* Cloudflare Turnstile Anti-Spam Box */
.turnstile-guard-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.75rem 0;
  padding: 0.65rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-subtle);
}

.turnstile-guard-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Floating Contact Bar */
.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 1.1rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}

.float-btn:hover {
  transform: scale(1.05);
}

.float-zalo {
  background: linear-gradient(135deg, #0068ff, #0045ad);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.float-tiktok {
  background: linear-gradient(135deg, #161616, #33101c);
  border: 1px solid #fe2c55;
}

.float-fb {
  background: linear-gradient(135deg, #1877f2, #0c52ad);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  padding: 3.2rem 0 2rem;
  border-top: 2px solid var(--border-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  padding-top: 1.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.toast-container {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}

.toast-msg {
  background: var(--gradient-crimson);
  color: #fbe59b;
  border: 1px solid var(--gold-primary);
  padding: 0.7rem 1.2rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1.15rem;
    border-bottom: 2px solid var(--border-strong);
    box-shadow: var(--shadow-card);
    gap: 0.35rem;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 0.72rem 0.9rem;
    font-size: 0.95rem;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .hero-grid,
  .sanctuary-main-grid,
  .oracle-layout,
  .booking-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sanctuary-room-selector {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .top-bar-links {
    display: none;
  }

  .top-auspicious-bar {
    padding: 0.35rem 0;
    font-size: 0.75rem;
  }

  .header-inner {
    min-height: 62px;
    gap: 0.4rem;
  }

  .brand-emblem {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-sub {
    display: none;
  }

  .icon-btn {
    height: 36px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
  }

  #theme-toggle-label,
  .cart-btn-text-extra {
    display: none;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
  }

  .hero-section {
    padding: 2.2rem 0 2rem;
  }

  .oracle-form-row,
  .tarot-spread,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .divination-panel,
  .altar-chamber,
  .sanctuary-sidebar,
  .master-profile-card {
    padding: 1.25rem;
  }

  .altar-offerings-table {
    gap: 0.85rem;
    padding: 0.65rem 0.8rem;
  }

  .float-btn span {
    display: none;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   SANCTUARY GATEWAY BANNER (HOMEPAGE) & WHOLESALE SECTION
   ========================================================================== */
.sanctuary-gateway-banner {
  background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.22) 0%, rgba(122, 20, 20, 0.35) 55%, var(--bg-card) 100%);
  border: 2px solid var(--border-strong);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: center;
}

.wholesale-banner-card {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(158, 27, 27, 0.22));
  border: 2px solid var(--gold-primary);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

/* ==========================================================================
   ADMIN DASHBOARD (/admin.html)
   ========================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.admin-stat-card small {
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.3rem;
}

.admin-stat-card strong {
  font-size: 1.55rem;
  color: var(--gold-light);
  font-family: "Noto Serif", serif;
}

.admin-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
}

.admin-status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-status-badge.approved {
  background: rgba(46, 168, 126, 0.2);
  color: #4ce0b3;
  border: 1px solid rgba(46, 168, 126, 0.5);
}

.admin-status-badge.pending {
  background: rgba(212, 175, 55, 0.2);
  color: #fbe59b;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.admin-status-badge.rejected {
  background: rgba(184, 37, 37, 0.25);
  color: #ff8a8a;
  border: 1px solid rgba(184, 37, 37, 0.5);
}

.admin-btn-xs {
  padding: 0.32rem 0.65rem;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-xs:hover {
  border-color: var(--gold-primary);
}

.admin-btn-xs.approve {
  background: rgba(46, 168, 126, 0.25);
  color: #5ef2c4;
  border-color: rgba(46, 168, 126, 0.55);
}

.admin-btn-xs.reject {
  background: rgba(212, 175, 55, 0.2);
  color: #fbe59b;
}

.admin-btn-xs.delete {
  background: rgba(184, 37, 37, 0.25);
  color: #ff9494;
  border-color: rgba(184, 37, 37, 0.5);
}

@media (max-width: 992px) {
  .sanctuary-gateway-banner,
  .wholesale-banner-card {
    grid-template-columns: 1fr;
  }
}
