/* ==========================================================================
   MeetHub — MSTID FUND portal skin for Greenlight v3
   Loaded by nginx sub_filter into every Greenlight page (see install.sh).
   Remove the injection (rollback.sh) and Greenlight returns to stock.
   ========================================================================== */

@font-face { font-family: 'Peyda'; font-weight: 300; font-display: swap; src: url('../fonts/PeydaWeb-Light.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 400; font-display: swap; src: url('../fonts/PeydaWeb-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 500; font-display: swap; src: url('../fonts/PeydaWeb-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 600; font-display: swap; src: url('../fonts/PeydaWeb-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 700; font-display: swap; src: url('../fonts/PeydaWeb-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 800; font-display: swap; src: url('../fonts/PeydaWeb-ExtraBold.woff2') format('woff2'); }
@font-face { font-family: 'Peyda'; font-weight: 900; font-display: swap; src: url('../fonts/PeydaWeb-Black.woff2') format('woff2'); }

:root {
  --mh-ink: #0a1b3d;
  --mh-ink-2: #122b5e;
  --mh-blue: #0d56a5;
  --mh-blue-deep: #0a4585;
  --mh-violet: #884198;
  --mh-teal: #3fb6c6;
  --mh-teal-deep: #1f8f9c;
  --mh-mist: #f2f5fa;
  --mh-line: #dbe2ee;
  --mh-text: #16223a;
  --mh-muted: #5d6b85;
  --mh-red: #e5484d;
  --mh-amber: #d98a00;
  --mh-sweep: linear-gradient(90deg, #3fb6c6 0%, #0d56a5 48%, #884198 100%);
  --mh-shadow: 0 1px 2px rgba(10, 27, 61, .06), 0 8px 24px -12px rgba(10, 27, 61, .18);
  --mh-shadow-lift: 0 2px 4px rgba(10, 27, 61, .06), 0 18px 36px -16px rgba(13, 86, 165, .35);
  --mh-font: 'Peyda', Tahoma, 'Segoe UI', sans-serif;

  /* Greenlight sets these inline from site settings; the brand wins. */
  --brand-color: #0d56a5 !important;
  --brand-color-light: #e7eef8 !important;
  --toastify-color-success: #1f8f9c !important;
  --toastify-font-family: var(--mh-font);
}

/* ---------- base ---------- */
html body {
  font-family: var(--mh-font);
  background: var(--mh-mist);
  color: var(--mh-text);
  -webkit-font-smoothing: antialiased;
}
html body h1, html body h2, html body h3 { font-weight: 800; color: var(--mh-ink); letter-spacing: 0; }
html body h4, html body h5 { font-weight: 700; color: var(--mh-ink); }
html body .text-muted { color: var(--mh-muted) !important; }
html body .text-brand { color: var(--mh-blue) !important; }
html body ::selection { background: rgba(63, 182, 198, .28); }
html body .wide-white { background: #fff; box-shadow: 0 0 0 100vmax #fff; }
html body .background-whitesmoke { background: var(--mh-mist) !important; }
html body :focus-visible { outline: 3px solid rgba(63, 182, 198, .7); outline-offset: 2px; }

/* ---------- header ---------- */
html body #navbar {
  position: relative;
  background: linear-gradient(100deg, var(--mh-ink) 0%, var(--mh-ink-2) 100%);
  color: #fff;
  z-index: 20;
}
html body #navbar::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--mh-sweep);
}
html body #navbar .navbar-brand { display: flex; align-items: center; gap: 14px; margin: 0; padding-inline: 8px; }
html body #navbar .small-logo { max-height: 42px; width: auto; }
html body #navbar .navbar-toggler { filter: invert(1) brightness(2); }
html body #navbar .navbar-toggler img, html body #navbar .navbar-toggler .avatar { filter: invert(1) brightness(.5); }
html body #navbar #nav-user-dropdown,
html body #navbar #nav-user-dropdown span { color: #fff !important; }
html body #navbar #nav-user-dropdown:hover,
html body #navbar #nav-user-dropdown:focus,
html body #navbar #nav-user-dropdown:active { background: rgba(255, 255, 255, .08) !important; }
html body #navbar #chevron-profile { color: rgba(255, 255, 255, .7) !important; }
html body #navbar .btn-brand { background: #fff; border-color: #fff; color: var(--mh-ink); }
html body #navbar .btn-brand:hover { background: #e8f6f8; border-color: #e8f6f8; color: var(--mh-ink); }
html body #navbar .btn-brand-outline-color,
html body #navbar .btn-brand-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
html body #navbar .btn-brand-outline-color:hover,
html body #navbar .btn-brand-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
html body #navbar-menu { border-radius: 0 0 16px 16px; box-shadow: var(--mh-shadow); }

.mh-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.mh-brand__rule { width: 1px; height: 30px; background: rgba(255, 255, 255, .28); }
.mh-brand__name { font-family: var(--mh-font); font-weight: 800; font-size: 1.28rem; line-height: 1; letter-spacing: .01em; direction: ltr; }
.mh-brand__name b { font-weight: 800; background: linear-gradient(90deg, #7fd8e3, #b98ad0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-brand__tag { display: block; font-size: .72rem; font-weight: 500; color: rgba(255, 255, 255, .62); margin-top: 2px; direction: ltr; }
.mh-tools { display: flex; align-items: center; gap: 10px; margin-inline: auto 14px; }
.mh-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.mh-lang svg { width: 16px; height: 16px; margin-inline: 6px 2px; flex: none; }
.mh-lang button { border: 0; background: transparent; color: rgba(255, 255, 255, .78); font-family: var(--mh-font); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; line-height: 1.4; }
.mh-lang button:hover { color: #fff; }
.mh-lang button[aria-pressed="true"] { background: #fff; color: var(--mh-ink); cursor: default; }
.mh-lang--float { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 50; background: rgba(10, 27, 61, .6); backdrop-filter: blur(6px); }
.mh-date {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem; font-weight: 500; white-space: nowrap;
}
.mh-date::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mh-teal); box-shadow: 0 0 0 3px rgba(63, 182, 198, .25); }
@media (max-width: 991px) { .mh-date { display: none; } }
@media (max-width: 767px) { .mh-brand__tag, .mh-brand__rule { display: none; } .mh-brand__name { font-size: 1.05rem; } .mh-tools { margin-inline: auto 8px; } .mh-lang button { padding: 4px 8px; } .mh-lang svg { display: none; } }

/* ---------- buttons ---------- */
html body .btn { font-family: var(--mh-font); font-weight: 600; border-radius: 10px; }
html body .btn-brand { background: var(--mh-blue); border-color: var(--mh-blue); color: #fff; }
html body .btn-brand:hover { background: var(--mh-blue-deep); border-color: var(--mh-blue-deep); box-shadow: none; color: #fff; }
html body .btn-brand:active { background: var(--mh-ink-2) !important; border-color: var(--mh-ink-2) !important; }
html body .btn-brand:focus { box-shadow: 0 0 0 .25rem rgba(63, 182, 198, .35); }
html body .btn-brand-outline,
html body .btn-brand-outline-color { border: 1.5px solid #cfd8e6; background: #fff; color: var(--mh-blue); }
html body .btn-brand-outline:hover,
html body .btn-brand-outline-color:hover { border-color: var(--mh-blue); background: #f3f7fd; color: var(--mh-blue); }
html body .start-meeting-btn { min-height: 2.75rem; padding-inline: 1.4rem; border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(13, 86, 165, .75); }
html body .btn-link { color: var(--mh-blue); }
html body .text-link, html body a.text-link { color: var(--mh-blue) !important; }

/* ---------- cards & rooms ---------- */
html body .card { border-radius: 16px; border: 1px solid var(--mh-line) !important; }
html body .card-shadow { box-shadow: var(--mh-shadow) !important; }
html body .card-footer { border-top: 1px solid var(--mh-line) !important; border-radius: 0 0 16px 16px !important; }
html body #room-card { transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
html body #room-card:hover { transform: translateY(-2px); box-shadow: var(--mh-shadow-lift) !important; }
html body #room-card .card-title { font-weight: 800; color: var(--mh-ink); }
html body .room-icon {
  width: 56px; height: 56px;
  border-radius: 50% 6px 50% 50% !important;
  background: linear-gradient(135deg, var(--mh-teal) 0%, var(--mh-blue) 55%, var(--mh-violet) 100%) !important;
}
html body .room-icon svg { color: #fff !important; padding-top: 14px !important; }
html body .room-card-badges .badge { border-radius: 999px; font-weight: 600; }
html body .badge.bg-success { background: var(--mh-teal-deep) !important; display: inline-flex; align-items: center; gap: 6px; }
html body .room-card-badges .badge.bg-success::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: mh-live 1.6s ease-in-out infinite; }
@keyframes mh-live { 50% { opacity: .35; } }
html body .room-header-wrapper h1 { font-size: 2.1rem; }

/* ---------- tabs, pills ---------- */
html body .nav-tabs { border-bottom: 1px solid var(--mh-line); gap: 6px; }
html body .nav-tabs .nav-link { position: relative; border: 0 !important; color: var(--mh-muted); font-weight: 600; background: transparent !important; padding: .7rem 1rem; }
html body .nav-tabs .nav-link:hover { color: var(--mh-blue); }
html body .nav-tabs .nav-link.active { color: var(--mh-ink); }
html body .nav-tabs .nav-link.active::after { content: ''; position: absolute; inset-inline: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--mh-sweep); }
html body .nav-pills .nav-link { border-radius: 10px; font-weight: 500; }
html body .nav-pills .nav-link.active { background: #e7eef8; color: var(--mh-blue) !important; }

/* ---------- forms ---------- */
html body .form-control,
html body .form-select,
html body input.search-bar { border-radius: 10px; border: 1px solid #cfd8e6; font-family: var(--mh-font); }
html body .form-control:focus,
html body .form-select:focus { border-color: var(--mh-blue) !important; box-shadow: 0 0 0 .22rem rgba(63, 182, 198, .28); }
html body .form-check-input:checked { background-color: var(--mh-blue); border-color: var(--mh-blue); }
html body .form-switch .form-check-input:checked { background-color: var(--mh-teal-deep); border-color: var(--mh-teal-deep); }
html body .form-label { font-weight: 600; color: var(--mh-ink); }

/* ---------- tables, modals, menus ---------- */
html body .table { --bs-table-hover-bg: #f3f7fd; }
html body .table thead th { color: var(--mh-muted); font-weight: 600; font-size: .85rem; border-bottom-color: var(--mh-line); }
html body .modal-content { border: 0; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(10, 27, 61, .45); }
html body .modal-header { border-bottom: 0; padding: 1.4rem 1.6rem .4rem; }
html body .modal-title { font-weight: 800; color: var(--mh-ink); }
html body .modal-footer { border-top: 0; }
html body .modal-backdrop.show { opacity: .55; background: var(--mh-ink); }
html body .dropdown-menu { border: 1px solid var(--mh-line); border-radius: 12px; box-shadow: var(--mh-shadow); padding: 6px; font-family: var(--mh-font); }
html body .dropdown-item { border-radius: 8px; }
html body .badge.bg-brand, html body .badge-brand { background: var(--mh-blue) !important; }

/* ---------- toasts (professional alerts) ---------- */
html body .Toastify__toast {
  font-family: var(--mh-font);
  border-radius: 14px;
  background: #fff;
  color: var(--mh-text);
  box-shadow: 0 18px 40px -18px rgba(10, 27, 61, .45);
  border: 1px solid var(--mh-line);
  border-inline-start: 5px solid var(--mh-blue);
  padding: 14px 16px;
  min-height: 60px;
}
html body .Toastify__toast--success { border-inline-start-color: var(--mh-teal-deep); }
html body .Toastify__toast--error { border-inline-start-color: var(--mh-red); }
html body .Toastify__toast--warning { border-inline-start-color: var(--mh-amber); }
html body .Toastify__toast--info { border-inline-start-color: var(--mh-blue); }
html body .Toastify__toast-body { font-weight: 500; line-height: 1.6; }
html body .Toastify__progress-bar { background: var(--mh-sweep) !important; height: 3px; }
html body .Toastify__close-button { color: var(--mh-muted); opacity: .7; }
html body .maintenance-toast { border-inline-start-color: var(--mh-violet); }

/* ---------- footer ---------- */
html body #footer {
  max-height: none !important;
  background: var(--mh-ink) !important;
  color: rgba(255, 255, 255, .72);
  text-align: start !important;
}
html body #footer #footer-container {
  border-top: 1px solid rgba(255, 255, 255, .1) !important;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
  padding-top: .8rem !important;
  padding-bottom: 1rem !important;
}
html body #footer #footer-container > a:first-child { display: none; }
html body #footer #footer-container .text-muted { color: rgba(255, 255, 255, .45) !important; }
html body #footer a { color: #8fd9e3 !important; }
.mh-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 26px 12px 20px;
}
.mh-footer__id { display: flex; align-items: center; gap: 14px; }
.mh-footer__id img { height: 44px; width: auto; }
.mh-footer__name { font-weight: 800; color: #fff; font-size: 1.02rem; }
.mh-footer[dir="rtl"] .mh-footer__name { text-align: right; }
.mh-footer[dir="ltr"] .mh-footer__name { text-align: left; }
.mh-footer__fa { display: block; font-size: .82rem; color: rgba(255, 255, 255, .62); margin-top: 3px; font-weight: 500; }
.mh-footer__facts { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
.mh-footer__facts span { display: flex; align-items: center; gap: 8px; }
.mh-footer__facts svg { width: 16px; height: 16px; color: var(--mh-teal); flex: none; }
.mh-footer__help { font-size: .82rem; line-height: 1.9; text-align: start; }
.mh-footer__help a { font-weight: 600; }
@media (max-width: 767px) { .mh-footer { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- homepage (signed out) ---------- */
html.mh-home #homepage-hero { margin: 0 !important; }
html.mh-home #homepage-hero > :not(.mh-hero-wrap) { display: none !important; }
html.mh-home .wide-white:has(#homepage-hero) + .row { display: none !important; }
html.mh-home .wide-white:has(#homepage-hero) { background: transparent; box-shadow: none; clip-path: none; }
html.mh-home .wide-white:has(#homepage-hero) > .col-lg-10 { flex: 0 0 100%; max-width: 100%; }

.mh-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  align-items: center;
  padding: 56px 0 28px;
}
.mh-hero__copy { max-width: 36rem; }
.mh-hero__title { font-size: clamp(2rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1.2; text-align: start; font-weight: 900 !important; color: var(--mh-ink); margin: 0 0 18px; }
.mh-hero__lead { font-size: 1.12rem; line-height: 2; color: var(--mh-muted); margin: 0 0 28px; }
.mh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.mh-hero__actions .btn { padding: .8rem 1.6rem; font-size: 1rem; }
.mh-join {
  display: flex; align-items: stretch;
  border: 1.5px solid #cfd8e6; border-radius: 12px; background: #fff; overflow: hidden;
  min-width: min(100%, 22rem);
}
.mh-join:focus-within { border-color: var(--mh-blue); box-shadow: 0 0 0 .22rem rgba(63, 182, 198, .28); }
.mh-join input { flex: 1; border: 0; outline: 0; padding: .7rem 1rem; font-family: var(--mh-font); font-size: .95rem; min-width: 0; direction: ltr; text-align: left; }
.mh-join input::placeholder { color: #8a97ad; }
.mh-hero-wrap[dir="rtl"] .mh-join input::placeholder { direction: rtl; text-align: right; }
.mh-hero-wrap[dir="rtl"] .mh-hero__title { text-align: right; }
.mh-hero-wrap[dir="ltr"] .mh-join input { text-align: left; }
.mh-join button { border: 0; background: var(--mh-ink); color: #fff; font-family: var(--mh-font); font-weight: 700; padding: 0 1.1rem; }
.mh-join button:hover { background: var(--mh-blue); }
.mh-join-hint { flex-basis: 100%; font-size: .85rem; color: var(--mh-muted); margin: 2px 4px 0; min-height: 1.3em; }
.mh-join-hint.is-error { color: var(--mh-red); }
.mh-hero__art { justify-self: center; width: 100%; max-width: 560px; }
.mh-logo { display: flex; align-items: center; justify-content: center; gap: 7%; width: 100%; }
.mh-logo__mark { flex: 0 0 31%; }
.mh-logo__mark .mstid-logo-anim { display: block; width: 100%; height: auto; overflow: visible; }
.mh-logo__rule { flex: none; width: 1.5px; align-self: stretch; margin: 4% 0; background: #b9c3d3; border-radius: 2px; }
.mh-logo__word { flex: 0 1 auto; width: 45%; height: auto; }
.mh-logo--en .mh-logo__word { width: 52%; }
.mstid-logo-anim .lf { transform-box: fill-box; transform-origin: center; }
.mh-logo--anim .lf { animation: mh-grow .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 13ms); }
.mh-logo--anim .mh-logo__rule { animation: mh-rule .5s ease-out 1.1s both; transform-origin: center; }
.mh-logo--anim .mh-logo__word { animation: mh-word .7s ease-out 1.3s both; }
@keyframes mh-grow { from { opacity: 0; scale: .15; } to { opacity: 1; scale: 1; } }
@keyframes mh-rule { from { scale: 1 0; opacity: 0; } to { scale: 1 1; opacity: 1; } }
@keyframes mh-word { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }

.mh-caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 56px;
  background: #fff;
  border: 1px solid var(--mh-line);
  border-radius: 18px;
  box-shadow: var(--mh-shadow);
}
.mh-cap { padding: 22px 22px 24px; border-inline-start: 1px solid var(--mh-line); }
.mh-cap:first-child { border-inline-start: 0; }
.mh-cap__icon { width: 44px; height: 44px; border-radius: 50% 5px 50% 50%; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.mh-cap__icon svg { width: 22px; height: 22px; }
.mh-cap:nth-child(1) .mh-cap__icon { background: var(--mh-teal-deep); }
.mh-cap:nth-child(2) .mh-cap__icon { background: var(--mh-blue); }
.mh-cap:nth-child(3) .mh-cap__icon { background: #4c4699; }
.mh-cap:nth-child(4) .mh-cap__icon { background: var(--mh-violet); }
.mh-cap h3 { font-size: 1.02rem; font-weight: 800; margin: 0 0 6px; }
.mh-cap p { font-size: .9rem; line-height: 1.9; color: var(--mh-muted); margin: 0; }
@media (max-width: 991px) {
  .mh-hero { grid-template-columns: 1fr; padding-top: 32px; }
  .mh-hero__art { max-width: 380px; justify-self: center; order: -1; }
  .mh-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-cap:nth-child(3) { border-inline-start: 0; }
  .mh-cap:nth-child(n+3) { border-top: 1px solid var(--mh-line); }
}
@media (max-width: 575px) {
  .mh-caps { grid-template-columns: 1fr; }
  .mh-cap { border-inline-start: 0; border-top: 1px solid var(--mh-line); }
  .mh-cap:first-child { border-top: 0; }
}

/* ---------- sign in / sign up / public join (no header) ---------- */
html body.mh-noheader { background: var(--mh-ink); }
html body.mh-noheader #root { position: relative; z-index: 1; }
html body.mh-noheader .card { border: 0 !important; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6) !important; }
html body.mh-noheader .logo-wrapper .logo { filter: none; }
html body.mh-noheader #footer { background: linear-gradient(180deg, rgba(10, 27, 61, 0) 0%, rgba(10, 27, 61, .92) 45%) !important; position: relative; z-index: 1; }
html body.mh-noheader #footer #footer-container { border-top-color: rgba(255, 255, 255, .08) !important; }
html body.mh-noheader .no-header-height > .vertical-center,
html body.mh-noheader .no-header-height { color: var(--mh-text); }
html body.mh-noheader .no-header-height a.text-link,
html body.mh-noheader .no-header-height .text-link { color: var(--mh-blue) !important; }
.mh-auth-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mh-auth-art .mstid-logo-anim { position: absolute; width: min(46vw, 620px); height: auto; left: -6vw; bottom: -10vh; opacity: .22; }
.mh-auth-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 30%, rgba(13, 86, 165, .35), transparent 70%); }

/* ---------- joining overlay ---------- */
.mh-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: radial-gradient(80% 70% at 50% 40%, #16357a 0%, var(--mh-ink) 70%);
  color: #fff; text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.mh-overlay.is-on { opacity: 1; visibility: visible; }
.mh-overlay__box { display: grid; justify-items: center; gap: 18px; padding: 24px; }
.mh-overlay__art { width: 150px; }
.mh-overlay__art .mstid-logo-anim { width: 100%; height: auto; display: block; }
.mh-overlay__art .lf { animation: mh-pulse 1.8s ease-in-out infinite; animation-delay: calc(var(--i) * 16ms); }
@keyframes mh-pulse { 0%, 100% { opacity: .25; scale: .75; } 40% { opacity: 1; scale: 1; } }
.mh-overlay__title { font-size: 1.5rem; font-weight: 800; margin: 0; color: #fff; }
.mh-overlay__room { font-size: 1rem; color: #9fdde6; font-weight: 600; min-height: 1.4em; }
.mh-overlay__steps { font-size: .9rem; color: rgba(255, 255, 255, .7); max-width: 26rem; line-height: 1.9; }
.mh-overlay__cancel { margin-top: 6px; background: transparent; border: 0; color: rgba(255, 255, 255, .6); font-family: var(--mh-font); font-size: .85rem; text-decoration: underline; cursor: pointer; }

/* ---------- misc ---------- */
html body ::-webkit-scrollbar { width: 10px; height: 10px; }
html body ::-webkit-scrollbar-thumb { background: #c3cde0; border-radius: 10px; border: 2px solid var(--mh-mist); }
html body ::-webkit-scrollbar-track { background: transparent; }
html body .spinner-border { color: var(--mh-teal); }
html body .pagination .page-item.active .page-link { background: var(--mh-blue); border-color: var(--mh-blue); }

@media (prefers-reduced-motion: reduce) {
  .mh-logo--anim .lf, .mh-logo--anim .mh-logo__rule, .mh-logo--anim .mh-logo__word, .mh-overlay__art .lf, .room-card-badges .badge.bg-success::before { animation: none !important; }
  html body #room-card { transition: none; }
}

/* recording consent is not required at MSTID (fallback if the server patch is not active) */
html body .form-check:has(#consentCheck), html body .mb-2:has(> .form-check #consentCheck) { display: none !important; }

/* ==========================================================================
   Motion layer (v1.2) - splash, ambient background, transitions, micro-interactions
   ========================================================================== */
:root {
  --mh-ease: cubic-bezier(.22, 1, .36, 1);
  --mh-ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- splash with the animated mark ---------- */
#mh-splash { font-family: var(--mh-font); color: #fff; overflow: hidden; }
.mh-splash__glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: conic-gradient(from 0deg, rgba(63, 182, 198, 0), rgba(63, 182, 198, .35), rgba(13, 86, 165, .2), rgba(136, 65, 152, .35), rgba(63, 182, 198, 0)); filter: blur(60px); animation: mh-spin 9s linear infinite; opacity: .7; }
.mh-splash__box { position: relative; display: grid; justify-items: center; gap: 18px; }
.mh-splash__mark { position: relative; width: 132px; aspect-ratio: 626 / 776; display: grid; place-items: center; }
.mh-splash__mark .mstid-logo-anim { grid-area: 1 / 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(63, 182, 198, .35)); }
.mh-splash__mark .lf { transform-box: fill-box; transform-origin: center; animation: mh-grow .7s var(--mh-ease) both, mh-breathe 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 12ms), calc(1.6s + var(--i) * 14ms); }
.mh-splash__ring { grid-area: 1 / 1; width: 175%; height: auto; fill: none; stroke: rgba(127, 216, 227, .55); stroke-width: 1.2; stroke-dasharray: 90 250; stroke-linecap: round; animation: mh-spin 1.6s linear infinite; }
.mh-splash__name { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; animation: mh-rise .7s var(--mh-ease) .9s both; }
.mh-splash__name b { background: linear-gradient(90deg, #7fd8e3, #b98ad0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mh-splash__bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; animation: mh-rise .5s ease 1.1s both; }
.mh-splash__bar i { display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--mh-sweep); animation: mh-load 1.2s var(--mh-ease-io) infinite; }
@keyframes mh-spin { to { rotate: 360deg; } }
@keyframes mh-breathe { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .55; scale: .82; } }
@keyframes mh-rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes mh-load { 0% { translate: -110% 0; } 100% { translate: 260% 0; } }

/* ---------- ambient aurora (home + auth) ---------- */
.mh-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mh-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.mh-aurora .b1 { width: 46vmax; height: 46vmax; background: radial-gradient(circle, rgba(63, 182, 198, .55), transparent 65%); top: -14vmax; inset-inline-start: -10vmax; animation: mh-drift1 22s ease-in-out infinite alternate; }
.mh-aurora .b2 { width: 40vmax; height: 40vmax; background: radial-gradient(circle, rgba(13, 86, 165, .55), transparent 65%); bottom: -16vmax; inset-inline-end: -8vmax; animation: mh-drift2 26s ease-in-out infinite alternate; }
.mh-aurora .b3 { width: 30vmax; height: 30vmax; background: radial-gradient(circle, rgba(136, 65, 152, .45), transparent 65%); top: 30%; left: 45%; animation: mh-drift3 30s ease-in-out infinite alternate; }
.mh-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(13, 86, 165, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 86, 165, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%); animation: mh-grid 40s linear infinite; }
@keyframes mh-drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes mh-drift2 { to { transform: translate(-16vw, -12vh) scale(1.2); } }
@keyframes mh-drift3 { to { transform: translate(-22vw, 18vh) scale(.85); } }
@keyframes mh-grid { to { background-position: 48px 48px, 48px 48px; } }
html.mh-home #root, html.mh-home #footer { position: relative; z-index: 1; }
html.mh-home body { background: #eef3fa; }
body.mh-noheader .mh-aurora i { opacity: .7; }
body.mh-noheader .mh-grid { background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }

/* ---------- header ---------- */
html body #navbar { position: sticky; top: 0; transition: box-shadow .35s var(--mh-ease); }
html body #navbar.mh-scrolled { box-shadow: 0 12px 30px -18px rgba(10, 27, 61, .8); }
html body #navbar::after { background-size: 200% 100%; animation: mh-sweep-move 8s linear infinite; }
@keyframes mh-sweep-move { to { background-position: 200% 0; } }
html body #navbar .small-logo { transition: transform .4s var(--mh-ease); }
html body #navbar .navbar-brand:hover .small-logo { transform: scale(1.06) rotate(-2deg); }
html body #navbar .nav-link { position: relative; }
html body #navbar .nav-link::after { content: ''; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mh-teal); scale: 0 1; transition: scale .35s var(--mh-ease); }
html body #navbar .nav-link:hover::after, html body #navbar .nav-link.active::after { scale: 1 1; }

/* dropdowns and modals */
html body .dropdown-menu.show { animation: mh-pop .22s var(--mh-ease) both; transform-origin: top; }
html body .modal.show .modal-dialog { animation: mh-modal .42s var(--mh-ease) both; }
html body .modal-backdrop.show { backdrop-filter: blur(4px); }
@keyframes mh-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
@keyframes mh-modal { from { opacity: 0; transform: translateY(18px) scale(.96); } }

/* ---------- route transition + staggered reveal ---------- */
.mh-enter { animation: mh-page .55s var(--mh-ease) backwards; }
@keyframes mh-page { from { opacity: 0; transform: translateY(14px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
[data-mh-in] { animation: mh-in .6s var(--mh-ease) backwards; animation-delay: var(--mh-d, 0ms); }
@keyframes mh-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }

/* ---------- hero ---------- */
html.mh-home .mh-hero__copy > * { animation: mh-rise .8s var(--mh-ease) both; }
html.mh-home .mh-hero__copy > :nth-child(2) { animation-delay: .12s; }
html.mh-home .mh-hero__copy > :nth-child(3) { animation-delay: .24s; }
.mh-hero__title { background: linear-gradient(100deg, var(--mh-ink) 0%, var(--mh-ink) 35%, var(--mh-blue) 50%, var(--mh-violet) 60%, var(--mh-ink) 75%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; }
html.mh-home .mh-hero__copy > .mh-hero__title { animation: mh-rise .8s var(--mh-ease) both, mh-shimmer 7s ease-in-out 1s infinite; }
@keyframes mh-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.mh-hero__art { position: relative; isolation: isolate; }
.mh-hero__art::before { content: ''; position: absolute; inset: 8% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(63, 182, 198, .28), transparent 65%); filter: blur(30px); animation: mh-breathe 5s ease-in-out infinite; z-index: -1; }
.mh-logo--anim .mh-logo__mark { animation: mh-float 6s ease-in-out 2s infinite; }
@keyframes mh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mh-join { transition: box-shadow .3s var(--mh-ease), border-color .3s, transform .3s var(--mh-ease); }
.mh-join:focus-within { transform: translateY(-1px); }
.mh-join button { transition: background .25s; position: relative; overflow: hidden; }

/* capability tiles: glass with cursor spotlight */
.mh-caps { background: rgba(255, 255, 255, .7); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); overflow: hidden; }
.mh-cap { position: relative; }
.mh-cap::before, html body #room-card::before, body.mh-noheader .card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(63, 182, 198, .16), transparent 60%); border-radius: inherit; }
.mh-cap:hover::before, html body #room-card:hover::before, body.mh-noheader .card:hover::before { opacity: 1; }
.mh-cap__icon { transition: transform .45s var(--mh-ease); }
.mh-cap:hover .mh-cap__icon { transform: translateY(-3px) rotate(-8deg) scale(1.08); }

/* ---------- room cards ---------- */
html body #room-card { position: relative; transition: transform .45s var(--mh-ease), box-shadow .45s var(--mh-ease); }
html body #room-card:hover { transform: translateY(-5px); }
html body #room-card .room-icon { transition: transform .5s var(--mh-ease), border-radius .5s var(--mh-ease); }
html body #room-card:hover .room-icon { transform: rotate(-10deg) scale(1.06); border-radius: 6px 50% 50% 50% !important; }
html body .room-card-badges .badge.bg-success { animation: mh-ring 2s ease-out infinite; }
@keyframes mh-ring { 0% { box-shadow: 0 0 0 0 rgba(31, 143, 156, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 143, 156, 0); } }

/* ---------- buttons ---------- */
html body .btn { transition: transform .2s var(--mh-ease), box-shadow .3s var(--mh-ease), background-color .25s, border-color .25s, color .25s, background-position .8s var(--mh-ease); }
html body .btn:active { transform: scale(.97); }
html body .btn-brand, html body .start-meeting-btn { position: relative; overflow: hidden; background-image: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; background-repeat: no-repeat; }
html body .btn-brand:hover, html body .start-meeting-btn:hover { background-position: -50% 0; box-shadow: 0 12px 26px -12px rgba(13, 86, 165, .8); transform: translateY(-1px); }
.mh-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; pointer-events: none; transform: scale(0); animation: mh-ripple .65s var(--mh-ease) forwards; }
@keyframes mh-ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- tabs and tables ---------- */
html body .nav-tabs .nav-link { transition: color .25s; }
html body .nav-tabs .nav-link.active::after { animation: mh-tab .45s var(--mh-ease) both; }
@keyframes mh-tab { from { transform: scaleX(0); } }
html body .table tbody tr { transition: background-color .2s; }

/* ---------- sign in / sign up: glass card with animated border ---------- */
body.mh-noheader .card { position: relative; background: rgba(255, 255, 255, .92) !important; backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); animation: mh-card-in .9s var(--mh-ease) backwards; isolation: isolate; overflow: visible; }
body.mh-noheader .card::after { content: ''; position: absolute; inset: -1.5px; z-index: -1; border-radius: 17px; padding: 1.5px; background: conic-gradient(from var(--mh-ang, 0deg), #3fb6c6, #0d56a5, #884198, #3fb6c6); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: mh-ang 6s linear infinite; pointer-events: none; }
@property --mh-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes mh-ang { to { --mh-ang: 360deg; } }
@keyframes mh-card-in { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(4px); } }
body.mh-noheader .logo-wrapper img.logo { animation: mh-rise .8s var(--mh-ease) .15s both; }
body.mh-noheader .card .form-control { transition: border-color .25s, box-shadow .3s var(--mh-ease); }
body.mh-noheader .card form > * { animation: mh-rise .6s var(--mh-ease) both; }
body.mh-noheader .card form > :nth-child(2) { animation-delay: .08s; }
body.mh-noheader .card form > :nth-child(3) { animation-delay: .16s; }
body.mh-noheader .card form > :nth-child(4) { animation-delay: .24s; }
body.mh-noheader .card form > :nth-child(5) { animation-delay: .32s; }
.mh-auth-art { z-index: 0; }
.mh-auth-art .mstid-logo-anim .lf { transform-box: fill-box; transform-origin: center; animation: mh-grow .8s var(--mh-ease) both, mh-breathe 6s ease-in-out infinite; animation-delay: calc(var(--i) * 10ms), calc(1s + var(--i) * 40ms); }

/* ---------- joining overlay ---------- */
.mh-overlay__art { position: relative; }
.mh-overlay__art::after { content: ''; position: absolute; inset: -30%; border-radius: 50%; border: 1.5px solid rgba(127, 216, 227, .25); border-top-color: #7fd8e3; animation: mh-spin 1.4s linear infinite; }
.mh-overlay.is-on .mh-overlay__box > * { animation: mh-rise .6s var(--mh-ease) both; }
.mh-overlay.is-on .mh-overlay__box > :nth-child(2) { animation-delay: .1s; }
.mh-overlay.is-on .mh-overlay__box > :nth-child(3) { animation-delay: .2s; }
.mh-overlay.is-on .mh-overlay__box > :nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .mh-aurora, .mh-splash__glow { display: none; }
  .mh-enter, [data-mh-in], .mh-hero__title, .mh-hero__copy > *, body.mh-noheader .card, body.mh-noheader .card::after, body.mh-noheader .card form > *, .mh-splash__mark .lf, .mh-splash__ring, .mh-auth-art .lf, .mh-logo--anim .mh-logo__mark, html body #navbar::after, .mh-overlay__art::after, .mh-hero__art::before { animation: none !important; }
}
