:root {
  --lm-bg: #f5f5f7;
  --lm-surface: #fcf8fb;
  --lm-surface-2: #ffffff;
  --lm-surface-3: #f0edef;
  --lm-text: #1b1b1d;
  --lm-muted: #414755;
  --lm-soft: #717786;
  --lm-line: rgba(193, 198, 215, 0.48);
  --lm-primary: #0058bc;
  --lm-primary-hover: #0070eb;
  --lm-radius-xl: 18px;
  --lm-radius-2xl: 24px;
  --lm-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --lm-shadow-pop: 0 20px 60px rgba(15, 23, 42, 0.14);
  --lm-container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--lm-bg);
  color: var(--lm-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #dcd9dc; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #c6c6cb; }

.font-display {
  font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.035em;
}

.lm-container {
  width: min(100% - 48px, var(--lm-container));
  margin-inline: auto;
}

.lm-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1050;
  height: 64px;
  background: rgba(252, 248, 251, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(193, 198, 215, 0.18);
}

.lm-topbar-inner {
  height: 64px;
  width: min(100% - 48px, var(--lm-container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-block {
  position: relative;
  flex: 0 0 auto;
}

.brand-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: var(--lm-text);
}

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eeeef1;
  color: var(--lm-muted);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.brand-button:hover .brand-toggle,
.brand-button[aria-expanded="true"] .brand-toggle {
  background: #e4e2e4;
  color: var(--lm-text);
}

.brand-button[aria-expanded="true"] .brand-toggle i {
  transform: rotate(180deg);
}

.brand-toggle i { transition: transform .2s ease; }

.lm-menu-popover,
.lm-filter-popover,
.lm-search-popover,
.lm-lang-popover {
  background: rgba(252, 248, 251, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(193, 198, 215, .48);
  box-shadow: var(--lm-shadow-pop);
}

.lm-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  border-radius: 20px;
  padding: 12px;
  display: none;
}

.lm-menu-popover.show { display: block; }

.menu-search {
  height: 44px;
  border-radius: 14px;
  background: rgba(246, 243, 245, .9);
  border: 1px solid rgba(193, 198, 215, .28);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px;
  margin-bottom: 8px;
}

.menu-search input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 14px;
}

.menu-link,
.community-switcher-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px;
  border-radius: 14px;
  transition: background .2s ease;
  color: var(--lm-text);
}

.menu-link:hover,
.community-switcher-item:hover { background: rgba(246, 243, 245, .9); }

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8e8eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lm-muted);
  flex: 0 0 auto;
}

.menu-link:hover .menu-icon { color: var(--lm-primary); background: rgba(0, 88, 188, .08); }

.menu-divider { border-top: 1px solid rgba(193, 198, 215, .25); margin: 8px 0 6px; }

.community-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.community-badge.dark { background: #1b1b1d; }
.community-badge.blue { background: #e9f1ff; color: var(--lm-primary); border: 1px solid rgba(0, 88, 188, .12); }

.nav-search-wrap {
  flex: 1 1 auto;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.nav-search-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lm-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(193, 198, 215, .38);
  padding: 0 16px;
  transition: border .2s ease, background .2s ease, box-shadow .2s ease;
}

.lm-search-box:focus-within {
  background: #fff;
  border-color: rgba(0, 88, 188, .42);
  box-shadow: 0 0 0 3px rgba(0, 88, 188, .08);
}

.lm-search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  color: var(--lm-text);
}

.lm-search-box input::placeholder { color: #7b8190; }

.search-submit {
  border: 0;
  background: transparent;
  color: var(--lm-primary);
  font-weight: 700;
  padding: 0;
}

.lm-search-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  border-radius: 18px;
  padding: 8px;
  z-index: 1080;
}

.lm-search-box:focus-within .lm-search-popover { display: block; }

.search-pop-title {
  padding: 8px 12px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lm-muted);
}

.search-suggestion {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--lm-text);
}

.search-suggestion:hover { background: rgba(246, 243, 245, .9); }

.suggestion-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 88, 188, .08);
  color: var(--lm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.btn-lm-outline,
.btn-lm-primary,
.btn-lm-chip {
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.btn-lm-outline {
  border: 1px solid rgba(193, 198, 215, .46);
  background: rgba(252, 248, 251, .78);
  color: var(--lm-text);
  padding: 10px 18px;
}

.btn-lm-outline:hover { background: #fff; border-color: rgba(113, 119, 134, .3); }

.btn-lm-primary {
  border: 1px solid var(--lm-primary);
  background: var(--lm-primary);
  color: #fff;
  padding: 10px 18px;
}

.btn-lm-primary:hover { background: var(--lm-primary-hover); border-color: var(--lm-primary-hover); color: #fff; }

.lm-main { padding-top: 104px; padding-bottom: 80px; }

.discovery-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 74px;
}

.discovery-title {
  font-size: clamp(42px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 26px;
}

.discovery-copy {
  color: #1f2a44;
  font-size: 18px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 50px;
}

.hero-search-shell {
  max-width: 680px;
  margin: 0 auto;
}

.filter-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-lm-chip {
  border: 1px solid rgba(193, 198, 215, .28);
  background: rgba(240, 237, 239, .78);
  color: #111827;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lm-chip:hover { background: #fff; }
.btn-lm-chip.active { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; }

.filter-wrap { position: relative; }

.lm-filter-popover {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(420px, calc(100vw - 48px));
  border-radius: 20px;
  padding: 24px;
  z-index: 1060;
  text-align: left;
}

.lm-filter-popover.show { display: block; }

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.filter-label {
  display: block;
  color: var(--lm-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.form-check-input:checked { background-color: var(--lm-primary); border-color: var(--lm-primary); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 88, 188, .14); border-color: rgba(0, 88, 188, .55); }

.filter-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(193, 198, 215, .25);
  padding-top: 18px;
  margin-top: 20px;
}

.lang-selector { position: relative; }
.lang-trigger {
  border: 0;
  background: transparent;
  color: var(--lm-muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.lang-trigger strong { color: var(--lm-text); }

.lm-lang-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 220px;
  max-height: 310px;
  overflow-y: auto;
  border-radius: 16px;
  padding: 10px;
  z-index: 1070;
}

.lm-lang-popover.show { display: block; }

.lang-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(193, 198, 215, .35);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, .8);
}
.lang-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }

.lang-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 700;
}
.lang-option:hover { background: rgba(246, 243, 245, .9); }
.lang-option.active { background: #d8e2ff; color: #004493; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.community-card {
  background: var(--lm-surface);
  border: 1px solid rgba(193, 198, 215, .22);
  border-radius: var(--lm-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lm-shadow-soft);
  border-color: rgba(0, 88, 188, .18);
}

.card-media {
  position: relative;
  overflow: hidden;
  height: 196px;
  background: var(--lm-surface-3);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.community-card:hover .card-media img { transform: scale(1.045); }

.member-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(252, 248, 251, .92);
  color: var(--lm-text);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-body-lm {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}

.category-pill {
  align-self: flex-start;
  border: 1px solid rgba(193, 198, 215, .28);
  background: rgba(246, 243, 245, .78);
  color: #182033;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.community-title {
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 12px;
}

.community-card:hover .community-title { color: var(--lm-primary); }

.community-description {
  color: #1f2a44;
  line-height: 1.52;
  margin-bottom: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-lm {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(193, 198, 215, .2);
}

.avatar-stack { display: flex; align-items: center; }
.avatar-stack img,
.avatar-stack .avatar-more {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--lm-surface);
  object-fit: cover;
  margin-left: -8px;
  background: var(--lm-surface-3);
}
.avatar-stack img:first-child { margin-left: 0; }
.avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--lm-muted);
  font-weight: 700;
}

.btn-explore {
  border: 1px solid rgba(193, 198, 215, .32);
  border-radius: 999px;
  background: transparent;
  color: var(--lm-text);
  font-weight: 800;
  padding: 10px 18px;
}
.btn-explore:hover { background: rgba(246, 243, 245, .92); color: var(--lm-primary); }

.lm-pagination {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.lm-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--lm-muted);
  font-weight: 700;
}
.lm-page-btn:hover { background: rgba(246, 243, 245, .9); }
.lm-page-btn.active { background: var(--lm-primary); color: #fff; }

.lm-footer {
  background: var(--lm-surface);
  border-top: 1px solid rgba(193, 198, 215, .18);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 72px;
}
.footer-title { font-weight: 800; font-size: 24px; margin-bottom: 18px; }
.footer-copy { color: var(--lm-muted); max-width: 340px; line-height: 1.6; }
.footer-heading { font-size: 13px; font-weight: 800; margin-bottom: 16px; }
.footer-link { display: block; color: var(--lm-muted); text-decoration: none; margin: 0 0 12px; }
.footer-link:hover { color: var(--lm-primary); }
.footer-bottom { border-top: 1px solid rgba(193, 198, 215, .18); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-bottom a, .footer-bottom span { font-size: 13px; color: var(--lm-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--lm-text); }

@media (max-width: 991.98px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-search-wrap { display: none; }
  .discovery-hero { margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .lm-container, .lm-topbar-inner { width: min(100% - 28px, var(--lm-container)); }
  .lm-topbar { height: 62px; }
  .lm-topbar-inner { height: 62px; gap: 12px; }
  .brand-logo { font-size: 22px; }
  .top-actions { gap: 8px; }
  .top-actions .btn-lm-primary { display: none; }
  .btn-lm-outline { padding: 9px 14px; }
  .lm-main { padding-top: 88px; padding-bottom: 56px; }
  .discovery-title { font-size: 42px; }
  .discovery-copy { font-size: 16px; margin-bottom: 34px; }
  .cards-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-media { height: 210px; }
  .filter-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-bottom { align-items: flex-start; flex-direction: column; }
  .lm-filter-popover { left: 50%; right: auto; transform: translateX(-50%); }
  .lm-menu-popover { width: min(320px, calc(100vw - 28px)); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 42px; }
}

.profile-menu form { margin: 0; }
.profile-menu form button { width: 100%; }

/* Logged-in top actions */
.lm-action-wrap {
    position: relative;
    flex: 0 0 auto;
}

.lm-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lm-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
}

    .lm-icon-btn:hover,
    .lm-icon-btn[aria-expanded="true"] {
        background: rgba(246, 243, 245, .95);
        color: var(--lm-text);
    }

    .lm-icon-btn i {
        font-size: 20px;
        line-height: 1;
    }

.lm-notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ba1a1a;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(252, 248, 251, .95);
}

.lm-avatar-btn {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(193, 198, 215, .55);
    border-radius: 999px;
    padding: 0;
    background: #fff;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease, transform .2s ease;
}

    .lm-avatar-btn:hover,
    .lm-avatar-btn[aria-expanded="true"] {
        opacity: .86;
        transform: translateY(-1px);
    }

    .lm-avatar-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.lm-user-popover {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(252, 248, 251, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(193, 198, 215, .48);
    border-radius: 20px;
    box-shadow: var(--lm-shadow-pop);
    overflow: hidden;
    z-index: 1200;
}

    .lm-user-popover.show {
        display: block;
    }

.lm-notifications-popover,
.lm-chat-popover {
    width: 360px;
}

.lm-profile-popover {
    width: 250px;
}

.popover-head {
    min-height: 58px;
    padding: 16px;
    border-bottom: 1px solid rgba(193, 198, 215, .24);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .popover-head h3 {
        margin: 0;
        font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        font-size: 18px;
        font-weight: 800;
        letter-spacing: -.02em;
        color: var(--lm-text);
    }

.popover-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

    .popover-list.compact {
        max-height: 330px;
    }

.notif-item,
.chat-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--lm-text);
    transition: background .2s ease;
}

    .notif-item:hover,
    .chat-item:hover {
        background: rgba(246, 243, 245, .95);
    }

    .notif-item img,
    .chat-item img {
        width: 40px;
        height: 40px;
        border-radius: 999px;
        object-fit: cover;
        flex: 0 0 auto;
    }

.notif-avatar-text {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(0, 88, 188, .1);
    color: var(--lm-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto;
}

    .notif-avatar-text.dark {
        background: #1b1b1d;
        color: #fff;
    }

    .notif-avatar-text.soft {
        background: var(--lm-surface-3);
        color: var(--lm-muted);
    }

.notif-body,
.chat-body {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
    color: var(--lm-text);
}

    .notif-body strong,
    .chat-body strong {
        font-weight: 800;
    }

    .notif-body small,
    .chat-body small {
        color: var(--lm-soft);
        font-size: 12px;
        margin-left: 6px;
    }

    .notif-body em,
    .chat-body em {
        display: block;
        color: var(--lm-muted);
        font-style: normal;
        font-size: 13px;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--lm-primary);
    margin-top: 8px;
    flex: 0 0 auto;
}

.chat-search {
    height: 42px;
    margin: 12px 16px 8px;
    padding: 0 12px;
    border: 1px solid rgba(193, 198, 215, .28);
    border-radius: 14px;
    background: rgba(246, 243, 245, .9);
    display: flex;
    align-items: center;
    gap: 9px;
}

    .chat-search input {
        width: 100%;
        border: 0;
        background: transparent;
        outline: 0;
        box-shadow: none;
        font-size: 14px;
        color: var(--lm-text);
    }

.profile-email {
    padding: 16px;
    border-bottom: 1px solid rgba(193, 198, 215, .24);
    font-size: 14px;
    font-weight: 800;
    color: var(--lm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

    .profile-menu button,
    .profile-menu a {
        width: 100%;
        border: 0;
        background: transparent;
        color: var(--lm-text);
        text-align: left;
        text-decoration: none;
        border-radius: 12px;
        padding: 10px 12px;
        font-size: 15px;
        line-height: 1.25;
    }

        .profile-menu button:hover,
        .profile-menu a:hover {
            background: rgba(246, 243, 245, .95);
        }

    .profile-menu .menu-divider {
        display: block;
        border-top: 1px solid rgba(193, 198, 215, .28);
        margin: 6px 0;
    }

    .profile-menu form {
        margin: 0;
    }

        .profile-menu form button {
            width: 100%;
        }

@media (max-width: 767.98px) {
    .lm-notifications-popover,
    .lm-chat-popover {
        width: min(360px, calc(100vw - 28px));
        right: -44px;
    }

    .lm-profile-popover {
        width: min(250px, calc(100vw - 28px));
    }

    .lm-icon-btn {
        width: 38px;
        height: 38px;
    }
}
/* Public community page */
.lm-main.community-main {
  padding-top: 64px;
  padding-bottom: 0;
}

.nav-search-permanent {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.community-public-page {
  min-height: calc(100vh - 64px);
}

.community-tabs-wrap {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(252, 248, 251, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(193, 198, 215, .18);
}

.community-tabs {
  height: 48px;
  display: flex;
  align-items: stretch;
  gap: 54px;
  overflow-x: auto;
  scrollbar-width: none;
}

.community-tabs::-webkit-scrollbar { display: none; }

.community-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #374151;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
  transition: color .18s ease;
}

.community-tab:hover,
.community-tab.active {
  color: var(--lm-primary);
}

.community-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--lm-primary);
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  padding-top: 28px;
  padding-bottom: 88px;
}

.community-content-col {
  min-width: 0;
}

.community-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.community-join-card,
.community-side-card,
.community-panel,
.post-composer-card,
.feed-post-card,
.course-card,
.member-row-card,
.level-progress-card,
.leaderboard-board-card {
  background: #fff;
  border: 1px solid rgba(193, 198, 215, .14);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .035);
}

.community-join-card {
  padding: 56px 48px;
  min-height: 360px;
}

.join-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(193, 198, 215, .18);
}

.join-card-head img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.join-card-head h2 {
  margin: 0;
  font-family: Geist, Inter, sans-serif;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 850;
}

.join-card-head p {
  margin: 6px 0 0;
  color: var(--lm-muted);
  line-height: 1.35;
}

.join-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(193, 198, 215, .18);
  text-align: center;
}

.join-card-stats strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.1;
}

.join-card-stats span {
  display: block;
  margin-top: 2px;
  color: #374151;
  font-size: 13px;
  line-height: 1.15;
}

.online-dot {
  color: #22c55e;
  font-size: 8px;
  vertical-align: middle;
  margin-right: 4px;
}

.community-join-btn {
  width: 100%;
  height: 42px;
  margin-top: 26px;
  border: 0;
  border-radius: 8px;
  background: var(--lm-primary);
  color: #fff;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.community-join-btn:hover {
  background: var(--lm-primary-hover);
  color: #fff;
}

.join-card-note {
  margin: 14px auto 0;
  max-width: 220px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--lm-muted);
}

.community-hero-card {
  position: relative;
  overflow: hidden;
  height: 380px;
  border-radius: 10px;
  background: var(--lm-surface-3);
}

.community-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.62) 100%);
}

.community-hero-copy {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 42px;
  color: #fff;
}

.community-hero-copy h1 {
  margin: 0 0 12px;
  font-family: Geist, Inter, sans-serif;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 900;
}

.community-hero-copy p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.community-gallery-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.gallery-thumb {
  width: 92px;
  height: 60px;
  border: 1px solid rgba(193, 198, 215, .38);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.gallery-thumb.active {
  border: 2px solid var(--lm-primary);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-info-strip {
  margin-top: 54px;
  min-height: 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(193, 198, 215, .18);
  border-radius: 12px;
}

.community-info-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #111827;
  font-weight: 600;
}

.community-info-strip i {
  color: #4b5563;
}

.community-info-strip .info-star {
  justify-content: flex-end;
}

.community-info-strip .info-star i {
  color: #b45309;
}

.about-panel {
  margin-top: 48px;
  padding: 48px;
  max-width: 100%;
}

.about-panel h2,
.community-panel h1 {
  margin: 0 0 28px;
  font-family: Geist, Inter, sans-serif;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.about-panel h3 {
  margin: 26px 0 16px;
  font-size: 14px;
  font-weight: 850;
}

.about-panel p,
.community-panel p {
  color: var(--lm-muted);
  line-height: 1.62;
}

.about-check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.about-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--lm-muted);
  line-height: 1.45;
}

.challenge-list i { color: #dc2626; }
.solution-list i { color: var(--lm-primary); }

.post-composer-card {
  min-height: 92px;
  padding: 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.composer-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}

.composer-placeholder {
  border: 0;
  background: transparent;
  text-align: left;
  color: #111827;
  font-size: 16px;
}

.composer-actions {
  display: flex;
  gap: 18px;
}

.composer-actions button {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
}

.feed-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

.feed-chip {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(240, 237, 239, .78);
  color: #374151;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feed-chip.active {
  background: var(--lm-primary);
  color: #fff;
}

.feed-list {
  display: grid;
  gap: 24px;
}

.feed-post-card {
  padding: 28px;
}

.post-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.post-author-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon { color: var(--lm-primary); }
.post-meta-small { color: var(--lm-muted); font-size: 13px; }
.pinned-label { margin-left: auto; color: var(--lm-primary); font-weight: 800; font-size: 13px; }

.post-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 24px;
  margin-top: 24px;
}

.post-body-grid.no-thumb { grid-template-columns: 1fr; }

.post-body-grid h2 {
  margin: 0 0 10px;
  font-family: Geist, Inter, sans-serif;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.035em;
}

.post-body-grid p {
  margin: 0;
  color: var(--lm-muted);
  line-height: 1.55;
}

.post-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.post-footer-row {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(193, 198, 215, .14);
  display: flex;
  align-items: center;
  gap: 26px;
  color: #374151;
}

.post-footer-row a {
  margin-left: auto;
  color: var(--lm-primary);
  font-weight: 700;
  text-decoration: none;
}

.classroom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.course-card {
  overflow: hidden;
}

.course-media {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card.locked .course-media img {
  filter: grayscale(1) brightness(.58);
}

.course-lock-overlay {
  position: absolute;
  inset: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-weight: 850;
  text-align: center;
}

.course-lock-overlay i { font-size: 25px; }
.course-body { padding: 26px; }
.course-body h2 { font-size: 20px; font-weight: 850; margin: 0 0 12px; letter-spacing: -.02em; }
.course-body p { min-height: 52px; color: var(--lm-muted); line-height: 1.45; margin: 0 0 20px; }
.course-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 12px; }
.course-progress { height: 8px; border-radius: 999px; background: #ece9ee; overflow: hidden; }
.course-progress span { display: block; height: 100%; background: var(--lm-primary); border-radius: inherit; }
.course-progress-row strong { font-size: 12px; color: var(--lm-muted); }

.members-list { display: grid; gap: 18px; }
.member-row-card {
  min-height: 106px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
}
.member-row-card img,
.member-initials {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}
.member-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ece9ee;
  color: #111827;
  font-weight: 800;
}
.member-row-body h2 { margin: 0 0 4px; font-size: 18px; font-weight: 750; }
.member-row-body p { margin: 0; color: #374151; line-height: 1.35; }
.member-chat-btn {
  border: 1px solid rgba(193, 198, 215, .45);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 850;
  padding: 8px 20px;
}

.level-progress-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 48px;
}
.level-avatar-wrap { position: relative; width: 132px; height: 132px; }
.level-avatar-wrap img { width: 132px; height: 132px; border-radius: 999px; object-fit: cover; border: 5px solid #0b74e5; filter: grayscale(1); }
.level-avatar-wrap span {
  position: absolute;
  right: 0;
  bottom: 12px;
  background: var(--lm-primary);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 850;
}
.level-main h1 { margin: 0 0 8px; font-size: 27px; font-weight: 850; letter-spacing: -.03em; }
.level-main p { color: var(--lm-muted); margin: 0 0 26px; }
.level-box-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.level-box {
  height: 76px;
  border-radius: 12px;
  background: #faf9fb;
  border: 1px solid rgba(193, 198, 215, .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8a909d;
  font-size: 11px;
}
.level-box.active { color: var(--lm-primary); background: #f5f8ff; border-color: rgba(0, 88, 188, .25); }
.level-box i { font-size: 20px; }
.level-box strong { font-size: 12px; color: #374151; }
.level-box span { font-size: 11px; }
.leader-updated { text-align: right; color: #8a909d; font-style: italic; margin: 48px 8px 18px; }
.leaderboards-grid-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.leaderboard-board-card { overflow: hidden; min-height: 340px; }
.leaderboard-board-card h2 { padding: 24px; margin: 0; font-size: 17px; font-weight: 850; border-bottom: 1px solid rgba(193, 198, 215, .15); }
.leaderboard-board-list { padding: 18px 24px; display: grid; gap: 18px; }
.leaderboard-board-row { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.board-rank { width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #8a909d; font-size: 13px; }
.board-rank.rank-1 { background: #d8e8ff; color: var(--lm-primary); }
.leaderboard-board-row img,
.board-avatar-text,
.leader-mini-item img,
.leader-avatar-text { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }
.board-avatar-text,
.leader-avatar-text { display: inline-flex; align-items: center; justify-content: center; background: #e5e2e8; color: #6b7280; font-size: 11px; font-weight: 800; }
.leaderboard-board-row strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.leaderboard-board-row span:last-child { color: var(--lm-primary); font-weight: 850; }

.leaderboard-mini-card {
  padding: 46px 48px;
}
.leaderboard-mini-card h3 { margin: 0 0 24px; font-size: 17px; font-weight: 850; }
.leader-mini-list { display: grid; gap: 18px; }
.leader-mini-item { display: grid; grid-template-columns: 24px 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.leader-mini-item .rank { color: #374151; }
.leader-mini-item .rank-1,
.leader-mini-item .rank-3 { color: #c2410c; }
.leader-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-mini-item strong { color: var(--lm-primary); }
.leaderboard-link { display: block; margin-top: 26px; text-align: center; color: var(--lm-primary); text-decoration: none; font-weight: 800; }

.community-pagination { margin-top: 52px; }
.maps-panel { padding: 64px; text-align: center; }
.maps-visual { width: 86px; height: 86px; margin: 0 auto 24px; border-radius: 24px; background: rgba(0, 88, 188, .1); color: var(--lm-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 42px; }
.maps-panel .community-join-btn { max-width: 220px; }

.lm-footer-compact { padding: 72px 0 78px; }
.compact-footer-bottom { align-items: center; }
.compact-footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.compact-footer-brand strong { font-size: 26px; }

@media (max-width: 1100px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-join-card { padding: 32px; min-height: auto; }
}

@media (max-width: 991.98px) {
  .community-tabs { gap: 34px; }
  .classroom-grid,
  .leaderboards-grid-main { grid-template-columns: 1fr; }
  .level-progress-card { grid-template-columns: 1fr; }
  .level-box-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .lm-main.community-main { padding-top: 62px; }
  .community-tabs-wrap { top: 62px; }
  .community-tabs { gap: 24px; }
  .community-layout { padding-top: 20px; gap: 24px; }
  .community-sidebar { grid-template-columns: 1fr; }
  .community-hero-card { height: 300px; }
  .community-hero-copy { left: 24px; right: 24px; bottom: 28px; }
  .community-hero-copy h1 { font-size: 38px; }
  .community-info-strip { grid-template-columns: 1fr 1fr; margin-top: 32px; padding: 16px; }
  .about-panel { padding: 28px; }
  .post-composer-card { grid-template-columns: 42px minmax(0, 1fr); }
  .composer-actions { grid-column: 2; }
  .post-body-grid { grid-template-columns: 1fr; }
  .post-thumb { width: 100%; height: 160px; }
  .member-row-card { grid-template-columns: 52px minmax(0, 1fr); }
  .member-chat-btn { grid-column: 2; justify-self: start; }
  .level-progress-card { padding: 28px; }
  .level-box-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Dynamic community selector additions */
.lm-menu-popover a.menu-link,
.lm-menu-popover a.community-switcher-item {
  text-decoration: none;
}
.menu-link-view-more { margin-top: 4px; }
.menu-empty-state {
  padding: 12px 10px 4px;
  color: var(--lm-muted);
  font-size: 14px;
  line-height: 1.4;
}
.empty-discovery-panel {
  margin: 54px auto 0;
  max-width: 520px;
  border: 1px solid rgba(193, 198, 215, .3);
  border-radius: var(--lm-radius-2xl);
  background: rgba(252, 248, 251, .86);
  box-shadow: var(--lm-shadow-soft);
  padding: 34px;
  text-align: center;
}
.empty-discovery-panel h2 { margin: 0 0 10px; font-size: 24px; font-weight: 850; }
.empty-discovery-panel p { color: var(--lm-muted); }

/* Temporary create community wizard */
.create-community-shell {
  padding-top: 0;
  padding-bottom: 80px;
}
.create-community-header {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}
.create-community-header h1 {
  margin: 14px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 850;
}
.create-community-header p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--lm-muted);
  font-size: 17px;
  line-height: 1.55;
}
.create-community-card {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.wizard-step-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 28px;
  border-radius: var(--lm-radius-2xl);
  background: var(--lm-surface);
  border: 1px solid rgba(193, 198, 215, .3);
  box-shadow: var(--lm-shadow-soft);
}
.wizard-step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0, 88, 188, .1);
  color: var(--lm-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
}
.wizard-step-content h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.02em;
}
.lm-form-control {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(193, 198, 215, .7);
  background: #fff;
}
.lm-form-control:focus {
  border-color: rgba(0, 88, 188, .55);
  box-shadow: 0 0 0 .2rem rgba(0, 88, 188, .1);
}
.create-community-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 0 0;
}
@media (max-width: 767.98px) {
  .create-community-shell { padding-top: 0; }
  .wizard-step-card { grid-template-columns: 1fr; padding: 22px; }
  .create-community-actions { justify-content: stretch; }
  .create-community-actions .btn { flex: 1; }
}

/* Community join/request access state */
.join-community-form {
  margin: 0;
}

.community-join-btn.is-disabled,
.community-join-btn:disabled {
  opacity: .72;
  cursor: not-allowed;
  filter: grayscale(.1);
}

.community-status-alert {
  margin: 0 0 24px;
  border-radius: 18px;
  border: 1px solid rgba(193, 198, 215, .42);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.owner-manage-page {
  padding-top: 32px;
  padding-bottom: 80px;
}
.owner-manage-card {
  background: var(--lm-surface-2);
  border: 1px solid rgba(193, 198, 215, .28);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--lm-shadow-soft);
}
.owner-manage-card h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  font-weight: 800;
  margin: 16px 0 12px;
}
.owner-manage-card p {
  max-width: 680px;
  color: var(--lm-muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}
.owner-manage-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.owner-manage-panel {
  background: var(--lm-surface);
  border: 1px solid rgba(193, 198, 215, .22);
  border-radius: 22px;
  padding: 24px;
}
.owner-manage-panel h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}
.owner-manage-panel p {
  color: var(--lm-muted);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 991.98px) {
  .owner-manage-card { flex-direction: column; }
  .owner-manage-grid { grid-template-columns: 1fr; }
}

/* Discovery card metadata and membership state */
.community-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -28px 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(193, 198, 215, .16);
  color: var(--lm-muted);
  font-size: 13px;
  font-weight: 700;
}

.community-card-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(193, 198, 215, .26);
  border-radius: 999px;
  background: rgba(246, 243, 245, .58);
  white-space: nowrap;
}

.community-card-meta-row i {
  color: var(--lm-soft);
  font-size: 13px;
}

.btn-explore.is-member {
  border-color: rgba(0, 88, 188, .22);
  background: rgba(0, 88, 188, .08);
  color: var(--lm-primary);
}

.btn-explore.is-owner {
  border-color: rgba(27, 27, 29, .18);
  background: #1b1b1d;
  color: #fff;
}

.btn-explore.is-owner:hover {
  color: #fff;
  background: #303032;
}

.btn-explore.is-pending {
  border-color: rgba(158, 61, 0, .24);
  background: rgba(255, 219, 204, .7);
  color: #7c2e00;
}

@media (max-width: 767.98px) {
  .community-card-meta-row {
    margin-top: -18px;
  }
}

/* Community request approval workspace */
.owner-manage-panel-wide {
  grid-column: span 3;
}
.manage-panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.request-count-pill {
  border-radius: 999px;
  background: rgba(0, 88, 188, .08);
  color: var(--lm-primary);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 12px;
  white-space: nowrap;
}
.empty-request-state {
  border: 1px dashed rgba(193, 198, 215, .62);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  color: var(--lm-muted);
  background: rgba(255,255,255,.58);
}
.empty-request-state i {
  font-size: 30px;
  color: var(--lm-primary);
}
.empty-request-state strong {
  color: var(--lm-text);
  font-size: 18px;
}
.join-request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.join-request-item {
  border: 1px solid rgba(193, 198, 215, .28);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.72);
}
.request-avatar {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1d;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}
.request-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.request-main strong {
  font-size: 16px;
  font-weight: 850;
  color: var(--lm-text);
}
.request-main span,
.request-main small {
  color: var(--lm-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.request-actions form {
  margin: 0;
}
@media (max-width: 991.98px) {
  .owner-manage-panel-wide { grid-column: auto; }
  .join-request-item { grid-template-columns: 46px minmax(0, 1fr); }
  .request-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 575.98px) {
  .manage-panel-title-row { flex-direction: column; }
  .request-actions { justify-content: stretch; }
  .request-actions form,
  .request-actions .btn { width: 100%; }
}
