/* MRP 4.0.7 — isolated, responsive unified authentication screen */
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] {
  --mrp-font: "Abar", "آبار", "Vazirmatn", Tahoma, sans-serif;
  --mrp-ink: #471b17;
  --mrp-muted: #766459;
  --mrp-brand: #850b0d;
  --mrp-brand-deep: #700709;
  --mrp-line: #ead8ba;
  --mrp-surface: #fffaf2;
  font-family: var(--mrp-font);
  direction: rtl;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  scroll-margin-top: 120px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] *,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] *::before,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] *::after { box-sizing: border-box; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] :is(button, input, select, textarea) { font-family: inherit; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth {
  background: #f7ebd5;
  color: var(--mrp-ink);
  min-height: 480px;
  width: 100%;
  padding: clamp(22px, 4vw, 50px) 16px 65px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__shell {
  width: min(1060px, 100%);
  margin: 0 auto;
  background: #fffaf2;
  border: 1px solid #e6d0a9;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(91, 31, 17, .09);
  overflow: visible;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__header {
  text-align: center;
  padding: 28px 24px 27px;
  background: linear-gradient(115deg, #8a0a0e, #69070a);
  border-radius: 21px 21px 0 0;
  color: #fff7eb;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__eyebrow {
  display: block;
  color: #f3d6a4;
  font-size: 13px;
  letter-spacing: .1px;
  font-weight: 600;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__header h1 {
  color: #fff8ec;
  margin: 4px 0 3px;
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.6;
  font-weight: 800;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__header p {
  margin: 0;
  color: #fae8cf;
  line-height: 1.9;
  font-size: 14px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__layout {
  display: grid;
  grid-template-columns: minmax(235px, 285px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__navigation {
  background: #fcf0dd;
  padding: 28px 17px 24px;
  border-left: 1px solid #ebd9bc;
  border-bottom-right-radius: 21px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__nav-title {
  margin: 0 8px 15px;
  color: #715144;
  font-size: 14px;
  font-weight: 700;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px 13px;
  border: 1px solid #e5d1b4;
  border-radius: 13px;
  text-align: right;
  background: #fffaf2;
  color: #542920;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: background .17s ease, border-color .17s ease, box-shadow .17s ease;
  box-shadow: none;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab:hover {
  border-color: #bf9574;
  background: #fff5e7;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab:focus-visible,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__option:focus-visible {
  outline: 3px solid #d6a15d;
  outline-offset: 2px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab.is-active {
  background: #8a0b0e;
  color: #fff8ec;
  border-color: #8a0b0e;
  box-shadow: 0 7px 15px rgba(105, 7, 10, .13);
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__step {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: #f8e8cd;
  border: 1px solid #e5cca5;
  border-radius: 11px;
  color: #8b2520;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .is-active .mrp-unified-auth__step {
  background: #a52f2b;
  border-color: #c56859;
  color: #fff;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text { display: grid; gap: 5px; flex: 1; min-width: 0; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text strong { font-size: 14px; font-weight: 800; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text small { font-size: 11px; color: #997c6e; font-weight: 500; line-height: 1.7; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .is-active .mrp-unified-auth__tab-text small { color: #f2d7c2; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-chevron { font-size: 23px; line-height: 1; color: #a57d63; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .is-active .mrp-unified-auth__tab-chevron { color: #ffe3c9; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__nav-hint {
  padding: 13px 11px 0;
  font-size: 12px;
  line-height: 1.95;
  color: #896f62;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__content {
  min-width: 0;
  padding: 28px clamp(16px, 3vw, 36px) 40px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth {
  background: transparent;
  min-height: 0;
  padding: 0;
  display: block;
  width: 100%;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth__panel,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth__panel--wide {
  background: transparent;
  width: 100%;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  padding: 0;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth__brand {
  color: #7b0b0d;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.65;
  font-weight: 800;
  margin: 0 0 7px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth__lead {
  color: #806657;
  font-size: 14px;
  line-height: 1.95;
  margin: 0 0 20px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #7b0b0d;
  margin: 9px 0 13px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-form { gap: 5px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-field { margin: 0 0 12px; gap: 7px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-field__label { color: #502820; font-size: 13px; font-weight: 750; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] :is(.mrp-input, .mrp-textarea, select) {
  width: 100%;
  border-radius: 11px;
  border: 1px solid #e4caa6;
  background: #fff;
  font-size: 14px;
  color: #4b2218;
  min-height: 48px;
  padding: 11px 13px;
  text-align: right;
  box-shadow: none;
  direction: rtl;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] :is(.mrp-input, .mrp-textarea, select):focus {
  border-color: #a64d40;
  outline: 3px solid rgba(139, 11, 14, .10);
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] :is(.mrp-input, .mrp-textarea):disabled { background: #f7f2e8; opacity: .8; cursor: not-allowed; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-btn--primary {
  background: #870c0e;
  color: #fff9ee;
  border-radius: 11px;
  min-height: 49px;
  font-size: 14px;
  margin-top: 6px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-btn--primary:hover { background: #6f0609; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-form__row { gap: 9px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-alert { margin-bottom: 12px; font-size: 13px; line-height: 1.8; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth__links { display: none; }
/* Searchable combobox */
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo { position: relative; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__control { position: relative; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__input { padding-left: 42px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__arrow {
  position: absolute;
  top: 50%; left: 14px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #79533f;
  font-size: 21px;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  width: 100%;
  z-index: 75;
  background: #fffefb;
  border: 1px solid #dabb8d;
  border-radius: 11px;
  padding: 6px;
  max-height: 228px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 13px 28px rgba(71, 27, 23, .15);
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__option {
  display: block;
  border: 0;
  border-radius: 8px;
  background: transparent;
  width: 100%;
  text-align: right;
  color: #53352b;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.55;
  cursor: pointer;
}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__option:hover,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__option.is-highlighted { background: #f9eacd; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__option[aria-selected="true"] { color: #8b090b; font-weight: 800; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__empty,
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__hint { color: #876e5b; padding: 12px; font-size: 12px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-combo__help { color: #846d59; font-size: 11px; line-height: 1.8; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-required { color: #a30b1a; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-manual-county .mrp-link { display: inline-block; margin-bottom: 12px; font-size: 12px; }
@media (max-width: 800px) {
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__layout { grid-template-columns: 1fr; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__navigation { border-left: 0; border-bottom: 1px solid #ecd9bb; border-radius: 0; padding: 18px 15px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab { padding: 10px 7px; gap: 6px; flex-direction: column; text-align: center; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text strong { font-size: 12px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text small,
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-chevron,
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__nav-hint { display: none; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__nav-title { margin: 0 0 12px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__content { padding: 22px 18px 32px; }
}
@media (max-width: 480px) {
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth { padding: 14px 8px 40px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__header { padding: 22px 12px 19px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tabs { gap: 5px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__step { height: 29px; width: 29px; flex-basis: 29px; font-size: 12px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__navigation { padding: 12px 8px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab { min-height: 89px; padding: 9px 4px; border-radius: 10px; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__tab-text strong { font-size: 11px; line-height: 1.55; }
  :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth__content { padding: 19px 13px 28px; }
}

/* 4.0.8: compact role-first flow, independent of theme and Elementor layout */
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact { min-height:0; padding:0; width:100%; background:transparent; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__shell { width:100%; max-width:590px; border-radius:18px; overflow:visible; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__header { padding:21px 26px 18px; border-radius:17px 17px 0 0; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__header h2 { color:#fffaf0; font-size:22px; margin:4px 0; line-height:1.6; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__header p { font-size:12px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__content { display:block; padding:20px 25px 14px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-auth__brand { display:none; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-auth__lead { font-size:12px; margin-bottom:14px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-grid { display:grid; grid-template-columns:1fr; gap:9px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-card { width:100%; border:1px solid #ead6b7; background:#fffcf7; border-radius:12px; padding:13px 16px; text-align:right; box-shadow:none; cursor:pointer; display:flex; flex-direction:column; gap:5px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-card:hover, :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-card:focus-visible { border-color:#950d13; background:#fdf1dd; outline-offset:2px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-card strong { font-size:14px; font-weight:800; color:#741019; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-card span { font-size:12px; color:#775c4e; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth-switch { display:flex; align-items:center; flex-direction:column; gap:8px; text-align:center; padding:14px 20px 19px; border-top:1px solid #efdfc7; background:#fff8eb; border-radius:0 0 17px 17px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth-switch p { margin:0; font-size:12px; color:#70534a; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth-switch__actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:9px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth-switch button { font-size:12px; border:1px solid #ccaa85; border-radius:9px; padding:9px 13px; background:white; color:#800b0d; font-weight:700; cursor:pointer; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-auth-switch button:hover { background:#fff0da; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-section-title { font-size:16px; }
@media (max-width:600px){ :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__content { padding:15px 14px 9px; } :is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-unified-auth--compact .mrp-unified-auth__header { padding:17px 16px 13px; } }

/* 4.0.9: registration belongs to its own role instead of a global footer. */
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-unit { border:1px solid #e8d1ae;border-radius:13px;background:#fffbf4;overflow:hidden; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-unit .mrp-access-card { border:0; border-radius:0; padding:15px 17px 12px; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-register { width:100%; border:0; border-top:1px solid #f0deca; background:#fff3e1;color:#870d14; padding:11px 15px;text-align:right;font-size:12px;font-weight:800;cursor:pointer;font-family:inherit; }
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-register:hover,:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-register:focus-visible {background:#f6dfbd;outline:2px solid #9c1721;outline-offset:-2px;}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-note {background:#fbf2e6;border-top:1px solid #efddc4;margin:0;padding:9px 16px;font-size:11px;line-height:1.7;color:#81695d;}
:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-grid {gap:12px;}
@media(max-width:600px){:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-unit .mrp-access-card{padding:12px 13px 9px;}:is(#mrp-platform-root,#mrp-platform-popup-root)[data-view="unified"] .mrp-access-register{padding:10px 13px;}}
