/* ==========================================================================
   THEP DEVATA - GALAXY & COSMIC PURPLE/BLACK THEME
   แนวคิด: "ต้นธาตุต้นธรรมแห่งพุทธ-พราหมณ์" (The Primordial Essence of Buddhist-Brahmanism)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Serif+Thai:wght@400;600;700&display=swap');

:root, [data-bs-theme="dark"] {
  /* Bootstrap 5 Dark Theme Overrides for High Contrast & Readability */
  --bs-body-bg: #05020a;
  --bs-body-color: #f8fafc;
  --bs-secondary-color: #cbd5e1;       /* Overrides default dark grey text-muted */
  --bs-tertiary-color: #e2e8f0;
  --bs-emphasis-color: #ffffff;
  --bs-primary: #7c3aed;
  --bs-primary-rgb: 124, 58, 237;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-border-color: rgba(147, 51, 234, 0.35);

  /* Sacred Obsidian Space & Amethyst Palette (โทนม่วงเข้มขลัง ลึกลับ ศักดิ์สิทธิ์) */
  --bg-deep-space: #05020a;            /* ดำออบซิเดียนห้วงอวกาศ */
  --bg-cosmos-dark: #0a0414;           /* ดำเหลือบม่วงรัตติกาล */
  --bg-nebula-purple: #130526;         /* ม่วงควันธูปทิพย์อัญมณี */
  --bg-card: rgba(18, 7, 36, 0.85);    /* การ์ดแก้วม่วงเข้มขลัง สลัวแต่ลึกซึ้ง */
  --bg-card-hover: rgba(30, 11, 58, 0.95);
  --bg-glass-nav: rgba(9, 3, 19, 0.94);

  /* Sacred Purple Accents */
  --purple-glow: #9333ea;
  --purple-light: #c084fc;
  --purple-bright: #a855f7;
  --purple-deep: #4c1d95;
  --purple-border: rgba(147, 51, 234, 0.35);
  --purple-border-hover: rgba(216, 180, 254, 0.7);

  /* Consecrated Temple Gold (แสงทองคำเปลวศักดิ์สิทธิ์) */
  --gold-primary: #d97706;
  --gold-bright: #f59e0b;
  --gold-light: #fef08a;
  --gold-deep: #92400e;
  --gold-glow: rgba(245, 158, 11, 0.45);

  /* High Contrast Starlight Typography */
  --cyan-star: #38bdf8;
  --starlight-white: #ffffff;
  --text-readable: #e2e8f0;            /* ข้อความเนื้อหาชัดเจน */
  --text-muted-cosmic: #cbd5e1;        /* ข้อความรอง อ่านง่าย ไม่จมมืด */
  --text-bright: #ffffff;

  /* Typography */
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Noto Serif Thai', Georgia, serif;

  /* Shadows */
  --shadow-galaxy: 0 15px 45px -10px rgba(0, 0, 0, 0.9);
  --shadow-neon-purple: 0 0 25px rgba(147, 51, 234, 0.4);
  --shadow-neon-gold: 0 0 25px rgba(245, 158, 11, 0.4);
}

/* Global Text Contrast Rules - Fix text-muted disappearing on dark background */
.text-muted,
.text-body-secondary,
.text-secondary {
  color: #cbd5e1 !important; /* Slate-300: High contrast, easily legible on dark purple */
}

small.text-muted,
.small.text-muted,
.text-muted.small {
  color: #d1d5db !important;
  opacity: 0.95;
}

p.text-muted,
div.text-muted,
span.text-muted {
  color: #cbd5e1 !important;
}

/* Base & Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-deep-space);
  background-image: 
    radial-gradient(ellipse at 50% -10%, rgba(88, 28, 135, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(147, 51, 234, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 65%, rgba(217, 119, 6, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(59, 7, 100, 0.3) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--starlight-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Cosmic Nebula Glows */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 15%;
  width: 70vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.16) 0%, rgba(88, 28, 135, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: nebulaFloat 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(168, 85, 247, 0.1) 40%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: nebulaFloatRev 25s ease-in-out infinite alternate;
}

@keyframes nebulaFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes nebulaFloatRev {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -40px) scale(1.15); }
  100% { transform: translate(30px, -20px) scale(0.9); }
}

/* Starfield Canvas Background - Middle Background Layer */
#cosmic-stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Header and Navigation Layer - Fixed above all content layers */
header {
  position: relative;
  z-index: 1040;
}

/* Main Content and Footer Layers */
.content-wrapper, main {
  position: relative;
}

.content-wrapper > *:not(.hero-galaxy),
main > *:not(.hero-galaxy) {
  position: relative;
  z-index: 2;
}

footer {
  position: relative;
  z-index: 5;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .brand-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--starlight-white);
}

/* Cosmic Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-bright) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-purple-gradient {
  background: linear-gradient(135deg, #f3e8ff 0%, var(--purple-light) 40%, var(--purple-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cosmic-glow {
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.5), 0 0 30px rgba(168, 85, 247, 0.25);
}

.text-gold-glow {
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5), 0 0 30px rgba(245, 158, 11, 0.25);
}

/* Navbar */
.navbar-galaxy {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050 !important;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--purple-border);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.navbar-galaxy .navbar-brand-wrapper,
.navbar-galaxy .nav-link,
.navbar-galaxy .navbar-toggler,
.navbar-galaxy .dropdown-item,
.navbar-galaxy .btn-chime {
  pointer-events: auto;
  cursor: pointer;
}

.navbar-galaxy .navbar-toggler {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid var(--purple-border) !important;
  color: var(--starlight-white);
  transition: all 0.25s ease;
}

.navbar-galaxy .navbar-toggler:hover,
.navbar-galaxy .navbar-toggler:focus {
  background: rgba(168, 85, 247, 0.32);
  border-color: var(--purple-light) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  outline: none;
}

.navbar-galaxy.scrolled {
  background: rgba(7, 3, 17, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.15);
  border-bottom-color: rgba(168, 85, 247, 0.4);
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #a855f7, #581c87 70%, #1e0938);
  border: 1.5px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5), 0 0 10px rgba(245, 158, 11, 0.4);
  font-size: 1.3rem;
  color: var(--gold-light);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand-emblem.has-img,
.brand-emblem:has(.brand-emblem-img) {
  background: transparent;
  border: none;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4), 0 0 24px rgba(168, 85, 247, 0.35);
  border-radius: 11px;
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
  z-index: 1;
}

.navbar-brand-wrapper:hover .brand-emblem-img {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.75));
}

.brand-emblem::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  animation: emblemShine 4s infinite linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes emblemShine {
  0% { transform: translateX(-100%); }
  30%, 100% { transform: translateX(100%); }
}

.brand-text-group {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: 0.5px;
}

.brand-concept-tagline {
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  margin: 0;
  opacity: 0.95;
  font-weight: 500;
}

/* Nav Links */
.navbar-galaxy .nav-link {
  color: #cbd5e1 !important;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-galaxy .nav-link i {
  color: var(--purple-light);
  font-size: 1.1rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.navbar-galaxy .nav-link:hover,
.navbar-galaxy .nav-link.active {
  color: #ffffff !important;
  background: rgba(168, 85, 247, 0.15);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.navbar-galaxy .nav-link:hover i,
.navbar-galaxy .nav-link.active i {
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.navbar-galaxy .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--purple-light), transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--purple-glow);
}

/* Hero Section */
.hero-galaxy {
  position: relative;
  padding: 6.5rem 0 5.2rem;
  background-color: transparent;
  overflow: hidden;
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
}

.hero-galaxy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(180deg, rgba(7, 3, 17, 0.74) 0%, rgba(13, 6, 28, 0.52) 45%, rgba(7, 3, 17, 0.96) 100%),
    radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.16) 0%, rgba(168, 85, 247, 0.18) 35%, transparent 65%),
    url('../images/hero-galaxy-bg.jpg');
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  box-shadow: inset 0 -30px 50px -10px rgba(7, 3, 17, 0.85);
  pointer-events: none;
  z-index: 0;
}

.hero-galaxy::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 36%, rgba(251, 191, 36, 0.12) 0%, transparent 52%);
  pointer-events: none;
  z-index: 0;
  animation: heroPulse 10s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { opacity: 0.5; transform: scale(0.98); }
  100% { opacity: 0.9; transform: scale(1.02); }
}

.hero-galaxy .container {
  position: relative;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  margin-bottom: 1.25rem;
}

.hero-badge-tag i {
  color: var(--gold-bright);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

/* Sacred Monumental Hero Title for เทพเทวดา */
.hero-title-sacred {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 8.5vw, 5.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.18;
  margin-bottom: 1.35rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 25%, #fbbf24 55%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.65)) drop-shadow(0 0 45px rgba(168, 85, 247, 0.35)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.95));
  display: inline-block;
  position: relative;
}

.hero-title-sacred::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24, #c084fc, transparent);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.8), 0 0 24px rgba(168, 85, 247, 0.6);
  border-radius: 999px;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  color: #f1f5f9;
  max-width: 1200px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.85;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.02em;
  opacity: 0.95;
}

/* Glassmorphism Cards */
.card-galaxy {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--purple-border);
  border-radius: 20px;
  padding: 1.6rem;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(254, 240, 138, 0.15);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-galaxy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(147, 51, 234, 0.2) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-galaxy:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(147, 51, 234, 0.4), 0 0 15px rgba(245, 158, 11, 0.25);
}

.card-galaxy:hover::before {
  opacity: 1;
}

/* Post / Item Card specific */
.card-item-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 210px;
  background: #110724;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.card-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-galaxy:hover .card-item-img {
  transform: scale(1.05);
}

.card-item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 6, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #ffffff;
  transition: color 0.25s ease;
}

.card-galaxy:hover .card-item-title {
  color: var(--gold-light);
}

.card-item-desc {
  font-size: 0.95rem;
  color: #e2e8f0; /* Crisp white-slate for effortless reading */
  margin-bottom: 1.2rem;
  flex-grow: 1;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sacred Mantra Card (Special styling) */
.card-mantra {
  border-left: 3px solid var(--gold-bright);
}

.mantra-pali-box {
  background: rgba(8, 2, 18, 0.94);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  font-family: var(--font-serif);
  color: #fef08a;
  margin-bottom: 1rem;
  font-size: 1.08rem;
  line-height: 2;
  letter-spacing: 0.3px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(245, 158, 11, 0.15);
}

/* Category Filter Pills */
.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(22, 10, 44, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/* Buttons */
.btn-galaxy-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-galaxy-primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #d946ef 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-galaxy-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: #1a0826;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-galaxy-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0b0213;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-galaxy-outline {
  background: transparent;
  border: 1px solid var(--purple-border-hover);
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 10px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-galaxy-outline:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--purple-light);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

/* Search Box */
.cosmic-search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.cosmic-search-input {
  width: 100%;
  background: rgba(19, 8, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--purple-border);
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 50px 14px 24px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cosmic-search-input:focus {
  outline: none;
  background: rgba(26, 11, 52, 0.95);
  border-color: var(--purple-light);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  color: #ffffff;
}

.cosmic-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cosmic-search-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

/* Prayer Counter Tool (ลูกประคำนับรอบสวด) */
.prayer-counter-widget {
  background: linear-gradient(145deg, rgba(29, 13, 58, 0.85) 0%, rgba(13, 5, 28, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.counter-display {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  line-height: 1;
  margin: 0.8rem 0;
}

.counter-btn-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: radial-gradient(circle, #f59e0b, #b45309);
  color: #1a0826;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.counter-btn-circle:active {
  transform: scale(0.92);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
}

/* Modal Reader / Article Popups */
.modal-galaxy .modal-content {
  background: rgba(14, 7, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--purple-border-hover);
  border-radius: 22px;
  color: #f1f5f9;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.3);
}

.modal-galaxy .modal-header {
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
  padding: 1.15rem 1.75rem;
}

#modalItemBadge {
  display: inline-flex;
  align-items: center;
}

#modalItemBadge .card-item-badge,
#modalItemBadge .badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.modal-galaxy .modal-title {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.modal-galaxy .modal-footer {
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  padding: 1rem 1.75rem;
}

.modal-galaxy .btn-close {
  filter: invert(1) hue-rotate(240deg);
  opacity: 0.8;
}

.modal-galaxy .btn-close:hover {
  opacity: 1;
}

/* Audio Bell / Chime Trigger */
.audio-chime-badge {
  cursor: pointer;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.audio-chime-badge:hover {
  background: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transform: scale(1.04);
}

/* Footer */
.footer-galaxy {
  background: #05020a;
  border-top: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}

.footer-galaxy .text-muted {
  color: #cbd5e1 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  margin-top: 3rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Floating Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid var(--gold-bright);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
  z-index: 99;
  transition: transform 0.25s ease, background 0.25s ease;
}

#back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

/* Font Size Controls for Chants */
.font-resizer-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.font-resizer-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--purple-light);
}

/* Section divider with celestial starlight */
.cosmic-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.6), rgba(245, 158, 11, 0.6), transparent);
  margin: 4rem 0;
  position: relative;
}

.cosmic-divider::after {
  content: '✦ ॐ ✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-deep-space);
  padding: 0 16px;
  color: var(--gold-bright);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

/* Responsive Tweaks */
@media (max-width: 991px) {
  .hero-galaxy {
    padding: 3.5rem 0 2.5rem;
    background-position: center 30%;
  }
  .navbar-galaxy .navbar-collapse {
    background: rgba(14, 7, 30, 0.98);
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: 1rem;
    border: 1px solid var(--purple-border);
  }
}

/* ==========================================================================
   ORIGIN SECTION: "ต้นธาตุต้นธรรมแห่งพุทธ-พราหมณ์"
   Redesigned from original CMS homepage
   ========================================================================== */
.section-origin-dharma {
  position: relative;
  background: radial-gradient(ellipse at 50% 15%, rgba(109, 40, 217, 0.38) 0%, rgba(18, 7, 38, 0.96) 75%);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 26px;
  padding: 3.5rem 2.8rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.15), inset 0 0 30px rgba(168, 85, 247, 0.12);
  overflow: hidden;
  margin: 3.5rem 0;
}

.section-origin-dharma::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.section-origin-dharma::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.origin-pali-banner {
  background: rgba(11, 4, 24, 0.88);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
  font-family: var(--font-serif);
  position: relative;
}

.origin-pali-banner .pali-quote {
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--gold-light);
  letter-spacing: 0.3px;
  font-weight: 600;
}

.origin-thai-verse {
  font-size: 1.02rem;
  line-height: 2.2;
  color: #f1f5f9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  border-left: 3px solid var(--gold-bright);
  padding-left: 1.5rem;
}

.origin-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.25);
}

.origin-image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.origin-image-frame:hover img {
  transform: scale(1.04);
}

.origin-image-caption {
  background: rgba(9, 3, 20, 0.95);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--gold-light);
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  text-align: center;
}

@media (max-width: 768px) {
  .section-origin-dharma {
    padding: 2rem 1.5rem;
  }
  .origin-pali-banner {
    padding: 1.2rem;
  }
  .origin-pali-banner .pali-quote {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* ==========================================================================
   GALAXY NAVBAR DROPDOWN & APPS MENU
   ========================================================================== */
.navbar-galaxy .dropdown-menu-galaxy {
  background: rgba(14, 6, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--purple-border-hover);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25);
  padding: 0.75rem;
  min-width: 260px;
  z-index: 1060 !important;
}

.navbar-galaxy .dropdown-menu-galaxy .dropdown-item {
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.navbar-galaxy .dropdown-menu-galaxy .dropdown-item:hover {
  background: rgba(168, 85, 247, 0.22);
  color: #ffffff;
  transform: translateX(4px);
}

.navbar-galaxy .dropdown-menu-galaxy .dropdown-item i {
  font-size: 1.2rem;
}

/* ==========================================================================
   WEB APPS & PREDICTION SUITE SHOWCASE
   [เริ่มค้นหาเทพประจำตัว, ดูดวงไพ่ทาโร่ฟรี, Human Design – คู่มือชีวิต]
   Theme matched with live apps: Deep Obsidian Cosmic Black & Sacred Gold
   ========================================================================== */
.section-webapps-hub {
  position: relative;
  z-index: 2;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(214, 184, 114, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 10% 40%, rgba(22, 39, 59, 0.65) 0%, transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(35, 12, 45, 0.5) 0%, transparent 50%),
    linear-gradient(180deg, #07070b 0%, #030305 60%, #050508 100%);
  border: 1.5px solid rgba(214, 184, 114, 0.32);
  border-radius: 28px;
  padding: 3.2rem 2.2rem;
  box-shadow: 
    0 25px 65px -15px rgba(0, 0, 0, 0.95), 
    0 0 35px rgba(214, 184, 114, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 2rem 0 2.5rem;
}

.section-webapps-hub::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 25%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 184, 114, 0.15) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}

.webapp-card {
  background: rgba(12, 12, 17, 0.88); /* Deep obsidian surface matching app theme */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(214, 184, 114, 0.22);
  border-radius: 24px;
  padding: 2.2rem 1.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  text-decoration: none !important;
}

.webapp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 0%, rgba(214, 184, 114, 0.16) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.webapp-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.95);
}

.webapp-card:hover::before {
  opacity: 1;
}

/* Card 1: Deity App Theme (Celestial Navy & Divine Gold - Matching app/devata.html) */
.webapp-card.card-app-deity {
  background: linear-gradient(180deg, rgba(22, 39, 59, 0.65) 0%, rgba(10, 12, 18, 0.92) 100%);
  border-top: 3.5px solid #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.webapp-card.card-app-deity:hover {
  background: linear-gradient(180deg, rgba(26, 48, 74, 0.85) 0%, rgba(14, 17, 26, 0.98) 100%);
  border-color: #fbbf24;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(245, 158, 11, 0.35);
}

/* Card 2: Tarot App Theme (Obsidian Cosmic & AI Starlight Cyan - Matching tarot/) */
.webapp-card.card-app-tarot {
  background: linear-gradient(180deg, rgba(8, 25, 42, 0.65) 0%, rgba(5, 5, 8, 0.94) 100%);
  border-top: 3.5px solid #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
.webapp-card.card-app-tarot:hover {
  background: linear-gradient(180deg, rgba(12, 36, 62, 0.85) 0%, rgba(7, 7, 12, 0.98) 100%);
  border-color: #38bdf8;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.35);
}

/* Card 3: Human Design Theme (BodyGraph Blueprint & Cosmic Magenta - Matching humandb) */
.webapp-card.card-app-humandb {
  background: linear-gradient(180deg, rgba(38, 16, 46, 0.65) 0%, rgba(11, 10, 16, 0.92) 100%);
  border-top: 3.5px solid #e879f9;
  border-color: rgba(232, 121, 249, 0.3);
}
.webapp-card.card-app-humandb:hover {
  background: linear-gradient(180deg, rgba(54, 22, 66, 0.85) 0%, rgba(15, 13, 22, 0.98) 100%);
  border-color: #e879f9;
  box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(232, 121, 249, 0.35);
}

.webapp-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.4rem;
  position: relative;
  transition: transform 0.35s ease;
}

.webapp-card:hover .webapp-icon-wrap {
  transform: scale(1.12) rotate(6deg);
}

.icon-deity-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, rgba(180, 83, 9, 0.2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.4);
}

.icon-tarot-glow {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(14, 116, 144, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.4);
}

.icon-humandb-glow {
  background: radial-gradient(circle, rgba(232, 121, 249, 0.35) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 1px solid rgba(232, 121, 249, 0.55);
  color: #f0abfc;
  box-shadow: 0 0 22px rgba(232, 121, 249, 0.4);
}

.webapp-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.badge-glow-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.badge-glow-cyan {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.badge-glow-purple {
  background: rgba(232, 121, 249, 0.18);
  border: 1px solid rgba(232, 121, 249, 0.55);
  color: #f0abfc;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.3);
}

.webapp-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
  transition: color 0.25s ease;
}

.webapp-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.webapp-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.webapp-cta-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  border: none;
}

.btn-app-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #160728;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.webapp-card:hover .btn-app-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.6);
  color: #000;
}

.btn-app-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.webapp-card:hover .btn-app-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.6);
}

.btn-app-purple {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}
.webapp-card:hover .btn-app-purple {
  background: linear-gradient(135deg, #c084fc 0%, #9333ea 100%);
  box-shadow: 0 6px 25px rgba(192, 132, 252, 0.6);
}



/* ==========================================================================
   WEB APPS HUB - INTRO HEADER (sacred modern, matches hero)
   ========================================================================== */
.hub-intro {
  position: relative;
}

.hub-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.1rem;
}

.hub-eyebrow-line {
  flex: 0 1 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8));
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

.hub-eyebrow-line:last-child {
  background: linear-gradient(270deg, transparent, rgba(251, 191, 36, 0.8));
}

.hub-eyebrow-text {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fde68a;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
  white-space: nowrap;
}

.hub-eyebrow-text i {
  color: #fbbf24;
  margin: 0 4px;
}

.hub-eyebrow-dot {
  color: #c084fc;
  margin: 0 6px;
}

.hub-title {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.1rem;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

.hub-title-plain {
  display: block;
  color: #f8fafc;
  text-shadow: 0 0 22px rgba(168, 85, 247, 0.55), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hub-title-gold {
  display: inline-block;
  background: linear-gradient(135deg, #fffbeb 0%, #fef08a 28%, #fbbf24 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.5)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
}

.hub-lead {
  max-width: 760px;
  margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.9;
  color: #e8e1f5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hub-lead strong {
  color: #fde68a;
  font-weight: 600;
}

/* 3-step strip */
.hub-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.4rem;
  margin: 0 auto 1.8rem;
  padding: 0;
}

.hub-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1.2rem 0.7rem 0.8rem;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.38), rgba(12, 6, 24, 0.75));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 999px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hub-step:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(251, 191, 36, 0.25);
}

.hub-step-no {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: #1e0938;
  background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b 70%);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

.hub-step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hub-step-text strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
}

.hub-step-text small {
  color: #cdbfe6;
  font-size: 0.8rem;
}

.hub-step-arrow {
  color: #fbbf24;
  opacity: 0.8;
  padding: 0 0.3rem;
}

@media (max-width: 991.98px) {
  .hub-step-arrow { display: none; }
  .hub-step { width: 100%; max-width: 380px; }
  .hub-eyebrow-line { flex-basis: 30px; }
  .hub-eyebrow-text { font-size: 0.74rem; letter-spacing: 0.08em; white-space: normal; text-align: center; }
}

/* Free badge - high contrast, readable */
.hub-free-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.55), rgba(7, 3, 17, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-free-badge i {
  color: #fbbf24;
  font-size: 1.1rem;
}

.hub-free-strong {
  color: #fde68a;
  font-weight: 700;
  font-size: 1rem;
}

.hub-free-sep {
  color: #c084fc;
  font-size: 0.8rem;
}

.hub-free-text {
  color: #f8fafc;
  font-size: 0.95rem;
}
