/* Motivara Lotus — Himalayan Monastic Saffron Parchment, Sacred Brocade & Royal Maroon System */
:root {
  --bg: #f3e3c3;
  --bg-alt: rgba(214, 169, 92, 0.24);
  --surface: #fffaf0;
  --surface-elevated: #f9edd4;
  --featured-bg: linear-gradient(155deg, #fff7e2 0%, #f4ddab 100%);
  --featured-border: #c9963b;
  --text: #2b1013;
  --text-soft: #4c2829;
  --muted: #6c4945;
  --maroon: #621119;
  --maroon-deep: #43080e;
  --maroon-header: linear-gradient(135deg, #3c060c 0%, #5c1018 52%, #47080f 100%);
  --maroon-soft: rgba(98, 17, 25, 0.08);
  --gold: #a9771d;
  --gold-bright: #e6c16e;
  --gold-pill: #eed492;
  --gold-pill-text: #450b10;
  --gold-soft: rgba(212, 168, 79, 0.16);
  --border: #dec38f;
  --border-strong: #c59742;
  --shadow-sm: 0 6px 18px rgba(74, 15, 20, 0.08);
  --shadow-md: 0 14px 34px rgba(74, 15, 20, 0.14);
  --success-bg: #e8f6ec;
  --success-text: #156235;
  --success-border: #a6dcb9;
  --brocade-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='168' viewBox='0 0 168 168'%3E%3Cg fill='none' stroke='%238a4516' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M84 8 L160 84 L84 160 L8 84 Z'/%3E%3Ccircle cx='84' cy='84' r='25' stroke-width='1.3'/%3E%3Ccircle cx='84' cy='84' r='20'/%3E%3Ccircle cx='84' cy='84' r='8'/%3E%3Cpath d='M84 51 L87.5 57.5 L84 61 L80.5 57.5 Z M84 117 L87.5 110.5 L84 107 L80.5 110.5 Z M51 84 L57.5 80.5 L61 84 L57.5 87.5 Z M117 84 L110.5 80.5 L107 84 L110.5 87.5 Z M60.7 60.7 L67.2 63.3 L68.5 68.5 L63.3 67.2 Z M107.3 107.3 L100.8 104.7 L99.5 99.5 L104.7 100.8 Z M107.3 60.7 L104.7 67.2 L99.5 68.5 L100.8 63.3 Z M60.7 107.3 L63.3 100.8 L68.5 99.5 L67.2 104.7 Z'/%3E%3Cpath d='M84 64v12M84 92v12M64 84h12M92 84h12M69.9 69.9l8.5 8.5M89.6 89.6l8.5 8.5M98.1 69.9l-8.5 8.5M78.4 89.6l-8.5 8.5'/%3E%3Cpath d='M84 76 A4 4 0 0 1 84 84 A4 4 0 0 0 84 92 M90.9 88 A4 4 0 0 1 84 84 A4 4 0 0 0 77.1 80 M77.1 88 A4 4 0 0 1 84 84 A4 4 0 0 0 90.9 80'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='168' cy='0' r='13'/%3E%3Ccircle cx='0' cy='168' r='13'/%3E%3Ccircle cx='168' cy='168' r='13'/%3E%3C/g%3E%3C/svg%3E");
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max-w: 1220px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Kailasa", "Noto Serif Tibetan", sans-serif;
  --font-display: "Georgia", "Times New Roman", "Noto Serif", "Noto Serif Devanagari", "Kailasa", "Noto Serif Tibetan", serif;
}

[data-theme="dark"] {
  --bg: #1c090d;
  --bg-alt: rgba(74, 16, 24, 0.48);
  --surface: #270e13;
  --surface-elevated: #33141a;
  --featured-bg: linear-gradient(155deg, #38151b 0%, #290e13 100%);
  --featured-border: rgba(226, 186, 95, 0.55);
  --text: #f6ede1;
  --text-soft: #dcd0c3;
  --muted: #b19e96;
  --maroon: #c94e56;
  --maroon-deep: #6b151d;
  --maroon-header: linear-gradient(135deg, #210508 0%, #3d090f 55%, #240508 100%);
  --maroon-soft: rgba(201, 78, 86, 0.15);
  --gold: #e2ba5f;
  --gold-bright: #efd085;
  --gold-pill: #d9b25a;
  --gold-pill-text: #200709;
  --gold-soft: rgba(226, 186, 95, 0.14);
  --border: rgba(226, 186, 95, 0.22);
  --border-strong: rgba(226, 186, 95, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.5);
  --success-bg: rgba(21, 128, 61, 0.22);
  --success-text: #86efac;
  --success-border: rgba(134, 239, 172, 0.35);
  --brocade-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='168' viewBox='0 0 168 168'%3E%3Cg fill='none' stroke='%23e6c16e' stroke-opacity='0.06' stroke-width='1'%3E%3Cpath d='M84 8 L160 84 L84 160 L8 84 Z'/%3E%3Ccircle cx='84' cy='84' r='25' stroke-width='1.3'/%3E%3Ccircle cx='84' cy='84' r='20'/%3E%3Ccircle cx='84' cy='84' r='8'/%3E%3Cpath d='M84 51 L87.5 57.5 L84 61 L80.5 57.5 Z M84 117 L87.5 110.5 L84 107 L80.5 110.5 Z M51 84 L57.5 80.5 L61 84 L57.5 87.5 Z M117 84 L110.5 80.5 L107 84 L110.5 87.5 Z M60.7 60.7 L67.2 63.3 L68.5 68.5 L63.3 67.2 Z M107.3 107.3 L100.8 104.7 L99.5 99.5 L104.7 100.8 Z M107.3 60.7 L104.7 67.2 L99.5 68.5 L100.8 63.3 Z M60.7 107.3 L63.3 100.8 L68.5 99.5 L67.2 104.7 Z'/%3E%3Cpath d='M84 64v12M84 92v12M64 84h12M92 84h12M69.9 69.9l8.5 8.5M89.6 89.6l8.5 8.5M98.1 69.9l-8.5 8.5M78.4 89.6l-8.5 8.5'/%3E%3Cpath d='M84 76 A4 4 0 0 1 84 84 A4 4 0 0 0 84 92 M90.9 88 A4 4 0 0 1 84 84 A4 4 0 0 0 77.1 80 M77.1 88 A4 4 0 0 1 84 84 A4 4 0 0 0 90.9 80'/%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='168' cy='0' r='13'/%3E%3Ccircle cx='0' cy='168' r='13'/%3E%3Ccircle cx='168' cy='168' r='13'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 48% at 50% 0%, rgba(226, 174, 72, 0.22), transparent 68%),
    radial-gradient(circle at 12% 48%, rgba(160, 74, 32, 0.08), transparent 44%),
    radial-gradient(circle at 88% 72%, rgba(212, 168, 79, 0.14), transparent 48%),
    var(--brocade-pattern);
  background-size: 100% 100%, 100% 100%, 100% 100%, 168px 168px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.62;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 85% 48% at 50% 0%, rgba(185, 118, 42, 0.16), transparent 68%),
    radial-gradient(circle at 12% 48%, rgba(122, 24, 34, 0.24), transparent 46%),
    radial-gradient(circle at 88% 72%, rgba(212, 168, 79, 0.10), transparent 48%),
    var(--brocade-pattern);
  background-size: 100% 100%, 100% 100%, 100% 100%, 168px 168px;
}

html[lang="bo"] body { line-height: 1.88; }
html[lang="bo"] h1, html[lang="bo"] h2, html[lang="bo"] h3 { line-height: 1.46; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px;
}

/* ================= Royal Maroon Header ================= */
.site-header {
  background: var(--maroon-header);
  color: #fff8ea;
  border-bottom: 1.5px solid rgba(230, 193, 110, 0.38);
  position: relative;
  z-index: 60;
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #1f558e 0% 20%, #f5efe2 20% 40%, #a32228 40% 60%, #266d4b 60% 80%, #d8a22a 80% 100%);
  opacity: 0.92;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 10px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e6c16e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  background: #14171f;
  flex-shrink: 0;
}

.brand-wordmark { display: flex; flex-direction: column; line-height: 1.18; }
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.9vw, 1.38rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}
.brand-sub {
  font-size: 0.77rem;
  color: #eedec0;
  letter-spacing: 0.025em;
  margin-top: 2px;
}

.controls-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-group {
  display: inline-flex;
  align-items: center;
  background: rgba(25, 4, 7, 0.42);
  border: 1px solid rgba(230, 193, 110, 0.42);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: #f3e4c3;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.lang-btn:hover { color: #ffffff; }
.lang-btn.active {
  background: #eed492;
  color: #3d080e;
  font-weight: 700;
}

.circle-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 4, 7, 0.42);
  border: 1px solid rgba(230, 193, 110, 0.48);
  color: #f5dfb0;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.circle-icon-btn:hover {
  background: rgba(230, 193, 110, 0.22);
  border-color: #f6dc9b;
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(25, 4, 7, 0.5);
  border: 1px solid rgba(230, 193, 110, 0.55);
  color: #f6e7c4;
  cursor: pointer;
}

/* Sticky Royal Category Bar Directly Below Hero / Banner */
.category-bar-band {
  background: linear-gradient(180deg, #490910 0%, #37060b 100%);
  border-top: 1px solid rgba(230, 193, 110, 0.48);
  border-bottom: 1.5px solid rgba(212, 175, 95, 0.55);
  box-shadow: 0 8px 22px rgba(42, 8, 12, 0.12);
  position: sticky;
  top: 0;
  z-index: 55;
}
.category-scroll {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.primary-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto;
  padding: 8px 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #f6ebd4;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  text-decoration: none;
}
.nav-link.active {
  background: linear-gradient(135deg, #f5df9f 0%, #dfb456 100%);
  color: #3b070c;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}
.nav-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.94;
}

/* ================= Sleek Panoramic Hero Slider ================= */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: clamp(285px, 26.5vw, 338px);
  min-height: 285px;
  background: radial-gradient(circle at 18% 50%, #5b0f17 0%, #3b060c 48%, #260307 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 32%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 15%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 15%, #000 32%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.95s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
}
.hero-slide[data-slide="0"] img { object-position: right 42%; }
.hero-slide[data-slide="1"] img,
.hero-slide[data-slide="2"] img { object-position: 82% 24%; }
.hero-slide[data-slide="3"] img { object-position: right 56%; }

.hero-slide.active img {
  animation: heroKenBurns 8.5s ease-out forwards;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.065) translate3d(-1%, -0.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img { animation: none; transform: none; }
}

/* Deep maroon left readability vignette + subtle gold mandala crest */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg,
    rgba(58, 6, 12, 0.96) 0%,
    rgba(58, 6, 12, 0.84) 36%,
    rgba(45, 5, 10, 0.24) 58%,
    rgba(20, 3, 6, 0.06) 100%);
}

.hero-mandala-wm {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 268px;
  height: 268px;
  opacity: 0.26;
  pointer-events: none;
  z-index: 2;
}
.tibetan-chakra-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 22px 0;
}

.hero-copy {
  max-width: 540px;
}

.hero-place-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(24, 3, 6, 0.58);
  border: 1px solid rgba(238, 212, 146, 0.52);
  color: #f6e1ac;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
  text-decoration: none;
}
.hero-place-pill:hover {
  background: rgba(238, 212, 146, 0.22);
  color: #ffffff;
  text-decoration: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.85vw, 2.48rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.hero-desc {
  font-size: clamp(0.9rem, 1.15vw, 0.98rem);
  line-height: 1.48;
  color: #f6ead6;
  margin: 0 0 16px;
  max-width: 465px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.13s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-hero-gold {
  background: linear-gradient(135deg, #f3dc9e, #dfb457);
  color: #3e080d;
  border-color: #f8e6b4;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.btn-hero-glass {
  background: rgba(26, 4, 7, 0.62);
  color: #fff6e3;
  border-color: rgba(240, 210, 145, 0.58);
  backdrop-filter: blur(6px);
}
.btn-hero-glass:hover {
  background: rgba(26, 4, 7, 0.85);
}

.btn-primary {
  background: linear-gradient(135deg, #621119, #7d1923);
  color: #fff8ea;
  border-color: #a9771d;
}
[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #dbb154, #b68829);
  color: #1f0608;
  border-color: #f0cf80;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-elevated);
}

.btn-gold {
  background: var(--gold-pill);
  color: var(--gold-pill-text);
  border-color: var(--border-strong);
}

/* Hero Slider Controls (Bottom-Right Glass Pill Bar on Desktop) */
.hero-controls {
  position: absolute;
  right: 22px;
  bottom: 14px;
  z-index: 6;
  margin-top: 0;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(20, 3, 6, 0.62);
  border: 1px solid rgba(230, 193, 110, 0.42);
  backdrop-filter: blur(8px);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.hero-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(238, 212, 146, 0.5);
  background: rgba(26, 4, 7, 0.72);
  color: #f8e5b2;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hero-arrow-btn:hover { background: rgba(238, 212, 146, 0.28); }

.hero-slide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hero-dot-pill {
  border: 1px solid transparent;
  background: transparent;
  color: #efe1c4;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}
.hero-dot-pill:hover {
  background: rgba(238, 212, 146, 0.14);
}
.hero-dot-pill.active {
  background: #eed492;
  color: #3d080d;
  border-color: #f8e8ba;
  font-weight: 700;
}

@media (max-width: 859px) {
  .hero-carousel {
    height: auto;
    min-height: 295px;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0 18px;
  }
  .hero-slides {
    left: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(56, 7, 12, 0.78) 0%,
      rgba(62, 7, 13, 0.88) 58%,
      rgba(48, 6, 11, 0.96) 100%);
  }
  .hero-inner {
    padding: 4px 0 0;
  }
  .hero-controls {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 14px auto 0 22px;
    width: fit-content;
    max-width: calc(100% - 44px);
  }
}

/* ================= Ornamental Section Headings ================= */
.section {
  padding: clamp(1.65rem, 3.2vw, 2.5rem) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ornament-heading {
  text-align: center;
  margin-bottom: 20px;
}
.ornament-line-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.ornament-line {
  flex: 1;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  opacity: 0.85;
}
.ornament-line::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-line.right::before {
  display: none;
}
.ornament-line.right::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ornament-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin: 0;
  color: var(--maroon);
}
[data-theme="dark"] .ornament-heading h2 { color: var(--gold-bright); }
.ornament-sub {
  margin: 4px 0 0;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ================= 6-Card Digital Applications Grid ================= */
.apps-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1120px) {
  .apps-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .apps-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .apps-showcase-grid { grid-template-columns: 1fr; }
}

.app-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.app-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.app-tile.featured {
  background: var(--featured-bg);
  border: 1.5px solid var(--featured-border);
}

.app-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.app-icon-box.soft {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border);
}
.app-icon-box.sonam-badge {
  background: linear-gradient(145deg, #7c1821, #4b0910);
  color: #f7deb0;
  border: 1.5px solid #d4a84f;
  flex-direction: column;
  gap: 1px;
  padding: 5px;
}
.app-icon-box.sonam-badge span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text);
}
.app-tile p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.38;
  color: var(--muted);
  flex: 1;
}

.app-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--maroon);
  color: #fff6e5;
  text-decoration: none;
  margin-top: 4px;
}
[data-theme="dark"] .app-pill-btn {
  background: var(--gold);
  color: #1f0608;
}
.app-pill-btn:hover { text-decoration: none; opacity: 0.94; }

.coming-soon-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--border);
  margin-top: 4px;
}

.app-sub-link {
  font-size: 0.72rem;
  color: var(--maroon);
  font-weight: 600;
}
[data-theme="dark"] .app-sub-link { color: var(--gold-bright); }

/* ================= Sacred Days + Explore the Dharma Split ================= */
.dharma-split {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .dharma-split { grid-template-columns: 1fr; }
}

.sacred-panel {
  background: var(--featured-bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sacred-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.sacred-panel-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--maroon);
}
[data-theme="dark"] .sacred-panel-head h3 { color: var(--gold-bright); }

.sacred-day-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.14s ease;
}
.sacred-day-row:hover {
  transform: translateX(2px);
  border-color: var(--gold);
  text-decoration: none;
}

.sacred-lotus-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sacred-day-meta { flex: 1; min-width: 0; }
.sacred-day-title {
  display: block;
  font-weight: 700;
  font-size: 0.89rem;
  color: var(--text);
}
.sacred-day-sub {
  display: block;
  font-size: 0.77rem;
  color: var(--muted);
}

.photo-cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1140px) {
  .photo-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .photo-cards-4 { grid-template-columns: 1fr; }
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  text-decoration: none;
}

.photo-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #2c1416;
}
.photo-card-body {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.photo-card-body h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--text);
}
.photo-card-body p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.card-chev {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* ================= Reusable Subpage & Generic Grids ================= */
.page-banner {
  padding: clamp(2rem, 4.5vw, 3rem) 0;
  background: var(--maroon-header);
  color: #ffffff;
  border-bottom: 2px solid rgba(230, 193, 110, 0.36);
}
.page-banner h1 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  color: #ffffff;
}
.page-banner p {
  margin: 0;
  color: #f3e4c5;
  max-width: 740px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .card[style*="span 2"] { grid-column: auto !important; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { margin: 0; font-size: 1.08rem; color: var(--text); font-family: var(--font-display); }
.card p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }
.card-footer { margin-top: auto; padding-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.status-live { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }
.status-soon { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--border-strong); }

.hero-subgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 30px;
  align-items: center;
}
@media (max-width: 900px) { .hero-subgrid { grid-template-columns: 1fr; } }

.spotlight-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.mini-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-soft); }
.mini-list.key-val li { display: block; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th, table.data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data-table th { background: var(--surface-elevated); color: var(--maroon); font-weight: 700; }
[data-theme="dark"] table.data-table th { color: var(--gold-bright); }
table.data-table tr:last-child td { border-bottom: none; }

.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .screenshot-grid { grid-template-columns: 1fr; } }
.shot-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; text-align: center; }
.shot-card img { border-radius: 10px; margin: 0 auto 10px; max-height: 440px; object-fit: contain; }
.shot-caption { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.tibetan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .tibetan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tib-cell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.tib-glyph { font-family: "Kailasa", "Noto Serif Tibetan", "Noto Sans Tibetan", serif; font-size: 1.9rem; line-height: 1.5; color: var(--maroon); display: block; }
[data-theme="dark"] .tib-glyph { color: var(--gold-bright); }
.tib-latin { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 15px 18px; font-family: inherit; font-size: 0.96rem; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.faq-a { display: none; padding: 12px 18px 16px; font-size: 0.92rem; color: var(--text-soft); border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

.notice-box { background: var(--surface-elevated); border: 1px solid var(--border-strong); border-left: 4px solid var(--gold-bright); border-radius: var(--radius-md); padding: 16px 18px; font-size: 0.9rem; color: var(--text-soft); }

.prose-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.prose-card h2 { font-family: var(--font-display); color: var(--maroon); margin: 26px 0 8px; font-size: 1.2rem; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
[data-theme="dark"] .prose-card h2 { color: var(--gold-bright); }
.prose-card p, .prose-card li { color: var(--text-soft); font-size: 0.95rem; }

/* ================= Search Modal ================= */
.ml-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 4, 6, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 16px 24px;
  z-index: 120;
}
.ml-modal-backdrop.open { display: flex; }
.ml-modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.ml-search-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.96rem;
  font-family: inherit;
  margin-bottom: 12px;
}
.ml-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
}
.ml-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  text-decoration: none;
}
.ml-search-item:hover { border-color: var(--gold); text-decoration: none; }

/* ================= Footer ================= */
.site-footer {
  background: #3d070d;
  color: #efe1c4;
  border-top: 2px solid rgba(230, 193, 110, 0.35);
  padding: 42px 0 26px;
  font-size: 0.87rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 26px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { margin: 0 0 10px; font-size: 0.92rem; color: #f7dc9b; font-family: var(--font-display); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .site-footer a { color: #ebd9b4; }
.footer-links a:hover, .site-footer a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(230, 193, 110, 0.25);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.81rem;
  color: #dcc79e;
}

code {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
}
