/**
 * MOLA Community — design system (2026)
 * Aplicar en login e interior VIP sin excepción.
 */

:root {
  --mola-bg: #f5f5f3;
  --mola-surface: #ffffff;
  --mola-sidebar: #0d1f16;
  --mola-text: #0d1f16;
  --mola-text-secondary: #888880;
  --mola-accent: #1a8c5b;
  --mola-accent-hover: #0d5c3c;
  --mola-danger: #c0392b;
  --mola-success: #1a8c5b;
  --mola-warning: #b7791f;
  --mola-info: #1a6fa8;
  --mola-border: #e8e8e6;
  --mola-input-bg: #ffffff;
  --mola-font: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mola-radius-card: 12px;
  --mola-radius-input: 8px;
  --mola-radius-btn: 10px;
  --mola-radius-pill: 6px;
  --mola-gap-section: 32px;
  --mola-gap-grid: 16px;
  --mola-content-px: 48px;
  --mola-content-py: 40px;
  --mola-sidebar-w: 240px;
  --mola-topbar-h: 60px;
}

/* ── Base ── */
body.mola-community {
  margin: 0;
  min-height: 100vh;
  background: var(--mola-bg);
  color: var(--mola-text);
  font-family: var(--mola-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.mola-community *,
body.mola-community *::before,
body.mola-community *::after {
  box-sizing: border-box;
}

body.mola-community a {
  color: var(--mola-accent);
  text-decoration: none;
}

body.mola-community a:hover {
  color: var(--mola-accent-hover);
}

/* ── Tipografía ── */
.mola-page-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--mola-text);
  text-transform: none;
}

.mola-page-desc,
.mola-section-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mola-text-secondary);
}

.mola-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mola-text);
  line-height: 1.4;
}

/* ── Superficies ── */
.mola-card {
  background: var(--mola-surface);
  border: 1px solid var(--mola-border);
  border-radius: var(--mola-radius-card);
  box-shadow: none;
  padding: 24px;
}

/* ── Formularios ── */
.mola-field {
  margin-bottom: 20px;
}

.mola-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--mola-border);
  border-radius: var(--mola-radius-input);
  background: var(--mola-input-bg);
  color: var(--mola-text);
  font-family: var(--mola-font);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.mola-input::placeholder {
  color: var(--mola-text-secondary);
}

.mola-input:focus {
  outline: none;
  border-color: var(--mola-accent);
}

.mola-input-wrap {
  position: relative;
}

.mola-input-wrap .mola-input {
  padding-right: 44px;
}

.mola-input-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--mola-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.mola-input-toggle:hover {
  color: var(--mola-text);
}

/* ── Botones ── */
.mola-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--mola-radius-btn);
  font-family: var(--mola-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mola-btn--primary {
  width: 100%;
  background: var(--mola-accent);
  color: #fff;
}

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

.mola-btn--ghost {
  background: transparent;
  color: var(--mola-accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  font-weight: 500;
}

.mola-btn--ghost:hover {
  color: var(--mola-accent-hover);
}

.mola-btn--block {
  width: 100%;
}

/* ── Alertas inline ── */
.mola-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: none;
}

.mola-alert__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mola-alert__body {
  flex: 1;
  min-width: 0;
}

.mola-alert__title {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.mola-alert--error {
  border: 1px solid #f5bcbc;
  background: #fdf2f2;
  color: #7b1c1c;
}

.mola-alert--error .mola-alert__icon {
  color: #c0392b;
}

.mola-alert--success {
  border: 1px solid #9fd4b8;
  background: #e8f5ef;
  color: #0d5c3c;
}

.mola-alert--success .mola-alert__icon {
  color: #1a8c5b;
}

.mola-alert--warning {
  border: 1px solid #f6d88a;
  background: #fef9ee;
  color: #7a4f0d;
}

.mola-alert--warning .mola-alert__icon {
  color: #b7791f;
}

.mola-alert--info {
  border: 1px solid #93c4e8;
  background: #eff6fd;
  color: #0d3d6b;
}

.mola-alert--info .mola-alert__icon {
  color: #1a6fa8;
}

.mola-alert a {
  font-weight: 600;
  color: inherit;
}

.mola-alert__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: -2px -4px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #bbbbbb;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mola-alert__close:hover {
  color: #555555;
}

.mola-alert__action {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: var(--mola-radius-btn);
  background: var(--mola-accent);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mola-alert__action:hover {
  background: var(--mola-accent-hover);
  color: #fff !important;
}

.mola-alert__note {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.85;
}

/* ── Badges ── */
.mola-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--mola-radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* ── Login ── */
body.mola-community.mola-login-body {
  background: var(--mola-bg);
}

.mola-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: url('../../login/images/back.jpg') center center / cover no-repeat;
}

.mola-login-card {
  width: 100%;
  max-width: 440px;
  padding: 48px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--mola-border);
  box-shadow: none;
}

.mola-login-logo {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 0 auto 32px;
}

.mola-login-header {
  margin-bottom: 32px;
  text-align: center;
}

.mola-login-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.25;
  color: #0d1f16;
  text-transform: none;
}

.mola-login-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #888888;
}

/* Campos flotantes (login) */
.mola-float-field {
  position: relative;
  margin-bottom: 16px;
}

.mola-float-input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 22px 14px 8px;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  background: #fafafa;
  color: var(--mola-text);
  font-family: var(--mola-font);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mola-float-field--password .mola-float-input {
  padding-right: 44px;
}

.mola-float-input::placeholder {
  color: transparent;
}

.mola-float-input:focus {
  outline: none;
  border-color: #1a8c5b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 140, 91, 0.1);
}

.mola-float-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #888888;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, font-size 0.15s ease, color 0.15s ease;
  line-height: 1.2;
}

.mola-float-input:focus + .mola-float-label,
.mola-float-input:not(:placeholder-shown) + .mola-float-label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0d1f16;
}

.mola-float-input:focus + .mola-float-label {
  color: #1a8c5b;
}

.mola-input-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #bbbbbb;
  cursor: pointer;
  line-height: 0;
}

.mola-input-toggle:hover {
  color: #555555;
}

.mola-input-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mola-input-toggle .mola-icon-eye-off {
  display: none;
}

.mola-input-toggle.is-visible .mola-icon-eye {
  display: none;
}

.mola-input-toggle.is-visible .mola-icon-eye-off {
  display: block;
}

.mola-btn--login {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: #0d1f16;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.mola-btn--login:hover {
  background: #1a8c5b;
  color: #ffffff;
}

.mola-login-footer-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #888888;
  text-decoration: none;
}

.mola-login-footer-link:hover {
  color: #0d1f16;
  text-decoration: underline;
}

.mola-login-form.is-recover .mola-field--password,
.mola-login-form.is-recover .mola-login-footer-link {
  display: none;
}

@media (max-width: 768px) {
  .mola-login-card {
    padding: 40px 28px;
  }
}

body.nav-md {
  font-family: var(--mola-font);
}

body.nav-md .right_col,
body.nav-md .top_nav.mola-topbar,
body.nav-md .dropdown-menu {
  font-family: var(--mola-font);
}

/* ── Sidebar (interior VIP) ── */
.nav-md .container.body .col-md-3.left_col.mola-sidebar,
.nav-md .container.body .col-md-3.left_col.mola-sidebar .left_col.scroll-view {
  width: var(--mola-sidebar-w);
  background: #0d1f16 !important;
  border-right: none !important;
  padding: 24px 0 0;
}

@media (min-width: 769px) {
  .nav-md .container.body .col-md-3.left_col.mola-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    z-index: 500;
  }

  .nav-md .container.body .col-md-3.left_col.mola-sidebar .left_col.scroll-view {
    height: 100%;
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.nav-md .container.body .right_col {
  margin-left: var(--mola-sidebar-w);
}

.nav-md .mola-sidebar .nav_title {
  width: 100%;
  height: auto;
  float: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mola-sidebar__brand {
  padding: 0 24px 24px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mola-sidebar__brand .site_title {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mola-sidebar__brand .site_title img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.mola-sidebar .menu_section {
  margin: 0;
}

.mola-sidebar__section-label,
.mola-sidebar .menu_section > h3 {
  margin: 0;
  padding: 16px 24px 8px;
  font-family: var(--mola-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.3;
}

.mola-sidebar .nav.side-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mola-sidebar .nav.side-menu > li {
  margin: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.mola-sidebar .nav.side-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 10px 24px !important;
  border-radius: 0 !important;
  font-family: var(--mola-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.mola-sidebar .nav.side-menu > li > a span {
  flex: 1;
  min-width: 0;
}

.mola-sidebar .nav.side-menu > li > a .fa {
  width: 18px;
  min-width: 18px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: color 0.15s ease;
}

.mola-sidebar .nav.side-menu > li > a:hover,
.mola-sidebar .nav.side-menu > li > a:focus {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
}

.mola-sidebar .nav.side-menu > li > a:hover .fa,
.mola-sidebar .nav.side-menu > li > a:focus .fa {
  color: rgba(255, 255, 255, 0.85);
}

.mola-sidebar .nav.side-menu > li.current-page,
.mola-sidebar .nav.side-menu > li.active {
  border-right: none !important;
  background: rgba(26, 140, 91, 0.15) !important;
  box-shadow: none !important;
}

.mola-sidebar .nav.side-menu > li.current-page > a,
.mola-sidebar .nav.side-menu > li.active > a {
  padding-left: 21px !important;
  border-left: 3px solid #1a8c5b;
  color: #ffffff !important;
  font-weight: 500;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.mola-sidebar .nav.side-menu > li.current-page > a .fa,
.mola-sidebar .nav.side-menu > li.active > a .fa {
  color: #ffffff;
}

.mola-sidebar .nav.side-menu > li.current-page > a:hover,
.mola-sidebar .nav.side-menu > li.active > a:hover {
  background: rgba(26, 140, 91, 0.15) !important;
  color: #ffffff !important;
}

/* ── Topbar ── */
.main_container .top_nav.mola-topbar {
  display: block;
  margin-left: var(--mola-sidebar-w);
  width: calc(100% - var(--mola-sidebar-w));
  max-width: calc(100% - var(--mola-sidebar-w));
  box-sizing: border-box;
  height: var(--mola-topbar-h);
  min-height: var(--mola-topbar-h);
  background: #ffffff !important;
  border-bottom: 1px solid #e8e8e6;
  box-shadow: none !important;
  position: relative;
  z-index: 900;
  overflow: visible;
}

.mola-topbar .nav_menu.mola-topbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  position: relative;
  float: none !important;
  width: 100%;
  height: var(--mola-topbar-h);
  margin: 0 !important;
  padding: 0 24px;
  background: #ffffff !important;
  border: none !important;
  overflow: visible;
}

.mola-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.mola-topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  color: #0d1f16;
  text-decoration: none;
}

.mola-topbar__logo {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 0;
  text-decoration: none;
}

.mola-topbar__logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
}

.mola-topbar__menu-toggle:hover {
  color: #1a8c5b;
}

.mola-topbar__title {
  margin: 0;
  font-family: var(--mola-font);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
  color: #0d1f16;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mola-topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: end;
  min-width: max-content;
}

.mola-topbar__user {
  position: relative;
}

.mola-topbar__user.open > .mola-topbar__menu,
.mola-topbar__user .dropdown-menu,
.mola-topbar__menu {
  right: 0;
  left: auto !important;
  float: none;
  transform-origin: top right;
  z-index: 10010;
}

.mola-topbar__user.open > .mola-topbar__menu {
  display: block;
}

.mola-topbar__user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 4px 12px 4px 4px;
  border: 1px solid #e8e8e6;
  border-radius: 999px;
  background: #fafafa !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}

.mola-topbar__user-toggle:hover,
.mola-topbar__user.open > .mola-topbar__user-toggle {
  border-color: #c8e6d4;
  background: #f0f7f4 !important;
}

.mola-topbar__user-toggle::after {
  display: none !important;
}

.mola-topbar__user-toggle .fa-angle-down {
  display: none !important;
}

.mola-topbar__caret {
  flex-shrink: 0;
  font-size: 11px;
  color: #888888;
  transition: transform 0.15s ease;
}

.mola-topbar__user.open > .mola-topbar__user-toggle .mola-topbar__caret {
  transform: rotate(180deg);
}

.mola-topbar__avatar {
  display: block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #e8e8e6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f3;
}

.mola-topbar__user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  max-width: 180px;
}

.mola-topbar__name {
  display: block;
  max-width: 100%;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #0d1f16 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mola-topbar__role {
  display: block;
  font-family: var(--mola-font);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: #888888;
  white-space: nowrap;
}

.mola-topbar__user-toggle:hover .mola-topbar__name {
  color: #0d1f16 !important;
}

.mola-topbar__messages {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #888888;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.mola-topbar__messages .fa {
  font-size: 20px;
  line-height: 1;
}

.mola-topbar__messages:hover {
  color: #0d1f16;
}

.mola-topbar__badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  background: #1a8c5b;
  color: #ffffff;
  font-family: var(--mola-font);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.mola-topbar__menu {
  margin-top: 8px;
  padding: 6px 0;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  box-shadow: none;
  min-width: 200px;
}

.mola-topbar__menu > li > a {
  padding: 10px 16px;
  font-family: var(--mola-font);
  font-size: 14px;
  color: #0d1f16;
}

.mola-topbar__menu > li > a:hover {
  background: #f5f5f3;
  color: #0d1f16;
}

.mola-topbar .nav.toggle {
  display: none;
}

.top_nav.mola-topbar .navbar-nav,
.top_nav.mola-topbar .navbar-right {
  float: none;
  margin: 0;
}

/* ── Main content area ── */
.nav-md .right_col.mola-content,
.nav-md .right_col {
  background: var(--mola-bg) !important;
  padding: var(--mola-content-py) var(--mola-content-px) !important;
  float: none;
  margin-left: var(--mola-sidebar-w);
  width: calc(100% - var(--mola-sidebar-w));
  max-width: calc(100% - var(--mola-sidebar-w));
  box-sizing: border-box;
}

.mola-content .tile_count {
  display: none;
}

.mola-section-title {
  margin: 0 0 20px;
  font-family: var(--mola-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--mola-text);
  text-transform: none;
}

/* ── Directory search ── */
.mola-directory-search {
  margin-bottom: 24px;
}

.mola-directory-search__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mola-search-field {
  position: relative;
  flex: 1 1 220px;
  min-width: 200px;
}

.mola-search-field .fa-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #888888;
  pointer-events: none;
}

.mola-search-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  background: #fafafa;
  color: var(--mola-text);
  font-family: var(--mola-font);
  font-size: 14px;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.mola-search-input:focus {
  outline: none;
  border-color: #1a8c5b;
  background: #ffffff;
}

.mola-filter-select {
  flex: 1 1 160px;
  min-width: 140px;
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  color: var(--mola-text);
  font-family: var(--mola-font);
  font-size: 13px;
  box-shadow: none;
}

.mola-filter-select:focus {
  outline: none;
  border-color: #1a8c5b;
  background-color: #ffffff;
}

.mola-btn--search {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: #0d1f16;
  color: #ffffff;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mola-btn--search:hover {
  background: #1a8c5b;
  color: #ffffff;
}

/* ── Member cards (directory) ── */
.mola-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mola-member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.mola-member-card:hover {
  border-color: #1a8c5b;
  color: inherit;
}

.mola-member-card__avatar,
.mola-status-post__avatar {
  display: block;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
}

.mola-member-card__avatar {
  width: 44px;
  height: 44px;
}

.mola-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0ef !important;
}

.mola-avatar-placeholder__initials {
  font-family: var(--mola-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #0d1f16;
}

.mola-member-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mola-member-card__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #0d1f16;
}

.mola-member-card__meta {
  font-size: 13px;
  line-height: 1.4;
  color: #888888;
}

.mola-directory-results__title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mola-text-secondary);
}

.mola-content .btpagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mola-content .btpagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--mola-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--mola-text);
  font-size: 13px;
  text-decoration: none;
}

.mola-content .btpagination a.active,
.mola-content .btpagination a:hover {
  border-color: #1a8c5b;
  color: #1a8c5b;
}

/* ── Status feed (home) ── */
.mola-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.mola-home-main {
  min-width: 0;
}

.mola-home-sidebar {
  width: 300px;
  min-width: 0;
}

.mola-compose-card {
  margin-bottom: 24px;
  padding: 20px 24px;
}

.mola-compose-form {
  display: flex;
  flex-direction: column;
}

.mola-compose-input {
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #0d1f16;
  font-family: var(--mola-font);
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  box-shadow: none;
  outline: none;
}

.mola-compose-input::placeholder {
  color: #bbbbbb;
}

.mola-compose-input:focus {
  outline: none;
}

.mola-compose-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0ef;
}

.mola-compose-submit {
  height: 36px;
  padding: 0 20px;
  margin-left: auto;
  border: none;
  border-radius: 8px;
  background: #0d1f16;
  color: #ffffff;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mola-compose-submit:hover {
  background: #1a8c5b;
}

.mola-feed-section {
  margin-bottom: 24px;
}

.mola-feed-title,
.mola-news-card__title {
  margin: 0 0 16px;
  font-family: var(--mola-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #0d1f16;
}

.mola-news-card {
  padding: 20px 24px;
}

.mola-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mola-news-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0ef;
}

.mola-news-item:first-child {
  padding-top: 0;
}

.mola-news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.mola-news-item__title {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #0d1f16;
}

.mola-news-item__excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #888888;
}

.mola-news-item__meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #bbbbbb;
}

.mola-news-empty {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #888888;
}

.mola-status-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mola-status-post {
  position: relative;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.mola-status-post:last-child {
  margin-bottom: 0;
}

.mola-status-post__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.mola-status-post__head--solo {
  justify-content: flex-end;
}

.mola-status-post__avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.mola-status-post .mola-avatar-placeholder {
  background: #e8f5ef !important;
}

.mola-status-post .mola-avatar-placeholder__initials {
  font-size: 13px;
  font-weight: 600;
  color: #0d5c3c;
}

.mola-status-post__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #0d1f16;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mola-status-post__name:hover {
  color: #1a8c5b;
}

.mola-status-post__time {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #bbbbbb;
  white-space: nowrap;
}

.mola-status-post__body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #444444;
  word-break: break-word;
}

.mola-status-post__delete {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #888888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mola-status-post__delete:hover {
  color: #c0392b;
}

/* Neutralize legacy Gentelella panels inside mola-content */
.mola-content .x_panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.mola-content .x_title {
  display: none;
}

.mola-content .x_content {
  padding: 0 !important;
  border: none !important;
}

/* ── Toast notifications ── */
.mola-toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;
}

.mola-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 380px;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  overflow: hidden;
}

.mola-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mola-toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.mola-toast--success { border-left: 4px solid #1a8c5b; }
.mola-toast--error { border-left: 4px solid #c0392b; }
.mola-toast--warning { border-left: 4px solid #b7791f; }
.mola-toast--info { border-left: 4px solid #1a6fa8; }

.mola-toast--success .mola-toast__icon { color: #1a8c5b; }
.mola-toast--error .mola-toast__icon { color: #c0392b; }
.mola-toast--warning .mola-toast__icon { color: #b7791f; }
.mola-toast--info .mola-toast__icon { color: #1a6fa8; }

.mola-toast__icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 1px;
}

.mola-toast__content {
  flex: 1;
  min-width: 0;
  padding-right: 16px;
}

.mola-toast__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #0d1f16;
}

.mola-toast__message {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #888888;
}

.mola-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #bbbbbb;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.mola-toast__close:hover {
  color: #555555;
}

.mola-toast__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left center;
  animation-name: mola-toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.mola-toast--success .mola-toast__progress { color: #1a8c5b; }
.mola-toast--error .mola-toast__progress { color: #c0392b; }
.mola-toast--warning .mola-toast__progress { color: #b7791f; }
.mola-toast--info .mola-toast__progress { color: #1a6fa8; }

@keyframes mola-toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ── Confirm dialog (MolaUI) ── */
body.mola-confirm-open {
  overflow: hidden;
}

.mola-confirm {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mola-confirm.is-visible {
  opacity: 1;
}

.mola-confirm.is-leaving {
  opacity: 0;
}

.mola-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 22, 0.45);
}

.mola-confirm__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(13, 31, 22, 0.18);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
}

.mola-confirm.is-visible .mola-confirm__panel {
  transform: translateY(0) scale(1);
}

.mola-confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #b7791f;
  background: #fff8eb;
}

.mola-confirm__panel--danger .mola-confirm__icon {
  color: #c0392b;
  background: #fdecea;
}

.mola-confirm__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0d1f16;
}

.mola-confirm__message {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.mola-confirm__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mola-btn--confirm {
  min-width: 110px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mola-btn--confirm-warning {
  background: #b7791f;
  color: #fff;
}

.mola-btn--confirm-warning:hover {
  background: #9a6518;
}

.mola-btn--confirm-danger {
  background: #c0392b;
  color: #fff;
}

.mola-btn--confirm-danger:hover {
  background: #a93226;
}

/* ── Loader / spinner ── */
.loader.mola-loader,
.mola-loader {
  display: none;
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 10px 14px;
  border: 1px solid #e8e8e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.loader.mola-loader.is-visible,
.mola-loader.is-visible {
  display: flex;
}

.loader.mola-loader[hidden],
.mola-loader[hidden] {
  display: none !important;
}

.mola-loader__inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mola-loader__label {
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 500;
  color: #888888;
}

.mola-spinner {
  display: block;
  flex-shrink: 0;
  animation: mola-spin 0.8s linear infinite;
}

.mola-spinner__arc {
  transform-origin: center;
}

@keyframes mola-spin {
  to { transform: rotate(360deg); }
}

/* ── Skeleton loaders ── */
@keyframes mola-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mola-skeleton {
  background: linear-gradient(90deg, #f0f0ef 25%, #e8e8e6 50%, #f0f0ef 75%);
  background-size: 200% 100%;
  animation: mola-shimmer 1.4s infinite;
  border-radius: 6px;
}

.mola-skeleton--circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mola-skeleton--circle-sm {
  width: 36px;
  height: 36px;
}

.mola-skeleton--line {
  height: 12px;
  margin-bottom: 8px;
}

.mola-skeleton--line:last-child {
  margin-bottom: 0;
}

.mola-skeleton--w100 { width: 100%; }
.mola-skeleton--w85 { width: 85%; }
.mola-skeleton--w70 { width: 70%; }
.mola-skeleton--w45 { width: 45%; }
.mola-skeleton--w35 { width: 35%; }
.mola-skeleton--w25 { width: 25%; }

.mola-skeleton-lines {
  flex: 1;
  min-width: 0;
}

.mola-skeleton-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.mola-skeleton-post {
  padding: 20px;
}

.mola-skeleton-post__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.mola-member-grid .mola-skeleton-card,
.mola-status-feed .mola-skeleton-post {
  margin: 0;
}

/* ── Empty states ── */
.mola-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.mola-member-grid > .mola-empty,
.mola-status-feed > .mola-empty {
  grid-column: 1 / -1;
}

.mola-empty__icon {
  display: flex;
  color: #d0d0ce;
}

.mola-empty__title {
  margin: 16px 0 0;
  font-family: var(--mola-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #888888;
}

.mola-empty__subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #bbbbbb;
}

.mola-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  background: transparent;
  color: #0d1f16;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mola-empty__cta:hover {
  border-color: #1a8c5b;
  color: #1a8c5b;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤768 | Tablet 769–1024 | Desktop ≥1025
   ══════════════════════════════════════════════════════ */

body.nav-md,
body.mola-community {
  overflow-x: clip;
}

body.nav-md .container.body,
body.nav-md .main_container {
  width: 100%;
  max-width: 100%;
}

body.nav-md img,
body.nav-md video,
body.nav-md iframe {
  max-width: 100%;
  height: auto;
}

body.nav-md .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --mola-sidebar-w: 200px;
    --mola-content-px: 24px;
    --mola-content-py: 32px;
  }

  body.nav-md .container.body .col-md-3.left_col.mola-sidebar {
    display: block !important;
  }

  body.nav-md .container.body .right_col {
    margin-left: var(--mola-sidebar-w) !important;
    width: calc(100% - var(--mola-sidebar-w)) !important;
    max-width: calc(100% - var(--mola-sidebar-w)) !important;
    padding: var(--mola-content-py) var(--mola-content-px) !important;
  }

  body.nav-md .container.body .top_nav.mola-topbar {
    margin-left: var(--mola-sidebar-w) !important;
    width: calc(100% - var(--mola-sidebar-w)) !important;
    max-width: calc(100% - var(--mola-sidebar-w)) !important;
  }

  .mola-topbar .nav_menu.mola-topbar__inner {
    padding: 0 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --mola-sidebar-w: 0px;
    --mola-topbar-h: 56px;
    --mola-content-px: 16px;
    --mola-content-py: 20px;
  }

  body.nav-md .container.body .col-md-3.left_col.mola-sidebar {
    display: block !important;
  }

  body.nav-md .container.body .col-md-3.left_col.mola-sidebar,
  body.nav-md .container.body .col-md-3.left_col.mola-sidebar .left_col.scroll-view {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 280px !important;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.mola-nav-open.nav-md .container.body .col-md-3.left_col.mola-sidebar,
  body.mola-nav-open.nav-md .container.body .col-md-3.left_col.mola-sidebar .left_col.scroll-view {
    transform: translateX(0);
  }

  .mola-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.4);
  }

  .mola-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .nav-md .container.body .right_col,
  .nav-md .right_col,
  .nav-md .right_col.mola-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: var(--mola-content-py) var(--mola-content-px) !important;
  }

  .main_container .top_nav.mola-topbar {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mola-topbar .nav_menu.mola-topbar__inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 12px;
  }

  .mola-topbar__menu-toggle {
    display: flex;
  }

  .mola-topbar__title {
    display: none;
  }

  .mola-topbar__logo {
    display: block;
    justify-self: center;
  }

  .mola-topbar__user-info {
    max-width: 120px;
  }

  .mola-topbar__role {
    display: none;
  }

  .mola-topbar__user-toggle {
    padding: 3px 8px 3px 3px;
  }

  .mola-topbar__user-toggle .mola-topbar__caret {
    display: none;
  }

  .mola-member-grid {
    grid-template-columns: 1fr;
  }

  .mola-directory-search__form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mola-search-field,
  .mola-filter-select,
  .mola-btn--search {
    width: 100%;
    flex: 1 1 auto;
  }

  .mola-filter-select,
  .mola-search-input,
  .mola-btn--search {
    min-height: 44px;
  }

  .mola-toast-stack {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .mola-toast {
    min-width: 0;
    max-width: none;
    width: auto;
  }

  .loader.mola-loader,
  .mola-loader {
    top: 68px;
    right: 16px;
  }

  .mola-sidebar .nav.side-menu > li > a {
    min-height: 44px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .mola-content .btpagination a,
  .mola-topbar__menu-toggle,
  .mola-status-post__delete,
  .mola-toast__close,
  .mola-alert__close {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-md .right_col .row {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-md .right_col .row > [class*="col-"] {
    max-width: 100%;
  }

  .mola-home-layout {
    grid-template-columns: 1fr;
  }

  .mola-home-sidebar {
    width: 100%;
  }

  .mola-profile-layout {
    grid-template-columns: 1fr;
  }

  .mola-profile-sidebar {
    width: 100%;
  }
}

/* ── Member profile ── */
.mola-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e8e8e6;
}

.mola-profile-header__avatar {
  display: block;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px #e8e8e6;
}

.mola-profile-header__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5ef !important;
}

.mola-profile-header__initials {
  font-family: var(--mola-font);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: #0d5c3c;
}

.mola-profile-header__body {
  flex: 1;
  min-width: 0;
}

.mola-profile-header__name {
  margin: 0 0 8px;
  font-family: var(--mola-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #0d1f16;
  text-transform: none;
}

.mola-profile-header__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.8;
  color: #888888;
}

.mola-profile-message-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  background: #ffffff;
  color: #0d1f16;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.mola-profile-message-btn:hover {
  border-color: #0d1f16;
  color: #0d1f16;
  text-decoration: none;
}

.mola-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.mola-profile-main,
.mola-profile-sidebar {
  min-width: 0;
}

.mola-profile-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mola-profile-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mola-profile-card {
  padding: 24px;
}

.mola-profile-card__title {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0ef;
  font-family: var(--mola-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #0d1f16;
}

.mola-profile-fields {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.mola-profile-fields__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888888;
}

.mola-profile-fields__value {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #0d1f16;
  word-break: break-word;
}

.mola-profile-fields__value .privacy {
  margin-left: 6px;
  color: #888888;
  cursor: pointer;
}

.mola-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.mola-profile-badge--active {
  border: 1px solid #9fd4b8;
  background: #e8f5ef;
  color: #0d5c3c;
}

.mola-profile-badge--inactive {
  border: 1px solid #f5bcbc;
  background: #fdf2f2;
  color: #7b1c1c;
}

.mola-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.mola-profile-tag {
  display: inline-flex;
  align-items: center;
  margin: 4px 4px 4px 0;
  padding: 4px 12px;
  border-radius: 6px;
  background: #f0f7f4;
  color: #0d5c3c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.mola-profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mola-profile-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f3;
  color: #555555;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.mola-profile-social__link .fa {
  font-size: 16px;
  line-height: 1;
}

.mola-profile-social__link:hover {
  background: #e8f5ef;
  color: #0d5c3c;
  text-decoration: none;
}

.mola-profile-empty {
  margin: 0;
  font-size: 14px;
  color: #888888;
}

.mola-profile-config {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mola-profile-config__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0ef;
  font-size: 14px;
  color: #0d1f16;
}

.mola-profile-config__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mola-profile-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a8c5b;
  font-weight: 600;
  text-decoration: none;
}

.mola-profile-edit-link:hover {
  color: #0d5c3c;
  text-decoration: none;
}

.mola-profile-comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mola-profile-comment-input {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  font-family: var(--mola-font);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.mola-profile-save-btn {
  align-self: flex-start;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: #0d1f16;
  color: #ffffff;
  font-family: var(--mola-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mola-profile-save-btn:hover {
  background: #1a8c5b;
}

.mola-profile .mola-status-feed {
  gap: 12px;
}

.mola-profile .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mola-profile .tile_count {
  display: none;
}

.mola-profile ul.profilelist {
  display: none;
}


/* ── Database admin ───────────────────────────────────────────── */

.mola-database {
  padding-bottom: 32px;
}

.mola-db-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mola-db-head__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  color: #0d1f16;
  letter-spacing: -0.02em;
}

.mola-db-head__subtitle {
  margin: 0;
  font-size: 14px;
  color: #888888;
}

.mola-db-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.mola-db-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.mola-db-stat__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888888;
}

.mola-db-stat__value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: #0d1f16;
}

.mola-db-stat__value--active {
  color: #0d5c3c;
}

.mola-db-stat__value--inactive {
  color: #7b1c1c;
}

.mola-db-stat__hint {
  font-size: 12px;
  color: #aaaaaa;
}

.mola-db-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mola-db-badge--vip {
  background: linear-gradient(135deg, #fff4d6, #ffe8a3);
  color: #8a6200;
  border: 1px solid #f0d080;
}

.mola-db-badge--muted {
  background: #f5f5f3;
  color: #888888;
  border: 1px solid #e8e8e6;
}

.mola-db-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.mola-db-chart-card {
  padding: 20px;
  min-height: 280px;
}

.mola-db-chart-card__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0d1f16;
}

.mola-db-chart-card canvas {
  max-height: 220px;
}

.mola-db-filters-card {
  padding: 20px;
  margin-bottom: 20px;
}

.mola-db-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mola-db-filters__search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 240px;
  min-width: 200px;
  padding: 0 14px;
  height: 42px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  background: #fafafa;
}

.mola-db-filters__search .fa {
  color: #888888;
  font-size: 14px;
}

.mola-db-filters__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--mola-font);
  font-size: 14px;
  outline: none;
}

.mola-db-filters__reset {
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  text-decoration: none;
}

.mola-db-filters__reset:hover {
  color: #0d5c3c;
  text-decoration: none;
}

.mola-db-table-card {
  padding: 20px;
  overflow: hidden;
}

.mola-db-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mola-db-table-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0d1f16;
}

.mola-db-table-card__count {
  font-size: 13px;
  color: #888888;
}

.mola-db-table__name {
  font-weight: 600;
  color: #1a8c5b;
  text-decoration: none;
}

.mola-db-table__name:hover {
  color: #0d5c3c;
  text-decoration: underline;
}

.mola-db-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #c0392b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mola-db-delete-btn:hover:not(:disabled) {
  color: #a93226;
  background: #fdecea;
}

.mola-db-delete-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mola-db-table thead th {
  padding: 12px 14px !important;
  border-bottom: 2px solid #e8e8e6 !important;
  background: #fafafa !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #555555 !important;
}

.mola-db-table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #f0f0ef !important;
  font-size: 13px;
  color: #0d1f16;
  vertical-align: middle !important;
}

.mola-db-table tbody tr:hover td {
  background: #f8fbf9 !important;
}

.mola-db-dt-top,
.mola-db-dt-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mola-db-dt-bottom {
  margin-top: 12px;
  margin-bottom: 0;
}

.mola-db-table-card .dataTables_filter input,
.mola-db-table-card .dataTables_length select {
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--mola-font);
  font-size: 13px;
}

.mola-db-table-card .dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  margin: 0 2px;
  padding: 4px 10px !important;
}

.mola-db-table-card .dataTables_paginate .paginate_button.current {
  background: #0d1f16 !important;
  border-color: #0d1f16 !important;
  color: #fff !important;
}

body.mola-db-modal-open {
  overflow: hidden;
}

.mola-db-modal[hidden] {
  display: none !important;
}

.mola-db-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mola-db-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 22, 0.45);
}

.mola-db-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(90vh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(13, 31, 22, 0.18);
}

.mola-db-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0ef;
}

.mola-db-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0d1f16;
}

.mola-db-modal__close {
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #888888;
  cursor: pointer;
}

.mola-db-export-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.mola-db-export-formats {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mola-db-export-formats legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888888;
}

.mola-db-format-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e8e8e6;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.mola-db-format-option:has(input:checked) {
  border-color: #1a8c5b;
  background: #e8f5ef;
  color: #0d5c3c;
}

.mola-db-export-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f7f4;
  font-size: 13px;
  color: #0d5c3c;
}

.mola-db-export-columns {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mola-db-export-group {
  border: 1px solid #f0f0ef;
  border-radius: 10px;
  overflow: hidden;
}

.mola-db-export-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fafafa;
}

.mola-db-export-group__head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0d1f16;
}

.mola-db-export-group__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mola-db-export-group__toggle {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #1a8c5b;
  cursor: pointer;
  padding: 0;
}

.mola-db-export-group__toggle--clear {
  color: #888888;
}

.mola-db-export-group__toggle--clear:hover {
  color: #c0392b;
}

.mola-db-export-group__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 12px 14px;
}

.mola-db-export-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
}

.mola-db-export-check input {
  margin-top: 3px;
}

.mola-db-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

@media (max-width: 1024px) {
  .mola-db-stats,
  .mola-db-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mola-db-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mola-db-stats,
  .mola-db-charts {
    grid-template-columns: 1fr;
  }

  .mola-db-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .mola-db-filters__search {
    width: 100%;
  }

  .mola-db-export-group__items {
    grid-template-columns: 1fr;
  }
}


/* ── Profile edit (admin + self) ── */

.mola-profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 0 16px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #0d1f16;
  background: #0d1f16;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mola-profile-edit-btn:hover {
  background: #1a8c5b;
  border-color: #1a8c5b;
  color: #ffffff !important;
  text-decoration: none !important;
}

.mola-profile-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mola-profile-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.mola-profile-edit-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1a8c5b;
  text-decoration: none;
}

.mola-profile-edit-back:hover {
  color: #0d5c3c;
  text-decoration: none;
}

.mola-profile-edit-head__title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #0d1f16;
}

.mola-profile-edit-head__subtitle {
  margin: 0;
  font-size: 14px;
  color: #888888;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mola-profile-edit-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a6200;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mola-profile-edit-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a8c5b;
  font-size: 12px;
  font-weight: 600;
}

.mola-profile-edit-photo__img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #e8e8e6;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f3;
}

.mola-profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mola-profile-edit-card {
  padding: 20px;
}

.mola-profile-edit-card__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #0d1f16;
}

.mola-profile-edit-card__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.mola-profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 100%;
  margin: 0;
}

.mola-profile-edit-field--half {
  flex: 1 1 calc(50% - 8px);
  min-width: 140px;
}

.mola-profile-edit-field__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #888888;
}

.mola-profile-edit-input {
  width: 100%;
  min-height: 42px;
}

.mola-profile-edit-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: #888888;
}

.mola-profile-edit-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdf2f2;
  color: #7b1c1c;
  font-size: 13px;
}

.mola-profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 8px;
}

.mola-profile-photo-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.mola-profile-photo-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px dashed #e8e8e6;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #555555;
}

.mola-profile-photo-drop input {
  display: none;
}

@media (max-width: 768px) {
  .mola-profile-edit-head {
    flex-direction: column;
  }

  .mola-profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .mola-profile-edit-field--half {
    flex-basis: 100%;
  }

  .mola-profile-header__body .mola-profile-edit-btn,
  .mola-profile-header__body .mola-profile-message-btn {
    margin-left: 0;
    margin-top: 8px;
  }
}

