/* ============================================================
   LA BÀN VĂN HÓA TÂM LINH — Design System & Styles
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors - Warm Buddhist palette */
  --gold-50: #FFF8E7;
  --gold-100: #FFEAB5;
  --gold-200: #FFD97A;
  --gold-300: #FFC940;
  --gold-400: #DBA63A;
  --gold-500: #C9956B;
  --gold-600: #8B6914;
  --gold-700: #6B4E10;

  /* Earth tones */
  --earth-50: #FAF5F0;
  --earth-100: #F0E6D8;
  --earth-200: #DBC7A8;
  --earth-300: #C4A67A;
  --earth-400: #9E7E4E;
  --earth-500: #7A5E34;

  /* Bodhi Green */
  --bodhi-50: #E8F5E9;
  --bodhi-100: #C8E6C9;
  --bodhi-200: #A5D6A7;
  --bodhi-300: #81C784;
  --bodhi-400: #66BB6A;
  --bodhi-500: #4CAF50;
  --bodhi-600: #2E7D32;

  /* Neutral */
  --neutral-50: #FAFAF9;
  --neutral-100: #F5F5F4;
  --neutral-200: #E7E5E4;
  --neutral-300: #D6D3D1;
  --neutral-400: #A8A29E;
  --neutral-500: #78716C;
  --neutral-600: #57534E;
  --neutral-700: #44403C;
  --neutral-800: #292524;
  --neutral-900: #1C1917;

  /* Semantic */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Dark mode base */
  --bg-primary: #0F0D0B;
  --bg-secondary: #1A1714;
  --bg-card: #231F1B;
  --bg-card-hover: #2C2620;
  --bg-elevated: #302A24;
  --bg-input: #1A1714;

  --text-primary: #F5F0E8;
  --text-secondary: #B8AFA4;
  --text-tertiary: #8A8079;
  --text-gold: #DBA63A;

  --border-color: #3A3228;
  --border-light: #2A2420;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(201, 149, 107, 0.15);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif', Georgia, serif;

  /* Layout */
  --top-bar-height: 64px;
  --bottom-nav-height: 72px;
  --side-nav-width: 300px;
  --max-content-width: 800px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(139, 105, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(46, 125, 50, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(201, 149, 107, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 60%, rgba(102, 187, 106, 0.03) 0%, transparent 40%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--text-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* ===== SPIRITUAL BACKGROUND LAYER ===== */
.spiritual-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Mandala backgrounds */
.bg-mandala {
  position: absolute;
}

.bg-mandala-1 {
  width: 600px;
  height: 600px;
  top: -100px;
  right: -150px;
  animation: mandalaRotate 120s linear infinite;
  opacity: 0.7;
}

.bg-mandala-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -100px;
  animation: mandalaRotate 90s linear infinite reverse;
  opacity: 0.6;
}

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

/* Floating Bodhi Leaves */
.bg-leaf {
  position: absolute;
}

.bg-leaf-1 {
  width: 80px;
  height: 110px;
  top: 15%;
  left: 8%;
  animation: leafFloat1 20s ease-in-out infinite, leafSway 8s ease-in-out infinite;
}

.bg-leaf-2 {
  width: 60px;
  height: 85px;
  top: 45%;
  right: 5%;
  animation: leafFloat2 25s ease-in-out infinite, leafSway 10s ease-in-out infinite;
  animation-delay: 3s;
}

.bg-leaf-3 {
  width: 50px;
  height: 70px;
  bottom: 25%;
  left: 15%;
  animation: leafFloat3 22s ease-in-out infinite, leafSway 7s ease-in-out infinite;
  animation-delay: 7s;
}

.bg-leaf-4 {
  width: 70px;
  height: 95px;
  top: 70%;
  right: 12%;
  animation: leafFloat1 28s ease-in-out infinite, leafSway 9s ease-in-out infinite;
  animation-delay: 5s;
}

@keyframes leafFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-30px) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
  75% { transform: translateY(-40px) rotate(8deg); }
}

@keyframes leafFloat2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-20px) rotate(-6deg); }
  60% { transform: translateY(-45px) rotate(4deg); }
}

@keyframes leafFloat3 {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-25px) rotate(10deg) scale(1.05); }
}

@keyframes leafSway {
  0%, 100% { margin-left: 0; }
  50% { margin-left: 15px; }
}

/* Lotus decorative backgrounds */
.bg-lotus {
  position: absolute;
}

.bg-lotus-1 {
  width: 200px;
  height: 140px;
  bottom: 5%;
  right: 10%;
  animation: lotusBreath 12s ease-in-out infinite;
  opacity: 0.8;
}

.bg-lotus-2 {
  width: 150px;
  height: 105px;
  top: 30%;
  left: 3%;
  animation: lotusBreath 15s ease-in-out infinite;
  animation-delay: 4s;
  opacity: 0.6;
}

@keyframes lotusBreath {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

/* Incense smoke trails */
.bg-smoke {
  position: absolute;
  width: 2px;
  bottom: 0;
  background: linear-gradient(to top, rgba(201, 149, 107, 0.08), transparent);
  border-radius: 50%;
  filter: blur(3px);
}

.bg-smoke-1 {
  left: 25%;
  height: 40vh;
  animation: smokeRise 12s ease-in-out infinite;
}

.bg-smoke-2 {
  left: 60%;
  height: 35vh;
  animation: smokeRise 15s ease-in-out infinite;
  animation-delay: 4s;
}

.bg-smoke-3 {
  left: 80%;
  height: 45vh;
  animation: smokeRise 18s ease-in-out infinite;
  animation-delay: 8s;
}

@keyframes smokeRise {
  0% {
    transform: translateY(0) scaleX(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20vh) scaleX(2);
    opacity: 0.3;
  }
  100% {
    transform: translateY(-40vh) scaleX(4);
    opacity: 0;
  }
}

/* Golden particles */
.bg-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 166, 58, 0.4), transparent 70%);
}

.bg-particle-1 { width: 4px; height: 4px; top: 12%; left: 20%; animation: particleGlow 6s ease-in-out infinite; }
.bg-particle-2 { width: 3px; height: 3px; top: 35%; right: 15%; animation: particleGlow 8s ease-in-out infinite 1s; }
.bg-particle-3 { width: 5px; height: 5px; top: 55%; left: 10%; animation: particleGlow 7s ease-in-out infinite 2s; }
.bg-particle-4 { width: 3px; height: 3px; top: 75%; right: 25%; animation: particleGlow 9s ease-in-out infinite 3s; }
.bg-particle-5 { width: 4px; height: 4px; top: 20%; right: 30%; animation: particleGlow 5s ease-in-out infinite 4s; }
.bg-particle-6 { width: 2px; height: 2px; top: 65%; left: 35%; animation: particleGlow 10s ease-in-out infinite 2.5s; }
.bg-particle-7 { width: 3px; height: 3px; top: 85%; left: 50%; animation: particleGlow 7s ease-in-out infinite 5s; }
.bg-particle-8 { width: 4px; height: 4px; top: 40%; left: 55%; animation: particleGlow 6s ease-in-out infinite 1.5s; }

@keyframes particleGlow {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 50% 50%, rgba(139, 105, 20, 0.08) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFadeOut 0.6s ease-out 2.5s forwards;
}

.splash-mandala {
  position: absolute;
  width: min(90vw, 500px);
  height: min(90vw, 500px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: mandalaRotate 60s linear infinite, splashMandalaIn 2s ease-out;
}

@keyframes splashMandalaIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.splash-content {
  text-align: center;
  animation: splashIn 0.8s ease-out;
}

.splash-lotus {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  animation: lotusFloat 3s ease-in-out infinite;
}

.lotus-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(201, 149, 107, 0.3));
}

.splash-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.splash-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.splash-loader {
  width: 200px;
  height: 2px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}

.splash-loader-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  border-radius: var(--radius-full);
  animation: loaderFill 2.2s ease-out forwards;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splashFadeOut {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}

@keyframes loaderFill {
  to { width: 100%; }
}

@keyframes lotusFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-bar-height);
  background: rgba(15, 13, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 100;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-btn:hover span { background: var(--text-gold); }

.logo-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-gold);
  letter-spacing: 0.02em;
}

.bodhi-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--bodhi-600);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.bodhi-badge:hover {
  background: var(--bodhi-600);
  border-color: var(--bodhi-400);
}

.bodhi-icon { width: 22px; height: 22px; }

.bodhi-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bodhi-300);
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
  transition: color 0.3s;
}

.notification-btn:hover { color: var(--text-gold); }
.notification-btn svg { width: 22px; height: 22px; }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

.avatar-wrapper { cursor: pointer; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

/* ===== SIDE NAV ===== */
.side-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.side-nav.active { pointer-events: all; }

.side-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.side-nav.active .side-nav-overlay { opacity: 1; }

.side-nav-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--side-nav-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.side-nav.active .side-nav-panel { transform: translateX(0); }

.side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.side-nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.side-nav-name {
  font-weight: 600;
  color: var(--text-primary);
}

.side-nav-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.side-nav-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

.side-nav-menu {
  padding: var(--space-md);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(201, 149, 107, 0.12);
  color: var(--text-gold);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-600);
  color: var(--gold-100);
}

.nav-badge.admin {
  background: var(--info);
  color: white;
}

.nav-divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-sm) var(--space-md);
}

/* ===== PAGES ===== */
.page {
  display: none;
  padding-top: var(--top-bar-height);
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  min-height: 100vh;
}

.page.active { display: block; animation: pageIn 0.4s ease-out; }

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

.page-content {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: var(--space-md);
}

.page-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.page-title-bar h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-gold);
}

/* ===== HOME HERO ===== */
.home-hero {
  margin-bottom: var(--space-xl);
}

.hero-date-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  overflow: hidden;
}

.hero-date-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
}

.hero-date-lunar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.lunar-day {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.lunar-detail {
  display: flex;
  flex-direction: column;
}

.lunar-month {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-primary);
}

.lunar-year {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.hero-date-solar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.solar-detail {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.hero-tag {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-ram {
  background: rgba(255, 193, 7, 0.15);
  color: var(--gold-300);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.hero-greeting h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.hero-greeting strong { color: var(--text-primary); }

.hero-greeting p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  margin-bottom: var(--space-xl);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.qa-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.qa-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-500);
  color: var(--text-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-icon svg { width: 24px; height: 24px; }

.qa-icon-calendar { background: rgba(99, 102, 241, 0.15); color: #818CF8; }
.qa-icon-explore { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.qa-icon-donate { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.qa-icon-shop { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }

/* ===== SECTIONS ===== */
.section {
  margin-bottom: var(--space-xl);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.see-all-btn {
  background: none;
  border: none;
  color: var(--text-gold);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.2s;
}

.see-all-btn:hover { opacity: 0.8; }

/* ===== EVENT CARDS ===== */
.events-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.events-scroll::-webkit-scrollbar { display: none; }

.event-card {
  min-width: 280px;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-600);
}

.event-card-featured { border-color: var(--gold-600); }

.event-card-img {
  height: 120px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--space-md);
}

.event-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 3px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

.event-card-date {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  text-align: center;
}

.ecd-day {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.ecd-month {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
}

.event-card-body {
  padding: var(--space-md);
}

.event-card-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-location, .event-time {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.event-tags {
  display: flex;
  gap: 6px;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.tag-register { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.tag-offering { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.tag-so { background: rgba(168, 85, 247, 0.15); color: #C084FC; }

/* ===== TEMPLE CARDS ===== */
.temples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.temple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.temple-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.temple-card-img {
  height: 100px;
}

.temple-card-body {
  padding: var(--space-md);
}

.temple-card-body h4 { font-size: 0.9rem; margin-bottom: 4px; }
.temple-card-body p { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 6px; }

.verified-badge {
  font-size: 0.7rem;
  color: var(--bodhi-400);
  font-weight: 500;
}

.verified-badge-lg {
  font-size: 0.8rem;
  color: var(--bodhi-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

/* ===== REMINDER LIST ===== */
.reminder-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.reminder-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.reminder-item:hover { border-color: var(--gold-600); }

.reminder-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.reminder-icon-gio { background: rgba(239, 68, 68, 0.12); }
.reminder-icon-ram { background: rgba(255, 193, 7, 0.12); }

.reminder-content h4 { font-size: 0.9rem; }
.reminder-content p { font-size: 0.8rem; color: var(--text-tertiary); }

.reminder-action { margin-left: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--text-gold);
  background: rgba(201, 149, 107, 0.08);
}

.btn-full { width: 100%; justify-content: center; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-primary);
  font-family: var(--font-body);
}

.btn-sm:hover { opacity: 0.9; }

.btn-sm-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-sm-outline:hover { border-color: var(--gold-500); color: var(--text-gold); }

.btn-sm-full { width: 100%; justify-content: center; }

.btn-donate {
  font-size: 1rem;
  padding: 14px;
  margin-top: var(--space-md);
}

.btn-approve { background: var(--success); color: white; }
.btn-reject { background: var(--error); color: white; }

/* ===== CALENDAR ===== */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cal-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cal-nav-btn:hover { border-color: var(--gold-500); color: var(--text-gold); }

.cal-nav-month {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 150px;
  text-align: center;
}

.calendar-info-bar {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.calendar-grid {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.cal-header span {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  position: relative;
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 60px;
}

.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--bg-card-hover); }

.cal-solar {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
}

.cal-lunar {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.cal-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--info);
  margin: 4px auto 0;
}

.cal-dot-gold { background: var(--gold-400); }
.cal-dot-red { background: var(--error); }

.cal-other .cal-solar { color: var(--text-tertiary); opacity: 0.5; }
.cal-other .cal-lunar { opacity: 0.3; }

.cal-today {
  background: rgba(201, 149, 107, 0.12);
  border: 1px solid var(--gold-500) !important;
  border-radius: 4px;
}

.cal-today .cal-solar { color: var(--text-gold); font-weight: 700; }
.cal-today .cal-lunar { color: var(--gold-400); font-weight: 500; }

.cal-ram .cal-lunar { color: var(--gold-300); }
.cal-mung1 .cal-lunar { color: var(--gold-400); font-weight: 500; }

.cal-gio { background: rgba(239, 68, 68, 0.06); }

.cal-legend {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.cal-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-gold { background: var(--gold-400); }
.legend-red { background: var(--error); }
.legend-blue { background: var(--info); }

/* Calendar Detail */
.cal-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cal-detail-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-color);
}

.cal-detail-header h3 {
  font-family: var(--font-display);
  color: var(--text-gold);
  font-size: 1.1rem;
}

.cal-detail-canchi {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.cal-detail-body {
  padding: var(--space-lg);
}

.cal-detail-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.85rem;
}

.cal-detail-row .label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 110px;
  flex-shrink: 0;
}

.cal-detail-row .value { color: var(--text-primary); }
.cal-detail-row .good { color: var(--bodhi-400); }
.cal-detail-row .bad { color: var(--error); opacity: 0.8; }

.cal-events-today {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border-color);
}

.cal-events-today h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.cal-event-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.cal-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  flex-shrink: 0;
}

.cal-event-item strong { font-size: 0.85rem; }
.cal-event-item p { font-size: 0.75rem; color: var(--text-tertiary); }

/* FAB */
.fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 20px);
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transition: all 0.3s;
  z-index: 50;
}

.fab:hover { transform: scale(1.1) rotate(90deg); }
.fab svg { width: 24px; height: 24px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease-out;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-family: var(--font-display);
  color: var(--text-gold);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: var(--space-lg);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group > label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input, .form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 149, 107, 0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B8AFA4'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-input-sm { max-width: 100px; }

.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row .form-select { flex: 1; }

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.form-select-sm {
  width: auto;
  padding: 6px 30px 6px 10px;
  font-size: 0.8rem;
}

/* Toggle */
.toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
}

.toggle input { display: none; }

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle input:checked + .toggle-slider {
  background: var(--gold-500);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== SEARCH ===== */
.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: var(--gold-500); }

.search-box svg { width: 20px; height: 20px; color: var(--text-tertiary); flex-shrink: 0; }

.search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
}

.search-input::placeholder { color: var(--text-tertiary); }

.search-voice {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.search-box-sm {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.search-box-sm .search-input { font-size: 0.8rem; }

/* ===== FILTER CHIPS ===== */
.filter-chips {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.chip:hover { border-color: var(--gold-500); color: var(--text-gold); }

.chip-active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--bg-primary);
  border-color: transparent;
}

/* ===== MAP ===== */
.map-preview {
  margin-bottom: var(--space-lg);
}

.map-placeholder {
  position: relative;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.map-mock {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a2332 0%, #0f1923 100%);
  position: relative;
}

.map-pin {
  position: absolute;
  font-size: 1.2rem;
  cursor: pointer;
  animation: pinBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.map-pin:nth-child(2) { animation-delay: 0.3s; }
.map-pin:nth-child(3) { animation-delay: 0.6s; }
.map-pin:nth-child(4) { animation-delay: 0.9s; }
.map-pin:nth-child(5) { animation-delay: 1.2s; }

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

.map-bg-text {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: rgba(255,255,255,0.15);
  font-size: 1.1rem;
  text-align: center;
  font-weight: 600;
}

.map-expand-btn {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.map-expand-btn:hover { background: rgba(0,0,0,0.9); }

/* ===== TIMELINE ===== */
.timeline-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.tl-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
}

.tl-btn:hover { color: var(--text-gold); }

.tl-current {
  font-weight: 600;
  color: var(--text-gold);
  font-size: 0.85rem;
}

.timeline {
  position: relative;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.tl-item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-card);
}

.tl-item-highlight::before { background: var(--gold-400); box-shadow: 0 0 8px rgba(219, 166, 58, 0.4); }

.tl-date {
  position: absolute;
  left: -80px;
  top: 0;
  text-align: center;
  width: 48px;
}

.tl-day {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.tl-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.tl-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tl-event {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all 0.2s;
  cursor: pointer;
}

.tl-event:hover { border-color: var(--gold-600); }

.tl-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
  margin-bottom: 6px;
}

.tl-badge-lehoi { background: rgba(249, 115, 22, 0.15); color: #FB923C; }
.tl-badge-khoa { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.tl-badge-phaphoi { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.tl-badge-khoatu { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }

.tl-event h4 { font-size: 0.9rem; margin-bottom: 4px; }
.tl-event p { font-size: 0.8rem; color: var(--text-tertiary); }

/* ===== SUGGESTION CARDS ===== */
.suggestion-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.suggest-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.suggest-icon { font-size: 1.5rem; }
.suggest-content h4 { font-size: 0.9rem; }
.suggest-content p { font-size: 0.75rem; color: var(--text-tertiary); }

/* ===== TEMPLE PAGE ===== */
.temple-hero {
  margin: calc(-1 * var(--space-md));
  margin-bottom: var(--space-md);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.temple-hero-img {
  height: 200px;
  display: flex;
  align-items: flex-end;
}

.temple-hero-info {
  padding: var(--space-lg);
}

.temple-hero-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-gold);
  margin-bottom: var(--space-xs);
}

.temple-hero-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.temple-actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: var(--space-md);
  overflow-x: auto;
}

.tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

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

.tab.active {
  background: var(--bg-elevated);
  color: var(--text-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: pageIn 0.3s ease-out;
}

/* ===== INFO CARD ===== */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.info-card h3 { font-size: 1rem; margin-bottom: var(--space-md); color: var(--text-gold); }
.info-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.info-item .info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.info-item .info-value {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== TEMPLE EVENT LIST ===== */
.temple-event-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.temple-event-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.tei-date {
  text-align: center;
  min-width: 50px;
  flex-shrink: 0;
}

.tei-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.tei-month {
  display: block;
  font-size: 0.65rem;
  color: var(--text-tertiary);
}

.tei-content h4 { font-size: 0.9rem; margin-bottom: 4px; }
.tei-content p { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: var(--space-sm); }

.tei-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ===== SCHEDULE ===== */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.schedule-recurrence {
  min-width: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gold);
  padding: 4px 10px;
  background: rgba(201, 149, 107, 0.1);
  border-radius: var(--radius-sm);
  text-align: center;
}

.schedule-info h4 { font-size: 0.9rem; }
.schedule-info p { font-size: 0.8rem; color: var(--text-tertiary); }

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; gap: var(--space-md); }

.news-item {
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.news-date { font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 4px; }
.news-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.news-item p { font-size: 0.85rem; color: var(--text-secondary); }
.news-status { font-size: 0.7rem; color: var(--bodhi-400); margin-top: var(--space-sm); display: block; }

/* ===== EVENT DETAIL ===== */
.event-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.edc-header {
  padding: var(--space-xl);
  color: white;
}

.edc-badge {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-bottom: var(--space-sm);
}

.edc-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.edc-header p { font-size: 0.9rem; opacity: 0.9; }

.edc-body { padding: var(--space-lg); }

.edc-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.edc-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.edc-value {
  font-size: 0.85rem;
  font-weight: 500;
}

.edc-description {
  margin-bottom: var(--space-lg);
}

.edc-description h4 { font-size: 0.9rem; margin-bottom: var(--space-sm); color: var(--text-gold); }

.edc-description ul {
  list-style: none;
}

.edc-description li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.edc-description li:last-child { border-bottom: none; }

.edc-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ===== EVENTS LIST COMPACT ===== */
.events-list-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.elc-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.elc-item:hover { border-color: var(--gold-600); }

.elc-date {
  text-align: center;
  min-width: 40px;
}

.elc-date span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.elc-date small {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.elc-body { flex: 1; }

.elc-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-bottom: 4px;
}

.elc-lehoi { background: rgba(249, 115, 22, 0.15); color: #FB923C; }
.elc-phaphoi { background: rgba(168, 85, 247, 0.15); color: #C084FC; }
.elc-khoatu { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }

.elc-body h4 { font-size: 0.85rem; margin-bottom: 2px; }
.elc-body p { font-size: 0.75rem; color: var(--text-tertiary); }

.elc-source {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  padding: 2px 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ===== DONATE ===== */
.notice-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.notice-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.notice-rules {
  background: rgba(76, 175, 80, 0.08);
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.notice-icon { font-size: 1.2rem; flex-shrink: 0; }

.notice-text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.notice-text p, .notice-text li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rules-list {
  list-style: none;
  margin-top: var(--space-sm);
}

.rules-list li {
  padding: 3px 0;
}

/* Select Temple Card */
.select-temple-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.stc-icon { font-size: 1.5rem; }
.stc-content h4 { font-size: 0.9rem; }
.stc-content p { font-size: 0.8rem; color: var(--text-tertiary); }

/* Amount Presets */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.amount-btn {
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.amount-btn:hover, .amount-btn.active {
  border-color: var(--gold-500);
  color: var(--text-gold);
  background: rgba(201, 149, 107, 0.1);
}

.amount-input {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

/* Payment Methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.payment-option {
  cursor: pointer;
}

.payment-option input { display: none; }

.po-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.payment-option input:checked + .po-content {
  border-color: var(--gold-500);
  background: rgba(201, 149, 107, 0.1);
  color: var(--text-gold);
}

.po-logo { font-size: 1.5rem; }

/* Bodhi Match Card */
.bodhi-match-card {
  background: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.bmc-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.bodhi-icon-sm { width: 20px; height: 20px; }

.bmc-header h4 { font-size: 0.9rem; color: var(--bodhi-400); }

.bmc-explain {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.bmc-balance {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.bodhi-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
}

.bodhi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bodhi-400);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.4);
}

.bodhi-donate-amount {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.donate-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
  font-style: italic;
}

/* ===== DANG SO ===== */
.so-section {
  padding: var(--space-md) 0;
}

.so-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.so-profiles {
  margin-bottom: var(--space-lg);
}

.so-profiles h4 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.so-profile-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
}

.so-profile-icon { font-size: 1.2rem; }
.so-profile-item strong { font-size: 0.9rem; display: block; }
.so-profile-item p { font-size: 0.75rem; color: var(--text-tertiary); }

.so-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.so-type-option {
  cursor: pointer;
}

.so-type-option input { display: none; }

.so-type-option span {
  display: block;
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.so-type-option input:checked + span {
  border-color: var(--gold-500);
  background: rgba(201, 149, 107, 0.1);
  color: var(--text-gold);
}

.so-fee {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.so-fee-amount { font-weight: 600; font-size: 1.1rem; color: var(--text-gold); }
.so-fee-or { font-size: 0.8rem; color: var(--text-tertiary); }
.so-fee-bodhi { font-size: 0.9rem; color: var(--bodhi-400); }

/* ===== HISTORY ===== */
.history-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.history-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.hi-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.hi-donate { background: rgba(236, 72, 153, 0.1); }
.hi-so { background: rgba(168, 85, 247, 0.1); }

.hi-content h4 { font-size: 0.85rem; }
.hi-content p { font-size: 0.75rem; color: var(--text-tertiary); }
.hi-date { font-size: 0.7rem; color: var(--text-tertiary); display: block; margin-top: 2px; }
.hi-amount { margin-left: auto; font-weight: 600; color: var(--text-gold); white-space: nowrap; }

/* ===== TRANSPARENCY ===== */
.transparency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.transparency-card h3 { font-size: 1rem; color: var(--text-gold); margin-bottom: 4px; }
.transparency-card > p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: var(--space-lg); }

.transparency-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ts-item { text-align: center; }
.ts-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text-gold); }
.ts-label { font-size: 0.75rem; color: var(--text-tertiary); }

.transparency-list {
  border-top: 1px solid var(--border-color);
}

.tl-row {
  display: flex;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.tl-name { flex: 1; color: var(--text-secondary); }
.tl-amount { font-weight: 600; color: var(--text-primary); margin-right: var(--space-md); }
.tl-time { color: var(--text-tertiary); font-size: 0.7rem; }

.transparency-note {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
  font-style: italic;
}

/* ===== SHOP ===== */
.offering-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.offering-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.offering-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.offering-img {
  height: 100px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.offering-event {
  padding: 3px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: white;
}

.offering-body { padding: var(--space-md); }
.offering-body h4 { font-size: 0.9rem; margin-bottom: 4px; }
.offering-body p { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: var(--space-sm); }

.offering-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.offering-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-gold);
}

.offering-bodhi {
  font-size: 0.75rem;
  color: var(--bodhi-400);
  padding: 2px 8px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-full);
}

.offering-pickup {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-img { height: 120px; }
.product-body { padding: var(--space-md); }
.product-body h4 { font-size: 0.8rem; margin-bottom: var(--space-sm); }

.product-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price { font-weight: 600; color: var(--text-gold); }

.bodhi-earn {
  font-size: 0.7rem;
  color: var(--bodhi-400);
  padding: 1px 6px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: var(--radius-full);
}

/* Cart Preview */
.cart-preview {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 12px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--gold-600);
  border-radius: var(--radius-xl);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-width: 400px;
  width: calc(100% - 32px);
}

.cart-icon { font-size: 1.3rem; }

.cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-count { font-size: 0.8rem; color: var(--text-secondary); }
.cart-total { font-weight: 600; color: var(--text-gold); }

/* ===== PILGRIMAGE ===== */
.pilgrimage-hero {
  margin-bottom: var(--space-lg);
}

.ph-bg {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ph-overlay {
  padding: var(--space-xl);
}

.ph-season {
  font-size: 0.8rem;
  color: var(--gold-300);
  margin-bottom: var(--space-sm);
  display: block;
}

.ph-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  margin-bottom: var(--space-sm);
}

.ph-overlay p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}

/* Route Cards */
.route-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.route-card:hover { border-color: var(--gold-600); transform: translateY(-2px); }

.route-img {
  height: 80px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.route-distance {
  padding: 3px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: white;
}

.route-body { padding: var(--space-md); }
.route-body h4 { font-size: 0.9rem; margin-bottom: 4px; }
.route-body p { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: var(--space-sm); }

.route-tags { display: flex; gap: 6px; }
.route-tags .tag {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: none;
}

/* Itinerary */
.itinerary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.it-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.it-header h4 { font-size: 1rem; }
.it-dates { font-size: 0.8rem; color: var(--text-tertiary); }

.it-timeline {
  margin-bottom: var(--space-lg);
}

.it-day {
  margin-bottom: var(--space-md);
}

.it-day-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gold);
  padding: 4px 10px;
  background: rgba(201, 149, 107, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.it-stops {
  padding-left: var(--space-md);
  border-left: 2px solid var(--border-color);
}

.it-stop {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  position: relative;
}

.it-stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  border: 2px solid var(--bg-card);
  position: relative;
  left: calc(-1 * var(--space-md) - 6px);
  flex-shrink: 0;
  margin-top: 4px;
}

.it-stop-event { background: var(--gold-400); box-shadow: 0 0 6px rgba(219, 166, 58, 0.4); }

.it-stop strong { font-size: 0.85rem; display: block; }
.it-stop p { font-size: 0.75rem; color: var(--text-tertiary); }

.it-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Pilgrim Org Card */
.pilgrim-org-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.poc-badge {
  font-size: 0.7rem;
  color: var(--text-gold);
  padding: 2px 8px;
  background: rgba(201, 149, 107, 0.1);
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.poc-header h4 { margin-bottom: var(--space-md); }

.poc-details {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

/* ===== BODHI WALLET ===== */
.bodhi-balance-card {
  position: relative;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #1B5E20 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.bbc-bg {
  position: absolute;
  right: -20px;
  top: -20px;
  opacity: 0.3;
}

.bbc-leaf { width: 180px; height: 180px; }

.bbc-content { position: relative; z-index: 1; }

.bbc-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: var(--space-sm);
}

.bbc-amount {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.bbc-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

.bbc-unit {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

.bbc-value {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: var(--space-md);
}

.bbc-expiry {
  padding: 6px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: inline-block;
}

.bbc-expiry span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}

/* Bodhi Source Cards */
.bodhi-source-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bs-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.bs-icon { font-size: 1.3rem; }
.bs-content h4 { font-size: 0.85rem; }
.bs-content p { font-size: 0.75rem; color: var(--text-tertiary); }
.bs-rate { font-size: 0.7rem; color: var(--text-tertiary); display: block; margin-top: 2px; }
.bs-earned { margin-left: auto; font-weight: 600; color: var(--bodhi-400); white-space: nowrap; }

/* Bodhi History */
.bodhi-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.bh-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.bh-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.bh-earn .bh-icon { background: rgba(76, 175, 80, 0.15); color: var(--bodhi-400); }
.bh-burn .bh-icon { background: rgba(249, 115, 22, 0.15); color: #FB923C; }
.bh-expire .bh-icon { background: rgba(239, 68, 68, 0.15); color: var(--error); }

.bh-content h4 { font-size: 0.85rem; }
.bh-content p { font-size: 0.7rem; color: var(--text-tertiary); }

.bh-amount { margin-left: auto; font-weight: 600; white-space: nowrap; }
.bh-earn .bh-amount { color: var(--bodhi-400); }
.bh-burn .bh-amount { color: #FB923C; }
.bh-expire .bh-amount { color: var(--error); }

/* ===== PORTAL ===== */
.portal-header {
  margin-bottom: var(--space-lg);
}

.portal-header h2 {
  font-family: var(--font-display);
  color: var(--text-gold);
  margin-bottom: var(--space-xs);
}

.portal-temple-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.ps-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-gold);
}

.ps-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Portal Table */
.portal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.portal-table {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.portal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.portal-table th {
  background: var(--bg-elevated);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.portal-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.portal-table tr:last-child td { border-bottom: none; }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.status-published { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
.status-pending { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.status-draft { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.status-verified { background: rgba(76, 175, 80, 0.15); color: var(--bodhi-400); }

/* So Queue */
.so-queue { padding: var(--space-md) 0; }
.so-queue h3 { font-size: 1rem; color: var(--text-gold); margin-bottom: var(--space-md); }

.so-queue-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.so-queue-list { margin-bottom: var(--space-md); }

.sq-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.sq-item input[type="checkbox"] {
  accent-color: var(--gold-500);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.sq-content strong { font-size: 0.85rem; }
.sq-content p { font-size: 0.75rem; color: var(--text-tertiary); }

.sq-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Report */
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.report-card h3 { color: var(--text-gold); margin-bottom: var(--space-lg); }

.report-chart-placeholder {
  margin-bottom: var(--space-lg);
}

.chart-mock {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  height: 150px;
  padding: var(--space-md);
}

.chart-bar {
  flex: 1;
  background: var(--border-color);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  transition: all 0.3s;
}

.chart-bar span { font-size: 0.65rem; color: var(--text-tertiary); }
.chart-bar-active { background: linear-gradient(to top, var(--gold-500), var(--gold-300)); }
.chart-bar-active span { color: var(--bg-primary); font-weight: 600; }

.report-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.rs-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

.rs-label { font-size: 0.85rem; color: var(--text-secondary); }
.rs-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ===== ADMIN ===== */
.admin-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.admin-header h2 {
  font-family: var(--font-display);
  color: var(--text-gold);
}

.admin-role-badge {
  font-size: 0.7rem;
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.as-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.as-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.as-card-1::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.as-card-2::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.as-card-3::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.as-card-4::before { background: linear-gradient(90deg, #43e97b, #38f9d7); }

.as-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.as-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.as-trend {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 0.75rem;
  font-weight: 500;
}

.as-trend.up { color: var(--success); }

/* Moderation Queue */
.moderation-queue { padding: var(--space-md) 0; }

.queue-count {
  font-size: 0.8rem;
  color: var(--warning);
  font-weight: 500;
}

.mod-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mod-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.mod-item-urgent { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.04); }

.mod-type {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  min-width: 80px;
}

.mod-content { flex: 1; min-width: 200px; }
.mod-content h4 { font-size: 0.85rem; }
.mod-content p { font-size: 0.75rem; color: var(--text-tertiary); }

.mod-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Bodhi Config */
.bodhi-config { padding: var(--space-md) 0; }
.bodhi-config h3 { color: var(--text-gold); margin-bottom: var(--space-lg); }

.config-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.config-section h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.config-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.config-item label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
}

.config-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.config-input-group .form-input {
  max-width: 120px;
  text-align: center;
}

.config-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: var(--space-sm);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.dash-card h4 {
  font-size: 0.9rem;
  color: var(--text-gold);
  margin-bottom: var(--space-md);
}

.dash-status {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.dash-ok { color: var(--success); }

.dash-card > p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.dash-metrics { display: flex; flex-direction: column; gap: var(--space-sm); }

.dm-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.dm-label { font-size: 0.8rem; color: var(--text-secondary); }
.dm-value { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); }

.dash-gmv {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: var(--space-sm);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--space-sm);
  z-index: 100;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s;
  font-size: 0.65rem;
  font-family: var(--font-body);
  min-width: 56px;
}

.bn-item svg {
  width: 22px;
  height: 22px;
  transition: all 0.2s;
}

.bn-item.active {
  color: var(--text-gold);
}

.bn-item.active svg {
  filter: drop-shadow(0 0 4px rgba(201, 149, 107, 0.3));
}

.bn-item:hover { color: var(--text-secondary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .quick-action-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }

  .qa-btn { padding: var(--space-sm); }
  .qa-icon { width: 36px; height: 36px; }
  .qa-btn span { font-size: 0.7rem; }

  .calendar-grid { border-radius: var(--radius-md); }

  .admin-stats, .portal-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .edc-info-grid { grid-template-columns: 1fr; }
  .edc-secondary-actions { grid-template-columns: 1fr; }

  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .payment-methods { grid-template-columns: 1fr; }

  .timeline { padding-left: 60px; }
  .tl-date { left: -60px; width: 38px; }
  .tl-day { font-size: 1rem; }

  .temple-hero-info h2 { font-size: 1.4rem; }

  .poc-details { flex-direction: column; gap: var(--space-sm); }

  .mod-item { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 768px) {
  .page-content { padding: var(--space-lg); }

  .admin-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .portal-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-500); }

/* ===== SPIRITUAL BACKGROUND ENHANCEMENTS ===== */

/* Hero date card — lotus watermark */
.hero-date-card {
  position: relative;
  overflow: hidden;
}

.hero-date-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 180px;
  height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 15 Q72 38 60 60 Q48 38 60 15Z' fill='rgba(201,149,107,0.06)'/%3E%3Cpath d='M38 28 Q55 40 50 62 Q32 48 38 28Z' fill='rgba(201,149,107,0.04)'/%3E%3Cpath d='M82 28 Q65 40 70 62 Q88 48 82 28Z' fill='rgba(201,149,107,0.04)'/%3E%3Cpath d='M24 44 Q44 50 40 70 Q22 60 24 44Z' fill='rgba(201,149,107,0.03)'/%3E%3Cpath d='M96 44 Q76 50 80 70 Q98 60 96 44Z' fill='rgba(201,149,107,0.03)'/%3E%3Cellipse cx='60' cy='75' rx='32' ry='8' fill='rgba(201,149,107,0.03)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* Calendar grid — subtle mandala center watermark */
.calendar-grid {
  position: relative;
}

.calendar-grid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg transform='translate(100,100)' fill='none' stroke='rgba(201,149,107,0.04)' stroke-width='0.5'%3E%3Ccircle r='20'/%3E%3Ccircle r='40'/%3E%3Ccircle r='60'/%3E%3Ccircle r='80'/%3E%3Ccircle r='95'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(45)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(90)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(135)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(180)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(225)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(270)'/%3E%3Cpath d='M0,-35 Q10,-25 0,-15 Q-10,-25 0,-35Z' transform='rotate(315)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.8;
}

/* Calendar detail card — bodhi leaf watermark */
.cal-detail-card {
  position: relative;
  overflow: hidden;
}

.cal-detail-card::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 20px;
  width: 100px;
  height: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M30 5C15 5 5 25 5 40c0 20 25 35 25 35s25-15 25-35C55 25 45 5 30 5z' fill='rgba(102,187,106,0.04)' stroke='rgba(102,187,106,0.06)' stroke-width='0.5'/%3E%3Cpath d='M30 15 L30 65' stroke='rgba(102,187,106,0.05)' stroke-width='0.5'/%3E%3Cpath d='M30 25 Q20 30 15 35' stroke='rgba(102,187,106,0.04)' stroke-width='0.4' fill='none'/%3E%3Cpath d='M30 35 Q40 40 45 45' stroke='rgba(102,187,106,0.04)' stroke-width='0.4' fill='none'/%3E%3Cpath d='M30 45 Q20 50 12 55' stroke='rgba(102,187,106,0.04)' stroke-width='0.4' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.7;
  transform: rotate(15deg);
}

/* Donate page — lotus gradient overlay */
#tab-donate-main {
  position: relative;
}

#tab-donate-main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Event detail card header — temple roof silhouette */
.edc-header {
  position: relative;
  overflow: hidden;
}

.edc-header::after {
  content: '';
  position: absolute;
  right: 20px;
  bottom: 10px;
  width: 120px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M50 5 L30 20 L10 20 L5 35 L0 35 L0 55 L100 55 L100 35 L95 35 L90 20 L70 20 Z' fill='rgba(255,255,255,0.05)'/%3E%3Cpath d='M50 0 L48 5 L52 5 Z' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Bodhi wallet card — floating leaf inside */
.bodhi-balance-card {
  position: relative;
  overflow: hidden;
}

.bodhi-balance-card::after {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -10px;
  width: 150px;
  height: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M30 5C15 5 5 25 5 40c0 20 25 35 25 35s25-15 25-35C55 25 45 5 30 5z' fill='rgba(255,255,255,0.04)' stroke='rgba(255,255,255,0.06)' stroke-width='0.5'/%3E%3Cpath d='M30 15 L30 65' stroke='rgba(255,255,255,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: rotate(-20deg);
  animation: lotusBreath 10s ease-in-out infinite;
}

/* Pilgrimage hero — mountain + temple silhouette */
.ph-bg {
  position: relative;
  overflow: hidden;
}

.ph-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath d='M0 60 L40 30 L60 40 L100 15 L120 25 L160 10 L180 18 L220 5 L260 20 L280 12 L320 28 L340 22 L380 35 L400 25 L400 60 Z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Temple hero — cloud / mist layer */
.temple-hero {
  position: relative;
}

.temple-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Offering cards — subtle blessing sparkle */
.offering-card {
  position: relative;
  overflow: hidden;
}

.offering-card::before {
  content: '✦';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.6rem;
  color: rgba(219, 166, 58, 0.2);
  z-index: 2;
  animation: particleGlow 4s ease-in-out infinite;
}

/* Side nav — temple border accent */
.side-nav-panel {
  background-image:
    linear-gradient(to bottom, rgba(139, 105, 20, 0.06) 0%, transparent 30%),
    linear-gradient(to top, rgba(46, 125, 50, 0.04) 0%, transparent 20%);
}

/* Section headers — decorative underline with lotus pattern */
.section-header h3 {
  position: relative;
  padding-bottom: 8px;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
  border-radius: 1px;
}

/* Transparency card — sao ke, peaceful zen circle */
.transparency-card {
  position: relative;
  overflow: hidden;
}

.transparency-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(201, 149, 107, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.transparency-card::after {
  content: '';
  position: absolute;
  top: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(201, 149, 107, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

/* Page transitions — warm glow on active page */
.page.active {
  position: relative;
}

.page.active::before {
  content: '';
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(139, 105, 20, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Quick action buttons — warm glow ring */
.qa-btn::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(201, 149, 107, 0.1), transparent, rgba(102, 187, 106, 0.05));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.qa-btn {
  position: relative;
}

.qa-btn:hover::after {
  opacity: 1;
}

/* Responsive — hide some background elements on small screens */
@media (max-width: 600px) {
  .bg-mandala-1 { width: 350px; height: 350px; right: -120px; top: -80px; }
  .bg-mandala-2 { width: 250px; height: 250px; left: -80px; }
  .bg-leaf-2, .bg-leaf-4 { display: none; }
  .bg-lotus-2 { display: none; }
  .bg-smoke-3 { display: none; }
  .bg-particle-5, .bg-particle-6, .bg-particle-7, .bg-particle-8 { display: none; }
}
