/* Login + Register — redesign look for MBU forms */

body.member-login .site-wrap,
body.page-member-login .site-wrap,
body.mbr-auth-login .site-wrap,
body.member-registration .site-wrap,
body.page-member-registration .site-wrap,
body.mbr-auth-register .site-wrap,
body.anmelden .site-wrap,
body.registrieren .site-wrap,
body.register .site-wrap {
  width: min(100% - 3rem, 80rem);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Elementor auth pages: full-width wrap so shells center on the page */
body.member-registration.elementor-page .site-wrap,
body.page-member-registration.elementor-page .site-wrap,
body.mbr-auth-register.elementor-page .site-wrap,
body.member-login.elementor-page .site-wrap,
body.page-member-login.elementor-page .site-wrap,
body.mbr-auth-login.elementor-page .site-wrap,
body.registrieren.elementor-page .site-wrap,
body.register.elementor-page .site-wrap,
body.anmelden.elementor-page .site-wrap,
body.member-registration .site-wrap:has(.elementor),
body.page-member-registration .site-wrap:has(.elementor),
body.mbr-auth-register .site-wrap:has(.elementor),
body.member-login .site-wrap:has(.elementor),
body.page-member-login .site-wrap:has(.elementor),
body.mbr-auth-login .site-wrap:has(.elementor),
body.registrieren .site-wrap:has(.elementor),
body.register .site-wrap:has(.elementor),
body.anmelden .site-wrap:has(.elementor),
body.mbr-auth-register .site-wrap:has(.mbr-auth-block),
body.mbr-auth-register .site-wrap:has(.mbr-page-header),
body.mbr-auth-login .site-wrap:has(.mbr-auth-block),
body.mbr-auth-login .site-wrap:has(.mbr-page-header),
body.mbr-auth-profile .site-wrap:has(.mbr-auth-block),
body.mbr-auth-profile .site-wrap:has(.mbr-page-header) {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

body.member-login .page-header,
body.page-member-login .page-header,
body.mbr-auth-login .page-header,
body.anmelden .page-header,
body.member-registration .page-header,
body.page-member-registration .page-header,
body.mbr-auth-register .page-header,
body.registrieren .page-header,
body.register .page-header {
  display: none;
}

/* Shared form controls */
.panel-body .control-label,
:is(.mbu-registration, .mbu-profile) .control-label {
  display: block;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 0.4rem;
  padding: 0;
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

.panel-body .form-group,
:is(.mbu-registration, .mbu-profile) .form-group {
  margin-bottom: 1.15rem;
}

.panel-body .form-group::after,
:is(.mbu-registration, .mbu-profile) .form-group::after {
  content: "";
  display: table;
  clear: both;
}

.panel-body .form-group > [class*="col-"],
:is(.mbu-registration, .mbu-profile) .form-group > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
}

.panel-body .form-control,
:is(.mbu-registration, .mbu-profile) .form-control,
.panel-body input.form-control,
:is(.mbu-registration, .mbu-profile) input.form-control,
:is(.mbu-registration, .mbu-profile) select.form-control,
:is(.mbu-registration, .mbu-profile) textarea.form-control {
  width: 100%;
  height: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent);
  border-radius: 0;
  background: #fff;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.panel-body .form-control:focus,
:is(.mbu-registration, .mbu-profile) .form-control:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: none;
}

.panel-body .errorMessage,
:is(.mbu-registration, .mbu-profile) .errorMessage {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: oklch(0.55 0.18 25);
}

:is(.mbu-registration, .mbu-profile) em {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-style: normal;
  color: var(--muted-foreground);
}

.panel-body .checkbox,
:is(.mbu-registration, .mbu-profile) .checkbox {
  margin: 0.45rem 0;
}

.panel-body .checkbox label,
:is(.mbu-registration, .mbu-profile) .checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--foreground);
  cursor: pointer;
  line-height: 1.4;
}

.panel-body .checkbox input[type="checkbox"],
:is(.mbu-registration, .mbu-profile) .checkbox input[type="checkbox"],
:is(.mbu-registration, .mbu-profile) input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  border: 1.5px solid color-mix(in oklab, var(--ink) 22%, transparent);
  border-radius: 0.15rem;
  background: #fff;
  cursor: pointer;
  position: relative;
  vertical-align: top;
}

.panel-body .checkbox input[type="checkbox"]:checked,
:is(.mbu-registration, .mbu-profile) .checkbox input[type="checkbox"]:checked,
:is(.mbu-registration, .mbu-profile) input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold-dim);
}

.panel-body .checkbox input[type="checkbox"]:checked::after,
:is(.mbu-registration, .mbu-profile) .checkbox input[type="checkbox"]:checked::after,
:is(.mbu-registration, .mbu-profile) input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.05rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.panel-body .checkbox input[type="checkbox"]:focus-visible,
:is(.mbu-registration, .mbu-profile) .checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--gold) 55%, transparent);
  outline-offset: 2px;
}

:is(.mbu-registration, .mbu-profile) .mbr-field-note {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

:is(.mbu-registration, .mbu-profile) .mbr-field-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--gold) 65%, transparent);
}

.panel-body .btn,
:is(.mbu-registration, .mbu-profile) .btn,
.panel-body input[type="submit"],
:is(.mbu-registration, .mbu-profile) input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  min-height: 2.75rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: none;
}

.panel-body .btn-primary,
:is(.mbu-registration, .mbu-profile) .btn-primary,
.panel-body input.btn-primary,
:is(.mbu-registration, .mbu-profile) input.btn-primary {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}

.panel-body .btn-primary:hover,
:is(.mbu-registration, .mbu-profile) .btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  color: var(--paper);
}

.panel-body .btn-default,
:is(.mbu-registration, .mbu-profile) .btn-default {
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}

.panel-body .btn-default:hover,
:is(.mbu-registration, .mbu-profile) .btn-default:hover {
  border-color: var(--gold);
  color: var(--gold-dim);
}

.panel-body .alert,
:is(.mbu-registration, .mbu-profile) .alert {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  background: var(--secondary);
  color: var(--foreground);
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

body.member-login .site-main,
body.page-member-login .site-main,
body.mbr-auth-login .site-main,
body.anmelden .site-main {
  display: flex;
  justify-content: center;
}

body.member-login .panel-body,
body.page-member-login .panel-body,
body.mbr-auth-login .panel-body,
body.anmelden .panel-body {
  width: 100%;
  max-width: min(36rem, calc(100vw - 3rem));
  margin: 2rem auto 3rem;
  padding: 2.75rem 2.5rem;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: var(--secondary);
  box-sizing: border-box;
}

/* When already inside the Elementor login shell, don't shrink again */
.mbr-auth-shell--login .panel-body,
.mbr-auth-block--login .panel-body {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Kill Bootstrap horizontal offsets that leave the form looking tiny */
body.mbr-auth-login .panel-body .form-group > [class*="col-"],
body.member-login .panel-body .form-group > [class*="col-"],
body.page-member-login .panel-body .form-group > [class*="col-"],
body.anmelden .panel-body .form-group > [class*="col-"],
.mbr-auth-shell--login .form-group > [class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.member-login .panel-body::before,
body.page-member-login .panel-body::before,
body.mbr-auth-login .panel-body::before,
body.anmelden .panel-body::before {
  content: "Members Area";
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: center;
}

body.member-login .panel-body form::before,
body.page-member-login .panel-body form::before,
body.mbr-auth-login .panel-body form::before,
body.anmelden .panel-body form::before {
  content: "Sign In";
  display: block;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  text-align: center;
}

/* Magic link + password tabs */
body.member-login .panel-body.mbe-login form::before,
body.page-member-login .panel-body.mbe-login form::before,
body.mbr-auth-login .panel-body.mbe-login form::before,
body.anmelden .panel-body.mbe-login form::before,
.mbr-auth-shell--login .panel-body.mbe-login form::before {
  content: none !important;
  display: none !important;
}

.mbe-login__title {
  margin: 0.35rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
  text-align: center;
}

.mbe-login__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1.5rem;
  border: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
  background: #fff;
}

.mbe-login__tab {
  appearance: none;
  margin: 0;
  padding: 0.85rem 0.75rem;
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--foreground) 62%, transparent);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mbe-login__tab + .mbe-login__tab {
  border-left: 1px solid color-mix(in oklab, var(--ink) 14%, transparent);
}

.mbe-login__tab.is-active,
.mbe-login__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.mbe-login__tab:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--gold) 55%, transparent);
  outline-offset: 2px;
  z-index: 1;
}

.mbe-login__hint {
  margin: 0 0 1.35rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  text-align: center;
}

.mbe-login__notice {
  margin-bottom: 1.25rem;
}

.mbe-login__panel[hidden] {
  display: none !important;
}

.mbe-login-already {
  text-align: center;
  margin: 1rem 0;
}

body.member-login .forgot-password,
body.mbr-auth-login .forgot-password,
body.anmelden .forgot-password {
  float: none !important;
  margin-top: 0.75rem;
}

body.member-login .forgot-password a,
body.mbr-auth-login .forgot-password a {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
}

body.member-login .panel-body .btn,
body.member-login .panel-body input[type="submit"],
body.page-member-login .panel-body .btn,
body.page-member-login .panel-body input[type="submit"],
body.mbr-auth-login .panel-body .btn,
body.mbr-auth-login .panel-body input[type="submit"],
body.anmelden .panel-body .btn,
body.anmelden .panel-body input[type="submit"],
.mbr-auth-shell--login .btn,
.mbr-auth-shell--login input[type="submit"] {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  justify-content: center;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Register — match Lovable mockup
   -------------------------------------------------------------------------- */

.mbr-auth-block--no-mbu-title .mbu-registration > h1,
.mbr-auth-block--no-mbu-title .mbu-registration > h1 + p {
  display: none !important;
}

.mbr-auth-page-header {
  margin: 0 0 2rem;
  max-width: 40rem;
}

.mbr-auth-page-header .mbr-label {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.mbr-auth-page-header__intro {
  margin: 0.75rem 0 0;
  color: color-mix(in oklab, var(--foreground) 72%, transparent);
  max-width: 36rem;
}

:is(.mbu-registration, .mbu-profile) {
  max-width: 72rem;
  margin: 0 auto;
  padding-bottom: 2rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-header {
  margin: 0 0 2.5rem;
  padding-bottom: 0;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-header__rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-header__eyebrow {
  font-family: var(--font-label);
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-header__line {
  flex: 1;
  height: 1px;
  background: color-mix(in oklab, var(--ink) 12%, transparent);
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-header__hebrew {
  font-family: var(--font-hebrew);
  font-size: 1.75rem;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
}

:is(.mbu-registration, .mbu-profile) > h1,
:is(.mbu-registration, .mbu-profile) .mbr-reg-header h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--foreground);
}

:is(.mbu-registration, .mbu-profile) > h1::before {
  display: none;
}

:is(.mbu-registration, .mbu-profile) > p,
:is(.mbu-registration, .mbu-profile) .mbr-reg-header p {
  max-width: 42rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

:is(.mbu-registration, .mbu-profile) form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-pair {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  :is(.mbu-registration, .mbu-profile) .mbr-reg-pair {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

:is(.mbu-registration, .mbu-profile) fieldset {
  margin: 0;
  padding: 1.5rem 1.35rem 1.25rem;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: #fff;
  box-shadow: 0 1px 2px color-mix(in oklab, var(--ink) 4%, transparent);
}

@media (min-width: 768px) {
  :is(.mbu-registration, .mbu-profile) fieldset {
    padding: 1.75rem 1.75rem 1.5rem;
  }
}

:is(.mbu-registration, .mbu-profile) legend {
  float: left;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0 0 0.9rem;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

:is(.mbu-registration, .mbu-profile) legend + * {
  clear: both;
}

/* Main member: 3-column field grid */
:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 640px) {
  :is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  :is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main > legend,
:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main > .mbr-span-full {
  grid-column: 1 / -1;
}

:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-main > .form-group {
  margin-bottom: 1rem;
}

/* Side cards (parsha / toranut / notifications) stay single-column inside */
:is(.mbu-registration, .mbu-profile) .mbr-reg-pair fieldset {
  display: block;
  height: 100%;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-pair fieldset > .form-group {
  margin-bottom: 0.55rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-pair fieldset > .form-group:first-of-type {
  margin-bottom: 0.75rem;
}

/* Family table — match Lovable register mockup */
:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-family {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

:is(.mbu-registration, .mbu-profile) .family-members-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  border-radius: 0.125rem;
  background: var(--paper, #fff);
}

:is(.mbu-registration, .mbu-profile) .family-members-table-wrap > .family-members-table,
:is(.mbu-registration, .mbu-profile) fieldset.mbr-reg-family > .family-members-table,
:is(.mbu-registration, .mbu-profile) .family-members-table,
:is(.mbu-registration, .mbu-profile) table.widefat.family-members-table {
  display: table !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.75rem;
}

:is(.mbu-registration, .mbu-profile) .family-members-table thead {
  background: var(--secondary);
}

:is(.mbu-registration, .mbu-profile) .family-members-table th,
:is(.mbu-registration, .mbu-profile) .family-members-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  font-size: 0.75rem;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.mbu-registration, .mbu-profile) .family-members-table th:first-child,
:is(.mbu-registration, .mbu-profile) .family-members-table td:first-child {
  width: 2.5rem;
  padding-left: 0.75rem;
  padding-right: 0.35rem;
}

:is(.mbu-registration, .mbu-profile) .family-members-table thead th {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 60%, transparent);
  background: var(--secondary);
  line-height: 1.3;
}

:is(.mbu-registration, .mbu-profile) .family-members-table tbody tr:hover {
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
}

:is(.mbu-registration, .mbu-profile) .no-family-members-row td {
  padding: 1.5rem 0.75rem !important;
  text-align: center;
  white-space: normal;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-family-legend {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

:is(.mbu-registration, .mbu-profile) .mbr-family-legend strong {
  font-weight: 600;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}

:is(.mbu-registration, .mbu-profile) .mbr-family-legend em {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-style: normal;
  color: inherit;
}

:is(.mbu-registration, .mbu-profile) .mbr-family-legend br {
  content: "";
  display: block;
  margin: 0;
  line-height: 0;
}

:is(.mbu-registration, .mbu-profile) .family-member-edit {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--gold) 70%, transparent);
  text-underline-offset: 0.15em;
}

:is(.mbu-registration, .mbu-profile) .mbr-family-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-family-actions .form-group {
  margin: 0;
}

:is(.mbu-registration, .mbu-profile) .pull-right {
  float: none !important;
}

:is(.mbu-registration, .mbu-profile) .mbr-family-actions .btn,
:is(.mbu-registration, .mbu-profile) .delete-members-button,
:is(.mbu-registration, .mbu-profile) .add-member-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid color-mix(in oklab, var(--ink) 15%, transparent) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-label) !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  color: color-mix(in oklab, var(--foreground) 70%, transparent) !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

:is(.mbu-registration, .mbu-profile) .mbr-btn-icon {
  flex-shrink: 0;
  display: block;
}

:is(.mbu-registration, .mbu-profile) .delete-members-button:hover {
  border-color: #b91c1c !important;
  color: #b91c1c !important;
  background: transparent !important;
}

:is(.mbu-registration, .mbu-profile) .add-member-button {
  color: var(--foreground) !important;
}

:is(.mbu-registration, .mbu-profile) .add-member-button:hover {
  border-color: var(--gold) !important;
  color: var(--gold-dim) !important;
  background: transparent !important;
}

:is(.mbu-registration, .mbu-profile) .add-member-button::before {
  content: none !important;
  display: none !important;
}

/* Footer actions */
:is(.mbu-registration, .mbu-profile) .mbr-reg-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-footer__signin {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-footer__signin a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--gold) 70%, transparent);
  text-underline-offset: 0.15em;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-footer__signin a:hover {
  color: var(--gold-dim);
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-footer .form-group {
  margin: 0;
}

:is(.mbu-registration, .mbu-profile) .mbr-reg-footer input[type="submit"].btn-primary,
:is(.mbu-registration, .mbu-profile) .mbr-reg-footer .btn-primary.form-control {
  width: auto;
  min-width: 11rem;
  max-width: none;
  padding-left: 2rem;
  padding-right: 2rem;
}

.mbu-profile .mbr-reg-footer {
  justify-content: flex-end;
}

/* Profile-only: Shiurim notifications table */
.mbu-profile fieldset.mbr-reg-shiurim .members-registered,
.mbu-profile table.members-registered {
  width: 100%;
  margin: 0.75rem 0 0;
  border-collapse: collapse;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: var(--secondary);
  font-size: 0.875rem;
}

.mbu-profile table.members-registered th,
.mbu-profile table.members-registered td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  text-align: left;
  vertical-align: top;
}

.mbu-profile table.members-registered thead th {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: color-mix(in oklab, var(--secondary) 70%, #fff);
  border-bottom-color: color-mix(in oklab, var(--ink) 12%, transparent);
}

.mbu-profile table.members-registered tbody tr:last-child td {
  border-bottom: 0;
}

.mbu-profile .no-lectures-registered,
.mbu-profile .lectures-registered {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* Toranut availability status icons (Glyphicons font not loaded in redesign) */
.mbu-profile label.glyphicon {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--foreground);
  cursor: default;
}

.mbu-profile label.glyphicon::before {
  content: "";
  display: block;
  flex: 0 0 1.05rem;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mbu-profile label.glyphicon-ban-circle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23202838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M6.5 6.5l11 11'/%3E%3C/svg%3E");
}

.mbu-profile label.glyphicon-ok-circle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8f3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
}
