@import url('https://fonts.googleapis.com/css2?family=Moul&display=swap');

.ldcfc-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(115, 119, 125, 0.26);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.3s ease;
}

.ldcfc-site-header-spacer {
  height: 72px;
}

:root.dark .ldcfc-site-header,
:root[data-theme="dark"] .ldcfc-site-header {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(25, 29, 31, 0.94);
}

.ldcfc-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.ldcfc-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.ldcfc-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.ldcfc-brand-text {
  color: #071322;
  font-family: Manrope, Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.ldcfc-brand-text .font-khmer-moul,
.ldcfc-brand-text .lang-km,
.ldcfc-brand-text-km {
  font-family: 'Moul', "Noto Serif Khmer", serif !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
}

.ldcfc-brand-km-short {
  display: none !important;
}

:root.dark .ldcfc-brand-text,
:root[data-theme="dark"] .ldcfc-brand-text {
  color: #e8ecef;
}

.ldcfc-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ldcfc-nav-links a {
  border-bottom: 2px solid transparent;
  color: #59636f;
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0;
  padding: 27px 0 23px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap !important;
}

.ldcfc-nav-links a:hover,
.ldcfc-nav-links a.active {
  border-color: #b88419;
  color: #071322;
}

:root.dark .ldcfc-nav-links a,
:root[data-theme="dark"] .ldcfc-nav-links a {
  color: #b7c0c9;
}

:root.dark .ldcfc-nav-links a:hover,
:root.dark .ldcfc-nav-links a.active,
:root[data-theme="dark"] .ldcfc-nav-links a:hover,
:root[data-theme="dark"] .ldcfc-nav-links a.active {
  color: #e9c176;
}

.ldcfc-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ldcfc-nav-button {
  display: inline-grid;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  place-items: center !important;
  border-style: solid !important;
  border-width: 1px !important;
  border-color: rgba(115, 119, 125, 0.45) !important;
  border-radius: 4px !important;
  background-color: rgba(255, 255, 255, 0.86) !important;
  color: #001a33 !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.ldcfc-nav-button:hover {
  border-color: #8c6e3d !important;
}

.ldcfc-navbar-svg {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.ldcfc-theme-icon-sun {
  display: none;
}

:root.dark .ldcfc-theme-icon-moon,
:root[data-theme="dark"] .ldcfc-theme-icon-moon {
  display: none;
}

:root.dark .ldcfc-theme-icon-sun,
:root[data-theme="dark"] .ldcfc-theme-icon-sun {
  display: block;
}

:root.dark .ldcfc-nav-button,
:root[data-theme="dark"] .ldcfc-nav-button {
  border-style: solid !important;
  border-width: 1px !important;
  border-color: #3c454b !important;
  background-color: rgba(25, 29, 31, 0.96) !important;
  color: #e8ecef !important;
}

.ldcfc-nav-actions .ldcfc-member-link,
.ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  border-radius: 6px !important;
  background: #f4cf78 !important;
  color: #021c36 !important;
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  height: 40px !important;
  padding: 0 12px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 14px rgba(244, 207, 120, 0.4) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  cursor: pointer !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  flex-shrink: 0 !important;
}

button.ldcfc-member-link {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}

html[lang="km"] .ldcfc-nav-actions .ldcfc-member-link,
html[lang="km"] .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn) {
  font-family: "Kantumruy Pro", "Noto Sans Khmer", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.ldcfc-nav-actions .ldcfc-member-link:hover,
.ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn):hover {
  transform: translateY(-1px) !important;
  background: #ffffff !important;
  color: #021c36 !important;
  box-shadow: 0 6px 20px rgba(244, 207, 120, 0.6) !important;
}

/* Logged-in User Profile Badge Button */
.ldcfc-user-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  background: rgba(2, 28, 54, 0.05);
  border: 1.5px solid rgba(244, 207, 120, 0.6);
  border-radius: 9999px;
  text-decoration: none;
  color: #021c36 !important;
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.2s ease;
  height: 40px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  flex: 0 0 190px;
}

.ldcfc-user-profile-btn:hover {
  background: #f4cf78;
  color: #021c36 !important;
  border-color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(244, 207, 120, 0.4);
}

:root.dark .ldcfc-user-profile-btn,
:root[data-theme="dark"] .ldcfc-user-profile-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(244, 207, 120, 0.4);
}

:root.dark .ldcfc-user-profile-btn:hover,
:root[data-theme="dark"] .ldcfc-user-profile-btn:hover {
  background: #f4cf78;
  color: #021c36 !important;
}

.ldcfc-user-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #f4cf78;
  background: #021c36;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ldcfc-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ldcfc-user-name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldcfc-user-name .lang-km,
html[lang="km"] .ldcfc-user-name,
html[lang="kh"] .ldcfc-user-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Moul', 'Moulpali', 'Noto Serif Khmer', serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
}

/* ==================== 3-TIER NAVBAR DROPDOWN ARCHITECTURE ==================== */
.ldcfc-nav-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ldcfc-caret-icon {
  font-size: 18px !important;
  transition: transform 0.2s ease;
  color: inherit;
  opacity: 0.85;
}

.ldcfc-nav-dropdown-wrap:hover .ldcfc-caret-icon {
  transform: rotate(180deg);
}

/* Invisible bridge so mouse hover does not gap */
.ldcfc-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  min-width: 230px;
  background: #ffffff;
  border: 1px solid rgba(244, 207, 120, 0.5);
  border-radius: 12px;
  box-shadow: 0 16px 36px -4px rgba(2, 28, 54, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
  backdrop-filter: blur(12px);
  animation: ldcfcDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ldcfc-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.ldcfc-nav-dropdown-wrap:hover .ldcfc-dropdown-menu,
.ldcfc-dropdown-trigger[aria-expanded="true"] + .ldcfc-dropdown-menu {
  display: flex;
}
/* Guest membership menu is click/tap only. Avoid sticky :hover state on iPad and other touch screens. */
.ldcfc-nav-dropdown-wrap.ldcfc-click-only-dropdown:hover .ldcfc-dropdown-menu {
  display: none;
}
.ldcfc-nav-dropdown-wrap.ldcfc-click-only-dropdown:hover .ldcfc-caret-icon {
  transform: none;
}
.ldcfc-nav-dropdown-wrap.ldcfc-click-only-dropdown .ldcfc-dropdown-trigger[aria-expanded="true"] + .ldcfc-dropdown-menu {
  display: flex;
}
.ldcfc-nav-dropdown-wrap.ldcfc-click-only-dropdown .ldcfc-member-link:hover {
  transform: none !important;
  background: #f4cf78 !important;
  color: #021c36 !important;
  box-shadow: 0 4px 14px rgba(244, 207, 120, 0.4) !important;
}


@keyframes ldcfcDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root.dark .ldcfc-dropdown-menu,
:root[data-theme="dark"] .ldcfc-dropdown-menu {
  background: #07182c;
  border-color: rgba(244, 207, 120, 0.3);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.6);
}

.ldcfc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #021c36;
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
  font-size: 13px;
  transition: all 0.15s ease;
}

.ldcfc-dropdown-item:hover {
  background: rgba(244, 207, 120, 0.2);
  color: #021c36;
  transform: translateX(2px);
}

:root.dark .ldcfc-dropdown-item,
:root[data-theme="dark"] .ldcfc-dropdown-item {
  color: #f1f5f9;
}

:root.dark .ldcfc-dropdown-item:hover,
:root[data-theme="dark"] .ldcfc-dropdown-item:hover {
  background: rgba(244, 207, 120, 0.15);
  color: #f4cf78;
}

.ldcfc-dropdown-item-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
}

.ldcfc-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 3px 0;
}

:root.dark .ldcfc-dropdown-divider,
:root[data-theme="dark"] .ldcfc-dropdown-divider {
  background: rgba(255, 255, 255, 0.1);
}

/* ==================== STATE 2: PENDING APPLICANT BUTTON ==================== */
.ldcfc-pending-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 5px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.08));
  border: 1.5px solid #f59e0b;
  border-radius: 9999px;
  text-decoration: none;
  color: #92400e !important;
  height: 42px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.ldcfc-pending-profile-btn:hover {
  background: #f59e0b;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

:root.dark .ldcfc-pending-profile-btn,
:root[data-theme="dark"] .ldcfc-pending-profile-btn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24 !important;
  border-color: #f59e0b;
}

:root.dark .ldcfc-pending-profile-btn:hover,
:root[data-theme="dark"] .ldcfc-pending-profile-btn:hover {
  background: #f59e0b;
  color: #1e1b4b !important;
}

.ldcfc-pending-avatar-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}

.ldcfc-pending-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid #f59e0b;
  display: block;
}

.ldcfc-pending-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
  animation: ldcfcPulseDot 1.5s infinite;
}

@keyframes ldcfcPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.ldcfc-pending-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ldcfc-pending-name {
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldcfc-pending-status {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.85;
}

:root.dark .ldcfc-nav-actions .ldcfc-member-link,
:root[data-theme="dark"] .ldcfc-nav-actions .ldcfc-member-link,
:root.dark .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn),
:root[data-theme="dark"] .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn) {
  background: #f4cf78 !important;
  color: #021c36 !important;
  box-shadow: 0 4px 16px rgba(244, 207, 120, 0.5);
}

.ldcfc-lang-toggle .material-symbols-outlined {
  display: none !important;
}

.ldcfc-lang-toggle .lang-text {
  display: inline-block !important;
  position: relative !important;
  width: 24px !important;
  height: 16px !important;
  overflow: hidden !important;
  border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.ldcfc-lang-toggle .lang-text::before,
.ldcfc-lang-toggle .lang-text::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
}

.ldcfc-lang-toggle .lang-flag-en {
  background: repeating-linear-gradient(
    to bottom,
    #b22234 0,
    #b22234 1.23px,
    #ffffff 1.23px,
    #ffffff 2.46px
  ) !important;
}

.ldcfc-lang-toggle .lang-flag-en::before {
  inset: 0 auto auto 0 !important;
  width: 10.5px !important;
  height: 8.6px !important;
  background: #3c3b6e !important;
}

.ldcfc-lang-toggle .lang-flag-kh {
  background: linear-gradient(
    to bottom,
    #032ea1 0%,
    #032ea1 25%,
    #e00025 25%,
    #e00025 75%,
    #032ea1 75%,
    #032ea1 100%
  ) !important;
}

.ldcfc-lang-toggle .lang-flag-kh::before {
  left: 8px !important;
  top: 5px !important;
  width: 8px !important;
  height: 5px !important;
  background: #ffffff !important;
  clip-path: polygon(50% 0, 100% 38%, 88% 38%, 88% 100%, 12% 100%, 12% 38%, 0 38%) !important;
}

.ldcfc-mobile-toggle {
  display: none !important;
}

.ldcfc-mobile-tools {
  display: none;
}

@media (max-width: 1120px) {
  .ldcfc-user-profile-btn {
    width: 172px;
    min-width: 172px;
    max-width: 172px;
    flex-basis: 172px;
  }

  html[lang="km"] .ldcfc-brand-km-full,
  html[lang="kh"] .ldcfc-brand-km-full {
    display: none !important;
  }

  html[lang="km"] .ldcfc-brand-km-short,
  html[lang="kh"] .ldcfc-brand-km-short {
    display: inline !important;
  }

  .ldcfc-site-header-spacer {
    height: 64px;
  }

  .ldcfc-nav-shell {
    width: min(100% - 28px, 1440px);
    min-height: 64px;
    gap: 10px;
  }

  .ldcfc-brand-logo {
    width: 36px;
    height: 36px;
  }

  .ldcfc-brand-text {
    font-size: 18px;
  }

  .ldcfc-nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(115, 119, 125, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 48px rgba(0, 26, 51, 0.16);
    padding: 8px 18px;
  }

  .ldcfc-nav-links.open {
    display: flex;
  }

  .ldcfc-nav-links a {
    padding: 14px 0;
  }

  .ldcfc-nav-actions > .ldcfc-lang-toggle,
  .ldcfc-nav-actions > .ldcfc-theme-toggle {
    display: none !important;
  }

  .ldcfc-mobile-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 8px;
    border-top: 1px solid rgba(115, 119, 125, 0.2);
  }

  .ldcfc-mobile-tool {
    display: flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(115, 119, 125, 0.35);
    border-radius: 6px;
    background: transparent;
    color: #071322;
    font: 700 13px/1.3 "IBM Plex Sans", Inter, sans-serif;
    padding: 8px 10px;
    text-align: center;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-mobile-tool {
    border-color: rgba(255, 255, 255, 0.18);
    color: #e8ecef;
  }

  :root.dark .ldcfc-nav-links,
  :root[data-theme="dark"] .ldcfc-nav-links {
    background: rgba(25, 29, 31, 0.98);
  }

  .ldcfc-mobile-toggle {
    display: inline-grid !important;
  }

  .ldcfc-member-link {
    display: none;
  }
}

@media (max-width: 639px) {
  .ldcfc-nav-shell {
    width: calc(100% - 20px);
    gap: 6px;
  }

  .ldcfc-brand {
    gap: 7px;
  }

  .ldcfc-brand-logo {
    width: 34px;
    height: 34px;
  }

  .ldcfc-brand-text {
    font-size: 16px;
  }

  .ldcfc-nav-actions {
    gap: 6px !important;
    min-width: 0;
  }

  .ldcfc-nav-actions .ldcfc-member-link,
  .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn) {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    padding: 0 7px !important;
  }

  .ldcfc-nav-actions .ldcfc-member-link > :is(.lang-en, .lang-km, .lang-kh),
  .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn) > :is(.lang-en, .lang-km, .lang-kh) {
    display: none !important;
  }

  .ldcfc-nav-actions .ldcfc-member-link::before,
  .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn)::before {
    content: "Member";
  }

  html[lang="km"] .ldcfc-nav-actions .ldcfc-member-link::before,
  html[lang="kh"] .ldcfc-nav-actions .ldcfc-member-link::before,
  html[lang="km"] .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn)::before,
  html[lang="kh"] .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn)::before {
    content: "សមាជិក";
  }

  .ldcfc-user-profile-btn {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    flex-basis: 150px;
  }
}

/* Touch screens should not retain simulated hover states after a tap. */
@media (hover: none), (pointer: coarse) {
  .ldcfc-user-profile-btn:hover,
  :root.dark .ldcfc-user-profile-btn:hover,
  :root[data-theme="dark"] .ldcfc-user-profile-btn:hover {
    background: rgba(2, 28, 54, 0.05) !important;
    color: #021c36 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
  }

  .ldcfc-user-profile-btn:hover .ldcfc-user-avatar-wrap,
  .ldcfc-user-profile-btn:hover .ldcfc-user-avatar-img {
    transform: none !important;
    filter: none !important;
  }

  .ldcfc-nav-button:hover,
  .ldcfc-mobile-tool:hover {
    border-color: rgba(115, 119, 125, 0.45) !important;
    background-color: inherit !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .ldcfc-nav-actions .ldcfc-member-link:hover,
  .ldcfc-nav-actions .become-member-btn:not(#navPendingMemberBtn):hover {
    transform: none !important;
    background: #f4cf78 !important;
    color: #021c36 !important;
    box-shadow: 0 4px 14px rgba(244, 207, 120, 0.4) !important;
  }

  .ldcfc-nav-dropdown-wrap:hover .ldcfc-caret-icon {
    transform: none;
  }

  .ldcfc-nav-dropdown-wrap:hover .ldcfc-dropdown-menu {
    display: none;
  }

  .ldcfc-dropdown-item:hover {
    background: transparent;
    color: inherit;
    transform: none;
  }
}

/* Responsive mode must not depend on the browser's hover-capability report.
   Desktop device emulation often keeps (hover:hover) even at phone widths. */
@media (max-width: 1120px) {
  .ldcfc-user-profile-btn:hover,
  :root.dark .ldcfc-user-profile-btn:hover,
  :root[data-theme="dark"] .ldcfc-user-profile-btn:hover {
    background: rgba(2, 28, 54, 0.05) !important;
    color: #021c36 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-user-profile-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f1f5f9 !important;
  }

  .ldcfc-user-profile-btn:hover :is(.ldcfc-user-avatar-wrap, .ldcfc-user-avatar-img),
  .ldcfc-nav-dropdown-wrap:hover .ldcfc-caret-icon {
    transform: none !important;
    filter: none !important;
  }

  .ldcfc-nav-dropdown-wrap:hover .ldcfc-dropdown-menu {
    display: none;
  }

  .ldcfc-dropdown-trigger[aria-expanded="true"] + .ldcfc-dropdown-menu {
    display: flex !important;
  }
}

/* Accessible keyboard skip link */
.ldcfc-skip-link {
  position: absolute !important;
  top: -100px !important;
  left: 20px !important;
  background: #001a33 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  z-index: 2000 !important;
  border-radius: 4px !important;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transition: top 0.2s ease !important;
}

.ldcfc-skip-link:focus {
  top: 20px !important;
}

:root[data-theme="dark"] .ldcfc-skip-link {
  background: #e9c176 !important;
  color: #241700 !important;
}

/* Strict single-language enforcement across all pages */
html[lang="en"] .lang-km,
html[lang="en"] .lang-kh {
  display: none !important;
}

html[lang="km"] .lang-en,
html[lang="kh"] .lang-en {
  display: none !important;
}

/* Red-Blue Flashing Siren Border on Luxury Gold Button for Pending Member Approval */
@keyframes ldcfcGoldSirenFlash {
  0%, 100% {
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.85), 0 0 22px rgba(220, 38, 38, 0.5) !important;
    border-color: #ef4444 !important;
  }
  50% {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.85), 0 0 22px rgba(37, 99, 235, 0.5) !important;
    border-color: #3b82f6 !important;
  }
}

@keyframes ldcfcPulseRing {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.ldcfc-pending-siren-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  background: #f4cf78 !important;
  color: #021c36 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  border: 2px solid #ef4444 !important;
  animation: ldcfcGoldSirenFlash 1.2s infinite ease-in-out !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
  cursor: pointer !important;
  z-index: 10 !important;
  white-space: nowrap !important;
}

.ldcfc-pending-siren-btn:hover {
  background: #ffffff !important;
  color: #021c36 !important;
  transform: translateY(-1px) !important;
}

.ldcfc-siren-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 6px #dc2626;
  animation: ldcfcPulseRing 1s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

.ldcfc-siren-icon {
  font-size: 18px !important;
  animation: spin 3s linear infinite;
}

.ldcfc-nav-button {
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 6px 18px rgba(0, 26, 51, 0.08) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ldcfc-nav-button:hover,
.ldcfc-nav-button:focus-visible {
  border-color: #c4952f !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0, 26, 51, 0.14) !important;
  transform: translateY(-1px);
}

.ldcfc-nav-button:active,
.ldcfc-mobile-tool:active {
  transform: translateY(0) scale(0.98);
}

:root:is(.dark, [data-theme="dark"]) .ldcfc-nav-button:hover,
:root:is(.dark, [data-theme="dark"]) .ldcfc-nav-button:focus-visible {
  border-color: #f4cf78 !important;
  background: #24313b !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 1120px) {
  .ldcfc-nav-links {
    top: 70px;
    right: 12px;
    left: 12px;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(7, 42, 72, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 60px rgba(0, 26, 51, 0.2), 0 2px 8px rgba(0, 26, 51, 0.08);
    backdrop-filter: blur(22px);
  }

  .ldcfc-nav-links a {
    border: 0;
    border-radius: 11px;
    padding: 13px 14px;
    color: #526579;
    font-size: 13px !important;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .ldcfc-nav-links a:hover,
  .ldcfc-nav-links a.active {
    border: 0;
    background: #fff5d9;
    color: #7a5708;
    transform: translateX(3px);
  }

  .ldcfc-mobile-tools {
    gap: 10px;
    margin-top: 8px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(7, 42, 72, 0.1);
  }

  .ldcfc-mobile-tool {
    min-height: 50px;
    border: 1px solid rgba(7, 42, 72, 0.13);
    border-radius: 12px;
    background: #f8fbfd;
    color: #17324b;
    font: 700 13px/1.35 "Kantumruy Pro", Inter, sans-serif;
    box-shadow: 0 4px 12px rgba(0, 26, 51, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .ldcfc-mobile-tool:hover,
  .ldcfc-mobile-tool:focus-visible {
    border-color: #c4952f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 26, 51, 0.1);
    transform: translateY(-1px);
  }

  .ldcfc-mobile-tool .lang-flag {
    flex: 0 0 auto;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-nav-links {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 29, 46, 0.97);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-nav-links a {
    color: #c5d0da;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-nav-links a:hover,
  :root:is(.dark, [data-theme="dark"]) .ldcfc-nav-links a.active {
    background: rgba(244, 207, 120, 0.14);
    color: #f4cf78;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-mobile-tools {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-mobile-tool {
    border-color: rgba(255, 255, 255, 0.13);
    background: #192b3d;
    color: #e8ecef;
    box-shadow: none;
  }

  :root:is(.dark, [data-theme="dark"]) .ldcfc-mobile-tool:hover,
  :root:is(.dark, [data-theme="dark"]) .ldcfc-mobile-tool:focus-visible {
    border-color: #f4cf78;
    background: #243b50;
  }
}
