/* ================== Reset & Base ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html, body {
  height: 100%;
  font-family: "Faruma","MV Boli",Arial,sans-serif;
  background: #ffffff;
  background-attachment: fixed;
  color: #1a2332;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  overflow: hidden;
}

body {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  scroll-behavior: smooth;
}

:root {
  --site-topbar-h: 72px;
  --site-apps-launch-h: 56px;
  --site-appsbar-h: 44px;
  --site-header-h: calc(var(--site-topbar-h) + var(--site-apps-launch-h) + var(--site-appsbar-h));
  --site-bar-pad-x: clamp(1rem, 5vw, 3rem);
}

/* Hide scrollbars everywhere — mouse wheel / trackpad still scrolls */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

/* ================== Custom Fonts ================== */
@font-face {
  font-family: "EasaFalaGalan";
  src: url("downloads/fonts/rasmee-fala/EasaFalaGalan-Heading.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Faruma";
  src: url("downloads/fonts/Faruma.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Headings in EasaFalaGalan */
h1, h2, h3, h4, h5, h6 {
  font-family: "EasaFalaGalan","Faruma","MV Boli",Arial,sans-serif;
  font-weight: normal;
}

/* ================== Sidebar (retired — logo now in topbar) ================== */
.sidebar {
  display: none !important;
}

.sidebar .logo-area {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.sidebar .logo-area a {
  display: block;
  line-height: 0;
}

.sidebar .logo-area a:hover,
.sidebar .logo-area a:active,
.sidebar .logo-area a:focus {
  opacity: 0.9;
  transform: none;
  outline: none;
}

.sidebar img {
  max-width: 90px;
  margin-bottom: 12px;
}

.sidebar .extra-image {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.sidebar .extra-image img {
  max-width: 78px;
  width: auto;
  height: auto;
  opacity: 0.95;
  display: block;
  margin-bottom: 12px;
}

/* Vaahaka: cart pinned below — keep name spacing stable */
body.vaahaka-page .sidebar .extra-image img {
  margin-bottom: 0;
}

/* ================== Site header (main nav + apps bar) ================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
}

/* ================== Topbar ================== */
.topbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: var(--site-topbar-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 84, 147, 0.08);
  box-shadow: 0 2px 16px rgba(22, 84, 147, 0.06);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--site-bar-pad-x);
  gap: clamp(12px, 1.8vw, 20px);
  z-index: 1;
  direction: ltr;
}

/* Site brand — horizontal header logo (top-left) */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #165493;
}

.site-brand img {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(168px, 40vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.site-brand-fallback {
  display: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #165493;
  white-space: nowrap;
  line-height: 1;
}

.site-brand.site-brand--fallback .site-brand-fallback {
  display: inline-block;
}

.site-brand.site-brand--fallback img {
  display: none !important;
}

.site-brand span {
  display: none !important;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: #165493;
  outline: none;
}

/* ===== Apps launch bar — Lhenveriyaa, Galan, Liyamaa Kiyamaa ===== */
.apps-launch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 1.4vw, 14px);
  min-height: var(--site-apps-launch-h);
  height: auto;
  padding: 6px var(--site-bar-pad-x);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 84, 147, 0.1);
  direction: ltr;
}

.apps-launch-bar .nav-lhen-btn--top,
.apps-launch-bar .nav-galan-btn--top,
.apps-launch-bar .nav-liyamaa-btn,
.apps-launch-bar .nav-ovvalhu-btn,
.apps-launch-bar .nav-thinhama-btn {
  flex: 0 1 auto;
  min-width: 0;
}

.apps-launch-bar .nav-ee-btn {
  flex: 0 0 auto;
  min-width: auto;
}

.apps-launch-bar .nav-lhen-btn--top .nav-lhen-label {
  display: inline;
}

.nav-liyamaa-btn {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
  min-height: 48px;
  padding: 4px 12px 4px 4px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-liyamaa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.nav-liyamaa-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.nav-liyamaa-icon {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.nav-liyamaa-logo {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 24px;
  width: auto;
  max-width: min(140px, 36vw);
  object-fit: contain;
  object-position: left center;
}

.nav-liyamaa-label {
  display: none;
}

/* Catalog / partner links — shared quiet professional set */
.topbar .nav-adyibun-btn--top,
.apps-launch-bar .nav-adyibun-btn--top,
.topbar .nav-singers-btn--top,
.apps-launch-bar .nav-singers-btn--top,
.nav-ovvalhu-btn,
.nav-thinhama-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 48px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-radius: 9px;
  line-height: 1.15;
  color: #1a3558;
  background: #f3f6f9;
  border: 1px solid rgba(22, 84, 147, 0.16);
  box-shadow: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-ovvalhu-btn,
.nav-thinhama-btn {
  direction: ltr;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar .nav-adyibun-btn--top:hover,
.apps-launch-bar .nav-adyibun-btn--top:hover,
.topbar .nav-singers-btn--top:hover,
.apps-launch-bar .nav-singers-btn--top:hover,
.nav-ovvalhu-btn:hover,
.nav-thinhama-btn:hover {
  transform: none;
  color: #0e3c6a;
  background: #e8eef5;
  border-color: rgba(22, 84, 147, 0.28);
  box-shadow: none;
}

.topbar .nav-adyibun-btn--top:active,
.apps-launch-bar .nav-adyibun-btn--top:active,
.topbar .nav-singers-btn--top:active,
.apps-launch-bar .nav-singers-btn--top:active,
.nav-ovvalhu-btn:active,
.nav-thinhama-btn:active {
  transform: none;
  background: #dde6f0;
  box-shadow: none;
}

.topbar .nav-adyibun-btn--top.active,
.apps-launch-bar .nav-adyibun-btn--top.active,
.topbar .nav-singers-btn--top.active,
.apps-launch-bar .nav-singers-btn--top.active {
  color: #fff;
  background: #165493;
  border-color: #165493;
  box-shadow: none;
}

.topbar .nav-adyibun-btn--top.active:hover,
.apps-launch-bar .nav-adyibun-btn--top.active:hover,
.topbar .nav-singers-btn--top.active:hover,
.apps-launch-bar .nav-singers-btn--top.active:hover {
  color: #fff;
  background: #0e3c6a;
  border-color: #0e3c6a;
}

/* ——— English for Beginners app button ——— */
.nav-ee-btn {
  direction: ltr;
  display: inline-block;
  text-decoration: none;
  /* logo asset is ~1.58:1 — keep button tight to avoid empty sides */
  width: 76px;
  height: 48px;
  min-width: 76px;
  min-height: 48px;
  padding: 0;
  box-sizing: border-box;
  border-radius: 10px;
  border: none;
  background-color: #064531;
  background-image: url("elder-english/logo.png?v=5");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-ee-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.nav-ee-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.nav-ee-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.nav-ee-label {
  display: none;
}

.apps-bar {
  height: var(--site-appsbar-h);
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 84, 147, 0.12);
  box-shadow: 0 2px 12px rgba(22, 84, 147, 0.04);
  display: flex;
  align-items: center;
  padding: 0 var(--site-bar-pad-x);
  gap: clamp(10px, 1.5vw, 16px);
  direction: ltr;
}

.apps-bar .site-search {
  flex: 0 1 220px;
  min-width: 140px;
  max-width: 280px;
  margin-left: 0;
  margin-right: 0;
}

.apps-bar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 0;
  flex: 0 1 auto;
  min-width: 0;
  direction: rtl;
}

.menu-btn {
  display: none;
  margin-left: auto;
  background: #165493;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-btn:hover {
  background: #0e3c6a;
}

.nav {
  margin-left: 0;
  margin-right: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  direction: rtl;
}

/* Desktop topbar: logo left | nav centered | Lhenveriyaa + Galan right */
@media (min-width: 769px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: min(100%, 72vw);
  }

  .topbar-app-btns {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }
}

.nav a {
  text-decoration: none;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 16px;
  color: #486581;
  padding: 7px 10px;
  border-radius: 8px;
  border-bottom: none;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav a:hover {
  color: #165493;
  background: rgba(22, 84, 147, 0.05);
}

.nav a.active,
.nav .active {
  color: #ffffff;
  background: linear-gradient(135deg, #165493 0%, #1e6aab 100%);
  box-shadow: 0 2px 10px rgba(22, 84, 147, 0.28);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.nav a.active:hover,
.nav .active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1a5fa0 0%, #165493 100%);
}

/* ===== Nav dropdowns (main topbar + apps bar) ===== */
.nav-dropdown,
.apps-bar-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-dropdown__trigger,
.apps-bar-dropdown__trigger {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 16px;
  color: #486581;
  padding: 7px 10px;
  border-radius: 8px;
  line-height: 1.25;
  white-space: nowrap;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav-dropdown__trigger::after,
.apps-bar-dropdown__trigger::after {
  content: "▾";
  font-size: 0.72em;
  opacity: 0.75;
  line-height: 1;
}

.nav-dropdown__trigger:hover,
.apps-bar-dropdown__trigger:hover {
  color: #165493;
  background: rgba(22, 84, 147, 0.05);
}

.nav-dropdown__trigger.is-active,
.apps-bar-dropdown__trigger.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #165493 0%, #1e6aab 100%);
  box-shadow: 0 2px 10px rgba(22, 84, 147, 0.28);
}

.nav-dropdown__trigger.is-active:hover,
.apps-bar-dropdown__trigger.is-active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1a5fa0 0%, #165493 100%);
}

.nav-dropdown__menu,
.apps-bar-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 12.5rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(22, 84, 147, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(22, 84, 147, 0.14);
  z-index: 960;
}

.nav-dropdown.is-open .nav-dropdown__menu,
.apps-bar-dropdown.is-open .apps-bar-dropdown__menu {
  display: flex;
}

@media (hover: hover) and (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu,
  .apps-bar-dropdown:hover .apps-bar-dropdown__menu,
  .apps-bar-dropdown:focus-within .apps-bar-dropdown__menu {
    display: flex;
  }
}

.nav-dropdown__menu::before,
.apps-bar-dropdown__menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown__menu a,
.apps-bar-dropdown__menu a {
  display: block;
  width: 100%;
  text-align: right;
  box-sizing: border-box;
}

/* News dropdown items — match main nav link hovers (not legacy promo buttons) */
.nav-dropdown__menu .nav-news-btn,
.nav-dropdown__menu .nav-forum-btn,
.nav-dropdown__menu .nav-contact-btn {
  direction: rtl;
  display: block;
  width: 100%;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.25;
  color: #486581;
  background: transparent;
  padding: 7px 10px;
  min-height: 0;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
  text-align: right;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.nav-dropdown__menu .nav-news-btn:hover,
.nav-dropdown__menu .nav-forum-btn:hover,
.nav-dropdown__menu .nav-contact-btn:hover {
  color: #165493;
  background: rgba(22, 84, 147, 0.05);
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.nav-dropdown__menu .nav-news-btn.active,
.nav-dropdown__menu .nav-forum-btn.active,
.nav-dropdown__menu .nav-contact-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #165493 0%, #1e6aab 100%);
  border: none;
  box-shadow: 0 2px 10px rgba(22, 84, 147, 0.28);
}

.nav-dropdown__menu .nav-news-btn.active:hover,
.nav-dropdown__menu .nav-forum-btn.active:hover,
.nav-dropdown__menu .nav-contact-btn.active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1a5fa0 0%, #165493 100%);
}

.apps-bar-dropdown__menu .nav-news-btn,
.apps-bar-dropdown__menu .nav-forum-btn,
.apps-bar-dropdown__menu .nav-contact-btn {
  width: 100%;
  justify-content: flex-end;
}

/* ===== Top bar app buttons (Lhenveriyaa, GALAN) — pinned right on desktop ===== */
.topbar-app-btns {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex: 0 0 auto;
  direction: rtl;
  margin: 0;
  margin-left: auto;
}

.topbar .nav-lhen-btn--top,
.topbar .nav-adyibun-btn--top,
.topbar .nav-singers-btn--top,
.topbar .nav-galan-btn--top,
.apps-launch-bar .nav-lhen-btn--top,
.apps-launch-bar .nav-galan-btn--top,
.apps-launch-bar .nav-adyibun-btn--top,
.apps-launch-bar .nav-singers-btn--top {
  min-height: 48px;
  border-radius: 10px;
  gap: 10px;
}

.topbar .nav-lhen-btn--top,
.apps-launch-bar .nav-lhen-btn--top {
  padding: 8px 14px;
  max-width: min(100%, 220px);
}

.topbar .nav-adyibun-btn--top,
.apps-launch-bar .nav-adyibun-btn--top {
  padding: 8px 16px;
  font-size: 15px;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
}

.topbar .nav-adyibun-btn--top .nav-adyibun-logo {
  display: block;
  flex-shrink: 0;
  height: 24px;
  width: auto;
  max-width: 42px;
  aspect-ratio: 952 / 594;
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

/* ===== Poet film strip (nav + home launch) ===== */
.poet-filmstrip {
  position: relative;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  direction: ltr;
  background: #141414;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.35);
}

.poet-filmstrip::before,
.poet-filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  pointer-events: none;
  background-color: #1c1c1c;
  background-image: repeating-linear-gradient(
    90deg,
    #1c1c1c 0,
    #1c1c1c 3px,
    #4a4a4a 3px,
    #4a4a4a 5px,
    #1c1c1c 5px,
    #1c1c1c 10px
  );
}

.poet-filmstrip::before { top: 0; }
.poet-filmstrip::after { bottom: 0; }

.poet-filmstrip__viewport {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.poet-filmstrip__track {
  display: flex;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.poet-filmstrip--ready .poet-filmstrip__track {
  animation: poet-filmstrip-pan 48s linear infinite;
}

.poet-filmstrip__row {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  height: 100%;
}

.poet-filmstrip__frame,
a.poet-filmstrip__frame {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 2px;
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.poet-filmstrip__frame img {
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #222;
}

.poet-filmstrip__frame--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.poet-filmstrip__frame--link:hover,
.poet-filmstrip__frame--link:focus-visible {
  background: #1a2744;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(72, 149, 239, 0.45);
  outline: none;
  transform: scale(1.06);
  z-index: 2;
}

.topbar .nav-adyibun-btn--top .nav-adyibun-label-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.adyibun-launch-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.app-launch-row .adyibun-launch-body {
  text-align: center;
  align-items: center;
  width: 100%;
}

.poet-filmstrip--nav {
  width: 48px;
  height: 30px;
  border-radius: 5px;
}

.poet-filmstrip--nav .poet-filmstrip__frame {
  padding: 5px 2px;
}

.poet-filmstrip--nav .poet-filmstrip__frame img {
  width: 24px;
  height: 18px;
  border-radius: 1px;
}

.nav-adyibun-btn--top .poet-filmstrip--nav,
.topbar .nav-adyibun-btn--top .poet-filmstrip--nav {
  margin-inline-end: 2px;
}

.poet-filmstrip--launch {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.poet-filmstrip--launch .poet-filmstrip__frame {
  padding: 8px 3px;
}

.poet-filmstrip--launch .poet-filmstrip__frame img {
  width: clamp(48px, 6vw, 68px);
  height: clamp(56px, 7vw, 80px);
  border-radius: 2px;
}

.adyibun-launch-logo-wrap .poet-filmstrip--launch {
  min-height: 100%;
}

@keyframes poet-filmstrip-pan {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .poet-filmstrip__track,
  .poet-filmstrip--ready .poet-filmstrip__track {
    animation: none;
    transform: translateX(0);
  }
}

.topbar .nav-adyibun-btn--top .nav-adyibun-label,
.apps-launch-bar .nav-adyibun-btn--top .nav-adyibun-label {
  font-size: 15px;
  color: inherit;
}

.topbar .nav-singers-btn--top,
.apps-launch-bar .nav-singers-btn--top {
  padding: 8px 16px;
  font-size: 15px;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
}

.topbar .nav-singers-btn--top .nav-singers-label,
.apps-launch-bar .nav-singers-btn--top .nav-singers-label,
.nav-singers-label {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 15px;
  color: inherit;
  font-weight: normal;
}

.topbar .nav-adyibun-btn--top.active .nav-adyibun-label,
.apps-launch-bar .nav-adyibun-btn--top.active .nav-adyibun-label,
.topbar .nav-singers-btn--top.active .nav-singers-label,
.apps-launch-bar .nav-singers-btn--top.active .nav-singers-label {
  color: #fff;
}

/* Mobile: host app buttons moved into 3rd bar */
.apps-bar-apps {
  display: none;
}

.topbar .nav-lhen-btn--top .nav-lhen-logo,
.apps-launch-bar .nav-lhen-btn--top .nav-lhen-logo {
  height: 28px;
  max-width: 96px;
  max-height: 28px;
}

.topbar .nav-lhen-btn--top .nav-lhen-label,
.apps-launch-bar .nav-lhen-btn--top .nav-lhen-label {
  font-size: 15px;
}

.topbar .nav-galan-btn--top,
.apps-launch-bar .nav-galan-btn--top,
.apps-bar-apps .nav-galan-btn--top {
  padding: 0;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  flex: 0 0 48px;
  background: transparent;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  border-radius: 10px;
}

.topbar .nav-galan-logo,
.apps-launch-bar .nav-galan-logo,
.apps-bar-apps .nav-galan-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  background: #0a0e24;
  border-radius: 10px;
}

.topbar .nav-galan-btn--top:hover,
.apps-launch-bar .nav-galan-btn--top:hover,
.apps-bar-apps .nav-galan-btn--top:hover {
  transform: translateY(-1px);
  background: transparent;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
}

.topbar .nav-galan-btn--top:active,
.apps-launch-bar .nav-galan-btn--top:active,
.apps-bar-apps .nav-galan-btn--top:active {
  transform: translateY(0);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* ===== Left apps bar — Donate + Songs ===== */
.apps-bar .nav-apps-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-right: auto;
}

.apps-bar .nav-apps-left > .nav-donate-btn {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(180deg, #ef5350 0%, #e53935 48%, #c62828 100%);
  padding: 7px 14px;
  min-height: 34px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #b71c1c;
  box-shadow:
    0 2px 8px rgba(198, 40, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.apps-bar .nav-apps-left > .nav-donate-btn .nav-donate-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.apps-bar .nav-apps-left > .nav-donate-btn .nav-donate-label-en {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.95em;
}

.apps-bar .nav-apps-left > .nav-donate-btn .nav-donate-label-sep {
  margin: 0 2px;
  opacity: 0.75;
}

.apps-bar .nav-apps-left > .nav-donate-btn .nav-donate-label-dv {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 1em;
}

.apps-bar .nav-apps-left > .nav-donate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(198, 40, 40, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.apps-bar .nav-apps-left > .nav-donate-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(198, 40, 40, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.apps-bar .nav-apps-left > .nav-donate-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #f44336 0%, #d32f2f 48%, #b71c1c 100%);
  border-color: #8e0000;
  box-shadow:
    0 2px 12px rgba(183, 28, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ===== Bottom-left float stack (news + donate) ===== */
.site-float-stack {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: var(--site-bar-pad-x);
  z-index: 890;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.site-float-stack > * {
  pointer-events: auto;
}

/* ===== Floating donate — bottom-left ===== */
.donate-float-btn {
  position: static;
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(180deg, #ef5350 0%, #e53935 48%, #c62828 100%);
  padding: 8px 16px;
  min-height: 38px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #b71c1c;
  box-shadow:
    0 8px 26px rgba(183, 28, 28, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.donate-float-btn[hidden] {
  display: none !important;
}

.site-float-stack .competition-float-banner {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  transform-origin: center center;
}

/* ===== Scroll to top — bottom-right ===== */
.scroll-top-btn {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  z-index: 10050;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #1e7fd6 0%, #165493 52%, #0f4378 100%);
  box-shadow:
    0 10px 28px rgba(15, 67, 120, 0.38),
    0 0 0 1px rgba(15, 67, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: linear-gradient(180deg, #2890e8 0%, #1a6aad 52%, #125589 100%);
  box-shadow:
    0 12px 32px rgba(15, 67, 120, 0.45),
    0 0 0 1px rgba(15, 67, 120, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid #ffb300;
  outline-offset: 3px;
}

.scroll-top-btn__icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donate-float-btn .nav-donate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.donate-float-btn .nav-donate-label-en {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95em;
}

.donate-float-btn .nav-donate-label-dv {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 1em;
}

.donate-float-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #f44336 0%, #d32f2f 48%, #b71c1c 100%);
  border-color: #8e0000;
  box-shadow:
    0 12px 30px rgba(183, 28, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.donate-float-btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 14px rgba(183, 28, 28, 0.35),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* ===== Promo buttons — apps bar (Forum, Contact) ===== */
.apps-bar .nav-promo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 0 0 auto;
  direction: rtl;
}

.apps-bar .nav-news-btn,
.apps-bar .nav-forum-btn,
.apps-bar .nav-contact-btn,
.apps-bar .nav-training-btn {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.25;
  color: #486581;
  background: transparent;
  padding: 7px 12px;
  min-height: 0;
  box-sizing: border-box;
  border-radius: 8px;
  border: none;
  box-shadow: none;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.apps-bar .nav-news-label,
.apps-bar .nav-news-label,
.apps-bar .nav-forum-label,
.apps-bar .nav-contact-label {
  font-size: 16px;
  line-height: 1.25;
}

.apps-bar .nav-news-btn:hover,
.apps-bar .nav-forum-btn:hover,
.apps-bar .nav-contact-btn:hover {
  transform: none;
  color: #165493;
  background: rgba(22, 84, 147, 0.1);
  border-color: transparent;
}

.apps-bar .nav-news-btn:active,
.apps-bar .nav-forum-btn:active,
.apps-bar .nav-contact-btn:active {
  transform: none;
  box-shadow: none;
}

.apps-bar .nav-news-btn.active,
.apps-bar .nav-forum-btn.active,
.apps-bar .nav-contact-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #165493 0%, #1e6aab 100%);
  border: none;
  box-shadow: 0 2px 10px rgba(22, 84, 147, 0.28);
}

.apps-bar .nav-news-btn.active:hover,
.apps-bar .nav-forum-btn.active:hover,
.apps-bar .nav-contact-btn.active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1a5fa0 0%, #165493 100%);
}

.apps-bar .nav-training-btn {
  direction: ltr;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #3d8f9b 0%, #2d6f7a 52%, #b8892e 100%);
  border: 1px solid #2d6f7a;
  box-shadow:
    0 2px 12px rgba(45, 111, 122, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.apps-bar .nav-training-label {
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.apps-bar .nav-training-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #47a0ad 0%, #3d8f9b 52%, #c99a3d 100%);
  border-color: #3d8f9b;
  box-shadow:
    0 4px 16px rgba(45, 111, 122, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.apps-bar .nav-training-btn:active {
  transform: translateY(0);
  text-decoration: none;
}

.apps-bar .nav-training-btn.active {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #2d6f7a 0%, #1f5660 52%, #9a7426 100%);
  border-color: #1f5660;
  box-shadow:
    0 2px 14px rgba(31, 86, 96, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.apps-bar .nav-apps-left > .nav-songs-btn {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.15vw, 13px);
  line-height: 1.2;
  color: #3d6a9a;
  background: rgba(22, 84, 147, 0.07);
  padding: 7px 14px;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(22, 84, 147, 0.14);
  box-shadow: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.apps-bar .nav-apps-left > .nav-songs-btn:hover {
  transform: none;
  filter: none;
  color: #165493;
  text-decoration: none;
  background: rgba(22, 84, 147, 0.12);
  border-color: rgba(22, 84, 147, 0.22);
  box-shadow: none;
}

.apps-bar .nav-apps-left > .nav-songs-btn:active {
  transform: none;
  background: rgba(22, 84, 147, 0.16);
  box-shadow: none;
}

.apps-bar .nav-apps-left > .nav-songs-btn.active {
  color: #165493;
  background: rgba(22, 84, 147, 0.14);
  border-color: rgba(22, 84, 147, 0.28);
  box-shadow: none;
}

.apps-bar .nav-apps-left > .nav-lyrics-chords-btn {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.2;
  color: #9a4a4a;
  background: rgba(196, 30, 30, 0.06);
  padding: 7px 12px;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 30, 0.12);
  box-shadow: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.apps-bar .nav-apps-left > .nav-lyrics-chords-btn:hover {
  transform: none;
  filter: none;
  color: #8b3030;
  text-decoration: none;
  background: rgba(196, 30, 30, 0.1);
  border-color: rgba(196, 30, 30, 0.2);
  box-shadow: none;
}

.apps-bar .nav-apps-left > .nav-lyrics-chords-btn:active {
  transform: none;
  background: rgba(196, 30, 30, 0.14);
  box-shadow: none;
}

.apps-bar .nav-apps-left > .nav-lyrics-chords-btn.active {
  color: #8b3030;
  background: rgba(196, 30, 30, 0.12);
  border-color: rgba(196, 30, 30, 0.26);
  box-shadow: none;
}

.nav-adyibun-btn {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: min(100%, 280px);
  flex: 0 0 auto;
  text-decoration: none;
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  color: #e8f8ee;
  background: linear-gradient(180deg, #1f9d55 0%, #157a44 48%, #0e6b3a 100%);
  padding: 6px 10px 6px 8px;
  min-height: 32px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #2da865;
  box-shadow:
    0 2px 8px rgba(14, 107, 58, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.nav-adyibun-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #d4f5e0;
}

.nav-adyibun-label {
  direction: rtl;
  display: block;
  flex: 0 1 auto;
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  text-align: start;
  color: inherit;
}

.nav-adyibun-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #157a44 0%, #0e6b3a 48%, #0a5630 100%);
  border-color: #269659;
  box-shadow:
    0 4px 14px rgba(14, 107, 58, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-adyibun-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(14, 107, 58, 0.28),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-adyibun-btn.active {
  background: linear-gradient(180deg, #24b366 0%, #1a9d55 48%, #157a44 100%);
  border-color: #3dcc7a;
  color: #fff;
  box-shadow:
    0 2px 12px rgba(36, 179, 102, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-promo-wrap .nav-lhen-btn {
  margin-right: 0;
}

.nav-galan-btn {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: min(100%, 200px);
  flex: 0 0 auto;
  text-decoration: none;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  color: #f0f0f0;
  background: linear-gradient(180deg, #6e6e6e 0%, #505050 48%, #3a3a3a 100%);
  padding: 6px 12px;
  min-height: 32px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #5a5a5a;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}
.nav-galan-label {
  direction: rtl;
  display: block;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}
.nav-galan-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #5a5a5a 0%, #454545 48%, #323232 100%);
  border-color: #6a6a6a;
  color: #fff;
}
.nav-galan-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.28),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-news-btn,
.nav-news-btn,
.nav-forum-btn,
.nav-contact-btn {
  direction: rtl;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  flex: 0 0 auto;
  text-decoration: none;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  color: #e8f0fa;
  background: linear-gradient(180deg, #1a5fa0 0%, #165493 48%, #0e3c6a 100%);
  padding: 6px 12px;
  min-height: 32px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #2a6cb0;
  box-shadow:
    0 2px 8px rgba(14, 60, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.nav-news-label,
.nav-news-label,
.nav-forum-label,
.nav-contact-label {
  direction: rtl;
  display: block;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

.nav-news-btn:hover,
.nav-news-btn:hover,
.nav-forum-btn:hover,
.nav-contact-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #165493 0%, #0e3c6a 48%, #0a3058 100%);
  border-color: #3a8fd4;
  color: #fff;
}

.nav-news-btn:active,
.nav-news-btn:active,
.nav-forum-btn:active,
.nav-contact-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(14, 60, 106, 0.28),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-news-btn.active,
.nav-news-btn.active,
.nav-forum-btn.active,
.nav-contact-btn.active {
  background: linear-gradient(180deg, #2a7fd4 0%, #1a5fa0 48%, #165493 100%);
  border-color: #5aa8e8;
  color: #fff;
  box-shadow:
    0 2px 12px rgba(26, 95, 160, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ===== Lhenveriyaa special button — logo + tagline, nav bar height ===== */
.nav-lhen-btn {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: min(100%, 380px);
  flex: 0 0 auto;
  margin-right: 0;
  text-decoration: none;
  font-family: "Faruma", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  color: #c5cdd8;
  background: linear-gradient(180deg, #525c6a 0%, #484f5c 48%, #424957 100%);
  padding: 6px 10px 6px 8px;
  min-height: 32px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #5a6270;
  box-shadow:
    0 2px 8px rgba(15, 17, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}
.nav-lhen-label {
  direction: rtl;
  display: block;
  flex: 0 1 auto;
  font-family: "Faruma", Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.2;
  text-align: start;
  color: inherit;
}
.nav-lhen-logo {
  --lhen-logo-ratio: 588 / 192;
  display: block;
  width: auto;
  height: 20px;
  max-width: 66px;
  max-height: 20px;
  aspect-ratio: var(--lhen-logo-ratio);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  mix-blend-mode: lighten;
}
.nav-lhen-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #3a424e 0%, #31363f 48%, #272b32 100%);
  border-color: #43434f;
  box-shadow:
    0 4px 14px rgba(15, 17, 20, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8eef5;
}
.nav-lhen-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(15, 17, 20, 0.3),
    inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* ================== Main Content ================== */
.content {
  margin-top: var(--site-header-h);
  margin-right: 0;
  margin-left: 0;
  padding: 32px var(--site-bar-pad-x) 56px;
  max-width: none;
  min-height: calc(100vh - var(--site-header-h));
  box-sizing: border-box;
}

.section {
  margin-bottom: 0;
  scroll-margin-top: var(--site-header-h);
  width: 100%;
}

.content > .section:only-child {
  margin-bottom: 0;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
}

/* Unified page headlines — all pages */
.content h2,
.page-headline {
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 52px;
  font-weight: normal;
  color: #165493;
  text-align: center;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(22, 84, 147, 0.15);
  position: relative;
}

.content h2::after,
.page-headline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: #165493;
  border-radius: 2px;
}

.section p,
.prose p {
  font-size: 19px;
  line-height: 2;
  color: #334155;
  max-width: 100%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
  padding: 0 24px;
  box-sizing: border-box;
}

.section .adyibun-poem-card .adyibun-poem-card__author,
.section .adyibun-poem-card .adyibun-poem-card__date {
  padding: 0;
  text-align: center;
  line-height: 1.3;
  width: auto;
}

.section p + p {
  margin-top: 16px;
}

/* Home quick links */
.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  margin: 32px 0 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.home-link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 16px 14px;
  background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid rgba(22, 84, 147, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: #165493;
  font-size: 17px;
  text-align: center;
  line-height: 1.5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 84, 147, 0.05);
}

.home-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 84, 147, 0.35);
  box-shadow: 0 8px 20px rgba(22, 84, 147, 0.12);
}

.services-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 24px 0;
  flex-direction: row-reverse;
  box-sizing: border-box;
  flex: 1;
}

.services-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services-images img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(22, 84, 147, 0.12);
  object-fit: cover;
  border: 1px solid rgba(22, 84, 147, 0.08);
}

.services-text {
  flex: 1;
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  text-align: justify;
}
.services-text p { margin-bottom: 20px; }

@media (max-width: 900px) {
  .services-container { flex-direction: column; }
  .services-images { flex-direction: row; gap: 10px; }
  .services-images img { width: 50%; }
}

/* ================== Download Section ================== */
#download.section {
  text-align: center;
  padding: 0;
  margin-top: 0;
}

#download.section > p {
  margin: 0 auto 28px;
  text-align: center;
  max-width: 720px;
}

#download .download-sub {
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 28px;
  font-weight: normal;
  color: #165493;
  text-align: start;
  margin: 32px 0 18px;
  padding: 8px 24px 0;
}

.download-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
  justify-items: center;
  padding: 0 24px 32px;
  border-bottom: 1px solid rgba(22, 84, 147, 0.1);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.download-item {
  width: 100%;
  max-width: 220px;
  text-align: center;
  background: #fff;
  padding: 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(22, 84, 147, 0.1);
  box-shadow: 0 3px 14px rgba(22, 84, 147, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(22, 84, 147, 0.14);
}

.download-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.download-item:hover img {
  transform: scale(1.02);
}

.download-btn {
  display: block;
  margin-top: 12px;
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(135deg, #165493 0%, #1a5fa0 100%);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  font-weight: normal;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.download-btn:hover {
  background: linear-gradient(135deg, #0e3c6a 0%, #165493 100%);
  box-shadow: 0 4px 12px rgba(22, 84, 147, 0.25);
}

.download-btn--soon {
  background: #b8c4d4;
  cursor: default;
  pointer-events: none;
}

.download-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.download-item h3 {
  font-size: 36px;
  margin: 20px 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #165493;
}

.download-item p {
  font-size: 18px;
  color: #444;
  margin-bottom: 12px;
}

/* ================== Animations ================== */
.fade-in { opacity: 0; transform: translateY(30px); transition: all .7s ease; }
.fade-in.show { opacity: 1; transform: none; }
.slide-in-left { opacity: 0; transform: translateX(-60px); transition: all .7s ease; }
.slide-in-left.show { opacity: 1; transform: none; }
.slide-in-right { opacity: 0; transform: translateX(60px); transition: all .7s ease; }
.slide-in-right.show { opacity: 1; transform: none; }

/* ================== Footer ================== */
.site-footer {
  margin-right: 0;
  padding: 24px 40px;
  text-align: center;
  font-size: 15px;
  color: #64748b;
  border-top: 1px solid rgba(22, 84, 147, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer a {
  color: #165493;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ================== Home app launch row ================== */
.app-launch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1100px) {
  .app-launch-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.app-launch-row .adyibun-launch {
  background: linear-gradient(180deg, #3d7ef0 0%, #173feb 48%, #1258c7 100%);
  border: 1px solid #4a8ef7;
  box-shadow:
    0 14px 40px rgba(23, 63, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-launch-row .adyibun-launch:hover {
  box-shadow:
    0 22px 50px rgba(23, 63, 235, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-launch-row .adyibun-launch span {
  color: #d7e6f7;
}

.app-launch-row .adyibun-launch em {
  color: #9ae3fd;
}

.app-launch-row .singers-launch {
  background: linear-gradient(180deg, #e07a5f 0%, #c45c48 48%, #a84838 100%);
  border: 1px solid #e8927d;
  box-shadow:
    0 14px 40px rgba(196, 92, 72, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-launch-row .singers-launch:hover {
  box-shadow:
    0 22px 50px rgba(196, 92, 72, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-launch-row .singers-launch span {
  color: #f8e4de;
}

.app-launch-row .singers-launch em {
  color: #ffd4c8;
}

.app-launch-row .galan-launch,
.app-launch-row .lhen-launch,
.app-launch-row .adyibun-launch,
.app-launch-row .singers-launch,
.app-launch-row .liyamaa-launch {
  max-width: none;
  margin: 0;
  width: 100%;
  min-height: clamp(240px, 28vw, 320px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: clamp(22px, 2.8vw, 32px) clamp(16px, 2vw, 24px);
  gap: clamp(14px, 1.8vw, 20px);
}

.app-launch-row .adyibun-launch {
  --adyibun-card-pad-x: clamp(16px, 2vw, 24px);
  padding: 0 var(--adyibun-card-pad-x) clamp(22px, 2.8vw, 32px);
  overflow: hidden;
  gap: clamp(12px, 1.5vw, 16px);
}

.app-launch-row .galan-launch .galan-text,
.app-launch-row .lhen-launch .lhen-text,
.app-launch-row .adyibun-launch .adyibun-text,
.app-launch-row .singers-launch .singers-text,
.app-launch-row .liyamaa-launch .liyamaa-text {
  text-align: center;
  align-items: center;
  width: 100%;
}

.app-launch-row .galan-launch strong,
.app-launch-row .lhen-launch strong,
.app-launch-row .adyibun-launch strong,
.app-launch-row .singers-launch strong,
.app-launch-row .liyamaa-launch strong {
  font-size: clamp(24px, 2.6vw, 32px);
}

.app-launch-row .galan-launch span,
.app-launch-row .lhen-launch span,
.app-launch-row .adyibun-launch span,
.app-launch-row .singers-launch span,
.app-launch-row .liyamaa-launch span {
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.65;
}

.app-launch-row .galan-launch em,
.app-launch-row .lhen-launch em,
.app-launch-row .singers-launch em,
.app-launch-row .adyibun-launch em,
.app-launch-row .liyamaa-launch em {
  font-size: clamp(14px, 1.4vw, 17px);
  margin-top: auto;
  padding-top: 6px;
}

.app-launch-row .galan-launch-logo-wrap {
  width: clamp(72px, 9vw, 104px);
  height: clamp(72px, 9vw, 104px);
  border-radius: clamp(14px, 1.6vw, 20px);
}

.app-launch-row .galan-launch-logo {
  max-width: 100%;
  max-height: 100%;
}

.app-launch-row .liyamaa-launch {
  background: #0a0a0a;
  border: 1px solid #222;
  color: #e8f8f6;
  text-decoration: none;
  display: flex;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.app-launch-row .liyamaa-launch:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.app-launch-row .liyamaa-launch-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: min(100%, 240px);
  min-height: clamp(56px, 7vw, 72px);
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: #000;
}

.app-launch-row .liyamaa-launch-icon {
  flex-shrink: 0;
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 12px;
  object-fit: cover;
}

.app-launch-row .liyamaa-launch-logo {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.app-launch-row .liyamaa-launch .liyamaa-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-launch-row .liyamaa-launch span {
  color: #a8c4c0;
}

.app-launch-row .liyamaa-launch em {
  color: #5ed4c4;
  font-style: normal;
}

.app-launch-row .lhen-launch img {
  height: clamp(64px, 8vw, 96px);
  max-height: clamp(64px, 8vw, 96px);
  max-width: min(100%, 280px);
  padding: clamp(8px, 1vw, 12px) clamp(12px, 1.4vw, 18px);
  border-radius: clamp(12px, 1.4vw, 16px);
}

.app-launch-row .adyibun-launch-logo-wrap {
  flex: 0 0 auto;
  width: calc(100% + 2 * var(--adyibun-card-pad-x, clamp(16px, 2vw, 24px)));
  max-width: none;
  margin-inline: calc(-1 * var(--adyibun-card-pad-x, clamp(16px, 2vw, 24px)));
  margin-bottom: clamp(4px, 0.6vw, 8px);
  aspect-ratio: unset;
  height: clamp(58px, 7.5vw, 84px);
  display: block;
  background: #141414;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.app-launch-row .singers-launch {
  --singers-card-pad-x: clamp(16px, 2vw, 24px);
  padding: 0 var(--singers-card-pad-x) clamp(22px, 2.8vw, 32px);
  overflow: hidden;
  gap: clamp(12px, 1.5vw, 16px);
}

.app-launch-row .singers-launch-logo-wrap {
  flex: 0 0 auto;
  width: calc(100% + 2 * var(--singers-card-pad-x, clamp(16px, 2vw, 24px)));
  max-width: none;
  margin-inline: calc(-1 * var(--singers-card-pad-x, clamp(16px, 2vw, 24px)));
  margin-bottom: clamp(4px, 0.6vw, 8px);
  aspect-ratio: unset;
  height: clamp(58px, 7.5vw, 84px);
  display: block;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.app-launch-row .adyibun-launch-logo-wrap .poet-filmstrip--launch {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
}

.app-launch-row .poet-filmstrip--launch .poet-filmstrip__frame {
  padding: 7px 2px;
}

.app-launch-row .poet-filmstrip--launch .poet-filmstrip__frame img {
  width: clamp(34px, 3.6vw, 50px);
  height: clamp(40px, 4.2vw, 58px);
  border-radius: 2px;
}

.app-launch-row .poet-filmstrip--launch::before,
.app-launch-row .poet-filmstrip--launch::after {
  height: 5px;
}

.app-launch-row .adyibun-launch-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
}

@media (max-width: 720px) {
  .app-launch-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 6px;
  }

  .app-launch-row .galan-launch,
  .app-launch-row .lhen-launch,
  .app-launch-row .adyibun-launch,
  .app-launch-row .liyamaa-launch {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
    min-height: 260px;
  }
}

/* ================== Lhenveriyaa launch card ================== */
.lhen-launch {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 680px;
  margin: 40px auto 0;
  text-decoration: none;
  background: linear-gradient(135deg, #0e3c6a 0%, #1a5fa0 100%);
  color: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 14px 40px rgba(14, 60, 106, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lhen-launch:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(14, 60, 106, 0.35);
}
.lhen-launch img {
  width: auto;
  height: 72px;
  max-height: 72px;
  aspect-ratio: 588 / 192;
  object-fit: contain;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 12px;
  box-sizing: border-box;
  mix-blend-mode: lighten;
}
.lhen-launch .lhen-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.lhen-launch strong {
  font-size: 26px;
  font-weight: normal;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
}
.lhen-launch span {
  font-size: 15px;
  color: #d7e6f7;
  line-height: 1.8;
}
.lhen-launch em {
  font-style: normal;
  color: #9ae3fd;
  font-size: 15px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .lhen-launch {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
    margin-top: 28px;
  }
  .lhen-launch img {
    height: 48px;
    max-height: 48px;
    max-width: min(100%, 220px);
    padding: 6px 10px;
  }
  .lhen-launch strong { font-size: 22px; }
  .lhen-launch span,
  .lhen-launch em { font-size: 14px; }
  .lhen-launch .lhen-text { text-align: center; align-items: center; }
}

/* ================== Adyibun launch card (home) ================== */
.adyibun-launch {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 20px auto 0;
  text-decoration: none;
  background: linear-gradient(180deg, #3d7ef0 0%, #173feb 48%, #1258c7 100%);
  color: #fff;
  border-radius: 18px;
  border: 1px solid #4a8ef7;
  padding: 22px 26px;
  box-shadow:
    0 14px 40px rgba(23, 63, 235, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.adyibun-launch:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 50px rgba(23, 63, 235, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.adyibun-launch-logo-wrap {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 160px);
  aspect-ratio: 952 / 594;
  height: auto;
  display: block;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.adyibun-launch-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: inherit;
}
.adyibun-launch .adyibun-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.adyibun-launch strong {
  font-size: 26px;
  font-weight: normal;
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
}
.adyibun-launch span {
  font-size: 15px;
  color: #d7e6f7;
  line-height: 1.8;
}
.adyibun-launch em {
  font-style: normal;
  color: #9ae3fd;
  font-size: 15px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .adyibun-launch {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
  .adyibun-launch .adyibun-text { text-align: center; align-items: center; }
  .adyibun-launch strong { font-size: 22px; }
  .adyibun-launch span,
  .adyibun-launch em { font-size: 14px; }
}

/* ================== Singers launch card (home) ================== */
.singers-launch {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 20px auto 0;
  text-decoration: none;
  background: linear-gradient(180deg, #e07a5f 0%, #c45c48 48%, #a84838 100%);
  color: #fff;
  border-radius: 18px;
  border: 1px solid #e8927d;
  padding: 22px 26px;
  box-shadow:
    0 14px 40px rgba(196, 92, 72, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.singers-launch:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 50px rgba(196, 92, 72, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.singers-launch-logo-wrap {
  flex: 0 0 auto;
  width: clamp(110px, 14vw, 160px);
  aspect-ratio: 1.2;
  height: auto;
  display: block;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.singers-launch .singers-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.singers-launch strong {
  font-size: 26px;
  font-weight: normal;
  font-family: "EasaFalaGalan", "Faruma", "MV Boli", Arial, sans-serif;
}
.singers-launch span {
  font-size: 15px;
  color: #f8e4de;
  line-height: 1.8;
}
.singers-launch em {
  font-style: normal;
  color: #ffd4c8;
  font-size: 15px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .singers-launch {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
  .singers-launch .singers-text { text-align: center; align-items: center; }
  .singers-launch strong { font-size: 22px; }
  .singers-launch span,
  .singers-launch em { font-size: 14px; }
}

/* ================== GALAN launch card (home) ================== */
.galan-launch {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 680px;
  margin: 20px auto 0;
  text-decoration: none;
  background: linear-gradient(135deg, #4a4a4a 0%, #5e5e5e 55%, #7e7e7e 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.galan-launch:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}
.galan-launch-logo-wrap {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e24;
  border-radius: 12px;
  overflow: hidden;
}
.galan-launch-logo {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.galan-launch-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}
.galan-launch .galan-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.galan-launch strong {
  font-size: 26px;
  font-weight: normal;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
}
.galan-launch span {
  font-size: 15px;
  color: #e8e8e8;
  line-height: 1.8;
}
.galan-launch em {
  font-style: normal;
  color: #c8c8c8;
  font-size: 15px;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .galan-launch {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }
  .galan-launch-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .galan-launch-logo {
    max-width: 42px;
    max-height: 42px;
  }
  .galan-launch .galan-text { text-align: center; align-items: center; }
  .galan-launch strong { font-size: 22px; }
  .galan-launch span,
  .galan-launch em { font-size: 14px; }
}

/* ================== Wide site footer ================== */
.easa-footer {
  margin-right: 0;
  margin-top: 70px;
  padding: 0;
  border-top: none;
  background: linear-gradient(135deg, #0e3c6a 0%, #165493 60%, #1a5fa0 100%);
  color: #cfdef0;
  text-align: right;
}
.easa-footer .footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 54px var(--site-bar-pad-x, 48px) 34px;
  box-sizing: border-box;
}
.easa-footer .footer-logo-wrap {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.easa-footer .footer-logo {
  width: 200px;
  max-width: 100%;
  height: auto;
}
.easa-footer .footer-brand p {
  margin: 0;
  max-width: 360px;
  font-size: 15px;
  line-height: 2;
  color: #c2d5ec;
}
.easa-footer .footer-brand strong {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  color: #ffffff;
  font-weight: normal;
  font-size: 19px;
}
.easa-footer h4 {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  color: #ffffff;
  font-size: 19px;
  font-weight: normal;
  margin: 0 0 16px;
}
.easa-footer .footer-col a {
  display: block;
  color: #c2d5ec;
  text-decoration: none;
  padding: 7px 0;
  font-size: 15px;
  transition: color 0.2s ease;
}
.easa-footer .footer-col a:hover { color: #ffffff; text-decoration: none; }
.easa-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 48px;
  padding-right: 190px;
  font-size: 14px;
  color: #a9c2dd;
}
.easa-footer .footer-bottom p { margin: 0; }
@media (max-width: 768px) {
  .easa-footer { margin-right: 0; }
  .easa-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 22px 26px;
  }
  .easa-footer .footer-bottom { padding: 16px 22px; }
}

.footer {
  text-align: center;
  padding: 30px;
  font-size: 16px;
  color: #666;
  border-top: 1px solid #ddd;
}

/* ================== Responsive ================== */
@media (max-width: 1200px) {
  .download-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .download-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root {
    --site-topbar-h: 64px;
    --site-apps-launch-h: 52px;
    --site-appsbar-h: 72px;
    --site-header-h: calc(var(--site-topbar-h) + var(--site-apps-launch-h) + var(--site-appsbar-h));
  }

  .sidebar { display: none !important; }
  .site-header {
    right: 0;
  }
  .topbar {
    right: 0;
    justify-content: flex-start;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: nowrap;
    height: auto;
    min-height: var(--site-topbar-h);
    padding-block: 6px;
    overflow: visible;
  }
  .topbar-app-btns {
    order: 1;
    margin-left: auto;
    margin-right: 0;
    gap: 6px;
    max-width: none;
    overflow: visible;
  }
  /* Mobile split: menu only on top; poets/singers/ovvalhu/thinhama on 2nd bar */
  .header-mobile-split .topbar-app-btns {
    display: none;
  }
  .topbar .nav-adyibun-btn--top,
  .apps-launch-bar .nav-adyibun-btn--top,
  .apps-launch-bar .nav-singers-btn--top {
    min-height: 40px;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 13px;
  }
  .topbar .nav-adyibun-btn--top .nav-adyibun-label,
  .apps-launch-bar .nav-adyibun-btn--top .nav-adyibun-label,
  .apps-launch-bar .nav-singers-btn--top .nav-singers-label {
    font-size: 13px;
  }
  .apps-launch-bar {
    justify-content: stretch;
    gap: 6px;
    padding: 6px 10px;
    min-height: var(--site-apps-launch-h);
  }
  .header-mobile-split .apps-launch-bar .nav-adyibun-btn--top,
  .header-mobile-split .apps-launch-bar .nav-singers-btn--top,
  .header-mobile-split .apps-launch-bar .nav-ovvalhu-btn,
  .header-mobile-split .apps-launch-bar .nav-thinhama-btn {
    flex: 1 1 0;
    min-height: 40px;
    border-radius: 8px;
    justify-content: center;
  }
  .apps-launch-bar .nav-ovvalhu-btn,
  .apps-launch-bar .nav-thinhama-btn {
    padding: 6px 4px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  /* 3rd bar: remaining apps */
  .header-mobile-split .apps-bar-apps {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    align-items: center;
    justify-content: stretch;
    gap: 6px;
    direction: ltr;
  }
  .header-mobile-split .apps-bar-apps .nav-lhen-btn--top,
  .header-mobile-split .apps-bar-apps .nav-liyamaa-btn {
    flex: 1 1 0;
    min-height: 40px;
    border-radius: 8px;
    justify-content: center;
  }
  .header-mobile-split .apps-bar-apps .nav-ee-btn {
    flex: 0 0 auto;
    width: 64px;
    min-width: 64px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 8px;
    background-image: url("elder-english/logo.png?v=5");
    background-size: cover;
  }
  .header-mobile-split .apps-bar-apps .nav-ee-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .header-mobile-split .apps-bar-apps .nav-lhen-btn--top {
    padding: 5px 6px;
  }
  .header-mobile-split .apps-bar-apps .nav-lhen-btn--top .nav-lhen-label {
    display: none;
  }
  .header-mobile-split .apps-bar-apps .nav-lhen-btn--top .nav-lhen-logo {
    height: 22px;
    max-width: 72px;
    max-height: 22px;
  }
  /* Galan stays square — never flex-grow (logo is 100% of button) */
  .apps-launch-bar .nav-galan-btn--top,
  .apps-bar-apps .nav-galan-btn--top,
  .header-mobile-split .apps-bar-apps .nav-galan-btn--top {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 8px;
  }
  .apps-launch-bar .nav-galan-logo,
  .apps-bar-apps .nav-galan-logo,
  .header-mobile-split .apps-bar-apps .nav-galan-logo {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 8px;
  }
  .header-mobile-split .apps-bar-apps .nav-liyamaa-btn {
    padding: 3px 6px 3px 3px;
    gap: 5px;
  }
  .header-mobile-split .apps-bar-apps .nav-liyamaa-icon {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }
  .header-mobile-split .apps-bar-apps .nav-liyamaa-logo {
    height: 18px;
    max-width: 100%;
  }
  .menu-btn {
    display: block;
    margin-left: auto;
    order: 2;
    flex-shrink: 0;
  }

  .site-brand img {
    height: 28px;
    max-width: min(140px, 48vw);
  }

  .site-brand span {
    display: none !important;
  }

  .content,
  main.content,
  body.souvenir-page .content,
  body.adyibun-page .content,
  body.adyibun-poet-page .content,
  body.adyibun-poems-page .content,
  body.forum-page .content,
  body.forum-page main.content,
  body.khabaru-page .content,
  body.khabaru-page main.content {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    padding: 24px 16px 48px;
    min-height: calc(100vh - var(--site-header-h));
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .section p,
  .prose p {
    padding: 0 8px;
    font-size: 17px;
  }
  .services-container {
    padding: 8px 8px 0;
  }
  .services-images {
    flex-direction: column;
    gap: 12px;
  }
  .services-images img {
    width: 100%;
  }
  .download-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px 24px;
  }
  .content > .section:only-child {
    min-height: calc(100vh - 140px);
  }
  .content h2,
  .page-headline { font-size: 36px; }
  .home-links { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-link-card { min-height: 64px; font-size: 15px; }
  .site-footer { margin-right: 0; padding: 20px 16px; }
  .nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--site-header-h);
    left: 0;
    right: 0;
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    max-width: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid rgba(22, 84, 147, 0.1);
    box-shadow: 0 8px 24px rgba(22, 84, 147, 0.1);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: center; }

  .nav-dropdown,
  .apps-bar-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger,
  .apps-bar-dropdown__trigger {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown__menu,
  .apps-bar-dropdown__menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 8px;
    margin-top: 2px;
  }

  .nav.open .nav-dropdown__menu,
  .nav.open .nav-dropdown.is-open .nav-dropdown__menu {
    display: flex;
  }

  .nav-dropdown__trigger::after {
    display: none;
  }

  .apps-bar-dropdown__menu {
    display: none;
  }

  .apps-bar-dropdown.is-open .apps-bar-dropdown__menu {
    display: flex;
  }

  .apps-bar {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--site-appsbar-h);
    padding: 6px 12px;
    gap: 8px;
  }

  .apps-bar-tools {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .apps-bar .nav-promo-wrap {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .apps-bar .nav-promo-wrap::-webkit-scrollbar {
    display: none;
  }
  .apps-bar .nav-apps-left {
    margin-right: 0;
    flex: 0 0 auto;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .apps-bar .nav-apps-left::-webkit-scrollbar {
    display: none;
  }

  .apps-bar .nav-apps-left > .nav-donate-btn,
  .apps-bar .nav-apps-left > .nav-songs-btn,
  .apps-bar .nav-apps-left > .nav-lyrics-chords-btn {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 5px 10px;
    min-height: 32px;
    font-size: 11px;
  }

  .site-float-stack {
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    gap: 8px;
  }

  .donate-float-btn {
    padding: 7px 12px;
    min-height: 34px;
    font-size: 11px;
  }

  .donate-float-btn .nav-donate-label-sep,
  .donate-float-btn .nav-donate-label-dv {
    display: none;
  }

  .site-float-stack .competition-float-banner {
    padding: 6px 11px 6px 9px;
    gap: 7px;
  }

  .site-float-stack .competition-float-banner__text {
    font-size: 13px;
  }

  .scroll-top-btn {
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    width: 46px;
    height: 46px;
  }

  .scroll-top-btn__icon {
    width: 16px;
    height: 16px;
  }

  .apps-bar .nav-news-btn,
  .apps-bar .nav-forum-btn,
  .apps-bar .nav-contact-btn,
  .apps-bar .nav-training-btn {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    max-width: none;
    padding: 5px 10px;
  }

  html,
  body {
    overflow-x: hidden;
  }

  /* Phones: show content immediately (scroll animations often fail) */
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    opacity: 1;
    transform: none;
  }

  body.contact-page .content,
  body.contact-page main.content,
  body.fonts-page .content,
  body.courses-page .content,
  body.souvenir-page .content,
  body.souvenir-page main.content,
  body.payment-page .content,
  body.about-page .content,
  body.vaahaka-page main.content,
  body.cart-page .content,
  body.cart-page main.content,
  body.forum-page .content,
  body.forum-page main.content,
  body.khabaru-page .content,
  body.khabaru-page main.content {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .content img,
  main.content img,
  .section img {
    max-width: 100%;
    height: auto;
  }

  .lhen-launch,
  .adyibun-launch,
  .galan-launch {
    max-width: 100%;
  }

  .courses-link-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .download-item {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .content h2,
  .page-headline {
    font-size: 28px;
    padding-bottom: 10px;
  }

  .home-links {
    grid-template-columns: 1fr;
  }

  .content,
  main.content {
    padding: 20px 12px 40px;
  }
}

/* ===== Apps bar buttons — locked size on every page ===== */
.apps-bar .nav-promo-wrap {
  margin: 0;
}

.apps-bar .nav-apps-left,
.apps-bar .nav-adyibun-btn,
.apps-bar .nav-news-btn,
.apps-bar .nav-forum-btn,
.apps-bar .nav-contact-btn {
  margin: 0;
  flex: 0 0 auto;
}

.apps-bar .nav-apps-left {
  margin-right: auto;
}

/* ================== Donate page ================== */
.donate-wrap {
  max-width: 640px;
}

.donate-intro {
  color: #486581;
  line-height: 1.9;
  margin-bottom: 24px;
}

.donate-card {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 10px 30px rgba(22, 84, 147, 0.08);
}

.donate-bank-dl {
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.donate-bank-dl dt {
  font-size: 13px;
  color: #829ab1;
  margin: 0;
}

.donate-bank-dl dd {
  margin: 0;
  font-size: 17px;
  color: #243b53;
}

.donate-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.donate-account-num {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #102a43;
}

.donate-copy-btn {
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #d4a017;
  background: linear-gradient(180deg, #f7e08a 0%, #e8c547 100%);
  color: #5c3d00;
  cursor: pointer;
}

.donate-copy-btn:hover {
  filter: brightness(1.03);
}

.donate-steps {
  margin: 0 0 22px;
  padding-inline-start: 1.2em;
  color: #486581;
  line-height: 1.85;
}

.donate-steps a {
  color: #165493;
}

.donate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donate-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(18, 140, 126, 0.25);
}

.donate-wa-btn:hover {
  filter: brightness(1.05);
}

/* ===== Top bar app buttons — locked size on every page ===== */
.topbar-app-btns {
  flex: 0 0 auto;
}

.topbar .nav-lhen-btn--top,
.topbar .nav-adyibun-btn--top,
.topbar .nav-galan-btn--top,
.apps-launch-bar .nav-lhen-btn--top,
.apps-launch-bar .nav-galan-btn--top,
.apps-launch-bar .nav-liyamaa-btn,
.apps-launch-bar .nav-ovvalhu-btn,
.apps-launch-bar .nav-thinhama-btn,
.apps-launch-bar .nav-adyibun-btn--top,
.apps-launch-bar .nav-singers-btn--top,
.apps-bar-apps .nav-lhen-btn--top,
.apps-bar-apps .nav-galan-btn--top,
.apps-bar-apps .nav-liyamaa-btn {
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex: 0 0 auto;
}

/* Mono phone icon (replaces 📱 emoji) */
.icon-phone {
  display: inline-block;
  vertical-align: -0.12em;
  flex-shrink: 0;
}

.courses-link-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 20px;
  background: #165493;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: "Faruma", "MV Boli", Arial, sans-serif;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.courses-link-btn:hover {
  background: #0e3c6a;
  transform: translateY(-2px);
}

/* Forum page essentials (also in forum.css — kept here so layout works with style.css alone) */
body.forum-page .content {
  margin-top: var(--site-header-h);
  margin-right: 0;
  padding: 28px 40px 48px;
  max-width: none;
  box-sizing: border-box;
}

body.forum-page .content > .section:only-child {
  min-height: auto;
  display: block;
}

body.forum-page .forum-intro h2,
body.forum-page main.content .forum-thread-view h2 {
  border-bottom: none;
  padding-bottom: 0;
}

body.forum-page .forum-intro h2::after,
body.forum-page main.content .forum-thread-view h2::after {
  content: none;
  display: none;
}

@media (max-width: 768px) {
  body.forum-page .content,
  body.forum-page main.content,
  body.khabaru-page .content,
  body.khabaru-page main.content,
  body.training-page .content,
  body.training-page main.content.training-content {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    padding: 24px 16px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

/* Full-width layout — contact, news, forum, fonts (sidebar retired) */
body.contact-page .content,
body.contact-page main.content,
body.khabaru-page .content,
body.khabaru-page main.content,
body.forum-page .content,
body.forum-page main.content,
body.fonts-page .content,
body.fonts-page main.content {
  margin-right: 0 !important;
  margin-left: 0;
  max-width: none !important;
  width: auto;
  box-sizing: border-box;
}

body.contact-page .site-header,
body.khabaru-page .site-header,
body.forum-page .site-header,
body.fonts-page .site-header {
  right: 0;
  left: 0;
}

/* Training page layout essentials (also in training.css) */
body.adyibun-page .content,
body.adyibun-poet-page .content,
body.adyibun-poems-page .content,
body.adyibun-page main.content,
body.adyibun-poet-page main.content,
body.adyibun-poems-page main.content {
  margin-right: 0;
  margin-left: 0;
  max-width: none;
  width: auto;
}

body.adyibun-page .site-header,
body.adyibun-poet-page .site-header,
body.adyibun-poems-page .site-header {
  right: 0;
  left: 0;
}

body.training-page .content.training-content {
  margin-top: var(--site-header-h);
  margin-right: 0;
  margin-left: 0;
  padding: 0 var(--site-bar-pad-x, clamp(1rem, 5vw, 3rem)) 48px;
  max-width: none;
  width: auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

body.training-page.training-page--subnav .content.training-content {
  margin-top: calc(var(--site-header-h) + var(--tr-subnav-h, 3.25rem));
}

body.training-page .tr-subnav {
  position: fixed;
  top: var(--site-header-h);
  left: 0;
  right: 0;
  z-index: 850;
}

@media (max-width: 768px) {
  body.training-page .content.training-content,
  body.training-page main.content.training-content {
    margin-right: 0;
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    padding: 0 var(--site-bar-pad-x, clamp(1rem, 5vw, 3rem)) 32px;
  }

  body.training-page .tr-subnav {
    right: 0;
    left: 0;
  }
}
