@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #d3460a rgba(255, 241, 237, 0.92);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #d3460a rgba(255, 241, 237, 0.92);
}

*::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(255, 246, 242, 0.98), rgba(232, 246, 250, 0.72));
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 248, 246, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a45 0%, #d3460a 58%, #146f86 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 8px 16px rgba(176, 47, 0, 0.18);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff8a57 0%, #e05115 52%, #0f7289 100%);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.site-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.site-nav-inner {
  min-height: 5rem;
  gap: 1.5rem;
  direction: inherit;
}

.site-nav-links {
  gap: 2rem;
  flex-wrap: nowrap;
  direction: inherit;
}

.site-logo {
  flex-shrink: 0;
}

.site-nav-actions {
  gap: 1rem;
  flex-shrink: 0;
  direction: inherit;
}

.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #475569;
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0.2rem 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.7rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5a1f 0%, #cb3b04 100%);
  opacity: 0.96;
  transition: width 0.22s ease, opacity 0.22s ease;
}

.site-nav-link:hover {
  color: #b02f00;
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
  width: 100%;
}

.site-nav-link.is-active {
  color: #b02f00;
  font-weight: 700;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.78rem 1.45rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ff6128 0%, #d3460a 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(176, 47, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.26s ease, opacity 0.18s ease, background-color 0.22s ease;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(176, 47, 0, 0.26);
}

.site-nav-cta:active {
  transform: translateY(0);
}

/* Transaction pages and membership ledger refinements */
body.system-screen-body .system-table-shell--transactions {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: clamp(28rem, 64vh, 41rem) !important;
  overflow: hidden !important;
}

body.system-screen-body .system-table-shell--transactions > .overflow-x-auto {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

body.system-screen-body .system-data-table--transactions thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(226, 232, 240, 0.95) !important;
}

body.system-screen-body .system-data-table--transactions th,
body.system-screen-body .system-data-table--transactions td {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

body.system-screen-body .system-data-table--transactions th:first-child,
body.system-screen-body .system-data-table--transactions td:first-child {
  width: 22% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(2),
body.system-screen-body .system-data-table--transactions td:nth-child(2) {
  width: 15% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(3),
body.system-screen-body .system-data-table--transactions td:nth-child(3) {
  width: 11% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(4),
body.system-screen-body .system-data-table--transactions td:nth-child(4) {
  width: 17% !important;
}

body.system-screen-body .system-data-table--transactions th:last-child,
body.system-screen-body .system-data-table--transactions td:last-child {
  width: 10.6rem !important;
  min-width: 10.6rem !important;
}

body.system-screen-body .system-data-table--transactions .system-row-actions--compact {
  width: 100% !important;
}

body.system-screen-body .system-data-table--transactions .system-row-actions--compact .system-table-button--icon,
body.system-screen-body .system-data-table--transactions .system-row-actions--compact .system-table-button--ghost {
  width: 2.45rem !important;
  min-width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 999px !important;
}

body.system-screen-body .system-transaction-actions-cell {
  padding-inline-end: 1rem !important;
}

body.system-screen-body .system-form-panel--transaction .system-form-dialog--transaction {
  width: min(58rem, calc(100vw - 1rem)) !important;
  max-height: min(38rem, calc(100dvh - 1rem)) !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 1.9rem !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.16) !important;
}

body.system-screen-body .system-form-panel--transaction .system-toolbar {
  justify-content: center !important;
  padding: 1.55rem 1.75rem 1rem !important;
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 84%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body.system-screen-body .system-transaction-modal-title {
  width: 100% !important;
  text-align: center !important;
}

body.system-screen-body .system-transaction-modal-form {
  padding: 1.35rem 1.75rem 1.5rem !important;
  gap: 1rem !important;
  overflow-y: auto !important;
}

body.system-screen-body .system-transaction-amount-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 4.15rem !important;
  align-items: stretch !important;
  min-height: 3.3rem !important;
  border: 1px solid rgba(148, 163, 184, 0.48) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body.system-screen-body .system-transaction-amount-field input {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.system-screen-body .system-transaction-amount-field span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-inline-start: 1px solid rgba(148, 163, 184, 0.4) !important;
  background: linear-gradient(180deg, #fff8ef 0%, #fff1e2 100%) !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

body.system-screen-body .system-transaction-modal-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  flex-wrap: wrap !important;
  padding-top: 0.25rem !important;
}

body.system-screen-body .system-transaction-modal-actions .system-quick-button,
body.system-screen-body .system-transaction-modal-actions .system-ghost-button {
  min-width: 10.25rem !important;
}

body.system-screen-body .system-transaction-modal-actions__save {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(203, 213, 225, 0.94) !important;
  color: #0f172a !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

body.system-screen-body .system-transaction-field-value {
  display: flex !important;
  align-items: center !important;
  min-height: 3.3rem !important;
  padding: 0.9rem 1rem !important;
  border: 1px solid rgba(203, 213, 225, 0.92) !important;
  border-radius: 1rem !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

body.system-screen-body .system-transaction-modal-form--readonly {
  padding-top: 1.4rem !important;
}

body.system-screen-body .system-transaction-modal-actions--view {
  padding-top: 0.6rem !important;
}

body.system-screen-body #membership-ledger-shell {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: clamp(30rem, 66vh, 44rem) !important;
  overflow: hidden !important;
}

body.system-screen-body #membership-ledger-shell > .overflow-x-auto {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

body.system-screen-body .system-data-table--membership-ledger thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: #f7fbff !important;
  box-shadow: inset 0 -1px 0 rgba(226, 232, 240, 0.95) !important;
}

body.system-screen-body .system-data-table--membership-ledger th,
body.system-screen-body .system-data-table--membership-ledger td {
  padding: 0.72rem 0.3rem !important;
  font-size: 0.74rem !important;
  line-height: 1.24 !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

body.system-screen-body .system-data-table--membership-ledger th:first-child,
body.system-screen-body .system-data-table--membership-ledger td:first-child {
  width: 2.8rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(2),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(2) {
  width: 5.8rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(3),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(3) {
  width: 5.2rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(4),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(4) {
  width: 4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(7),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(7) {
  width: 3.6rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(10),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(10) {
  width: 4.6rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(11),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(11) {
  width: 4.8rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(12),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(12) {
  width: 4.4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:last-child,
body.system-screen-body .system-data-table--membership-ledger td:last-child {
  width: 4.2rem !important;
  min-width: 4.2rem !important;
}

body.system-screen-body .system-data-table--membership-ledger td[data-field="member"] {
  font-weight: 700 !important;
  color: #1f2937 !important;
}

body.system-screen-body .system-membership-ledger-actions {
  gap: 0.45rem !important;
}

body.system-screen-body .system-membership-ledger-actions .system-table-button--icon,
body.system-screen-body .system-membership-ledger-actions .system-table-button--ghost {
  width: 2rem !important;
  min-width: 2rem !important;
  height: 2rem !important;
}

@media (max-width: 860px) {
  body.system-screen-body .system-table-shell--transactions {
    height: clamp(24rem, 70vh, 33rem) !important;
  }

  body.system-screen-body .system-form-panel--transaction .system-form-dialog--transaction {
    width: calc(100vw - 0.7rem) !important;
    max-height: calc(100dvh - 0.7rem) !important;
  }

  body.system-screen-body .system-form-panel--transaction .system-toolbar,
  body.system-screen-body .system-transaction-modal-form {
    padding-inline: 1rem !important;
  }

  body.system-screen-body #membership-ledger-shell {
    height: clamp(24rem, 72vh, 35rem) !important;
  }
}

.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.site-theme-toggle:hover,
.site-theme-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
  color: #b02f00;
}

.site-primary-button,
.site-secondary-button,
.site-secondary-button--light,
.site-outline-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.7rem;
  border-radius: 1rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.26s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-primary-button {
  background: linear-gradient(180deg, #ff6128 0%, #d3460a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 28px rgba(176, 47, 0, 0.2);
}

.site-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(176, 47, 0, 0.26);
}

.site-secondary-button {
  background: #eef1f4;
  color: #2c3947;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.site-secondary-button:hover {
  transform: translateY(-2px);
  background: #f6f8fa;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.site-secondary-button--light {
  background: #ffffff;
  color: #b02f00;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.site-secondary-button--light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
}

.site-outline-light-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.site-outline-light-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.site-nav-cta::before,
.site-primary-button::before,
.site-secondary-button::before,
.site-secondary-button--light::before,
.site-outline-light-button::before {
  content: none;
}

.site-nav-cta:hover::before,
.site-primary-button:hover::before,
.site-secondary-button:hover::before,
.site-secondary-button--light:hover::before,
.site-outline-light-button:hover::before {
  content: none;
}

.site-button-content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: transform 0.22s ease;
}

.site-button-content.has-dumbbell {
  position: relative;
}

.site-button-dumbbell {
  position: absolute;
  inset-inline-start: calc(100% + 0.16rem);
  inset-inline-end: auto;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  overflow: hidden;
  opacity: 0;
  font-size: 1.05rem;
  line-height: 1;
  transform: translate(-6px, -50%);
  transition: opacity 0.18s ease, transform 0.22s ease;
  flex: 0 0 auto;
  pointer-events: none;
}

html[dir="rtl"] .site-button-dumbbell {
  inset-inline-start: auto;
  inset-inline-end: calc(100% + 0.16rem);
  transform: translate(6px, -50%);
}

.site-ltr-text {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.site-button-lg {
  min-height: 3.5rem;
  padding: 1rem 2.2rem;
  border-radius: 1.1rem;
  font-size: 1.02rem;
}

.site-inline-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-inline-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.site-primary-button .material-symbols-outlined,
.site-secondary-button .material-symbols-outlined,
.site-secondary-button--light .material-symbols-outlined,
.site-outline-light-button .material-symbols-outlined,
.site-inline-cta .material-symbols-outlined {
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-primary-button:hover .material-symbols-outlined,
.site-secondary-button:hover .material-symbols-outlined,
.site-secondary-button--light:hover .material-symbols-outlined,
.site-outline-light-button:hover .material-symbols-outlined,
.site-inline-cta:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.site-nav-cta:hover .site-button-dumbbell,
.site-nav-cta:focus-visible .site-button-dumbbell,
.site-primary-button:hover .site-button-dumbbell,
.site-primary-button:focus-visible .site-button-dumbbell,
.site-secondary-button:hover .site-button-dumbbell,
.site-secondary-button:focus-visible .site-button-dumbbell,
.site-secondary-button--light:hover .site-button-dumbbell,
.site-secondary-button--light:focus-visible .site-button-dumbbell,
.site-outline-light-button:hover .site-button-dumbbell,
.site-outline-light-button:focus-visible .site-button-dumbbell {
  opacity: 1;
  transform: translate(0, -50%);
}

.site-nav-cta:hover .site-button-content.has-dumbbell,
.site-nav-cta:focus-visible .site-button-content.has-dumbbell,
.site-primary-button:hover .site-button-content.has-dumbbell,
.site-primary-button:focus-visible .site-button-content.has-dumbbell,
.site-secondary-button:hover .site-button-content.has-dumbbell,
.site-secondary-button:focus-visible .site-button-content.has-dumbbell,
.site-secondary-button--light:hover .site-button-content.has-dumbbell,
.site-secondary-button--light:focus-visible .site-button-content.has-dumbbell,
.site-outline-light-button:hover .site-button-content.has-dumbbell,
.site-outline-light-button:focus-visible .site-button-content.has-dumbbell {
  transform: translateX(-0.64rem);
}

html[dir="rtl"] .site-primary-button:hover .material-symbols-outlined,
html[dir="rtl"] .site-secondary-button:hover .material-symbols-outlined,
html[dir="rtl"] .site-secondary-button--light:hover .material-symbols-outlined,
html[dir="rtl"] .site-outline-light-button:hover .material-symbols-outlined,
html[dir="rtl"] .site-inline-cta:hover .material-symbols-outlined {
  transform: translateX(-4px);
}

html[dir="rtl"] .site-nav-cta:hover .site-button-dumbbell,
html[dir="rtl"] .site-nav-cta:focus-visible .site-button-dumbbell,
html[dir="rtl"] .site-primary-button:hover .site-button-dumbbell,
html[dir="rtl"] .site-primary-button:focus-visible .site-button-dumbbell,
html[dir="rtl"] .site-secondary-button:hover .site-button-dumbbell,
html[dir="rtl"] .site-secondary-button:focus-visible .site-button-dumbbell,
html[dir="rtl"] .site-secondary-button--light:hover .site-button-dumbbell,
html[dir="rtl"] .site-secondary-button--light:focus-visible .site-button-dumbbell,
html[dir="rtl"] .site-outline-light-button:hover .site-button-dumbbell,
html[dir="rtl"] .site-outline-light-button:focus-visible .site-button-dumbbell {
  transform: translate(0, -50%);
}

html[dir="rtl"] .site-nav-cta:hover .site-button-content.has-dumbbell,
html[dir="rtl"] .site-nav-cta:focus-visible .site-button-content.has-dumbbell,
html[dir="rtl"] .site-primary-button:hover .site-button-content.has-dumbbell,
html[dir="rtl"] .site-primary-button:focus-visible .site-button-content.has-dumbbell,
html[dir="rtl"] .site-secondary-button:hover .site-button-content.has-dumbbell,
html[dir="rtl"] .site-secondary-button:focus-visible .site-button-content.has-dumbbell,
html[dir="rtl"] .site-secondary-button--light:hover .site-button-content.has-dumbbell,
html[dir="rtl"] .site-secondary-button--light:focus-visible .site-button-content.has-dumbbell,
html[dir="rtl"] .site-outline-light-button:hover .site-button-content.has-dumbbell,
html[dir="rtl"] .site-outline-light-button:focus-visible .site-button-content.has-dumbbell {
  transform: translateX(0.64rem);
}

.site-brand-mark-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(0.56);
  transition: transform 0.22s ease, filter 0.22s ease, opacity 0.22s ease;
}

.site-brand-mark-link:hover .site-brand-mark,
.site-brand-mark-link:focus-visible .site-brand-mark {
  filter: none;
  transform: scale(1.06);
}

.site-brand-mark--ghost {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.2;
  filter: grayscale(1) brightness(0.7);
}

.dashboard-preview-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.24s ease;
}

.dashboard-preview-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, background 0.22s ease;
}

.dashboard-preview-shell::before {
  content: "Open Masulka System ↗";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -40%) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(12px);
}

.dashboard-preview-shell > .grid {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dashboard-preview-content {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding-inline-end: 0.25rem;
}

.dashboard-preview-content::-webkit-scrollbar,
.system-panel-scroll::-webkit-scrollbar {
  width: 0.45rem;
}

.dashboard-preview-content::-webkit-scrollbar-thumb,
.system-panel-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(211, 70, 10, 0.72);
}

.dashboard-preview-content::-webkit-scrollbar-track,
.system-panel-scroll::-webkit-scrollbar-track {
  background: rgba(255, 241, 237, 0.72);
  border-radius: 999px;
}

.dashboard-preview-shell:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.dashboard-preview-shell:hover::after,
.dashboard-preview-shell:focus-visible::after {
  opacity: 1;
  background: rgba(15, 23, 42, 0.18);
}

.dashboard-preview-shell:hover::before,
.dashboard-preview-shell:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dashboard-preview-shell:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.35);
  outline-offset: 4px;
}

.dashboard-preview-shell::before {
  content: "Open Masulka System ↗";
  min-width: 14rem;
  padding-inline: 1.35rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.9);
}

.dashboard-open-hint {
  display: none;
}

.dashboard-preview-shell::before {
  content: "Open Masulka System";
}

.dashboard-pill-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  flex: 0 0 auto;
  padding: 0.42rem;
  border-radius: 1.2rem;
  background: #f1f5f9;
}

.dashboard-pill-group--horizontal {
  padding-inline: 0.5rem;
}

.dashboard-pill-group--horizontal .dashboard-pill {
  min-width: 3.3rem;
}

.dashboard-pill-group--compact {
  gap: 0.24rem;
  padding: 0.24rem;
  border-radius: 1rem;
}

.dashboard-pill-group--compact.dashboard-pill-group--horizontal {
  padding-inline: 0.28rem;
}

.dashboard-pill-group--compact .dashboard-pill {
  min-height: 1.72rem;
  min-width: 2.45rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.64rem;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  min-width: 3.35rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.dashboard-pill.is-active,
.dashboard-pill[aria-current="page"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.09);
}

.dashboard-pill.is-clicked {
  animation: dashboard-pill-pop 0.34s ease;
}

.dashboard-chart-stage {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.dashboard-chart-stage.is-transitioning {
  animation: dashboard-chart-refresh 0.42s ease;
}

.dashboard-chart-stage [data-period-point] {
  transition: left 0.32s ease, top 0.32s ease, transform 0.32s ease;
}

@keyframes dashboard-chart-refresh {
  0% {
    opacity: 0.68;
    transform: translateY(8px) scale(0.985);
  }

  55% {
    opacity: 1;
    transform: translateY(-2px) scale(1.005);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dashboard-pill-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: translateY(-1px) scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

.dashboard-preview-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-preview-meta h4,
.dashboard-preview-meta p {
  overflow-wrap: anywhere;
}

.dashboard-view-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-view-switch--muted {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #ffffff;
  color: #64748b;
}

.dashboard-view-switch--active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.system-page-shell {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0.5rem;
  border: 2px solid #111827;
  border-radius: 2.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

.system-sidebar-toggle {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 38;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.system-sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: none;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.system-screen-layout.is-system-swapping {
  opacity: 0.96;
  transition: opacity 0.12s ease;
  pointer-events: none;
}

.system-page-shell > * {
  min-width: 0;
}

.system-screen-body {
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
}

.system-screen-main {
  --system-shell-top-space: clamp(4.35rem, 5.5vw, 5.25rem);
  --system-shell-bottom-space: 0.75rem;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  padding-top: var(--system-shell-top-space) !important;
  padding-bottom: var(--system-shell-bottom-space) !important;
}

.system-screen-layout {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  height: calc(100svh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  height: calc(100dvh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  min-height: calc(100svh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  min-height: calc(100dvh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  max-height: calc(100svh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  max-height: calc(100dvh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
}

.system-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-inline-end: 0.2rem;
}

.system-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.system-sidebar-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}

.system-sidebar-brand__copy {
  min-width: 0;
}

.system-sidebar-brand__copy p,
.system-sidebar-brand__copy strong {
  display: block;
  margin: 0;
}

.system-sidebar-brand__copy p {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.system-sidebar-brand__copy strong {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.02rem;
  font-weight: 800;
}

.system-sidebar-nav {
  display: grid;
  gap: 0.22rem;
}

.system-sidebar-item {
  display: grid;
  gap: 0.28rem;
}

.system-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.08s ease, color 0.08s ease;
}

.system-sidebar-link__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.system-sidebar-link__body {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.system-sidebar-link__icon {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.82);
  flex: 0 0 auto;
}

.system-sidebar-link__icon--sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.54);
}

.system-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.system-sidebar-link.has-children {
  padding-inline-end: 0.7rem;
}

.system-sidebar-link.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
}

.system-sidebar-link.is-active .system-sidebar-link__icon,
.system-sidebar-link.is-parent-active .system-sidebar-link__icon {
  color: #d3460a;
}

.system-sidebar-link--sub {
  margin-inline-start: 1.1rem;
  padding-block: 0.72rem;
  padding-inline: 0.85rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.56);
}

.system-sidebar-link--sub.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.system-sidebar-submenu {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.2s ease;
}

.system-sidebar-submenu .system-sidebar-link {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.system-sidebar-item.is-open > .system-sidebar-submenu,
.system-sidebar-submenu.is-open {
  max-height: 18rem;
  opacity: 1;
  transform: translateY(0);
}

.system-sidebar-item.is-open > .system-sidebar-submenu .system-sidebar-link,
.system-sidebar-submenu.is-open .system-sidebar-link {
  opacity: 1;
  transform: translateY(0);
}

.system-sidebar-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.system-sidebar-submenu-toggle .material-symbols-outlined {
  font-size: 1rem;
}

.system-sidebar-submenu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.system-sidebar-submenu-toggle.is-open {
  transform: rotate(180deg);
}

.system-sidebar-link.is-active .system-sidebar-submenu-toggle,
.system-sidebar-link.is-parent-active .system-sidebar-submenu-toggle {
  color: #d3460a;
  border-color: rgba(211, 70, 10, 0.18);
  background: rgba(211, 70, 10, 0.08);
}

.system-sidebar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #fff1ed;
  color: #b02f00;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-sidebar-branch {
  display: grid;
  gap: 0.42rem;
  margin-top: auto;
}

.system-sidebar-branch__label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-sidebar-branch-picker {
  position: relative;
  z-index: 14;
  isolation: isolate;
}

.system-sidebar-branch__trigger {
  width: 100%;
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: start;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.system-sidebar-branch__trigger:hover,
.system-sidebar-branch-picker.is-open .system-sidebar-branch__trigger {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.system-sidebar-branch__trigger .material-symbols-outlined {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.system-sidebar-branch-picker.is-open .system-sidebar-branch__trigger .material-symbols-outlined {
  transform: rotate(180deg);
}

.system-sidebar-branch__menu {
  position: absolute;
  inset-inline: 0;
  top: auto;
  bottom: calc(100% + 0.35rem);
  z-index: 18;
  display: grid;
  gap: 0.22rem;
  padding: 0.28rem;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  max-height: min(12rem, 38vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #121a2a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transform-origin: bottom center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.system-sidebar-branch-picker.is-open .system-sidebar-branch__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.system-sidebar-branch__option {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: none;
  border-radius: 0.8rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  appearance: none;
  outline: none;
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.system-sidebar-branch__option:hover,
.system-sidebar-branch__option.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.system-sidebar::-webkit-scrollbar,
.system-sidebar-branch__menu::-webkit-scrollbar {
  width: 0.4rem;
}

.system-sidebar::-webkit-scrollbar-thumb,
.system-sidebar-branch__menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.system-sidebar::-webkit-scrollbar-track,
.system-sidebar-branch__menu::-webkit-scrollbar-track {
  background: transparent;
}

html[dir="rtl"] .system-sidebar-branch__option {
  justify-content: flex-end;
  text-align: right;
}

.system-sidebar-subscription {
  width: 100%;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1rem 1.05rem;
  border: none;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #28c76f 0%, #12a150 100%);
  color: #ffffff;
  text-align: start;
  box-shadow: 0 14px 28px rgba(18, 161, 80, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.system-sidebar-subscription:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(18, 161, 80, 0.28);
  filter: saturate(1.04);
}

.system-sidebar-subscription__title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.system-sidebar-subscription strong {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.system-panel-scroll {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  align-content: start;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-inline-end: 0.35rem;
}

.system-panel-scroll.is-panel-entering {
  animation: system-panel-shell-swap 0.1s ease-out both;
}

.system-panel-scroll.is-panel-entering > * {
  animation: none;
}

.system-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.system-page-header {
  align-items: flex-start;
}

.system-page-header-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.system-page-header-tools {
  display: flex;
  flex: 1 1 20rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.system-page-header-tools--member {
  flex-wrap: nowrap;
}

.system-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.system-section-head .dashboard-pill-group {
  margin-inline-start: auto;
  flex-shrink: 0;
}

.system-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.system-toolbar-actions--member {
  flex-wrap: nowrap;
  align-items: center;
}

.system-toolbar-search {
  width: 100%;
  max-width: 19rem;
  flex: 1 1 16rem;
}

.system-page-header-tools--member .system-toolbar-search {
  max-width: 24rem;
  flex: 1 1 24rem;
}

.system-toolbar-search input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  background: #f8fafc;
  padding: 0.82rem 0.95rem;
  color: #0f172a;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.system-toolbar-search input:focus {
  border-color: rgba(255, 107, 53, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  outline: none;
}

.system-quick-button,
.system-ghost-button,
.system-table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 1rem;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.system-quick-button {
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  background: linear-gradient(180deg, #ff6128 0%, #d3460a 100%);
  color: #ffffff;
  box-shadow: 0 16px 26px rgba(176, 47, 0, 0.2);
}

.system-quick-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(176, 47, 0, 0.24);
}

.system-icon-button {
  min-width: 3rem;
  padding: 0.8rem;
}

.system-icon-button .material-symbols-outlined,
.system-table-button--icon .material-symbols-outlined {
  font-size: 1.2rem;
  line-height: 1;
}

.system-ghost-button {
  min-height: 2.85rem;
  padding: 0.72rem 1rem;
  background: #ffffff;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.system-ghost-button:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.system-table-button {
  min-height: 2.3rem;
  padding: 0.52rem 0.85rem;
  font-size: 0.8rem;
  background: #fff5f0;
  color: #b02f00;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.system-table-button:hover {
  transform: translateY(-1px);
  background: #ffede4;
}

.system-table-button--icon {
  min-width: 2.3rem;
  padding: 0.5rem;
}

.system-form-panel {
  position: absolute;
  inset: 0.5rem;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1.8rem;
  border: 0 !important;
  background: rgba(15, 23, 42, 0.015) !important;
  box-shadow: none !important;
  backdrop-filter: blur(0.15px) saturate(100%);
  -webkit-backdrop-filter: blur(0.15px) saturate(100%);
  overflow: auto;
}

.system-form-panel.is-open {
  display: flex;
}

.system-form-dialog {
  width: min(100%, 54rem);
  margin: auto;
  max-height: min(86vh, 46rem);
  overflow: auto;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(1px) saturate(104%);
  -webkit-backdrop-filter: blur(1px) saturate(104%);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  padding: 1.35rem;
}

.system-user-card {
  margin-top: auto;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.system-user-summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 1.1rem;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.system-user-summary:hover,
.system-user-summary:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.system-user-avatar {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1.1rem;
  object-fit: cover;
  flex: 0 0 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, #1d2435 0%, #ff6128 100%);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.system-user-avatar--compact {
  width: 2.35rem;
  height: 2.35rem;
  flex-basis: 2.35rem;
  border-radius: 0.85rem;
}

.system-user-copy {
  min-width: 0;
}

.system-user-copy p {
  margin: 0;
}

.system-sidebar-logout {
  width: auto;
  min-height: 2.45rem;
  justify-content: center;
  align-self: flex-start;
  padding: 0.58rem 0.82rem;
  border-radius: 0.95rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.system-sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.system-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  width: 100%;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 107, 53, 0.22);
  background: linear-gradient(180deg, rgba(255, 97, 40, 0.95) 0%, rgba(211, 70, 10, 0.95) 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 14px 24px rgba(176, 47, 0, 0.18);
  transition: box-shadow 0.18s ease, filter 0.18s ease;
}

.system-plan-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 28px rgba(176, 47, 0, 0.22);
}

.system-utility-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.system-dialog-kicker {
  margin: 0 0 0.45rem;
  color: #b02f00;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.system-account-dialog,
.system-renewal-dialog {
  width: min(100%, 58rem);
}

.system-account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff7f2 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 107, 53, 0.12);
}

.system-account-avatar {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 1.25rem;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 53, 0.22);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.12);
}

.system-account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.system-account-stat,
.system-renewal-current,
.system-renewal-card,
.system-payment-option {
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.88);
}

.system-account-stat {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  min-height: 8rem;
  padding: 1rem;
  border-radius: 1.3rem;
}

.system-account-stat span,
.system-renewal-current span,
.system-renewal-card span,
.system-payment-block .system-dialog-kicker {
  color: #64748b;
}

.system-account-stat strong,
.system-renewal-current strong,
.system-renewal-card strong {
  color: #0f172a;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.system-account-stat small,
.system-renewal-card small {
  color: #64748b;
  line-height: 1.45;
}

.system-renewal-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 1.4rem;
}

.system-renewal-grid,
.system-payment-grid,
.system-mobile-metrics,
.system-phone-grid {
  display: grid;
  gap: 0.8rem;
}

.system-renewal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-renewal-grid--plans {
  align-items: stretch;
}

.system-renewal-card,
.system-payment-option {
  display: grid;
  min-width: 0;
  border-radius: 1.35rem;
  padding: 1rem;
  text-align: start;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.system-renewal-card {
  gap: 0.55rem;
  min-height: 15rem;
  align-content: start;
  padding: 1.2rem;
  color: #ffffff;
  border: none;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.system-renewal-card--month {
  background: linear-gradient(180deg, #ff6b72 0%, #ff6868 100%);
}

.system-renewal-card--year {
  background: linear-gradient(180deg, #94cb3d 0%, #8ac532 100%);
}

.system-renewal-card--half {
  background: linear-gradient(180deg, #ffd349 0%, #ffcb33 100%);
}

.system-renewal-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border-radius: 1.3rem;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.system-renewal-card:hover,
.system-renewal-card.is-selected,
.system-payment-option:hover,
.system-payment-option.is-selected {
  border-color: rgba(255, 107, 53, 0.36);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.system-renewal-card strong,
.system-renewal-card small,
.system-renewal-card em {
  color: #ffffff;
}

.system-renewal-card strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.system-renewal-card small {
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.96;
}

.system-renewal-card em {
  margin-top: auto;
  font-style: normal;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.system-payment-block {
  margin-top: 1rem;
}

.system-payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.system-payment-option {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 4rem;
  color: #0f172a;
  font-weight: 800;
}

.system-payment-option .material-symbols-outlined {
  color: #b02f00;
}

.system-payment-logo {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: #ffffff;
  padding: 0.16rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.system-payment-logo--wide {
  width: 3.8rem;
  height: 2rem;
  border-radius: 0.65rem;
}

.system-utility-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.system-mobile-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 97, 40, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f7f9fb 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.86);
}

.system-mobile-preview__copy {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.system-mobile-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-mobile-metrics div,
.system-phone-grid div,
.system-phone-list p {
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.system-mobile-metrics div {
  padding: 0.9rem;
}

.system-mobile-metrics span,
.system-phone-grid span,
.system-phone-list span,
.system-phone-balance span {
  display: block;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.system-mobile-metrics strong,
.system-phone-grid strong,
.system-phone-list strong,
.system-phone-balance strong {
  color: #0f172a;
  font-family: Manrope, "Vazirmatn", sans-serif;
}

.system-mobile-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.35rem;
}

.system-phone-frame {
  width: min(100%, 18.5rem);
  justify-self: center;
  padding: 0.7rem;
  border-radius: 2.25rem;
  background: #0f172a;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.system-phone-notch {
  width: 4.2rem;
  height: 0.32rem;
  margin: 0.2rem auto 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.system-phone-screen {
  display: grid;
  gap: 0.75rem;
  min-height: 27rem;
  padding: 1rem;
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.system-phone-top,
.system-phone-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.system-phone-top span {
  color: #0f172a;
  font-weight: 900;
}

.system-phone-top strong {
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
}

.system-phone-balance {
  padding: 1rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #ff6128 0%, #f7c948 100%);
  color: #fff;
}

.system-phone-balance span,
.system-phone-balance small {
  color: rgba(255, 255, 255, 0.82);
}

.system-phone-balance strong {
  display: block;
  margin-top: 0.3rem;
  color: #ffffff;
  font-size: 2.35rem;
}

.system-phone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-phone-grid div {
  padding: 0.85rem;
}

.system-phone-list {
  display: grid;
  gap: 0.55rem;
}

.system-phone-list p {
  margin: 0;
  padding: 0.8rem 0.9rem;
}

.system-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.25rem;
  min-height: 2.45rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8f1 0%, #fff2e8 100%);
  border: 1px solid rgba(255, 122, 69, 0.12);
  color: #d3460a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.system-membership-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.25rem), 1fr));
}

.system-plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(9.25rem, 14vw, 10.75rem);
  min-width: 0;
  padding: clamp(1rem, 1.6vw, 1.5rem);
}

.system-plan-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.system-plan-card__head > div {
  min-width: 0;
}

.system-plan-card__head .font-headline {
  font-size: clamp(1.2rem, 1.25vw, 1.75rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.system-plan-card__head > span {
  flex: 0 0 auto;
  min-width: 3.35rem;
  padding-inline: 0.55rem;
  text-align: center;
}

.system-table-scroll {
  max-height: 24rem;
  overflow: auto;
}

.system-form-grid {
  display: grid;
  gap: 1rem;
}

.system-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-form-field {
  display: grid;
  gap: 0.45rem;
}

.system-form-field label {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.system-form-field input,
.system-form-field select,
.system-form-field textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  background: #f8fafc;
  padding: 0.86rem 0.95rem;
  color: #0f172a;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.system-form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 1rem;
  padding-inline-end: 2.9rem;
}

.system-form-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.system-form-field input:focus,
.system-form-field select:focus,
.system-form-field textarea:focus {
  border-color: rgba(255, 107, 53, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
  outline: none;
}

.system-form-field input[list]::-webkit-calendar-picker-indicator {
  display: none;
  opacity: 0;
}

.system-form-field input[list] {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}

.system-form-field input[type="date"] {
  color-scheme: light;
  cursor: pointer;
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  background-image: none;
  padding-inline-end: 3rem;
}

.system-form-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  cursor: pointer;
  position: absolute;
  inset-inline-end: 0.9rem;
  width: 1.15rem;
  height: 1.15rem;
}

.system-form-field:has(input[type="date"]) {
  position: relative;
}

html[dir="rtl"] .system-form-field select {
  background-position: left 0.95rem center;
  padding-inline-start: 2.9rem;
  padding-inline-end: 0.95rem;
}

.system-data-table {
  width: 100%;
  border-collapse: collapse;
}

.system-data-table th,
.system-data-table td {
  padding: 1rem 1.1rem;
  text-align: start;
  vertical-align: middle;
}

.system-data-table thead {
  background: #f8fafc;
  color: #64748b;
}

.system-data-table tbody tr {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.system-data-table tbody tr:hover {
  background: #fff8f3;
}

.system-data-table tbody tr.is-selected {
  background: #fff4ec;
  box-shadow: inset 3px 0 0 #ff6128;
}

.system-data-table tbody tr.is-selected td {
  color: #0f172a;
}

.system-data-table th:last-child,
.system-data-table td:last-child {
  white-space: nowrap;
  width: 1%;
}

.system-row-avatar-cell {
  width: 5.25rem;
}

.system-row-avatar {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 213, 225, 0.8);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.system-row-avatar--compact {
  width: 2.85rem;
  height: 2.85rem;
}

.system-row-avatar--token {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  border-color: rgba(100, 116, 139, 0.35);
  color: #ffffff;
}

.system-row-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.system-row-actions--compact {
  flex-wrap: nowrap;
}

.system-row-actions--member {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.system-row-actions--member .system-table-button--solid {
  min-width: 9.9rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  padding-inline: 1rem;
}

.system-row-actions--member .system-table-button--icon {
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0.45rem;
}

.system-row-actions--member .system-table-button--icon,
.system-row-actions--member .system-table-button--ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #111827;
}

.system-row-actions--member .system-table-button--icon:hover,
.system-row-actions--member .system-table-button--ghost:hover {
  background: rgba(248, 250, 252, 0.92);
  border-color: rgba(203, 213, 225, 0.68);
  color: #0f172a;
}

.system-table-button--ghost {
  background: #ffffff;
}

.system-table-button--solid {
  border-color: rgba(255, 97, 40, 0.22);
  background: linear-gradient(180deg, #ff6128 0%, #d3460a 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(176, 47, 0, 0.16);
}

.system-table-button--solid:hover {
  background: linear-gradient(180deg, #ff6e39 0%, #dd4c10 100%);
  color: #ffffff;
}

.system-row-meta {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.25;
}

.system-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.system-inline-badge--stacked {
  flex-direction: column;
  gap: 0.08rem;
  width: 3.65rem;
  min-width: 3.65rem;
  min-height: 3.65rem;
  padding: 0.35rem;
  line-height: 1.05;
  text-align: center;
}

.system-inline-badge[data-tone="success"] {
  background: #ecfdf3;
  color: #027a48;
}

.system-inline-badge[data-tone="warning"] {
  background: #fffaeb;
  color: #b54708;
}

.system-inline-badge[data-tone="muted"] {
  background: #f1f5f9;
  color: #475569;
}

.system-inline-badge[data-tone="danger"] {
  background: #fff1f2;
  color: #be123c;
}

.system-table-shell {
  overflow: hidden;
  border-radius: 2rem;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.system-table-shell__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f8fafc;
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.system-detail-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-detail-card {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
}

.system-detail-card span:first-child {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-detail-card strong,
.system-detail-card span:last-child {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.system-modal-section-title {
  margin: 0;
  color: #0f172a;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.system-modal-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.system-modal-avatar-wrap .system-row-avatar {
  width: 5rem;
  height: 5rem;
}

.system-form-grid--member-search {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-table-heading-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.system-table-heading-stack p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.system-card-link {
  position: relative;
}

.system-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.system-scroll-note {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-ring-value {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.system-ring-value--compact {
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.system-table-scroll {
  max-height: 24rem;
  overflow: auto;
}

.system-table-scroll--expenses {
  min-height: 0;
  max-height: none;
  overflow-y: visible;
}

.system-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.dashboard-preview-expense-scroll {
  max-height: 9.25rem;
  overflow-y: auto;
  padding-inline-end: 0.2rem;
}

.dashboard-preview-expense-scroll::-webkit-scrollbar,
.system-table-scroll::-webkit-scrollbar {
  width: 0.55rem;
  height: 0.55rem;
}

.dashboard-preview-expense-scroll::-webkit-scrollbar-thumb,
.system-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.45);
}

.site-mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #2c3947;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.site-mobile-menu-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  display: none;
  overflow: hidden;
}

.site-mobile-menu.is-open {
  pointer-events: auto;
}

.site-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.site-mobile-menu-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(90vw, 24rem);
  max-width: calc(100vw - 0.8rem);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(104%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  gap: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
}

.site-mobile-menu.is-open .site-mobile-menu-backdrop {
  opacity: 1;
}

.site-mobile-menu.is-open .site-mobile-menu-panel {
  transform: translateX(0);
  visibility: visible;
}

.site-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff7f4;
  color: #b02f00;
}

.site-mobile-menu-links {
  display: grid;
  gap: 0.45rem;
}

.site-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-mobile-nav-link.is-active {
  color: #b02f00;
  border-color: rgba(255, 107, 53, 0.3);
  background: #fff5f0;
}

.site-mobile-nav-link:hover {
  transform: translateY(-1px);
}

.site-mobile-language-group {
  display: grid;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.site-mobile-language-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

.site-mobile-language-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.site-mobile-language-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-mobile-language-options button[aria-pressed="true"] {
  color: #b02f00;
  border-color: rgba(255, 107, 53, 0.3);
  background: #fff5f0;
}

body.site-mobile-menu-open {
  overflow: hidden;
  overflow-x: hidden;
}

body.system-modal-open {
  overflow: hidden;
}

.site-language-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-language-button:hover {
  color: #b02f00;
}

.lang-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 9rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
  z-index: 60;
}

.lang-dropdown-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  text-align: left;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.lang-dropdown-menu button:hover,
.lang-dropdown-menu button[aria-pressed="true"] {
  background: #fff1ed;
  color: #b02f00;
}

.hero-dashboard {
  position: relative;
  border-radius: 2rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 241, 237, 0.9));
  box-shadow: 0 28px 64px rgba(7, 21, 27, 0.14);
}

.hero-dashboard__shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 1.7rem;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(18px);
}

.hero-dashboard__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: 1.2rem;
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at top, rgba(255, 122, 69, 0.22), transparent 42%),
    linear-gradient(180deg, #172129 0%, #0d171d 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(7, 21, 27, 0.28);
}

.hero-dashboard__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-dashboard__brand-mark {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.hero-dashboard__brand-mark img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.hero-dashboard__brand-copy p,
.hero-dashboard__brand-copy small {
  margin: 0;
}

.hero-dashboard__brand-copy small {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-dashboard__brand-copy p {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-dashboard__status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  background: rgba(84, 214, 140, 0.1);
  border: 1px solid rgba(84, 214, 140, 0.16);
}

.hero-dashboard__status-dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: #45d483;
  box-shadow: 0 0 0 0.34rem rgba(69, 212, 131, 0.14);
}

.hero-dashboard__status strong,
.hero-dashboard__status span {
  display: block;
}

.hero-dashboard__status strong {
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-dashboard__status span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-dashboard__nav {
  display: grid;
  gap: 0.45rem;
}

.hero-dashboard__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.95rem;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.04);
}

.hero-dashboard__nav-item.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.hero-dashboard__live-pill {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #fff1ed;
  color: #b02f00;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-dashboard__note {
  margin-top: auto;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.hero-dashboard__note p,
.hero-dashboard__note small {
  margin: 0;
}

.hero-dashboard__note small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-dashboard__note p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.6;
}

.hero-dashboard__main {
  display: grid;
  gap: 0.95rem;
  min-width: 0;
}

.hero-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.25rem 0;
}

.hero-dashboard__eyebrow {
  margin: 0;
  color: #d3460a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-dashboard__header h3 {
  margin: 0.35rem 0 0;
  color: #111827;
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.hero-dashboard__chip,
.hero-dashboard__demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.78rem 1rem;
  border-radius: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-dashboard__chip {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #ffffff;
  color: #475569;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.hero-dashboard__demo {
  background: linear-gradient(180deg, #172129 0%, #0d171d 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.hero-dashboard__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 0.95rem;
}

.hero-dashboard__stack {
  display: grid;
  gap: 0.95rem;
}

.hero-dashboard__card {
  overflow: hidden;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.hero-dashboard__card-body {
  padding: 1rem 1.05rem;
}

.hero-dashboard__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-dashboard__card-head h4,
.hero-dashboard__card-head p {
  margin: 0;
}

.hero-dashboard__card-head h4 {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-dashboard__card-head p {
  margin-top: 0.22rem;
  color: #64748b;
  font-size: 0.77rem;
  line-height: 1.45;
}

.hero-dashboard__tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.hero-dashboard__tabs span {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-dashboard__tabs span.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.hero-dashboard__chart-wrap {
  margin-top: 0.95rem;
  padding: 0.9rem;
  border-radius: 1.25rem;
  background: #f8fafc;
}

.hero-dashboard__chart {
  position: relative;
  min-height: 190px;
  border-radius: 1rem;
  background:
    linear-gradient(rgba(226, 232, 240, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.9) 1px, transparent 1px);
  background-size: 100% 25%, 16.6% 100%;
}

.hero-dashboard__chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-dashboard__chart-point {
  fill: #ff7a45;
  stroke: rgba(255, 122, 69, 0.18);
  stroke-width: 10;
}

.hero-dashboard__chart-labels {
  position: absolute;
  right: 0.6rem;
  bottom: 0.45rem;
  left: 0.6rem;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
}

.hero-dashboard__card--revenue {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f5 100%);
}

.hero-dashboard__revenue-top {
  padding: 1rem 1.05rem 0;
  background: linear-gradient(135deg, #ff7a45 0%, #ff5f24 52%, #ff9f3d 100%);
  color: #ffffff;
}

.hero-dashboard__revenue-top .hero-dashboard__card-head h4,
.hero-dashboard__revenue-top .hero-dashboard__card-head p {
  color: inherit;
}

.hero-dashboard__select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  font-weight: 800;
}

.hero-dashboard__ring {
  display: grid;
  place-items: center;
  margin: 1rem auto 1.15rem;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 122, 69, 0.94) 0 52%, transparent 53%),
    conic-gradient(from 180deg, rgba(255, 255, 255, 0.4), #ffffff 65%, rgba(255, 255, 255, 0.74) 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.12);
}

.hero-dashboard__ring-inner {
  text-align: center;
}

.hero-dashboard__ring-inner span,
.hero-dashboard__ring-inner strong {
  display: block;
}

.hero-dashboard__ring-inner span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-dashboard__ring-inner strong {
  margin-top: 0.4rem;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-dashboard__summary {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  list-style: none;
}

.hero-dashboard__summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-dashboard__summary li span:last-child {
  color: #111827;
}

.hero-dashboard__safe {
  display: grid;
  place-items: center;
  min-height: 208px;
  padding: 1rem;
}

.hero-dashboard__safe-ring {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 10px solid #ff7a45;
  background: #ffffff;
  box-shadow: inset 0 0 0 12px rgba(255, 122, 69, 0.08);
}

.hero-dashboard__safe-ring span,
.hero-dashboard__safe-ring strong {
  display: block;
  text-align: center;
}

.hero-dashboard__safe-ring span {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-dashboard__safe-ring strong {
  margin-top: 0.3rem;
  color: #111827;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-dashboard__empty {
  display: grid;
  place-items: center;
  min-height: 208px;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-dashboard__empty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-dashboard__empty strong,
.hero-dashboard__empty span {
  display: block;
  text-align: center;
}

.hero-dashboard__empty strong {
  margin-top: 0.95rem;
  color: #111827;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-dashboard__empty span {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
}

:root {
  --site-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s var(--site-ease-out), transform 0.78s var(--site-ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-reveal="hero-copy"] {
  transform: translateY(26px);
}

[data-reveal="hero-media"] {
  transform: translateY(24px);
}

[data-reveal="card"] {
  transform: translateY(18px);
}

[data-reveal="stat"] {
  transform: translateY(14px);
}

[data-reveal="cta"] {
  transform: translateY(18px);
}

[data-parallax] {
  --parallax-y: 0px;
  transform: none !important;
  transform-origin: center center;
  will-change: auto;
  transition: none !important;
}

[data-reveal="hero-media"] [data-parallax] {
  transform: none !important;
}

[data-reveal="hero-media"].is-visible [data-parallax] {
  transform: none !important;
  transition: none !important;
}

[data-scan-frame] {
  position: relative;
  isolation: isolate;
}

[data-scan-frame]::after {
  content: "";
  position: absolute;
  inset: -18% -24%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(27, 211, 245, 0.06) 38%, rgba(90, 246, 255, 0.36) 49%, rgba(27, 211, 245, 0.12) 58%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateY(-135%) skewY(-8deg);
  animation: site-security-scan 4.8s ease-in-out infinite;
}

[data-pulse="true"] {
  animation: site-cta-pulse 1.6s var(--site-ease-out) 0.45s 2;
}

@keyframes site-cta-pulse {
  0%,
  100% {
    box-shadow: 0 14px 28px rgba(176, 47, 0, 0.2);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(255, 90, 31, 0), 0 20px 36px rgba(176, 47, 0, 0.28);
  }
}

@keyframes site-security-scan {
  0%,
  18% {
    opacity: 0;
    transform: translateY(-135%) skewY(-8deg);
  }

  28% {
    opacity: 0.85;
  }

  56% {
    opacity: 0.55;
    transform: translateY(115%) skewY(-8deg);
  }

  64%,
  100% {
    opacity: 0;
    transform: translateY(115%) skewY(-8deg);
  }
}

.system-screen-body .system-page-shell {
  animation: system-window-enter 0.55s var(--site-ease-out) both;
}

.system-screen-body .system-sidebar {
  animation: system-sidebar-enter 0.52s var(--site-ease-out) 0.06s both;
}

.system-screen-body .system-panel-scroll > * {
  animation: system-card-enter 0.28s var(--site-ease-out) both;
}

.system-screen-body .system-panel-scroll > *:nth-child(2) {
  animation-delay: 0.05s;
}

.system-screen-body .system-panel-scroll > *:nth-child(3) {
  animation-delay: 0.1s;
}

.system-screen-body .system-panel-scroll > *:nth-child(4) {
  animation-delay: 0.15s;
}

.system-data-table tbody tr {
  animation: none;
}

.hero-dashboard__card,
.hero-dashboard__sidebar {
  animation: system-card-enter 0.58s var(--site-ease-out) both;
}

.hero-dashboard__grid .hero-dashboard__card:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-dashboard__grid .hero-dashboard__card:nth-child(3) {
  animation-delay: 0.14s;
}

.hero-dashboard__grid .hero-dashboard__card:nth-child(4) {
  animation-delay: 0.2s;
}

.hero-dashboard__chart svg path,
[data-period-line] {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: system-line-draw 1.15s var(--site-ease-out) 0.28s both;
}

@keyframes system-window-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes system-sidebar-enter {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes system-card-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes system-panel-content-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes system-panel-shell-swap {
  from {
    opacity: 0.68;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes system-row-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.business-app-callout {
  position: relative;
  overflow: hidden;
}

.business-app-callout::before {
  content: "";
  position: absolute;
  inset: 8% auto auto 8%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.11);
  filter: blur(48px);
  pointer-events: none;
}

.business-app-mini {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.business-app-mini__phone {
  width: min(100%, 23rem);
  margin-inline: auto;
  padding: 0.85rem;
  border: 8px solid #181c20;
  border-radius: 2.25rem;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.business-app-mini:hover .business-app-mini__phone {
  transform: translateY(-4px);
  box-shadow: 0 34px 72px rgba(15, 23, 42, 0.22);
}

.business-app-mini__bar {
  width: 4rem;
  height: 0.35rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: #1f2937;
}

.business-app-mini__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  place-items: center;
  justify-items: center;
  align-content: space-between;
  text-align: center;
  min-height: 9.5rem;
  padding: 1.2rem;
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 97, 40, 0.34), transparent 28%),
    linear-gradient(135deg, #080808 0%, #191919 100%);
  color: #ffffff;
}

.business-app-mini__hero img {
  width: 4.6rem;
  max-width: 100%;
  max-height: 4.6rem;
  height: auto;
  display: block;
  margin-inline: auto;
  justify-self: center;
  align-self: center;
  filter: brightness(0) invert(1);
}

.business-app-mini__hero span {
  justify-self: center;
  align-self: start;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: #22c55e;
  font-size: 0.78rem;
  font-weight: 900;
}

.business-app-mini__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.business-app-mini__grid div {
  display: grid;
  align-content: start;
  justify-items: start;
  grid-template-rows: auto auto 1fr;
  gap: 0.55rem;
  min-height: 6.9rem;
  padding: 0.95rem;
  border-radius: 1.25rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.business-app-mini__grid .material-symbols-outlined {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.3rem;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ff7442 0%, #e4480a 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 97, 40, 0.22);
}

.business-app-mini__grid strong {
  color: #1f2937;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.business-app-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 97, 40, 0.08), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(20, 111, 134, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}

.business-phone-showcase {
  display: flex;
  justify-content: center;
}

.business-phone-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 2rem;
  align-items: start;
}

.business-phone {
  display: flex;
  flex-direction: column;
  width: min(100%, 21.5rem);
  min-height: 43rem;
  margin-inline: auto;
  overflow: hidden;
  border: 8px solid #222222;
  border-radius: 2.35rem;
  background: #f8fafc;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.business-phone-showcase .business-phone {
  width: min(100%, 24rem);
}

.business-phone--light,
.business-phone--login {
  background: #fffdfa;
}

.business-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.8rem;
  padding: 0.25rem 1rem;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.business-phone__status--orange {
  background: linear-gradient(180deg, #ff7a28 0%, #ff6b2f 100%);
}

.business-phone__signals {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.business-phone__signals .material-symbols-outlined {
  font-size: 1rem;
}

.business-phone__appbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  background: #1a1a1a;
  color: #ffffff;
}

.business-phone__appbar > .material-symbols-outlined {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.95rem;
  background: #2c2c2c;
  color: #ffffff;
}

.business-phone__appbar strong {
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.25rem;
}

.business-phone__app-icon {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ff7140 0%, #ef4a12 100%);
  color: #ffffff;
}

.business-phone__screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden auto;
  padding: 1rem;
  background: #ffffff;
}

.business-dashboard-card {
  display: grid;
  gap: 0.6rem;
  min-height: 11.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 97, 40, 0.28), transparent 25%),
    linear-gradient(135deg, #060606 0%, #191919 100%);
  color: #ffffff;
}

.business-dashboard-card span {
  width: max-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.14);
  color: #ff8a57;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.business-dashboard-card strong {
  max-width: 12rem;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2rem;
  line-height: 1.08;
}

.business-dashboard-card small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.business-tile-grid,
.business-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.business-tile-grid div,
.business-source-grid div {
  display: grid;
  gap: 0.7rem;
  min-height: 9rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.business-tile-grid .material-symbols-outlined,
.business-source-grid .material-symbols-outlined {
  display: inline-grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ff7442 0%, #f04c13 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(255, 97, 40, 0.22);
}

.business-tile-grid strong,
.business-source-grid strong {
  color: #202124;
  font-family: Manrope, "Vazirmatn", sans-serif;
  line-height: 1.1;
}

.business-tile-grid small,
.business-source-grid small {
  color: #64748b;
  line-height: 1.35;
}

.business-language-hero {
  display: grid;
  min-height: 14rem;
  place-items: center;
  border-radius: 0 0 1.8rem 1.8rem;
  background: linear-gradient(180deg, #ff802a 0%, #ff672f 100%);
}

.business-language-hero img {
  width: 11rem;
  filter: brightness(0) invert(1);
}

.business-language-divider {
  width: 4rem;
  height: 0.35rem;
  margin: 0.5rem auto 1.4rem;
  border-radius: 999px;
  background: #ff8a00;
}

.business-language-list {
  display: grid;
  gap: 0.9rem;
}

.business-language-list p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.9rem;
  align-items: center;
  margin: 0;
  padding: 1rem;
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.business-language-list .material-symbols-outlined {
  grid-row: span 2;
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #ff7a28;
}

.business-language-list strong {
  color: #202124;
  font-weight: 900;
}

.business-language-list small {
  color: #c4c4c4;
  font-weight: 800;
}

.business-login-mark {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin: 5.5rem auto 1rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%);
  box-shadow: 0 20px 40px rgba(255, 97, 40, 0.2);
}

.business-login-mark img {
  width: 4.4rem;
  filter: brightness(0) invert(1);
}

.business-login-copy {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.business-login-copy strong {
  color: #ff6b35;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2.15rem;
}

.business-login-copy span {
  color: #9ca3af;
}

.business-login-form {
  display: grid;
  gap: 1rem;
  margin: 3rem 1rem 0;
  padding: 1.65rem;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(255, 97, 40, 0.12);
}

.business-login-form p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.8rem;
  margin: 0;
  padding-inline: 1rem;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 0.9rem;
  color: #8b8b8b;
  font-weight: 800;
}

.business-login-form p .material-symbols-outlined {
  color: #ff7442;
}

.business-login-form p .material-symbols-outlined:last-child {
  margin-inline-start: auto;
  color: #8b8b8b;
}

.business-login-form button {
  min-height: 3.9rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%);
  color: #ffffff;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 30px rgba(255, 97, 40, 0.22);
}

.business-phone__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 3.5rem;
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  text-align: center;
  color: #0f172a;
  font-weight: 800;
}

.business-phone__tabs strong {
  position: relative;
}

.business-phone__tabs strong::after {
  content: "";
  position: absolute;
  inset-inline: 28%;
  bottom: -0.95rem;
  height: 3px;
  border-radius: 999px;
  background: #111111;
}

.business-year-selector,
.business-income-summary,
.business-income-item,
.business-breakdown {
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.business-year-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 14rem);
  min-height: 3.1rem;
  margin: 0 auto 1rem;
  padding-inline: 1rem;
  color: #1f2937;
}

.business-year-selector--solid {
  width: 100%;
  background: linear-gradient(180deg, #ff7442 0%, #ff6b35 100%);
  color: #ffffff;
  border-color: transparent;
}

.business-total-card {
  display: grid;
  gap: 0.8rem;
  min-height: 9rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: 1.25rem;
}

.business-total-card--orange {
  background: linear-gradient(135deg, #ff7442 0%, #f45116 100%);
  color: #ffffff;
}

.business-total-card--dark {
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 97, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #1c1c1c 0%, #2b2b2b 100%);
  color: #ffffff;
}

.business-total-card span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.business-total-card strong {
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2.25rem;
}

.business-total-card small {
  width: max-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.16);
  border: 1px solid rgba(255, 97, 40, 0.4);
  color: #ff8a57;
  font-weight: 900;
}

.business-phone-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0;
  color: #202124;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.35rem;
}

.business-phone-heading::before {
  content: "";
  width: 0.3rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #ff7442;
}

.business-donut {
  display: grid;
  width: 13rem;
  height: 13rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#4caf50 0 44%, #2c9ce8 44% 84%, #ff9800 84% 98%, #9c27b0 98% 100%);
}

.business-donut__hole {
  display: grid;
  width: 7.5rem;
  height: 7.5rem;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
}

.business-breakdown {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
}

.business-breakdown p,
.business-income-item div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.business-income-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.business-income-summary span {
  grid-column: 1;
  color: #8b8b8b;
  font-weight: 800;
}

.business-income-summary strong {
  grid-column: 1;
  color: #ff5a1f;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.8rem;
}

.business-income-summary small {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fff0eb;
  color: #ff5a1f;
  font-weight: 900;
}

.business-income-item {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-inline-start: 4px solid #ff7442;
}

.business-income-item strong,
.business-income-item span {
  font-weight: 900;
}

.business-income-item div:first-child span {
  color: #ff5a1f;
}

.business-income-item small {
  color: #8b8b8b;
}

.business-income-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.business-income-details p {
  min-height: 4.2rem;
  margin: 0;
  padding: 0.75rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #8b8b8b;
}

.business-income-details strong {
  display: block;
  margin-top: 0.35rem;
  color: #202124;
}

.app-showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.business-app-mini--member .business-app-mini__hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 97, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #fff7f3 0%, #ffffff 100%);
  color: #0f172a;
}

.business-app-mini--member .business-app-mini__phone {
  background: #ffffff;
  border-color: #212121;
}

.business-app-mini--member .business-app-mini__grid div {
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.9);
}

.business-app-mini--member .business-app-mini__grid .material-symbols-outlined {
  background: linear-gradient(180deg, #ff7442 0%, #e4480a 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(255, 97, 40, 0.28);
}

.business-app-mini--member .business-app-mini__grid strong {
  color: #0f172a;
}

.business-app-mini--member .business-app-mini__hero img {
  filter: none;
}

.business-app-mini__label {
  display: block;
  margin-top: 0.85rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.app-demo-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.app-demo-layout--split {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
}

.app-demo-card {
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.app-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.app-demo-actions button,
.app-demo-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.app-demo-actions button:hover,
.app-demo-actions button:focus-visible,
.app-demo-action-link:hover,
.app-demo-action-link:focus-visible {
  border-color: rgba(255, 97, 40, 0.45);
  color: #b02f00;
  transform: translateY(-1px);
}

.app-demo-actions--single {
  justify-content: center;
}

.app-demo-actions--single .app-demo-action-link {
  min-width: min(100%, 16rem);
}

.app-phone-frame {
  display: grid;
  justify-items: center;
}

.app-phone {
  display: flex;
  flex-direction: column;
  width: min(100%, 21rem);
  height: clamp(35rem, 72svh, 39rem);
  min-height: 0;
  overflow: hidden;
  border: 8px solid #242424;
  border-radius: 2.5rem;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.app-phone--member {
  border-color: #2d3136;
  background: #ffffff;
  color: #0f172a;
}

.app-phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.8rem;
  padding: 0.25rem 1rem;
  background: #191919;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.app-phone__signals {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.app-phone__signals .material-symbols-outlined {
  font-size: 0.95rem;
}

.app-phone__body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  background: #ffffff;
}

.app-phone--member .app-phone__body {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 97, 40, 0.08), transparent 24%),
    linear-gradient(180deg, #fff8f5 0%, #ffffff 100%);
}

.app-phone__body--no-nav .app-screen {
  padding-bottom: 1rem;
}

.app-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden auto;
  padding: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 97, 40, 0.72) rgba(255, 255, 255, 0.12);
}

.app-screen::-webkit-scrollbar {
  width: 0.35rem;
}

.app-screen::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.72);
}

.app-screen-enter {
  animation: app-screen-enter 0.26s ease both;
}

.app-mobile-header,
.app-subheader {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 4;
  margin-inline: -1rem;
  padding: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-mobile-header {
  min-height: 3.4rem;
  background: rgba(255, 255, 255, 0.94);
}

.app-mobile-header button,
.app-subheader button,
.app-subheader > span {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  background: #2a2a2a;
  color: #ffffff;
}

.app-mobile-header__brand {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ff7442 0%, #f04c13 100%);
  color: #ffffff;
}

.app-mobile-header__brand .material-symbols-outlined {
  font-size: 1.4rem;
}

.app-mobile-header strong,
.app-subheader h2 {
  margin: 0;
  flex: 1 1 auto;
  color: inherit;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.app-subheader {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
}

.app-subheader button {
  background: #f1f5f9;
  color: #0f172a;
}

.app-subheader--member {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
}

.app-subheader--member button,
.app-subheader--member > span {
  background: #fff7f4;
  color: #b02f00;
  border: 1px solid rgba(255, 107, 53, 0.16);
}

.app-hero-tile,
.member-welcome,
.app-total-card,
.member-card-link,
.member-stat-card,
.member-course-card,
.member-article {
  border-radius: 1.35rem;
}

.app-hero-tile--business {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 11.6rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 97, 40, 0.28), transparent 28%),
    linear-gradient(135deg, #050505 0%, #171717 100%);
  color: #ffffff;
}

.app-hero-tile--business span {
  display: inline-flex;
  width: max-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.14);
  color: #ff8a57;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.app-hero-tile--business h2 {
  max-width: 12.8rem;
  margin: 1rem 0 0.4rem;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}

.app-hero-tile--business p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.app-hero-tile--business > strong {
  align-self: start;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(34, 197, 94, 0.9);
  border-radius: 0.7rem;
  color: #22c55e;
  font-size: 0.8rem;
}

.app-tile-grid,
.app-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.app-tile-grid button,
.app-metric-grid article {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem;
  min-height: 8.8rem;
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  background: #ffffff;
  text-align: start;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-tile-grid button:hover,
.app-tile-grid button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.app-tile-grid button > *,
.app-metric-grid article > * {
  min-width: 0;
}

.app-tile-grid .material-symbols-outlined,
.app-metric-grid .material-symbols-outlined {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ff7442 0%, #f04c13 100%);
  color: #ffffff;
}

.app-tile-grid strong,
.app-metric-grid strong {
  color: #202124;
  font-family: Manrope, "Vazirmatn", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.1;
}

.app-tile-grid span:not(.material-symbols-outlined),
.app-metric-grid span:not(.material-symbols-outlined),
.app-muted {
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-muted--dark {
  color: rgba(255, 255, 255, 0.62);
}

.app-tab-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.app-tab-row--dark {
  background: rgba(255, 255, 255, 0.08);
}

.app-tab-row button {
  min-height: 2.35rem;
  border-radius: 999px;
  color: #475569;
  font-weight: 900;
}

.app-tab-row button.is-active,
.app-tab-row .is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.app-tab-row--dark button {
  color: rgba(255, 255, 255, 0.68);
}

.app-total-card {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  color: #ffffff;
}

.app-total-card--orange {
  background: linear-gradient(135deg, #ff7442 0%, #f45116 100%);
}

.app-total-card--dark {
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 97, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #1c1c1c 0%, #2b2b2b 100%);
}

.app-total-card strong {
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2.35rem;
}

.app-total-card span {
  width: max-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.app-section-title {
  margin: 1rem 0 0.8rem;
  color: inherit;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.35rem;
}

.app-donut {
  display: grid;
  width: 13rem;
  height: 13rem;
  margin: 0 auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#4caf50 0 44%, #2c9ce8 44% 84%, #ff9800 84% 98%, #9c27b0 98% 100%);
}

.app-donut span {
  display: grid;
  width: 7.5rem;
  height: 7.5rem;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-weight: 900;
}

.app-list-card {
  display: grid;
  gap: 0.6rem;
}

.app-list-card button,
.app-plan-stack button,
.app-payment-grid button,
.app-info-list article {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: #ffffff;
  text-align: start;
}

.app-plan-stack {
  display: grid;
  gap: 0.75rem;
}

.app-plan-stack button {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.app-plan-stack button.is-selected {
  border-color: rgba(255, 97, 40, 0.46);
  background: #fff7ed;
}

.app-plan-stack strong,
.app-list-card strong {
  color: #b02f00;
}

.app-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.app-payment-grid button {
  min-height: 5rem;
  padding: 0.75rem;
  place-items: center;
  font-size: 0.82rem;
  text-align: center;
}

.app-payment-grid img {
  width: 4.4rem;
  height: 2.35rem;
  object-fit: contain;
}

.app-profile-card {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #f8fafc;
}

.app-profile-card img {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 1.25rem;
  object-fit: cover;
}

.app-info-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.app-bottom-nav {
  position: sticky;
  bottom: 0.7rem;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  width: calc(100% - 2rem);
  margin: 0 auto 0.75rem;
  padding: 0.45rem;
  border-radius: 1.35rem;
  background: rgba(120, 120, 120, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.app-phone--member .app-bottom-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.app-phone--member .app-nav-button {
  color: #64748b;
}

.app-nav-button {
  display: grid;
  min-width: 0;
  min-height: 3rem;
  place-items: center;
  border-radius: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.app-nav-button .material-symbols-outlined {
  font-size: 1.25rem;
}

.app-nav-button span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app-nav-button.is-active {
  background: linear-gradient(180deg, #ff7442 0%, #f04c13 100%);
  color: #ffffff;
}

.app-login {
  min-height: 0;
  text-align: center;
}

.app-login__logo {
  display: grid;
  width: 7rem;
  height: 7rem;
  margin: 1.8rem auto 1rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%);
}

.app-login__logo img {
  width: 4.2rem;
  filter: brightness(0) invert(1);
}

.app-login h2 {
  margin: 0;
  color: #ff6b35;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2rem;
}

.app-login p {
  color: #94a3b8;
}

.app-login__form {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(255, 97, 40, 0.12);
}

.app-login__form label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding-inline: 0.9rem;
  border: 1px solid rgba(203, 213, 225, 0.96);
  border-radius: 0.9rem;
  overflow: hidden;
}

.app-login__form input {
  min-width: 0;
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: 0;
}

.app-login__form label .material-symbols-outlined:last-child {
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.app-login__form button {
  min-height: 3.45rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%);
  color: #ffffff;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.app-login--member {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding-block: 1rem;
  color: #0f172a;
  text-align: start;
}

.app-login__panel {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
  width: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, #fff7f4 0%, #ffffff 68%);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.12);
  text-align: start;
  overflow: hidden;
}

.app-login__member-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.app-login__member-copy {
  min-width: 0;
}

.app-login__member-hero .app-login__logo {
  margin: 0;
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.98);
  box-shadow: 0 14px 32px rgba(255, 97, 40, 0.28);
}

.app-login__member-hero h2 {
  margin-bottom: 0.25rem;
  color: #0f172a;
  font-size: 2.2rem;
  line-height: 1;
}

.app-login__member-hero p {
  margin: 0;
  color: rgba(71, 85, 105, 0.92);
}

.app-login__form--dark {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.app-login__form--dark label {
  color: #0f172a;
  border-color: rgba(203, 213, 225, 0.96);
}

.app-login__form--dark button {
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%);
}

.member-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-welcome strong,
.member-welcome span {
  display: block;
}

.member-welcome span {
  margin-top: 0.3rem;
  color: #64748b;
}

.member-welcome img {
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 50%;
  object-fit: cover;
}

.member-card-link {
  position: relative;
  display: grid;
  min-height: 9.5rem;
  align-items: end;
  margin-bottom: 1rem;
  overflow: hidden;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  cursor: pointer;
}

.member-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%),
    var(--member-card-image);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: transform 0.28s ease;
}

.member-card-link:hover::before,
.member-card-link:focus-visible::before {
  transform: scale(1.04);
}

.member-card-link span {
  position: relative;
  z-index: 1;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.member-card-link--photo {
  --member-card-image: url("../Assets/Membership.jpg");
}

.member-card-link--attendance {
  --member-card-image: url("../Assets/1.avif");
}

.member-card-link--courses {
  --member-card-image: url("../Assets/3.avif");
}

.member-card-link--food {
  --member-card-image: url("../Assets/4.jpg");
}

.member-detail-list,
.member-attendance-list,
.member-profile-panels,
.member-language-list {
  display: grid;
  gap: 0.9rem;
}

.member-detail-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255, 244, 238, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-detail-list .material-symbols-outlined {
  grid-row: span 2;
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(255, 107, 53, 0.08);
  color: #ff7442;
}

.member-detail-list span,
.member-stat-card span,
.member-attendance-list small,
.member-profile-panels p,
.member-language-list small {
  color: #64748b;
}

.member-detail-list strong {
  color: #0f172a;
}

.member-stat-card {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-stat-card strong {
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2.4rem;
  color: #ff7442;
}

.member-attendance-list article,
.member-profile-panels article,
.member-profile-panels button,
.member-language-list button {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1rem;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: start;
}

.member-course-card {
  display: grid;
  grid-template-columns: repeat(2, auto);
  align-content: end;
  gap: 0.7rem;
  min-height: 12rem;
  margin-top: 1rem;
  padding: 1rem;
  color: #ffffff;
  background:
    linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.75) 100%),
    var(--course-bg);
  background-size: cover;
  background-position: center;
}

.member-course-card strong {
  grid-column: 1 / -1;
  max-width: 16rem;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.member-course-card span {
  width: max-content;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.member-course-card--one {
  --course-bg: url("../Assets/3.avif");
}

.member-course-card--two {
  --course-bg: url("../Assets/2.jpg");
}

.member-article {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  color: #0f172a;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 97, 40, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.member-article span {
  color: #ff8a57;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-article strong {
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.22rem;
}

.member-profile {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 1rem 0;
  text-align: center;
}

.member-profile img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.member-profile strong {
  color: #b02f00;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 2rem;
}

.member-profile-panels h3 {
  margin: 0;
  font-family: Manrope, "Vazirmatn", sans-serif;
}

.member-profile-panels p {
  margin: 0;
  line-height: 1.6;
}

.member-language-list button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.member-language-list span {
  grid-row: span 2;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border-radius: 0.95rem;
  background: rgba(255, 107, 53, 0.08);
}

.app-phone--member {
  border-color: #2b2f34;
  background: #ffffff;
  color: #0f172a;
}

.app-phone--member .app-phone__body {
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 97, 40, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

html[lang="ar"] .app-phone,
html[lang="ku"] .app-phone,
html[lang="ar"] .app-phone *,
html[lang="ku"] .app-phone * {
  font-family: Vazirmatn, sans-serif;
}

html[lang="ar"] .app-mobile-header strong,
html[lang="ku"] .app-mobile-header strong,
html[lang="ar"] .app-subheader h2,
html[lang="ku"] .app-subheader h2,
html[lang="ar"] .app-hero-tile--business h2,
html[lang="ku"] .app-hero-tile--business h2,
html[lang="ar"] .app-total-card strong,
html[lang="ku"] .app-total-card strong,
html[lang="ar"] .member-home-card strong,
html[lang="ku"] .member-home-card strong,
html[lang="ar"] .member-home-hero__copy strong,
html[lang="ku"] .member-home-hero__copy strong,
html[lang="ar"] .member-article strong,
html[lang="ku"] .member-article strong,
html[lang="ar"] .member-course-card strong,
html[lang="ku"] .member-course-card strong,
html[lang="ar"] .app-section-title,
html[lang="ku"] .app-section-title,
html[lang="ar"] .app-profile-card strong,
html[lang="ku"] .app-profile-card strong {
  font-family: Vazirmatn, sans-serif;
}

html.dark body {
  background: #0b1117;
  color: #e5edf5;
}

html.dark .site-nav {
  background: rgba(8, 14, 22, 0.92);
  border-bottom-color: rgba(51, 65, 85, 0.65);
}

html.dark .site-nav-link,
html.dark .site-language-button,
html.dark .app-demo-action-link,
html.dark footer a {
  color: #d4dde7;
}

html.dark .site-nav-link:hover,
html.dark .site-nav-link.is-active,
html.dark .site-language-button:hover,
html.dark .app-demo-action-link:hover,
html.dark footer a:hover {
  color: #ff8a57;
}

html.dark .site-theme-toggle,
html.dark .site-mobile-menu-panel,
html.dark .lang-dropdown-menu {
  background: rgba(10, 16, 24, 0.96);
  color: #e5edf5;
  border-color: rgba(71, 85, 105, 0.45);
}

html.dark .site-mobile-nav-link,
html.dark .site-mobile-language-options button,
html.dark .app-demo-card,
html.dark .site-mobile-menu-close,
html.dark .app-demo-action-link,
html.dark footer {
  background: #111827;
  color: #e5edf5;
  border-color: rgba(71, 85, 105, 0.4);
}

html.dark .site-mobile-nav-link.is-active,
html.dark .site-mobile-language-options button[aria-pressed="true"] {
  background: rgba(255, 107, 53, 0.12);
  color: #ff8a57;
  border-color: rgba(255, 107, 53, 0.35);
}

html.dark .business-app-hero,
html.dark .business-app-callout,
html.dark .bg-surface {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 97, 40, 0.1), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(20, 111, 134, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1117 0%, #0f1721 100%);
}

html.dark .text-slate-950,
html.dark .text-on-surface,
html.dark .font-headline,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4 {
  color: #f8fafc !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-on-surface-variant,
html.dark p,
html.dark li {
  color: #aebdce;
}

html.dark .business-app-mini__phone,
html.dark .business-app-mini__grid div {
  background: #0f172a;
  border-color: rgba(51, 65, 85, 0.6);
}

html.dark .business-app-mini__grid strong,
html.dark .business-app-mini__label {
  color: #f8fafc;
}

/* Fade only — no vertical slide.
 * The old `translateY(8px)` start state pushed the whole scroller down on every
 * screen change, so an 8px strip of the page background flashed between the
 * phone status bar (time / wifi) and the app header. */
@keyframes app-screen-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes system-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

[data-i18n-rtl="true"] {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] body,
html[lang="ku"] body,
html[lang="ar"] .font-headline,
html[lang="ku"] .font-headline,
html[lang="ar"] .font-body,
html[lang="ku"] .font-body,
html[lang="ar"] .font-label,
html[lang="ku"] .font-label,
html[lang="ar"] .font-inter,
html[lang="ku"] .font-inter,
html[lang="ar"] h1,
html[lang="ku"] h1,
html[lang="ar"] h2,
html[lang="ku"] h2,
html[lang="ar"] h3,
html[lang="ku"] h3,
html[lang="ar"] h4,
html[lang="ku"] h4,
html[lang="ar"] h5,
html[lang="ku"] h5,
html[lang="ar"] h6,
html[lang="ku"] h6,
html[lang="ar"] p,
html[lang="ku"] p,
html[lang="ar"] a,
html[lang="ku"] a,
html[lang="ar"] li,
html[lang="ku"] li,
html[lang="ar"] label,
html[lang="ku"] label,
html[lang="ar"] button,
html[lang="ku"] button,
html[lang="ar"] input,
html[lang="ku"] input,
html[lang="ar"] textarea,
html[lang="ku"] textarea,
html[lang="ar"] select,
html[lang="ku"] select {
  font-family: "Vazirmatn", sans-serif !important;
}

html[lang="ar"] .lang-dropdown-menu,
html[lang="ku"] .lang-dropdown-menu {
  left: 0;
  right: auto;
}

html[dir="rtl"] .site-nav,
html[dir="rtl"] .site-nav-inner,
html[dir="rtl"] .site-nav-links,
html[dir="rtl"] .site-nav-actions,
html[dir="rtl"] .site-language-switcher {
  direction: rtl;
}

html[dir="rtl"] .site-nav-link,
html[dir="rtl"] .site-language-button,
html[dir="rtl"] .site-nav-cta,
html[dir="rtl"] .lang-dropdown-menu {
  direction: rtl;
}

html[dir="rtl"] .site-nav-link::after {
  left: auto;
  right: 0;
}

html[dir="rtl"] .system-sidebar-link:hover {
  /* No positional nudge on hover — it made the highlight feel like it slid
     between items. Background/colour change only, per item. */
  transform: none;
}

html[lang="ar"] .lang-dropdown-menu button,
html[lang="ku"] .lang-dropdown-menu button {
  text-align: right;
}

html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ku"] input,
html[lang="ku"] textarea {
  direction: rtl;
  text-align: right;
}

@media (max-width: 1180px) {
  .hero-dashboard__shell {
    grid-template-columns: 1fr;
  }

  .hero-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .system-form-grid--two {
    grid-template-columns: 1fr;
  }

  .system-form-dialog {
    width: min(100%, 46rem);
  }

  .system-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-renewal-grid {
    grid-template-columns: 1fr;
  }

  .system-payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  }

  .system-mobile-preview {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) {
  .system-screen-body .system-page-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    overflow: hidden;
    min-height: 0;
  }

  .system-screen-body .system-sidebar {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-inline-end: 0.25rem;
  }

  .system-screen-body .system-panel-scroll {
    height: 100%;
    overflow-y: auto;
    padding-inline-end: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-parallax],
  [data-pulse="true"],
  [data-scan-frame]::after,
  .system-screen-body .system-page-shell,
  .system-screen-body .system-sidebar,
  .system-screen-body .system-panel-scroll > *,
  .system-data-table tbody tr,
  .hero-dashboard__card,
  .hero-dashboard__sidebar,
  .hero-dashboard__chart svg path,
  [data-period-line] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 767px) {
  .site-nav-actions > .site-nav-cta {
    display: none;
  }

  .site-nav-actions {
    margin-inline-start: auto;
  }

  .site-nav-actions > .site-language-switcher {
    display: none !important;
  }

  .site-mobile-menu-button {
    display: inline-flex !important;
  }

  .site-mobile-menu {
    display: block;
  }

  .site-nav-inner {
    min-height: 4.5rem;
    gap: 1rem;
    padding-inline: 1rem !important;
  }

  .hero-dashboard {
    padding: 0.8rem;
  }

  .hero-dashboard__shell {
    gap: 0.8rem;
    padding: 0.8rem;
  }

  .hero-dashboard__actions {
    justify-content: flex-start;
  }

  .site-nav-cta {
    min-height: 2.85rem;
    padding: 0.72rem 1.15rem;
    border-radius: 0.9rem;
    font-size: 0.88rem;
  }

  .site-mobile-menu-panel {
    width: min(92vw, 22rem);
  }

  .system-screen-main {
    --system-shell-top-space: 5rem;
    --system-shell-bottom-space: 0.8rem;
    padding-inline: 0.8rem !important;
    padding-bottom: 0.8rem;
  }

  .system-screen-layout {
    gap: 0.8rem;
    min-height: calc(100svh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
    min-height: calc(100dvh - var(--system-shell-top-space) - var(--system-shell-bottom-space));
  }

  .system-page-shell {
    padding: 0.35rem;
    border-radius: 1.7rem;
  }

  .site-primary-button,
  .site-secondary-button,
  .site-secondary-button--light,
  .site-outline-light-button {
    width: 100%;
  }

  .dashboard-open-hint {
    inset-inline-end: 0.7rem;
    inset-block-end: 0.7rem;
    padding: 0.62rem 0.82rem;
    font-size: 0.68rem;
  }

  .system-toolbar-actions {
    width: 100%;
  }

  .system-toolbar-actions > * {
    flex: 1 1 100%;
  }

  .system-page-header-tools {
    width: 100%;
    justify-content: stretch;
  }

  .system-toolbar-search {
    max-width: none;
  }

  .system-page-header-tools--member,
  .system-toolbar-actions--member {
    flex-wrap: wrap;
  }

  .system-page-header-tools--member .system-toolbar-search,
  .system-toolbar-actions--member > * {
    flex: 1 1 100%;
    max-width: none;
  }

  .system-toolbar-actions--member .system-icon-button {
    flex: 0 0 auto;
    width: 3.25rem;
    justify-self: flex-start;
  }

  .system-section-head .dashboard-pill-group {
    max-width: 100%;
    margin-inline-start: 0;
  }

  .system-form-panel {
    inset: 0.35rem;
    padding: 0.8rem;
  }

  .system-form-dialog {
    margin: auto;
    padding: 1rem;
    border-radius: 1.45rem;
  }

  .system-ring-value {
    font-size: 1.6rem;
  }

  .system-user-summary {
    align-items: center;
  }

  .system-data-table th,
  .system-data-table td {
    padding: 0.85rem 0.8rem;
  }

  .system-plan-card__head {
    grid-template-columns: 1fr;
  }

  .system-plan-card__head > span {
    justify-self: start;
  }

  .system-utility-head,
  .system-account-hero,
  .system-utility-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .system-account-grid,
  .system-renewal-current,
  .system-mobile-metrics,
  .system-phone-grid {
    grid-template-columns: 1fr;
  }

  .system-account-avatar {
    width: 3.75rem;
    height: 3.75rem;
  }

  .system-mobile-preview {
    padding: 1rem;
    border-radius: 1.55rem;
  }

  .system-phone-frame {
    width: min(100%, 17rem);
  }

  .business-app-callout {
    padding-block: 3.5rem !important;
  }

  .business-app-mini__phone {
    border-width: 6px;
    border-radius: 1.9rem;
  }

  .business-app-mini__grid,
  .business-tile-grid,
  .business-source-grid,
  .business-income-details {
    grid-template-columns: 1fr;
  }

  .business-phone {
    min-height: 39rem;
    border-width: 6px;
    border-radius: 2rem;
  }

  .business-phone-gallery {
    gap: 1.3rem;
  }

  .business-language-hero {
    min-height: 11.5rem;
  }

  .business-login-mark {
    margin-top: 3.5rem;
  }

  .business-login-form {
    margin-inline: 0.5rem;
    padding: 1.1rem;
  }

  .business-total-card strong {
    font-size: 1.85rem;
  }
}

/* Final system responsive pass: compact headers, inner scrolling, and cleaner tables. */
body.system-screen-body {
  overflow: hidden;
}

body.system-screen-body .site-nav-inner {
  min-height: 3.25rem !important;
  padding-block: 0.16rem !important;
}

body.system-screen-body .site-logo img {
  height: 2.1rem !important;
}

body.system-screen-body .site-nav-cta,
body.system-screen-body .language-toggle,
body.system-screen-body .theme-toggle {
  min-height: 2.35rem !important;
}

body.system-screen-body .site-nav-cta {
  padding: 0.55rem 1.2rem !important;
}

body.system-screen-body .system-screen-main {
  height: calc(100dvh - 3.35rem);
  overflow: hidden;
  padding-block: 0.42rem !important;
}

.system-page-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.system-sidebar {
  min-height: 0;
  overflow: hidden !important;
}

.system-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-inline-end: 0.35rem;
  scrollbar-gutter: stable;
}

.system-sidebar::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.system-sidebar-nav::-webkit-scrollbar {
  width: 0.42rem;
}

.system-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.system-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.7);
}

.system-sidebar-pill,
.system-plan-button {
  display: none !important;
}

.system-panel-scroll {
  height: 100%;
  min-height: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

.system-panel-scroll > section:first-child {
  position: sticky;
  top: 0;
  z-index: 24;
  padding: clamp(0.62rem, 1vw, 0.95rem) clamp(0.8rem, 1.35vw, 1.25rem) !important;
  border-radius: 1.2rem !important;
}

.system-panel-scroll > section:first-child .system-dialog-kicker {
  max-width: min(38rem, 100%);
  padding-block: 0.28rem !important;
}

.system-panel-scroll > section:first-child h1,
.system-panel-scroll > section:first-child h2 {
  font-size: clamp(1.45rem, 2vw, 2.1rem) !important;
  line-height: 1.03 !important;
}

.system-panel-scroll > section:first-child p:not(.system-dialog-kicker) {
  margin-top: 0.28rem !important;
  font-size: clamp(0.78rem, 0.9vw, 0.94rem) !important;
  line-height: 1.35 !important;
}

.system-panel-scroll.is-scrolled > section:first-child {
  padding-block: 0.44rem !important;
  border-radius: 0.95rem !important;
}

.system-panel-scroll.is-scrolled > section:first-child h1,
.system-panel-scroll.is-scrolled > section:first-child h2 {
  font-size: clamp(1.05rem, 1.45vw, 1.45rem) !important;
}

.system-panel-scroll.is-scrolled > section:first-child p:not(.system-dialog-kicker) {
  display: none !important;
}

.system-page-header {
  gap: 0.85rem !important;
  align-items: center !important;
}

.system-page-header-tools {
  flex: 1 1 30rem;
  justify-content: flex-end;
  gap: 0.65rem;
}

.system-toolbar-search {
  flex: 1 1 17rem;
  max-width: 32rem;
}

.system-toolbar-search input {
  min-height: 2.85rem !important;
}

.system-toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
}

.system-toolbar-actions .system-ghost-button {
  min-height: 2.85rem !important;
  padding: 0.68rem 0.95rem !important;
}

.system-toolbar-actions .system-icon-button,
.system-page-header-tools .system-icon-button {
  width: 3rem !important;
  min-width: 3rem !important;
  height: 3rem !important;
}

.system-table-shell {
  overflow: hidden !important;
}

.system-table-shell > .overflow-x-auto {
  overflow-x: hidden !important;
}

.system-data-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.system-data-table th,
.system-data-table td {
  padding: 0.72rem 0.5rem !important;
  font-size: clamp(0.74rem, 0.84vw, 0.9rem) !important;
  white-space: normal !important;
  word-break: break-word;
  vertical-align: middle;
}

.system-data-table th:first-child,
.system-data-table td:first-child {
  width: 3.3rem !important;
}

.system-row-avatar {
  width: 2.45rem !important;
  height: 2.45rem !important;
  border-radius: 999px;
  object-fit: cover;
  background: #e8eef5;
}

.system-row-actions--member {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  flex-wrap: nowrap;
}

.system-row-actions--member .system-table-button--solid {
  min-width: 7.4rem !important;
  padding: 0.54rem 0.68rem !important;
  font-size: 0.74rem !important;
  white-space: nowrap !important;
}

.system-row-actions--member .system-table-button--icon,
.system-row-actions--member .system-table-button--ghost {
  width: 2.1rem !important;
  min-width: 2.1rem !important;
  height: 2.1rem !important;
  padding: 0 !important;
}

.system-safe-module,
.system-expense-module,
.system-report-card,
.system-dashboard-card {
  padding: clamp(0.85rem, 1.25vw, 1.2rem) !important;
}

.system-safe-module__ring,
.system-expense-module__ring {
  width: clamp(10rem, 16vw, 14.5rem) !important;
  height: clamp(10rem, 16vw, 14.5rem) !important;
  margin-block: 0.45rem !important;
}

.system-safe-module__ring strong,
.system-expense-module__ring strong {
  font-size: clamp(1.45rem, 2.5vw, 2.45rem) !important;
  line-height: 1 !important;
}

.system-expense-module__visual {
  padding: clamp(0.65rem, 1vw, 1rem) !important;
}

.system-form-panel {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(0.5rem, 1.45vw, 1.2rem) !important;
  background: rgba(15, 23, 42, 0.1) !important;
  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

.system-form-dialog--managed {
  width: min(64rem, calc(100% - 1rem)) !important;
  max-height: min(42rem, calc(100dvh - 1.15rem)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.system-form-head,
.system-form-actions {
  flex: 0 0 auto;
}

.system-form-head {
  position: sticky !important;
  top: 0;
  z-index: 5;
}

.system-form-body {
  min-height: 0 !important;
  overflow-y: auto !important;
}

.system-form-actions {
  position: sticky !important;
  bottom: 0;
  z-index: 5;
}

.system-close-icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.55rem !important;
  min-width: 2.55rem !important;
  height: 2.55rem !important;
  min-height: 2.55rem !important;
  padding: 0 !important;
  border-radius: 0.95rem !important;
}

.system-close-icon-button .material-symbols-outlined {
  font-size: 1.35rem !important;
  transform: none !important;
}

.system-sidebar-branch-picker {
  position: relative;
  overflow: visible;
}

.system-sidebar-branch__menu {
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  max-height: 9.25rem;
  overflow-y: auto;
  z-index: 80;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #ffffff;
  box-shadow: 0 1.4rem 2.6rem rgba(2, 6, 23, 0.28);
}

html.dark .system-sidebar-branch__menu {
  color: #f8fafc;
  background: #111827;
}

html.dark .system-panel-scroll > section:first-child,
html.dark .system-table-shell,
html.dark .system-dashboard-card,
html.dark .system-report-card,
html.dark .system-safe-module,
html.dark .system-expense-module {
  background: #263747 !important;
  color: #f8fafc !important;
}

html.dark .system-data-table th,
html.dark .system-data-table td,
html.dark .system-page-header-copy p,
html.dark .system-report-card p {
  color: #d7e2ef !important;
}

@media (max-width: 1180px) {
  body.system-screen-body .system-screen-main {
    height: calc(100dvh - 3.7rem);
  }

  .system-page-shell {
    gap: 0.65rem;
  }

  /* Fill the grid column instead of taking an independent width.
   * `width: min(17.5rem, 30vw)` resolved to 280px while the shell's first
   * track was only ~225px at 1025–1180px, so the sidebar overflowed its
   * column and the content panel ran underneath it. */
  .system-sidebar {
    width: 100%;
    min-width: 0;
  }

  .system-sidebar-link {
    padding-inline: 0.8rem !important;
  }

  .system-row-actions--member .system-table-button--solid {
    min-width: 6.7rem !important;
    font-size: 0.68rem !important;
  }
}

@media (max-width: 900px) {
  .system-page-header {
    align-items: stretch !important;
  }

  .system-page-header-tools {
    flex-basis: 100%;
    width: 100%;
  }

  .system-toolbar-search {
    max-width: none;
  }

  .system-data-table th,
  .system-data-table td {
    padding: 0.62rem 0.42rem !important;
    font-size: 0.74rem !important;
  }
}

@media (max-width: 767px) {
  body.system-screen-body {
    overflow: hidden;
  }

  body.system-screen-body .system-screen-main {
    height: calc(100dvh - 4rem);
    padding: 0.35rem !important;
  }

  .system-page-header-tools,
  .system-toolbar-actions {
    width: 100%;
  }

  .system-toolbar-actions {
    flex-wrap: wrap;
  }

  .system-toolbar-search {
    flex-basis: 100%;
  }

  .system-table-shell > .overflow-x-auto {
    overflow-x: auto !important;
  }

  .system-data-table {
    min-width: 48rem !important;
  }

  .system-form-panel {
    padding: 0.35rem !important;
  }

  .system-form-dialog--managed {
    width: 100% !important;
    max-height: calc(100dvh - 0.7rem) !important;
  }
}

@media (max-width: 1023px) {
  .app-demo-layout--split {
    grid-template-columns: 1fr;
  }

  .app-demo-card {
    padding: 1.15rem;
  }

  .app-phone {
    width: min(100%, 20.75rem);
    height: clamp(35rem, 76svh, 39rem);
  }

  .system-membership-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
}

@media (min-width: 1440px) {
  .system-membership-plan-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 961px) and (max-width: 1439px) {
  .system-membership-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .app-showcase-pair {
    grid-template-columns: 1fr;
  }

  .app-demo-actions {
    flex-direction: column;
  }

  .app-demo-actions button,
  .app-demo-action-link {
    justify-content: center;
    width: 100%;
  }

  .app-phone {
    height: clamp(34rem, 78svh, 38rem);
    border-width: 6px;
    border-radius: 2.1rem;
  }

  .business-app-mini__hero {
    min-height: 8.8rem;
    padding: 1rem;
  }

  .business-app-mini__hero img {
    width: 4rem;
    max-height: 4rem;
  }

  .app-tile-grid,
  .app-metric-grid {
    gap: 0.7rem;
  }

  .app-tile-grid button,
  .app-metric-grid article {
    min-height: 7.6rem;
    padding: 0.85rem;
  }

  .app-hero-tile--business {
    grid-template-columns: 1fr;
  }

  .app-hero-tile--business h2 {
    font-size: 1.75rem;
  }

  .app-total-card strong {
    font-size: 1.9rem;
  }

  .member-card-link {
    min-height: 8.25rem;
  }

  .system-membership-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .dashboard-preview-shell > .grid {
    grid-template-columns: 1fr;
  }

  .dashboard-preview-shell > .grid > aside {
    display: none;
  }

  .dashboard-preview-content {
    padding-inline-end: 0;
  }

  .system-screen-body .system-page-shell {
    grid-template-columns: 1fr;
    overflow: hidden;
    min-height: 100%;
    height: 100%;
  }

  .system-sidebar-toggle {
    display: inline-flex;
  }

  .system-sidebar-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .system-screen-body .system-sidebar {
    position: absolute;
    inset-block: 0.5rem;
    inset-inline-start: 0.5rem;
    z-index: 36;
    width: min(17rem, calc(100% - 1rem));
    max-width: calc(100% - 1rem);
    transform: translateX(calc(-100% - 1rem));
    transition: transform 0.24s ease;
    animation: none;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .system-panel-scroll {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-block-start: 3.75rem;
    padding-inline-end: 0.2rem;
  }

  .system-page-shell.is-sidebar-open .system-sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .system-page-shell.is-sidebar-open .system-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  html[dir="rtl"] .system-sidebar-toggle {
    inset-inline-start: auto;
    inset-inline-end: 1rem;
  }

  html[dir="rtl"] .system-screen-body .system-sidebar {
    inset-inline-start: auto;
    inset-inline-end: 0.5rem;
    transform: translateX(calc(100% + 1.5rem));
  }

  html[dir="rtl"] .system-page-shell.is-sidebar-open .system-sidebar {
    transform: translateX(0);
  }
}

html[dir="rtl"] .site-mobile-menu-panel {
  inset-inline: auto;
  left: 0;
  right: auto;
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(-104%);
}

/* Final polish overrides */

.dashboard-preview-shell::before {
  content: "Open Masulka System ↗";
  min-width: 14rem;
  padding-inline: 1.35rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.9);
}

.business-app-mini__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.business-app-mini__hero img {
  object-fit: contain;
}

.business-app-mini__grid div {
  justify-items: center;
}

.business-app-mini__grid strong {
  text-align: center;
}

.business-app-mini__label {
  overflow-wrap: anywhere;
}

.app-mobile-header,
.app-subheader {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.app-login--member {
  display: flex;
  align-items: center;
}

.app-login__panel {
  max-width: 20rem;
  padding: 1.15rem;
  background: linear-gradient(180deg, #fffaf7 0%, #ffffff 72%);
}

.app-login__member-hero .app-login__logo {
  width: 4.6rem;
  height: 4.6rem;
}

.app-login__member-hero h2 {
  font-size: 1.95rem;
}

.app-login__member-hero p {
  overflow-wrap: anywhere;
}

.member-card-link {
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.member-card-link::before {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.04) 8%, rgba(15, 23, 42, 0.42) 100%),
    var(--member-card-image);
  opacity: 0.94;
}

.member-card-link span {
  text-shadow: 0 6px 20px rgba(15, 23, 42, 0.38);
}

.member-card-link--photo {
  --member-card-image: url("../Assets/Membership.png");
}

html[lang="ar"] .business-app-mini,
html[lang="ku"] .business-app-mini,
html[lang="ar"] .business-app-mini *,
html[lang="ku"] .business-app-mini * {
  font-family: Vazirmatn, sans-serif;
}

body.system-screen-body .site-mobile-menu,
body.system-screen-body .site-mobile-menu-button {
  display: none !important;
}

@media (max-width: 1024px) {
  .system-screen-body .system-sidebar {
    transform: translateX(calc(-100% - 1.5rem));
  }

  html[dir="rtl"] .system-screen-body .system-sidebar {
    transform: translateX(calc(100% + 2.5rem));
  }
}

/* June 2026 QA overrides */

.dashboard-preview-shell::before {
  content: "Open Masulka System ↗";
}

.business-app-mini__hero {
  position: relative;
  min-height: 10.25rem;
  padding: 1.35rem 1rem 1.2rem;
}

.business-app-mini__hero img {
  width: 5rem;
  max-height: 5rem;
}

.business-app-mini__hero span {
  position: absolute;
  inset-inline-end: 1rem;
  inset-block-start: 1rem;
}

html[dir="rtl"] .business-app-mini__hero span {
  inset-inline-end: auto;
  inset-inline-start: 1rem;
}

.business-app-mini__grid strong {
  max-width: 100%;
  font-size: 0.78rem;
  line-height: 1.15;
  word-break: normal;
  overflow-wrap: anywhere;
}

.app-login__panel--member {
  max-width: 20.5rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffaf7 100%);
}

.app-login__member-banner {
  height: 7.1rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.38)),
    url("../Assets/2.jpg") center/cover no-repeat;
}

.app-login__member-hero {
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  margin: -2.25rem 0 1rem;
  text-align: center;
}

.app-login__member-copy,
.app-login__form,
.app-login__form label {
  width: 100%;
  max-width: 100%;
}

.app-login__member-hero .app-login__logo {
  width: 4.85rem;
  height: 4.85rem;
  margin-inline: auto;
}

.app-login__member-hero h2 {
  font-size: 2rem;
  line-height: 1.02;
}

.app-login__form--member {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.member-card-link--photo {
  --member-card-image: url("../Assets/2.jpg?v=20260610");
}

body.system-screen-body .site-mobile-menu,
body.system-screen-body .site-mobile-menu-button,
body.system-screen-body .site-mobile-menu-panel,
body.system-screen-body .site-mobile-menu-backdrop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.system-panel-scroll > section:first-child {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* June 2026 follow-up polish */

.dashboard-preview-shell::before {
  content: "Open Masulka System";
  min-width: 15rem;
}

.business-app-mini__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 10.5rem;
  padding: 1.15rem 1rem 0.95rem;
  text-align: center;
}

.business-app-mini__hero img {
  position: relative;
  z-index: 1;
  width: 5.35rem;
  max-height: 5.35rem;
  margin-inline: auto;
}

.business-app-mini__hero span {
  position: static;
  display: inline-flex;
  align-self: center;
  margin-top: auto;
}

.business-app-mini__grid div {
  justify-items: center;
  text-align: center;
}

.business-app-mini__grid .material-symbols-outlined {
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.18rem;
  border-radius: 0.9rem;
}

.business-app-mini__grid strong {
  display: block;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.15;
}

.app-mobile-header strong,
.app-subheader h2 {
  font-size: 1.22rem;
}

.app-tile-grid button,
.app-metric-grid article {
  grid-template-rows: auto auto auto;
  gap: 0.6rem;
  min-height: 8rem;
  padding: 0.9rem;
}

.app-tile-grid .material-symbols-outlined,
.app-metric-grid .material-symbols-outlined {
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.14rem;
}

.app-tile-grid strong,
.app-metric-grid strong {
  font-size: 1.02rem;
  line-height: 1.08;
}

.app-tile-grid span:not(.material-symbols-outlined),
.app-metric-grid span:not(.material-symbols-outlined) {
  font-size: 0.92rem;
}

.app-login__panel--member {
  max-width: 20rem;
  padding: 0.95rem;
  border-radius: 1.45rem;
}

.app-login__member-banner {
  height: 6.35rem;
  background-position: center 28%;
}

.app-login__member-hero {
  margin: -1.8rem 0 0.9rem;
}

.app-login__member-copy {
  text-align: center;
}

.app-login__member-hero h2 {
  font-size: 1.85rem;
}

.app-login__form--member {
  gap: 0.8rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
}

.app-login__form--member label {
  background: rgba(255, 255, 255, 0.94);
}

html[lang="ar"] .app-phone,
html[lang="ku"] .app-phone,
html[lang="ar"] .app-phone *,
html[lang="ku"] .app-phone * {
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .business-app-mini__phone {
    width: min(100%, 20rem);
  }

  .business-app-mini__hero {
    min-height: 9.8rem;
  }

  .business-app-mini__grid div {
    min-height: 6.2rem;
    padding: 0.85rem;
  }

  .app-mobile-header strong,
  .app-subheader h2 {
    font-size: 1.1rem;
  }

  .app-tile-grid,
  .app-metric-grid {
    gap: 0.75rem;
  }

  .app-tile-grid button,
  .app-metric-grid article {
    min-height: 7.5rem;
    padding: 0.82rem;
  }

  .app-tile-grid .material-symbols-outlined,
  .app-metric-grid .material-symbols-outlined {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.06rem;
  }
}

/* June 2026 app preview and mobile polish */

.app-phone {
  width: min(100%, 20.75rem);
  height: 37rem;
  max-height: 37rem;
}

.app-screen {
  overscroll-behavior: contain;
}

.app-mobile-header,
.app-subheader {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.business-app-mini__hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  min-height: 10.8rem;
  text-align: center;
}

.business-app-mini__hero img {
  display: block;
  width: 5.5rem;
  max-width: 100%;
  max-height: 5.5rem;
  margin-inline: auto;
}

.business-app-mini__hero span {
  margin-top: 0;
}

.business-app-mini__label {
  display: block;
  text-align: center;
}

.business-app-mini__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.business-app-mini__grid div {
  align-content: start;
  justify-items: center;
  gap: 0.55rem;
  min-height: 6.3rem;
  padding: 0.8rem 0.65rem;
}

.business-app-mini__grid .material-symbols-outlined {
  flex-shrink: 0;
}

.business-app-mini__grid strong {
  font-size: 0.76rem;
  line-height: 1.1;
  text-wrap: balance;
}

.app-tile-grid button,
.app-metric-grid article {
  align-content: start;
  gap: 0.58rem;
  min-height: 8.2rem;
}

.app-tile-grid .material-symbols-outlined,
.app-metric-grid .material-symbols-outlined {
  flex-shrink: 0;
}

.app-tile-grid strong,
.app-metric-grid strong {
  font-size: 0.98rem;
  line-height: 1.1;
  text-wrap: balance;
}

.app-tile-grid span:not(.material-symbols-outlined),
.app-metric-grid span:not(.material-symbols-outlined) {
  font-size: 0.88rem;
  line-height: 1.36;
}

.app-login__panel--member {
  max-width: 19.35rem;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.app-login__member-banner {
  height: 5.75rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(16, 24, 40, 0.08)),
    url("../Assets/2.jpg") center 28%/cover no-repeat;
}

.app-login__member-hero {
  margin: -1.55rem 0 0.95rem;
  gap: 0.68rem;
}

.app-login__member-copy {
  text-align: center;
}

.app-login__member-hero h2 {
  color: #101828;
  font-size: 1.95rem;
}

.app-login__member-hero p {
  color: #667085;
}

.app-login__form--member {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.app-login__form--member label {
  background: rgba(255, 255, 255, 0.96);
}

.member-home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 8rem;
  margin-bottom: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.4rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 244, 0.88)),
    url("../Assets/2.jpg") right center/cover no-repeat;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.member-home-hero__copy {
  max-width: 9.75rem;
}

.member-home-hero strong,
.member-home-hero span {
  display: block;
}

.member-home-hero strong {
  color: #111827;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1.25rem;
  line-height: 1.08;
}

.member-home-hero span {
  margin-top: 0.3rem;
  color: #5f6f86;
  font-size: 0.92rem;
  line-height: 1.42;
}

.member-home-hero img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.member-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.member-home-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 8.2rem;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 1.35rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.member-home-card:hover,
.member-home-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.24);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.member-home-card .material-symbols-outlined {
  display: inline-grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ff7442 0%, #f04c13 100%);
  color: #ffffff;
}

.member-home-card strong {
  color: #111827;
  font-family: Manrope, "Vazirmatn", sans-serif;
  font-size: 1rem;
  line-height: 1.12;
  text-wrap: balance;
}

.member-home-card--membership,
.member-home-card--attendance,
.member-home-card--articles,
.member-home-card--courses {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.98));
}

html[lang="ar"] .app-phone,
html[lang="ku"] .app-phone,
html[lang="ar"] .app-phone *,
html[lang="ku"] .app-phone * {
  font-family: Vazirmatn, sans-serif;
}

html[dir="rtl"] .member-home-hero {
  direction: rtl;
}

html[dir="rtl"] .member-home-card,
html[dir="rtl"] .app-tile-grid button,
html[dir="rtl"] .app-metric-grid article,
html[dir="rtl"] .app-list-card button,
html[dir="rtl"] .app-plan-stack button,
html[dir="rtl"] .app-payment-grid button {
  text-align: right;
}

html[dir="rtl"] .app-mobile-header strong,
html[dir="rtl"] .app-subheader h2 {
  text-align: right;
}

@media (max-width: 1023px) {
  .app-phone {
    width: min(100%, 19.9rem);
    height: 35.5rem;
    max-height: 35.5rem;
  }
}

@media (max-width: 767px) {
  .business-app-mini__hero {
    min-height: 9.8rem;
  }

  .business-app-mini__hero img {
    width: 4.8rem;
    max-height: 4.8rem;
  }

  .business-app-mini__grid strong {
    font-size: 0.72rem;
  }

  .member-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-home-card {
    min-height: 7.5rem;
    padding: 0.9rem;
  }

  .member-home-card strong {
    font-size: 0.94rem;
  }
}

/* June 2026 final responsive and app polish */

.site-theme-toggle .material-symbols-outlined {
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}

.business-app-mini__hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.75rem;
  text-align: center;
}

.business-app-mini__hero img {
  display: block;
  margin-inline: auto;
}

.business-app-mini__hero span {
  position: absolute;
  inset-inline-end: 0.9rem;
  inset-block-start: 0.9rem;
  z-index: 2;
}

.business-app-mini__grid {
  align-items: stretch;
}

.business-app-mini__grid div {
  min-height: 7rem;
  align-content: start;
  gap: 0.65rem;
}

.business-app-mini__grid .material-symbols-outlined {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
}

.business-app-mini__grid strong {
  font-size: 0.78rem;
  line-height: 1.15;
  text-wrap: balance;
}

.app-phone {
  width: min(100%, 20.75rem);
  height: 37rem;
  max-height: 37rem;
}

.app-phone__body {
  min-height: 0;
}

.app-screen {
  min-height: 0;
  overscroll-behavior: contain;
}

.app-mobile-header,
.app-subheader {
  top: 0;
  z-index: 8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.app-phone--business .app-tile-grid button,
.app-phone--business .app-metric-grid article,
.app-phone--member .member-home-card {
  min-height: 8rem;
}

.app-phone--business .app-tile-grid .material-symbols-outlined,
.app-phone--business .app-metric-grid .material-symbols-outlined,
.app-phone--member .member-home-card .material-symbols-outlined {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
}

.app-phone--business .app-tile-grid strong,
.app-phone--business .app-metric-grid strong,
.app-phone--member .member-home-card strong {
  font-size: 0.92rem;
  line-height: 1.12;
  text-wrap: balance;
}

.app-phone--business .app-tile-grid span:not(.material-symbols-outlined),
.app-phone--business .app-metric-grid span:not(.material-symbols-outlined),
.app-phone--member .member-home-card span:not(.material-symbols-outlined) {
  font-size: 0.86rem;
  line-height: 1.35;
}

.app-login__panel--member {
  max-width: 20.25rem;
  margin-inline: auto;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 252, 0.98) 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.app-login__member-banner {
  height: 6.5rem;
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.08)),
    url("../Assets/2.jpg") center 22%/cover no-repeat;
}

.app-login__member-hero {
  margin: -2rem 0 1rem;
  align-items: center;
  text-align: center;
}

.app-login__member-copy {
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  text-align: center;
}

.app-login__member-copy p {
  color: #64748b;
}

.app-login__form--member {
  gap: 0.85rem;
  background: transparent;
  box-shadow: none;
}

.app-login__form--member label {
  background: rgba(255, 255, 255, 0.92);
}

.member-home-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    url("../Assets/4.jpg") center/cover no-repeat;
}

.member-home-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.member-home-card {
  min-height: 8rem;
}

.app-payment-grid button {
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 0.45rem;
}

.app-payment-grid span {
  display: block;
  text-align: center;
}

body.system-screen-body .site-mobile-menu,
body.system-screen-body .site-mobile-menu-panel,
body.system-screen-body .site-mobile-menu-backdrop,
body.system-screen-body [data-mobile-menu-toggle] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  .app-phone {
    width: min(100%, 19.5rem);
    height: 35.25rem;
    max-height: 35.25rem;
  }
}

@media (max-width: 767px) {
  .business-app-mini__grid div {
    min-height: 6.4rem;
    padding: 0.75rem;
  }

  .business-app-mini__grid strong {
    font-size: 0.72rem;
  }

  .app-phone {
    width: min(100%, 18.85rem);
    height: 34.5rem;
    max-height: 34.5rem;
  }

  .app-phone--member .app-mobile-header strong,
  .app-phone--business .app-mobile-header strong {
    font-size: 1.05rem;
  }
}

/* June 2026 final dark-mode sync for website and app previews */

html.dark {
  color-scheme: dark;
}

html.dark body {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 97, 40, 0.11), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(25, 146, 173, 0.12), transparent 28%),
    linear-gradient(180deg, #0a1118 0%, #0f1722 100%) !important;
  color: #e7edf5;
}

html.dark .site-nav,
html.dark .site-nav-inner,
html.dark .site-mobile-menu-panel,
html.dark .lang-dropdown-menu,
html.dark footer {
  background: rgba(8, 14, 22, 0.94) !important;
  border-color: rgba(71, 85, 105, 0.42) !important;
}

html.dark .site-theme-toggle,
html.dark .site-mobile-menu-close,
html.dark .site-mobile-nav-link,
html.dark .site-mobile-language-options button,
html.dark .site-language-button,
html.dark .app-demo-action-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(71, 85, 105, 0.38) !important;
  color: #e5edf5 !important;
}

html.dark .site-theme-toggle:hover,
html.dark .site-language-button:hover,
html.dark .app-demo-action-link:hover,
html.dark .site-mobile-nav-link.is-active,
html.dark .site-mobile-language-options button[aria-pressed="true"] {
  background: rgba(255, 107, 53, 0.12) !important;
  border-color: rgba(255, 107, 53, 0.34) !important;
  color: #ff945f !important;
}

html.dark .business-app-hero,
html.dark .business-app-callout,
html.dark .bg-surface,
html.dark .bg-surface-container-low {
  background: transparent !important;
}

html.dark .bg-surface-container-low,
html.dark .bg-surface-container,
html.dark .bg-surface-container-high,
html.dark .bg-surface-container-highest,
html.dark .bg-surface-container-lowest,
html.dark .bg-slate-50,
html.dark .bg-slate-100,
html.dark .bg-white,
html.dark .app-demo-card,
html.dark .app-phone-frame,
html.dark .business-app-mini__phone,
html.dark .business-app-mini__grid div,
html.dark .business-phone,
html.dark .business-phone__screen,
html.dark .business-language-list p,
html.dark .business-tile-grid div,
html.dark .business-source-grid div,
html.dark .business-year-selector,
html.dark .business-income-summary,
html.dark .business-income-item,
html.dark .business-breakdown,
html.dark .business-income-details p,
html.dark .app-phone,
html.dark .app-phone__body,
html.dark .app-list-card button,
html.dark .app-plan-stack button,
html.dark .app-payment-grid button,
html.dark .app-info-list article,
html.dark .app-profile-card,
html.dark .member-home-card,
html.dark .member-stat-card,
html.dark .member-detail-list article,
html.dark .member-attendance-list article,
html.dark .member-profile-panels article,
html.dark .member-profile-panels button,
html.dark .app-login__panel--member,
html.dark .app-login__form--member label {
  background: rgba(12, 20, 31, 0.92) !important;
  border-color: rgba(71, 85, 105, 0.42) !important;
  box-shadow: 0 22px 44px rgba(2, 6, 12, 0.3);
}

html.dark .business-app-mini--member .business-app-mini__phone,
html.dark .app-phone--member {
  background: rgba(10, 18, 28, 0.96) !important;
  border-color: #1e293b !important;
}

html.dark .app-phone__body,
html.dark .app-phone--member .app-phone__body,
html.dark .app-screen,
html.dark .business-phone__screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 97, 40, 0.08), transparent 24%),
    linear-gradient(180deg, #0b121b 0%, #101a25 100%) !important;
}

html.dark .app-mobile-header,
html.dark .app-subheader {
  background: rgba(8, 14, 22, 0.9) !important;
  border-bottom: 1px solid rgba(71, 85, 105, 0.28);
  box-shadow: 0 10px 24px rgba(2, 6, 12, 0.18);
}

html.dark .app-mobile-header button,
html.dark .app-subheader button,
html.dark .app-subheader > span {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #f8fafc !important;
}

html.dark .app-mobile-header__brand {
  background: linear-gradient(180deg, #ff7442 0%, #e4480a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(255, 97, 40, 0.25);
}

html.dark .business-app-mini__hero,
html.dark .business-dashboard-card,
html.dark .app-hero-tile--business,
html.dark .business-total-card--dark,
html.dark .member-home-hero,
html.dark .business-app-mini--member .business-app-mini__hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 97, 40, 0.24), transparent 28%),
    linear-gradient(135deg, #0b0f15 0%, #171c24 100%) !important;
  color: #ffffff !important;
}

html.dark .business-app-mini__hero img,
html.dark .business-app-mini--member .business-app-mini__hero img {
  filter: brightness(0) invert(1);
}

html.dark .business-app-mini__bar {
  background: rgba(226, 232, 240, 0.3) !important;
}

html.dark .business-app-mini__hero span,
html.dark .app-hero-tile--business > strong,
html.dark .business-total-card small {
  background: rgba(15, 23, 42, 0.5) !important;
}

html.dark .text-slate-950,
html.dark .text-on-surface,
html.dark .font-headline,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6,
html.dark .app-mobile-header strong,
html.dark .app-subheader h2,
html.dark .business-app-mini__grid strong,
html.dark .business-app-mini__label,
html.dark .app-tile-grid strong,
html.dark .app-metric-grid strong,
html.dark .app-section-title,
html.dark .member-home-card strong,
html.dark .member-profile strong,
html.dark .app-profile-card strong {
  color: #f8fafc !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-on-surface-variant,
html.dark .business-app-mini__grid span:not(.material-symbols-outlined),
html.dark .app-tile-grid span:not(.material-symbols-outlined),
html.dark .app-metric-grid span:not(.material-symbols-outlined),
html.dark .app-info-list span,
html.dark .app-profile-card span,
html.dark .app-hero-tile--business p,
html.dark .member-home-hero span,
html.dark .business-tile-grid small,
html.dark .business-source-grid small,
html.dark .business-income-summary span,
html.dark .business-income-item small,
html.dark .business-breakdown p,
html.dark .member-detail-list span,
html.dark .member-stat-card span,
html.dark .member-attendance-list small,
html.dark .member-profile-panels p,
html.dark .app-muted,
html.dark .app-muted--dark {
  color: #9db0c3 !important;
}

html.dark .business-language-list .material-symbols-outlined,
html.dark .business-tile-grid .material-symbols-outlined,
html.dark .business-source-grid .material-symbols-outlined,
html.dark .app-tile-grid .material-symbols-outlined,
html.dark .app-metric-grid .material-symbols-outlined,
html.dark .member-home-card .material-symbols-outlined,
html.dark .member-detail-list .material-symbols-outlined {
  box-shadow: 0 12px 24px rgba(255, 97, 40, 0.18);
}

html.dark .business-phone__appbar,
html.dark .business-phone__status,
html.dark .app-phone__status {
  background: #070d14 !important;
  color: #f8fafc !important;
}

html.dark .business-phone__appbar > .material-symbols-outlined {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html.dark .business-phone__tabs {
  background: rgba(12, 20, 31, 0.96) !important;
  border-bottom-color: rgba(71, 85, 105, 0.34) !important;
  color: #f8fafc !important;
}

html.dark .business-phone__tabs strong::after {
  background: #ff8a57 !important;
}

html.dark .business-year-selector--solid,
html.dark .app-total-card--orange {
  background: linear-gradient(180deg, #ff7442 0%, #ef4a12 100%) !important;
  color: #ffffff !important;
}

html.dark .business-donut__hole {
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.dark .business-app-mini__hero span,
html.dark .app-hero-tile--business > strong {
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.72) !important;
}

html.dark .business-dashboard-card span,
html.dark .business-total-card small,
html.dark .business-income-summary small {
  color: #ff9a6e !important;
}

html.dark .business-income-summary strong,
html.dark .business-income-item div:first-child span {
  color: #ff8a57 !important;
}

html.dark .app-list-card button:hover,
html.dark .app-plan-stack button:hover,
html.dark .app-payment-grid button:hover,
html.dark .app-demo-action-link:hover,
html.dark .member-home-card:hover,
html.dark .member-home-card:focus-visible {
  border-color: rgba(255, 107, 53, 0.34) !important;
  transform: translateY(-1px);
}

html.dark .app-login__member-banner {
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.08), rgba(8, 14, 22, 0.42)),
    url("../Assets/2.jpg") center 22%/cover no-repeat !important;
}

html.dark .app-login__member-copy p {
  color: #93a7bc !important;
}

html.dark .app-payment-grid img {
  filter: none;
}

html.dark .border-slate-200,
html.dark .border-slate-100 {
  border-color: rgba(71, 85, 105, 0.36) !important;
}

html.dark .ring-black\/5 {
  --tw-ring-color: rgba(148, 163, 184, 0.12) !important;
}

/* June 2026 responsive and contrast corrections */

.business-app-mini {
  transition: opacity 0.22s ease, filter 0.22s ease;
}

.business-app-mini__phone {
  outline: 3px solid transparent;
  outline-offset: 5px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    outline-color 0.2s ease,
    filter 0.2s ease;
}

.business-app-callout:has([data-app-highlight="business"]:hover) [data-app-preview="business"] .business-app-mini__phone,
.business-app-callout:has([data-app-highlight="business"]:focus-visible) [data-app-preview="business"] .business-app-mini__phone,
.business-app-callout:has([data-app-highlight="member"]:hover) [data-app-preview="member"] .business-app-mini__phone,
.business-app-callout:has([data-app-highlight="member"]:focus-visible) [data-app-preview="member"] .business-app-mini__phone {
  outline-color: rgba(255, 97, 40, 0.72);
  transform: translateY(-5px);
  box-shadow:
    0 34px 72px rgba(15, 23, 42, 0.22),
    0 0 0 9px rgba(255, 97, 40, 0.1);
}

.business-app-callout:has([data-app-highlight="business"]:hover) [data-app-preview="member"],
.business-app-callout:has([data-app-highlight="business"]:focus-visible) [data-app-preview="member"],
.business-app-callout:has([data-app-highlight="member"]:hover) [data-app-preview="business"],
.business-app-callout:has([data-app-highlight="member"]:focus-visible) [data-app-preview="business"] {
  opacity: 0.62;
  filter: saturate(0.72);
}

.core-dashboard-visual {
  position: relative;
  isolation: isolate;
}

.core-dashboard-visual__image {
  display: block;
  flex: 0 0 auto;
  width: 116% !important;
  height: 116% !important;
  max-width: none !important;
  object-position: center;
}

@media (max-width: 1180px) {
  .dashboard-preview-shell::before,
  .dashboard-preview-shell::after {
    display: none;
  }

  .dashboard-open-hint {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: calc(100% - 1.6rem);
    padding: 0.72rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(10px);
    pointer-events: none;
  }

  html[dir="rtl"] .dashboard-open-hint {
    right: auto;
    left: 0.8rem;
  }

  .site-mobile-menu.is-open .site-mobile-menu-panel {
    visibility: visible;
    transform: translateX(0);
  }

  html[dir="rtl"] .site-mobile-menu-panel {
    left: 0;
    right: auto;
    transform: translateX(-104%);
  }

  html[dir="rtl"] .site-mobile-menu.is-open .site-mobile-menu-panel {
    transform: translateX(0);
  }

  .app-showcase-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
  }

  .business-app-mini,
  .business-app-mini__phone {
    width: 100%;
    min-width: 0;
  }

  .business-app-mini__phone {
    max-width: 19rem;
  }

  .core-dashboard-visual__image {
    width: 124% !important;
    height: 124% !important;
  }
}

@media (max-width: 767px) {
  .dashboard-open-hint {
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.68rem 0.88rem;
    font-size: 0.7rem;
  }

  html[dir="rtl"] .dashboard-open-hint {
    right: auto;
    left: 0.7rem;
  }

  .app-showcase-pair {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .business-app-mini {
    width: 100%;
    max-width: 100%;
  }

  .business-app-mini__phone {
    width: min(100%, 18.25rem);
    max-width: calc(100vw - 3rem);
    padding: 0.7rem;
    border-width: 6px;
  }

  .business-app-mini__hero {
    min-height: 9rem;
  }

  .core-dashboard-visual {
    height: 14rem;
  }

  .core-dashboard-visual__image {
    width: 132% !important;
    height: 132% !important;
  }
}

html.dark body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 97, 40, 0.12), transparent 31%),
    radial-gradient(circle at 86% 14%, rgba(34, 151, 176, 0.12), transparent 28%),
    linear-gradient(180deg, #17212c 0%, #1b2734 100%) !important;
  color: #edf3f8;
}

html.dark .site-nav,
html.dark .site-nav-inner,
html.dark .site-mobile-menu-panel,
html.dark .lang-dropdown-menu,
html.dark footer {
  background: rgba(23, 33, 44, 0.97) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

html.dark .bg-surface-container-low,
html.dark .bg-surface-container,
html.dark .bg-surface-container-high,
html.dark .bg-surface-container-highest,
html.dark .bg-surface-container-lowest,
html.dark .bg-slate-50,
html.dark .bg-slate-100,
html.dark .bg-white,
html.dark .app-demo-card,
html.dark .business-app-mini__phone,
html.dark .business-app-mini__grid div,
html.dark .business-language-list p,
html.dark .business-tile-grid div,
html.dark .business-source-grid div,
html.dark .business-income-summary,
html.dark .business-income-item,
html.dark .business-breakdown,
html.dark .business-income-details p,
html.dark .app-list-card button,
html.dark .app-plan-stack button,
html.dark .app-payment-grid button,
html.dark .app-tile-grid button,
html.dark .app-metric-grid article,
html.dark .app-info-list article,
html.dark .app-profile-card,
html.dark .member-home-card,
html.dark .member-stat-card,
html.dark .member-detail-list article,
html.dark .member-attendance-list article,
html.dark .member-profile-panels article,
html.dark .member-profile-panels button,
html.dark .app-login__panel--member,
html.dark .app-login__form--member label {
  background: #243241 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 20px 42px rgba(5, 10, 16, 0.22);
}

html.dark .app-phone__body,
html.dark .app-phone--member .app-phone__body,
html.dark .app-screen,
html.dark .business-phone__screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 97, 40, 0.1), transparent 27%),
    linear-gradient(180deg, #1b2734 0%, #202f3e 100%) !important;
  color: #edf3f8 !important;
}

html.dark .app-phone,
html.dark .app-phone--member,
html.dark .business-phone,
html.dark .business-phone__screen {
  color: #edf3f8 !important;
}

html.dark .app-login__panel--member,
html.dark .app-login__member-copy,
html.dark .app-login__form--member {
  color: #edf3f8 !important;
}

html.dark .app-mobile-header,
html.dark .app-subheader {
  background: rgba(27, 39, 52, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html.dark input,
html.dark select,
html.dark textarea,
html.dark .system-toolbar-search,
html.dark .system-toolbar-search input {
  background: #2b3b4c !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  color: #f8fafc !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #9fb0c2 !important;
}

html.dark .site-primary-button,
html.dark .site-nav-cta,
html.dark .site-primary-button strong,
html.dark .site-nav-cta strong {
  color: #ffffff !important;
}

html.dark .site-secondary-button {
  background: #e8eef5 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #182433 !important;
}

html.dark .site-secondary-button strong,
html.dark .site-secondary-button .site-button-content,
html.dark .site-secondary-button .material-symbols-outlined {
  color: #182433 !important;
}

html.dark .site-secondary-button--light {
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #9f3107 !important;
}

html.dark .site-secondary-button--light strong,
html.dark .site-secondary-button--light .site-button-content,
html.dark .site-secondary-button--light .material-symbols-outlined {
  color: #9f3107 !important;
}

html.dark .dashboard-preview-shell aside a.bg-white {
  background: #f8fafc !important;
  color: #172033 !important;
}

html.dark .dashboard-preview-shell aside a.bg-white > span:first-child {
  color: #172033 !important;
}

html.dark .business-app-mini__grid strong,
html.dark .business-app-mini__label,
html.dark .app-tile-grid strong,
html.dark .app-metric-grid strong,
html.dark .member-home-card strong,
html.dark .app-section-title {
  color: #f8fafc !important;
}

html.dark .business-app-mini__grid span:not(.material-symbols-outlined),
html.dark .app-tile-grid span:not(.material-symbols-outlined),
html.dark .app-metric-grid span:not(.material-symbols-outlined),
html.dark .app-info-list span,
html.dark .app-profile-card span,
html.dark .member-detail-list span,
html.dark .member-stat-card span,
html.dark .member-attendance-list small,
html.dark .member-profile-panels p,
html.dark .app-muted,
html.dark .app-muted--dark {
  color: #b7c5d3 !important;
}

html.dark .business-app-mini--member .business-app-mini__hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 97, 40, 0.2), transparent 30%),
    linear-gradient(135deg, #263544 0%, #304154 100%) !important;
}

html.dark .business-app-mini--member .business-app-mini__hero img {
  filter: none;
}

html.dark .core-dashboard-visual {
  background: #263544 !important;
}

/* June 2026 asset and dark-mode QA fixes */

html[lang="ar"] .material-symbols-outlined,
html[lang="ku"] .material-symbols-outlined {
  direction: ltr;
  font-family: "Material Symbols Outlined" !important;
  font-feature-settings: "liga" !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1;
  text-transform: none !important;
  white-space: nowrap;
  word-break: normal;
}

html.dark .hover\:bg-surface-container-low:hover {
  background: #304154 !important;
}

html.dark .hover\:bg-surface-container-low:hover h4,
html.dark .hover\:bg-surface-container-low:hover p {
  color: #f8fafc !important;
}

html.dark .dashboard-preview-shell .text-slate-900,
html.dark .dashboard-preview-shell .text-slate-800,
html.dark .dashboard-preview-shell .text-slate-700,
html.dark .system-page-shell .text-slate-900,
html.dark .system-page-shell .text-slate-800,
html.dark .system-page-shell .text-slate-700 {
  color: #f8fafc !important;
}

html.dark .dashboard-preview-shell .text-slate-600,
html.dark .dashboard-preview-shell .text-slate-500,
html.dark .dashboard-preview-shell .text-slate-400,
html.dark .system-page-shell .text-slate-600,
html.dark .system-page-shell .text-slate-500,
html.dark .system-page-shell .text-slate-400 {
  color: #b7c5d3 !important;
}

html.dark .dashboard-preview-shell aside a.bg-white,
html.dark .dashboard-preview-shell aside a.bg-white span,
html.dark .system-page-shell aside a.bg-white,
html.dark .system-page-shell aside a.bg-white span {
  color: #172033 !important;
}

html.dark .dashboard-preview-shell:hover::after,
html.dark .dashboard-preview-shell:focus-visible::after {
  background: rgba(5, 10, 16, 0.1);
}

html.dark .system-form-panel {
  background: rgba(5, 10, 16, 0.42) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

html.dark .system-account-dialog,
html.dark .system-renewal-dialog {
  background: #243241 !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #edf3f8 !important;
}

html.dark .system-account-hero,
html.dark .system-account-stat,
html.dark .system-renewal-current,
html.dark .system-renewal-card,
html.dark .system-payment-option {
  background: #2b3b4c !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

html.dark .system-account-stat strong,
html.dark .system-renewal-current strong,
html.dark .system-renewal-card strong,
html.dark .system-payment-option,
html.dark .system-account-dialog h3,
html.dark .system-account-dialog h4,
html.dark .system-renewal-dialog h3 {
  color: #f8fafc !important;
}

html.dark .system-account-stat span,
html.dark .system-account-stat small,
html.dark .system-renewal-current span,
html.dark .system-renewal-card span,
html.dark .system-renewal-card small,
html.dark .system-account-hero p {
  color: #b7c5d3 !important;
}

html.dark .system-renewal-card:hover,
html.dark .system-renewal-card.is-selected,
html.dark .system-payment-option:hover,
html.dark .system-payment-option.is-selected {
  background: #35485c !important;
  border-color: rgba(255, 107, 53, 0.62) !important;
}

.system-payment-grid:has(> :only-child) {
  grid-template-columns: minmax(12rem, 20rem);
}

html.dark .member-detail-list strong {
  color: #f8fafc !important;
}

html.dark #demo-form input,
html.dark #demo-form textarea {
  background: #314255 !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 22px rgba(5, 10, 16, 0.16);
  color: #f8fafc !important;
}

html.dark #demo-form input:focus,
html.dark #demo-form textarea:focus {
  border-color: rgba(255, 107, 53, 0.72) !important;
  box-shadow:
    0 0 0 3px rgba(255, 107, 53, 0.16),
    0 12px 24px rgba(5, 10, 16, 0.2);
}

html.dark section [data-no-translate] {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

html.dark .app-payment-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

html.dark .app-payment-grid:has(> :only-child) button {
  color: #f8fafc !important;
}

.feature-art-frame {
  position: relative;
  isolation: isolate;
}

.feature-art-image {
  display: block;
  transform-origin: center;
}

.feature-art-image--automation {
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
}

.client-logo-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.client-logo-shell {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.client-logo-entry:hover .client-logo-shell {
  transform: translateY(-4px);
}

.client-logo-name {
  margin: 0;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1f2937;
}

.auth-showcase-visual {
  position: relative;
  isolation: isolate;
}

.auth-showcase-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

.intelligent-sales-hub-image {
  min-height: 28rem;
  max-height: 32rem;
  object-fit: cover;
  object-position: center;
}

.security-terminal-action {
  border: 1px solid transparent;
}

.security-terminal-action:hover {
  border-color: rgba(255, 97, 40, 0.24);
  background: rgba(255, 97, 40, 0.08) !important;
}

.system-report-grid {
  display: grid;
  gap: 1.25rem;
}

.system-report-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-report-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-report-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 1.6rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.system-report-card__top {
  padding: 1.3rem 1.3rem 1rem;
}

.system-report-card__top--neutral {
  padding-bottom: 0.55rem;
}

.system-report-card__top--shallow {
  padding-bottom: 0;
}

.system-report-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-top: 0.15rem;
}

.system-report-card__header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.system-report-card__header .material-symbols-outlined {
  font-size: 1.1rem;
  opacity: 0.9;
}

.system-report-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.system-report-icon-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.system-report-card--neutral .system-report-icon-button {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

.system-report-card--neutral .system-report-icon-button:hover {
  background: #eef2ff;
  border-color: rgba(148, 163, 184, 0.34);
}

.system-report-icon-button--refresh.is-spinning .material-symbols-outlined {
  animation: system-refresh-spin 0.72s linear;
}

@keyframes system-refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.system-report-card__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.system-report-card__filters--multi {
  justify-content: center;
}

.system-report-card__filters--soft {
  margin-top: -0.2rem;
  justify-content: flex-start;
}

.system-report-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
}

.system-report-filter.is-active {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.system-report-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.system-report-toggle--compact {
  margin-inline: auto;
}

.system-report-toggle--center {
  display: flex;
  margin-inline: auto;
  width: fit-content;
}

.system-report-toggle--soft {
  margin-top: -0.1rem;
  background: #eef2f7;
  border-color: rgba(148, 163, 184, 0.2);
  align-self: flex-start;
}

.system-report-toggle__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.system-report-toggle__button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.system-report-toggle__button:hover {
  transform: translateY(-1px);
}

.system-report-toggle__button.is-active,
.system-report-toggle__button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
}

.system-report-toggle__button.is-active::after,
.system-report-toggle__button[aria-pressed="true"]::after {
  width: 1.2rem;
}

.system-report-toggle--soft .system-report-toggle__button {
  color: #64748b;
}

.system-report-toggle--soft .system-report-toggle__button.is-active,
.system-report-toggle--soft .system-report-toggle__button[aria-pressed="true"] {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.system-report-daybox-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.system-report-daybox {
  width: 5.4rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.system-report-daybox::-webkit-outer-spin-button,
.system-report-daybox::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.system-report-daybox::placeholder {
  color: #111827;
  opacity: 1;
}

.system-report-daybox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 10px 22px rgba(15, 23, 42, 0.1);
}

.system-report-date-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #ffffff;
  color: #64748b;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.system-report-date-button:hover {
  color: #b02f00;
  border-color: rgba(176, 47, 0, 0.25);
  transform: translateY(-1px);
}

.system-report-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.7rem;
  height: 5.7rem;
  margin: 0 auto;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
}

.system-report-table,
.system-report-members,
.system-report-simple-table {
  padding: 0 1rem 1rem;
}

.system-report-table__head,
.system-report-members__head,
.system-report-simple-table__head {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.system-report-table__head {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-report-table--five .system-report-table__head,
.system-report-table--five .system-report-table__body > div {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.system-report-table__body {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.55rem;
}

.system-report-table__body > div,
.system-report-members__body > div,
.system-report-simple-table__row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.system-report-table__body > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-report-table__body--empty {
  min-height: 8.6rem;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.system-report-table--light .system-report-table__body--empty,
.system-report-table--light .system-report-table__head,
.system-report-table--light .system-report-table__body > div {
  background: rgba(255, 255, 255, 0.08);
}

.system-report-card--rose {
  background: linear-gradient(180deg, #c94752 0%, #da626f 100%);
  color: #ffffff;
}

.system-report-card--teal {
  background: linear-gradient(180deg, #2b9fb0 0%, #73c4cf 100%);
  color: #ffffff;
}

.system-report-card--coral {
  background: linear-gradient(180deg, #b8333f 0%, #f0626e 100%);
  color: #ffffff;
}

.system-report-card--green {
  background: linear-gradient(180deg, #176e2f 0%, #2e8b47 100%);
  color: #ffffff;
}

.system-report-card--danger {
  background: linear-gradient(180deg, #b4333d 0%, #ef6973 100%);
  color: #ffffff;
}

.system-report-card--neutral {
  background: #ffffff;
  color: #0f172a;
}

.system-report-card--neutral .system-report-filter {
  background: #eef2f7;
  border-color: rgba(148, 163, 184, 0.2);
  color: #5f6f82;
}

.system-report-card--neutral .system-report-filter.is-active {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
  color: #0f172a;
}

.system-report-card--neutral .system-report-table__head,
.system-report-card--neutral .system-report-members__head,
.system-report-card--neutral .system-report-simple-table__head,
.system-report-card--neutral .system-report-table__body > div,
.system-report-card--neutral .system-report-members__body > div,
.system-report-card--neutral .system-report-simple-table__row {
  background: #f8fafc;
}

.system-report-members__head,
.system-report-members__body > div {
  grid-template-columns: 3.1rem 1.4fr 1fr 1.1fr;
}

.system-report-members__body {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.system-report-members__body strong,
.system-report-members__body img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  object-fit: cover;
}

.system-report-members__body small {
  display: block;
  margin-top: 0.18rem;
  opacity: 0.84;
}

.system-report-donut-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0 1rem;
}

.system-report-donut-row > span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}

.system-report-donut {
  position: relative;
  width: 11rem;
  height: 11rem;
  border-radius: 999px;
  margin-inline: auto;
  background: conic-gradient(#fb923c 0deg 356deg, #e2e8f0 356deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-report-donut::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.system-report-donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.system-report-donut small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.system-report-donut strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.9rem;
  font-weight: 900;
  color: #0f172a;
}

.system-report-simple-table {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.system-report-simple-table__head,
.system-report-simple-table__row {
  grid-template-columns: 0.7fr 1.7fr 1.2fr 1.2fr 0.7fr;
}

.system-report-simple-table__row span,
.system-report-simple-table__head span {
  min-width: 0;
}

.system-report-simple-table__row small {
  display: block;
  margin-top: 0.15rem;
  color: #94a3b8;
  font-size: 0.7rem;
}

.system-report-simple-table--devices .system-report-simple-table__head,
.system-report-simple-table--devices .system-report-simple-table__row {
  grid-template-columns: 1.7fr 0.8fr 0.5fr;
}

.system-expense-module {
  display: grid;
  gap: 1.2rem;
}

.system-expense-module__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 2.6rem;
}

.system-expense-module__head .system-report-icon-button {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
}

.system-expense-module__head .system-report-icon-button:hover {
  transform: translateY(calc(-50% - 1px));
}

.system-expense-module__date-actions {
  display: flex;
  justify-content: center;
  gap: 10rem;
}

.system-expense-module__visual {
  position: relative;
  min-height: 21rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.7rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-expense-module__ring {
  position: relative;
  width: 14.5rem;
  height: 14.5rem;
  border-radius: 50%;
  background: conic-gradient(#ff944d 0deg 356deg, #ffcfb3 356deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-expense-module__ring::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 50%;
  background: #f3f4f6;
}

.system-expense-module__ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.system-expense-module__ring span,
.system-expense-module__ring strong {
  display: block;
}

.system-expense-module__ring span {
  font-size: 1rem;
  color: #111827;
}

.system-expense-module__ring strong {
  margin-top: 0.35rem;
  font-size: 2.1rem;
  font-weight: 900;
  color: #111827;
  letter-spacing: -0.05em;
}

.system-expense-module__label {
  position: absolute;
  font-size: 1rem;
  color: #111827;
}

.system-expense-module__label--top {
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.system-expense-module__label--right {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.system-expense-module__label--bottom {
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.system-expense-module__table {
  display: grid;
  gap: 0.85rem;
}

.system-expense-module__table-head,
.system-expense-module__table-row,
.system-expense-module__table-footer {
  display: grid;
  grid-template-columns: 0.5fr 1.3fr 1fr 0.9fr 0.45fr;
  gap: 0.75rem;
  align-items: center;
}

.system-expense-module__table-head {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #d9d9d9;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
}

.system-expense-module__table-body {
  display: grid;
  gap: 0.65rem;
}

.system-expense-module__table-row {
  padding: 0.95rem 1.2rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #111827;
}

.system-expense-module__table-row span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.system-expense-module__table-footer {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #ececec;
  color: #7b7b7b;
}

.system-safe-module {
  display: grid;
  gap: 1.2rem;
}

.system-safe-module__head {
  text-align: center;
}

.system-safe-module__ring-wrap {
  display: flex;
  justify-content: center;
}

.system-safe-module__ring {
  position: relative;
  width: 19rem;
  height: 19rem;
  border-radius: 50%;
  background: conic-gradient(#ff7a2f 0deg 359deg, #ffd9c2 359deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-safe-module__ring::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 50%;
  background: #ffffff;
}

.system-safe-module__ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.system-safe-module__ring span {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.system-safe-module__ring strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #8b8b8b;
}

.system-safe-module__table {
  display: grid;
  gap: 0.8rem;
}

.system-safe-module__table-head,
.system-safe-module__row {
  display: grid;
  grid-template-columns: 0.5fr 1.1fr 1fr 0.9fr;
  gap: 0.75rem;
  align-items: center;
}

.system-safe-module__table-head {
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #d9d9d9;
  color: #111827;
  font-size: 0.85rem;
  font-weight: 700;
}

.system-safe-module__row {
  padding: 0.95rem 1.2rem;
  border-radius: 1rem;
  background: #ffffff;
  color: #111827;
}

.system-safe-module__action {
  justify-self: end;
  min-width: 8rem;
  padding: 0.7rem 1rem;
  border-radius: 0.45rem;
  border: 2px solid rgba(17, 24, 39, 0.4);
  background: transparent;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
}

html.dark .client-logo-name {
  color: #f8fafc;
}

html.dark .client-logo-shell {
  background: #243241 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html.dark .feature-art-frame,
html.dark .auth-showcase-visual {
  background: #243241 !important;
}

html.dark .system-report-card {
  border-color: rgba(148, 163, 184, 0.22);
}

html.dark .system-report-card--neutral {
  background: #243241;
  color: #f8fafc;
}

html.dark .system-report-card--neutral .system-report-icon-button {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

html.dark .system-report-card--neutral .system-report-card__header h4,
html.dark .system-report-card--neutral .system-report-donut strong {
  color: #f8fafc;
}

html.dark .system-report-card--neutral .system-report-donut::before {
  background: #243241;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

html.dark .system-report-card--neutral .system-report-donut-row > span,
html.dark .system-report-card--neutral .system-report-donut small,
html.dark .system-report-card--neutral .system-report-simple-table__row small {
  color: #b7c5d3;
}

html.dark .system-report-card--neutral .system-report-table__head,
html.dark .system-report-card--neutral .system-report-members__head,
html.dark .system-report-card--neutral .system-report-simple-table__head,
html.dark .system-report-card--neutral .system-report-table__body > div,
html.dark .system-report-card--neutral .system-report-members__body > div,
html.dark .system-report-card--neutral .system-report-simple-table__row {
  background: #2b3b4c;
  color: #edf3f8;
}

html.dark .system-report-toggle--soft {
  background: #304255;
  border-color: rgba(148, 163, 184, 0.2);
}

html.dark .system-report-toggle--soft .system-report-toggle__button {
  color: #c8d5e3;
}

html.dark .system-report-toggle--soft .system-report-toggle__button.is-active,
html.dark .system-report-toggle--soft .system-report-toggle__button[aria-pressed="true"] {
  background: #3a4b5e;
  color: #ffffff;
}

html.dark .system-expense-module__visual,
html.dark .system-expense-module__ring::before,
html.dark .system-safe-module__ring::before {
  background: #2b3b4c;
}

html.dark .system-expense-module__table-row,
html.dark .system-expense-module__table-head,
html.dark .system-expense-module__table-footer,
html.dark .system-safe-module__row,
html.dark .system-safe-module__table-head {
  background: #2b3b4c;
  color: #edf3f8;
}

html.dark .system-safe-module__action,
html.dark .system-report-date-button {
  border-color: rgba(148, 163, 184, 0.3);
  color: #edf3f8;
  background: #304255;
}

html.dark .system-report-daybox {
  background: #304255;
  border-color: rgba(148, 163, 184, 0.26);
  color: #ffffff;
}

html.dark .system-report-daybox::placeholder {
  color: #ffffff;
}

@media (max-width: 1279px) {
  .system-report-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .system-report-grid--two {
    grid-template-columns: 1fr;
  }

  .intelligent-sales-hub-image {
    min-height: 20rem;
    max-height: 24rem;
  }
}

@media (max-width: 767px) {
  .feature-art-image--automation,
  .auth-showcase-image {
    transform: scale(1.02);
  }

  .client-logo-name {
    font-size: 0.85rem;
  }

  .system-report-table__head,
  .system-report-table__body > div,
  .system-report-members__head,
  .system-report-members__body > div,
  .system-report-simple-table__head,
  .system-report-simple-table__row,
  .system-report-donut-row {
    grid-template-columns: 1fr;
  }

  .system-report-members__body strong,
  .system-report-members__body img {
    margin-bottom: 0.35rem;
  }

  .system-report-donut {
    width: 8.75rem;
    height: 8.75rem;
  }

  .system-report-donut strong {
    font-size: 1.45rem;
  }

  .system-expense-module__date-actions {
    gap: 3rem;
  }

  .system-report-card__top--neutral {
    padding-inline: 1rem;
  }

  .system-expense-module__table-head,
  .system-expense-module__table-row,
  .system-expense-module__table-footer,
  .system-safe-module__table-head,
  .system-safe-module__row {
    grid-template-columns: 1fr;
  }

  .system-expense-module__ring {
    width: 11.5rem;
    height: 11.5rem;
  }

  .system-safe-module__ring {
    width: 12.5rem;
    height: 12.5rem;
  }

  .system-safe-module__ring strong {
    font-size: 2rem;
  }
}

/* Masulka System viewport polish */
body.system-screen-body .site-nav-inner {
  min-height: 3.9rem;
  padding-block: 0.35rem;
}

body.system-screen-body .site-logo img {
  height: 2.65rem !important;
}

body.system-screen-body .site-nav-links {
  gap: 1.45rem;
}

body.system-screen-body .site-nav-link {
  font-size: 0.9rem;
}

body.system-screen-body .site-language-button,
body.system-screen-body .site-theme-toggle,
body.system-screen-body .site-nav-cta {
  min-height: 2.65rem;
}

body.system-screen-body .site-nav-cta {
  padding: 0.68rem 1.15rem;
  border-radius: 0.9rem;
  font-size: 0.88rem;
}

body.system-screen-body .system-screen-main {
  --system-shell-top-space: clamp(3.6rem, 4.3vw, 4.25rem);
}

.system-panel-scroll > section:first-child {
  transition:
    padding 0.22s ease,
    border-radius 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.system-panel-scroll > section:first-child h1,
.system-panel-scroll > section:first-child h2 {
  transition: font-size 0.22s ease, line-height 0.22s ease;
}

.system-panel-scroll > section:first-child p {
  transition: font-size 0.22s ease, line-height 0.22s ease, opacity 0.22s ease;
}

.system-panel-scroll.is-scrolled > section:first-child {
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
  border-radius: 1.45rem !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.system-panel-scroll.is-scrolled > section:first-child h1,
.system-panel-scroll.is-scrolled > section:first-child h2 {
  font-size: clamp(1.45rem, 2.15vw, 2rem) !important;
  line-height: 1.04 !important;
}

.system-panel-scroll.is-scrolled > section:first-child p:not(.system-dialog-kicker) {
  font-size: 0.86rem;
  line-height: 1.35;
}

.system-panel-scroll.is-scrolled > section:first-child .system-dialog-kicker {
  transform: scale(0.92);
  transform-origin: left center;
}

html[dir="rtl"] .system-panel-scroll.is-scrolled > section:first-child .system-dialog-kicker {
  transform-origin: right center;
}

.system-close-icon-button {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 !important;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.system-close-icon-button span {
  display: block;
  transform: translateY(-0.05rem);
}

.system-form-panel {
  overflow: hidden;
}

.system-form-dialog--managed {
  display: flex;
  flex-direction: column;
  max-height: min(calc(100dvh - 1.5rem), 46rem);
  overflow: hidden;
}

.system-form-head {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding-bottom: 0.65rem;
}

.system-form-body {
  min-height: 0;
  overflow-y: auto;
  padding-inline-end: 0.2rem;
  scrollbar-gutter: stable;
}

.system-form-body.system-form-grid {
  display: grid;
}

.system-form-body::-webkit-scrollbar {
  width: 0.55rem;
}

.system-form-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 97, 40, 0.45);
}

.system-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin-top: 0.75rem;
  padding: 0.85rem 0 0.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 28%, rgba(255, 255, 255, 0.98));
}

html.dark .system-form-actions {
  background:
    linear-gradient(180deg, rgba(36, 50, 65, 0), rgba(36, 50, 65, 0.96) 28%, rgba(36, 50, 65, 0.98));
}

html.dark .system-close-icon-button {
  background: #304255;
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.26);
}

@media (max-width: 1180px) {
  body.system-screen-body .site-nav-links {
    gap: 1.05rem;
  }

  body.system-screen-body .site-nav-actions {
    gap: 0.65rem;
  }
}

@media (max-width: 767px) {
  body.system-screen-body .site-nav-inner {
    min-height: 4rem;
  }

  body.system-screen-body .system-screen-main {
    --system-shell-top-space: 4.25rem;
  }

  .system-panel-scroll.is-scrolled > section:first-child {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .system-panel-scroll.is-scrolled > section:first-child p:not(.system-dialog-kicker) {
    display: none;
  }

  .system-form-panel {
    inset: 0.35rem;
    padding: 0.45rem;
    border-radius: 1.25rem;
  }

  .system-form-dialog--managed {
    max-height: calc(100dvh - 1.1rem);
    border-radius: 1.35rem;
    padding: 0.95rem;
  }

  .system-close-icon-button {
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
  }
}

/* Final Masulka System polish */
body.system-screen-body {
  overflow: hidden !important;
}

body.system-screen-body .site-nav-inner {
  min-height: 3rem !important;
  padding-block: 0.06rem !important;
}

body.system-screen-body .site-logo img {
  height: 1.85rem !important;
}

body.system-screen-body .site-nav-links {
  gap: 0.95rem !important;
}

body.system-screen-body .site-nav-link {
  font-size: 0.8rem !important;
}

body.system-screen-body .site-language-button,
body.system-screen-body .site-theme-toggle,
body.system-screen-body .site-nav-cta {
  min-height: 2.15rem !important;
}

body.system-screen-body .site-nav-cta {
  padding: 0.45rem 0.95rem !important;
  border-radius: 0.8rem !important;
  font-size: 0.8rem !important;
}

body.system-screen-body .system-screen-main {
  height: calc(100dvh - 3rem) !important;
  min-height: 0 !important;
  padding-block: 0.28rem !important;
  overflow: hidden !important;
  --system-shell-top-space: 0.3rem !important;
}

.system-page-shell {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.system-sidebar,
.system-sidebar-inner {
  overflow: hidden !important;
}

.system-sidebar-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  padding-inline-end: 0.35rem !important;
  scrollbar-gutter: stable !important;
}

.system-sidebar-nav::-webkit-scrollbar {
  width: 0.38rem !important;
}

.system-sidebar-nav::-webkit-scrollbar-track {
  background: transparent !important;
}

.system-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(255, 97, 40, 0.55) !important;
}

.system-panel-scroll {
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
  animation: systemPageIn 140ms ease both;
}

.system-panel-scroll > section:first-child {
  min-height: 0 !important;
  padding: 0.48rem 1rem !important;
  border-radius: 0.95rem !important;
}

.system-panel-scroll > section:first-child .system-dialog-kicker {
  margin-bottom: 0.16rem !important;
  padding-block: 0.16rem !important;
  font-size: 0.64rem !important;
}

.system-panel-scroll > section:first-child h1,
.system-panel-scroll > section:first-child h2 {
  font-size: clamp(1.15rem, 1.45vw, 1.55rem) !important;
  line-height: 1 !important;
}

.system-panel-scroll > section:first-child p:not(.system-dialog-kicker) {
  margin-top: 0.12rem !important;
  font-size: 0.76rem !important;
  line-height: 1.22 !important;
}

.system-panel-scroll.is-scrolled > section:first-child {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  padding-block: 0.25rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07) !important;
}

.system-panel-scroll.is-scrolled > section:first-child h1,
.system-panel-scroll.is-scrolled > section:first-child h2 {
  font-size: clamp(0.95rem, 1.08vw, 1.15rem) !important;
}

.system-panel-scroll.is-scrolled > section:first-child p:not(.system-dialog-kicker) {
  display: none !important;
}

.system-sidebar-pill,
.system-plan-button {
  display: none !important;
}

.system-safe-module,
.system-expense-module,
.system-report-card {
  min-height: 0 !important;
}

.system-safe-module__ring,
.system-expense-module__ring,
.system-safe-ring,
.system-expenses-ring {
  width: clamp(8rem, 12vw, 10.5rem) !important;
  height: clamp(8rem, 12vw, 10.5rem) !important;
  margin-block: 0.55rem !important;
}

.system-safe-module__ring strong,
.system-expense-module__ring strong,
.system-safe-ring strong,
.system-expenses-ring strong {
  font-size: clamp(1.05rem, 1.65vw, 1.5rem) !important;
  white-space: nowrap !important;
}

.system-form-panel {
  overflow: hidden !important;
  background: rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(0.5px) !important;
  -webkit-backdrop-filter: blur(0.5px) !important;
}

.system-form-dialog--managed {
  margin: auto !important;
  max-height: min(92dvh, 44rem) !important;
}

.system-form-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.system-form-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
}

.system-user-avatar,
.system-member-avatar,
.system-row-avatar,
.system-avatar-placeholder {
  background-image: url("../Assets/Profile pic.png") !important;
  background-position: center !important;
  background-size: cover !important;
  border-color: rgba(148, 163, 184, 0.45) !important;
}

.system-user-avatar {
  object-fit: cover !important;
}

.system-member-avatar span,
.system-row-avatar span,
.system-avatar-placeholder span {
  opacity: 0 !important;
}

.system-page-header-tools--member {
  grid-template-columns: minmax(15rem, 1fr) auto !important;
  align-items: center !important;
}

.system-toolbar-actions--member {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  flex-wrap: nowrap !important;
}

.system-table-shell {
  overflow: hidden !important;
}

.system-table-shell > .overflow-x-auto {
  overflow-x: hidden !important;
}

.system-data-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.system-data-table th,
.system-data-table td {
  padding-inline: 0.55rem !important;
  overflow-wrap: anywhere !important;
}

.system-data-table th:first-child,
.system-data-table td:first-child {
  width: 3.5rem !important;
  max-width: 3.5rem !important;
}

.system-row-actions--compact {
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  white-space: nowrap !important;
}

.system-close-icon-button {
  width: 2.75rem !important;
  min-width: 2.75rem !important;
  padding-inline: 0 !important;
}

.system-sidebar-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.25rem);
  transition: max-height 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.system-sidebar-submenu.is-open {
  max-height: 18rem;
  opacity: 1;
  transform: translateY(0);
}

.system-screen-layout.is-system-swapping .system-panel-scroll {
  opacity: 0.72;
  transform: translateY(0.2rem);
  transition: opacity 90ms ease, transform 90ms ease;
}

@keyframes systemPageIn {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.system-sidebar-branch__menu {
  max-height: 11rem !important;
  overflow-y: auto !important;
  color: #0f172a !important;
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

.system-sidebar-branch__option {
  color: #0f172a !important;
  background: #fff !important;
}

.system-sidebar-branch__option.is-active {
  color: #fff !important;
  background: #2563eb !important;
}

html.dark .system-sidebar-branch__menu {
  color: #f8fafc !important;
  background: #111827 !important;
}

html.dark .system-sidebar-branch__option {
  color: #f8fafc !important;
  background: #111827 !important;
}

html.dark .system-sidebar-branch__option.is-active {
  background: #ea580c !important;
}

.system-sortable-heading {
  cursor: pointer !important;
  user-select: none !important;
}

.system-sort-indicator {
  margin-inline-start: 0.25rem;
  font-size: 1rem !important;
  vertical-align: middle;
  opacity: 0.5;
}

.system-sortable-heading.is-sort-asc .system-sort-indicator {
  opacity: 1;
  transform: rotate(180deg);
}

.system-sortable-heading.is-sort-desc .system-sort-indicator {
  opacity: 1;
}

@media (max-width: 1200px) {
  .system-page-shell {
    grid-template-columns: minmax(13.5rem, 16rem) minmax(0, 1fr) !important;
  }

  .system-data-table {
    font-size: 0.78rem !important;
  }

  .system-table-button {
    min-width: 2rem !important;
  }
}

@media (max-width: 920px) {
  body.system-screen-body .system-screen-main {
    height: calc(100dvh - 3.65rem) !important;
  }

  .system-panel-scroll > section:first-child p:not(.system-dialog-kicker) {
    display: none !important;
  }

  .system-page-header-tools--member {
    grid-template-columns: 1fr !important;
  }

  .system-toolbar-actions--member {
    width: 100% !important;
    justify-content: stretch !important;
  }

  .system-toolbar-actions--member .system-ghost-button {
    flex: 1 1 auto !important;
  }

  .system-data-table {
    table-layout: auto !important;
  }

  .system-table-shell > .overflow-x-auto {
    overflow-x: auto !important;
  }
}

/* Final responsive pass for launch review */
body.system-screen-body .site-nav-inner {
  min-height: 2.75rem !important;
}

body.system-screen-body .site-logo img {
  height: 1.72rem !important;
}

body.system-screen-body .site-language-button,
body.system-screen-body .site-theme-toggle,
body.system-screen-body .site-nav-cta {
  min-height: 2rem !important;
}

body.system-screen-body .system-screen-main {
  height: calc(100dvh - 2.75rem) !important;
  padding: 0.22rem 0.45rem !important;
}

.system-sidebar-inner {
  max-height: 100% !important;
}

.system-sidebar-nav {
  margin-inline-end: 0 !important;
  padding-inline-end: 0.15rem !important;
}

.system-sidebar-submenu:not(.is-open) {
  display: block !important;
  pointer-events: none;
}

.system-panel-scroll {
  padding: 0.9rem 0.75rem 1.25rem !important;
}

.system-panel-scroll > section:first-child {
  min-height: auto !important;
  padding: 1.15rem 1.35rem !important;
  border-radius: 1.6rem !important;
}

.system-panel-scroll > section:first-child .system-dialog-kicker {
  display: inline-flex !important;
}

.system-panel-scroll > section:first-child h1,
.system-panel-scroll > section:first-child h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
  line-height: 1.08 !important;
}

.system-panel-scroll > section:first-child p:not(.system-dialog-kicker) {
  display: block !important;
  margin-top: 0.35rem !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}

.system-panel-scroll.is-scrolled > section:first-child {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding: 1.15rem 1.35rem !important;
  border-radius: 1.6rem !important;
  box-shadow: none !important;
}

.system-panel-scroll.is-scrolled > section:first-child h1,
.system-panel-scroll.is-scrolled > section:first-child h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
}

.system-sidebar-pill,
.system-plan-button,
.system-row-live-pill,
.system-toolbar-live-pill,
[class*="system-sidebar-pill"] {
  display: none !important;
}

.system-sidebar-subscription {
  cursor: pointer !important;
}

.system-safe-module,
.system-expense-module {
  padding-block: 0.8rem !important;
}

.system-safe-module__ring,
.system-expense-module__ring,
.system-safe-ring,
.system-expenses-ring {
  width: clamp(6.8rem, 9vw, 8.75rem) !important;
  height: clamp(6.8rem, 9vw, 8.75rem) !important;
  margin-block: 0.25rem !important;
}

.system-safe-module__ring strong,
.system-expense-module__ring strong,
.system-safe-ring strong,
.system-expenses-ring strong {
  font-size: clamp(0.92rem, 1.28vw, 1.2rem) !important;
}

.system-expense-module__chart,
.system-safe-module__chart {
  min-height: 0 !important;
  padding-block: 0.55rem !important;
}

.system-table-shell > .overflow-x-auto {
  overflow-x: hidden !important;
}

.system-data-table {
  table-layout: fixed !important;
}

.system-data-table th,
.system-data-table td {
  font-size: clamp(0.64rem, 0.78vw, 0.82rem) !important;
  line-height: 1.22 !important;
  padding: 0.55rem 0.42rem !important;
}

.system-data-table th:first-child,
.system-data-table td:first-child {
  width: 2.85rem !important;
  max-width: 2.85rem !important;
}

.system-member-avatar,
.system-row-avatar,
.system-avatar-placeholder {
  width: 2.15rem !important;
  height: 2.15rem !important;
  min-width: 2.15rem !important;
}

.system-table-button {
  width: 1.85rem !important;
  min-width: 1.85rem !important;
  height: 1.85rem !important;
  padding: 0 !important;
}

.system-table-button .material-symbols-rounded,
.system-table-action .material-symbols-rounded {
  font-size: 1rem !important;
}

.system-table-add-membership {
  min-width: 6.75rem !important;
  padding-inline: 0.55rem !important;
  white-space: nowrap !important;
}

.system-page-header-tools--member,
.system-page-header-tools {
  gap: 0.75rem !important;
}

.system-toolbar-actions--member .system-ghost-button,
.system-toolbar-actions--member .system-print-button,
.system-toolbar-actions--member [data-record-search-trigger] {
  display: inline-flex !important;
}

.system-form-dialog--managed {
  width: min(58rem, calc(100vw - 2rem)) !important;
  max-height: min(86dvh, 42rem) !important;
  display: flex !important;
  flex-direction: column !important;
}

.system-form-body {
  overflow-y: auto !important;
  min-height: 0 !important;
}

.system-form-head {
  flex: 0 0 auto !important;
}

.system-form-actions {
  flex: 0 0 auto !important;
}

.system-close-icon-button::before {
  content: none !important;
}

.system-close-icon-button .material-symbols-outlined {
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

.system-close-icon-button {
  font-size: 0 !important;
}

@media (max-width: 1320px) {
  .system-page-shell {
    grid-template-columns: minmax(12.75rem, 14.5rem) minmax(0, 1fr) !important;
    gap: 0.55rem !important;
  }

  .system-sidebar-link {
    padding: 0.62rem 0.75rem !important;
    gap: 0.55rem !important;
  }

  .system-panel-grid,
  .system-dashboard-grid {
    gap: 0.65rem !important;
  }
}

@media (max-width: 1100px) {
  body.system-screen-body .site-nav-links {
    gap: 0.65rem !important;
  }

  .system-page-shell {
    grid-template-columns: minmax(11.5rem, 13.25rem) minmax(0, 1fr) !important;
  }

  .system-panel-scroll {
    padding: 0.45rem !important;
  }

  .system-data-table th,
  .system-data-table td {
    font-size: 0.62rem !important;
    padding-inline: 0.28rem !important;
  }

  .system-table-add-membership {
    min-width: 5.95rem !important;
    font-size: 0.58rem !important;
  }
}

@media (max-width: 860px) {
  body.system-screen-body {
    overflow: auto !important;
  }

  body.system-screen-body .system-screen-main {
    height: auto !important;
    min-height: calc(100dvh - 3.25rem) !important;
  }

  .system-page-shell {
    min-height: 42rem !important;
  }

  .system-table-shell > .overflow-x-auto {
    overflow-x: auto !important;
  }
}

/* Final Masulka System production polish */
body.system-screen-body .system-screen-main {
  padding-block: 0.18rem !important;
}

body.system-screen-body .system-screen-layout {
  overflow: hidden !important;
}

body.system-screen-body .system-panel-scroll {
  scrollbar-gutter: stable;
  transition: opacity 90ms ease, transform 90ms ease !important;
}

body.system-screen-body .system-screen-layout.is-system-swapping .system-panel-scroll {
  opacity: 0.96 !important;
  transform: translateY(0.08rem) !important;
}

body.system-screen-body .system-panel-scroll.is-panel-entering {
  animation: system-panel-shell-swap 100ms ease-out both !important;
}

body.system-screen-body .system-panel-scroll > section:first-child {
  min-height: auto !important;
  margin-bottom: 0.55rem !important;
  padding: 1.15rem 1.35rem !important;
  border-radius: 1.6rem !important;
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.system-screen-body .system-panel-scroll > section:first-child .section-kicker {
  display: none !important;
}

body.system-screen-body .system-panel-scroll > section:first-child h1,
body.system-screen-body .system-page-title {
  margin: 0 !important;
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
  line-height: 1.08 !important;
}

body.system-screen-body .system-panel-scroll > section:first-child p {
  max-width: 72rem !important;
  margin-top: 0.35rem !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}

body.system-screen-body .system-panel-scroll.is-scrolled > section:first-child {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  padding: 1.15rem 1.35rem !important;
}

body.system-screen-body .system-panel-scroll.is-scrolled > section:first-child h1,
body.system-screen-body .system-panel-scroll.is-scrolled .system-page-title {
  font-size: clamp(1.55rem, 2vw, 2.2rem) !important;
}

body.system-screen-body .system-panel-scroll.is-scrolled > section:first-child p {
  display: block !important;
}

body.system-screen-body .system-sidebar {
  overflow: hidden !important;
}

body.system-screen-body .system-sidebar-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding-inline-end: 0.35rem !important;
  scrollbar-gutter: stable;
}

body.system-screen-body .system-sidebar-nav::-webkit-scrollbar {
  width: 0.32rem !important;
}

body.system-screen-body .system-sidebar-nav::-webkit-scrollbar-track {
  background: transparent !important;
}

body.system-screen-body .system-sidebar-nav::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: rgba(228, 72, 23, 0.78) !important;
}

body[dir="rtl"].system-screen-body .system-sidebar-nav,
[dir="rtl"] body.system-screen-body .system-sidebar-nav {
  padding-inline: 0.35rem 0 !important;
}

body.system-screen-body .system-sidebar-submenu:not(.is-open) {
  display: none !important;
}

body.system-screen-body .system-sidebar-pill,
body.system-screen-body .system-sidebar-badge,
body.system-screen-body .system-nav-badge,
body.system-screen-body .system-row-live-pill,
body.system-screen-body .system-toolbar-live-pill,
body.system-screen-body [class*="system-sidebar-pill"] {
  display: none !important;
}

body.system-screen-body .live-pill,
body.system-screen-body .live-badge {
  display: none !important;
}

body.system-screen-body .system-safe-module,
body.system-screen-body .system-expense-module {
  min-height: 0 !important;
  gap: 0.55rem !important;
  padding: clamp(0.75rem, 1.15vw, 1rem) !important;
}

body.system-screen-body .system-safe-module__ring,
body.system-screen-body .system-expense-module__ring {
  width: clamp(6.25rem, 9vw, 8rem) !important;
  height: clamp(6.25rem, 9vw, 8rem) !important;
}

body.system-screen-body .system-safe-module__ring-value,
body.system-screen-body .system-expense-module__ring-value {
  font-size: clamp(1.05rem, 2vw, 1.72rem) !important;
}

body.system-screen-body .system-expense-module__chart {
  min-height: 0 !important;
  padding: 0.55rem !important;
}

body.system-screen-body .system-action-button,
body.system-screen-body .system-table-button--icon {
  flex: 0 0 auto !important;
}

body.system-screen-body .system-member-toolbar,
body.system-screen-body .system-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

body.system-screen-body .system-member-toolbar input,
body.system-screen-body .system-header-actions input {
  min-width: min(18rem, 42vw) !important;
}

body.system-screen-body .system-form-panel {
  display: none !important;
  backdrop-filter: blur(1px) !important;
  -webkit-backdrop-filter: blur(1px) !important;
}

body.system-screen-body .system-form-panel.is-open,
body.system-screen-body .system-form-panel[aria-hidden="false"] {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.system-screen-body .system-form-panel[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.system-screen-body .system-form-dialog {
  max-height: min(88dvh, 48rem) !important;
  overflow: hidden !important;
}

body.system-screen-body .system-form-body,
body.system-screen-body .system-modal-body {
  max-height: calc(88dvh - 11rem) !important;
  overflow-y: auto !important;
}

body.system-screen-body .system-form-head,
body.system-screen-body .system-modal-head,
body.system-screen-body .system-form-actions,
body.system-screen-body .system-modal-actions {
  position: sticky !important;
  z-index: 4 !important;
}

body.system-screen-body .system-form-head,
body.system-screen-body .system-modal-head {
  top: 0 !important;
}

body.system-screen-body .system-form-actions,
body.system-screen-body .system-modal-actions {
  bottom: 0 !important;
}

body.system-screen-body .system-form-close,
body.system-screen-body .system-modal-close,
body.system-screen-body .system-ghost-button[data-system-utility-close] {
  width: 2.6rem !important;
  height: 2.6rem !important;
  padding: 0 !important;
  font-size: 0 !important;
}

body.system-screen-body .system-form-close::before,
body.system-screen-body .system-modal-close::before,
body.system-screen-body .system-ghost-button[data-system-utility-close]::before {
  content: "close";
  font-family: "Material Symbols Outlined";
  font-size: 1.3rem;
  line-height: 1;
}

body.system-screen-body [data-system-utility-panel][aria-hidden="true"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.system-screen-body [data-system-utility-panel][aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (min-width: 861px) {
  body.system-screen-body #member-table-shell.overflow-x-auto,
  body.system-screen-body #membership-table-shell.overflow-x-auto {
    overflow-x: hidden !important;
  }

  body.system-screen-body #member-table-shell .system-data-table,
  body.system-screen-body #membership-table-shell .system-data-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  body.system-screen-body #member-table-shell th,
  body.system-screen-body #member-table-shell td,
  body.system-screen-body #membership-table-shell th,
  body.system-screen-body #membership-table-shell td {
    padding: 0.42rem 0.36rem !important;
    font-size: clamp(0.64rem, 0.72vw, 0.78rem) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere !important;
  }

  body.system-screen-body #member-table-shell th:first-child,
  body.system-screen-body #member-table-shell td:first-child,
  body.system-screen-body #membership-table-shell th:first-child,
  body.system-screen-body #membership-table-shell td:first-child {
    width: 2.35rem !important;
    max-width: 2.35rem !important;
  }

  body.system-screen-body #member-table-shell .system-avatar,
  body.system-screen-body #membership-table-shell .system-avatar {
    width: 2rem !important;
    height: 2rem !important;
    min-width: 2rem !important;
    background: #eef3f8 url("../Assets/Profile pic.png") center / cover no-repeat !important;
    color: transparent !important;
    font-size: 0 !important;
  }

  body.system-screen-body #member-table-shell .system-action-button,
  body.system-screen-body #member-table-shell .system-table-button--icon,
  body.system-screen-body #membership-table-shell .system-action-button,
  body.system-screen-body #membership-table-shell .system-table-button--icon {
    width: 1.75rem !important;
    height: 1.75rem !important;
    min-width: 1.75rem !important;
  }

  body.system-screen-body #member-table-shell .system-row-primary-button {
    width: 6.45rem !important;
    min-width: 6.45rem !important;
    padding-inline: 0.45rem !important;
    font-size: 0.66rem !important;
  }
}

@media (max-width: 860px) {
  body.system-screen-body .system-panel-scroll > section:first-child {
    display: none !important;
  }

  body.system-screen-body .system-screen-layout {
    grid-template-columns: 1fr !important;
  }

  body.system-screen-body .system-sidebar {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    z-index: 90 !important;
    inline-size: min(20rem, 86vw) !important;
    transform: translateX(-110%) !important;
    transition: transform 0.22s ease !important;
  }

  body[dir="rtl"].system-screen-body .system-sidebar,
  [dir="rtl"] body.system-screen-body .system-sidebar {
    inset-inline: auto 0 !important;
    transform: translateX(110%) !important;
  }

  body[dir="rtl"].system-screen-body .system-sidebar.is-open,
  [dir="rtl"] body.system-screen-body .system-sidebar.is-open {
    transform: translateX(0) !important;
  }

  body.system-screen-body .system-sidebar.is-open {
    transform: translateX(0) !important;
  }

  body.system-screen-body .system-panel-scroll {
    padding: 0.55rem !important;
  }
}

/* Final system corrections: nav sizing, dashboard header placement, and member page layout */
body.system-screen-body .site-nav-inner {
  min-height: 4.2rem !important;
  gap: 1rem !important;
  padding-block: 0.32rem !important;
}

body.system-screen-body .site-logo img {
  height: 2.32rem !important;
}

body.system-screen-body .site-nav-links {
  gap: 1.55rem !important;
}

body.system-screen-body .site-nav-link {
  font-size: 0.95rem !important;
}

body.system-screen-body .site-language-button {
  min-height: 2.95rem !important;
  padding: 0.7rem 1rem !important;
  border-radius: 1rem !important;
  font-size: 0.95rem !important;
}

body.system-screen-body .site-theme-toggle {
  width: 2.95rem !important;
  height: 2.95rem !important;
  min-width: 2.95rem !important;
  border-radius: 1rem !important;
}

body.system-screen-body .site-nav-cta {
  min-height: 2.95rem !important;
  padding: 0.72rem 1.45rem !important;
  border-radius: 1rem !important;
  font-size: 0.96rem !important;
}

body.system-screen-body .system-screen-main {
  height: 100dvh !important;
  padding: 4.95rem 0.7rem 0.9rem !important;
  --system-shell-top-space: 0.85rem !important;
}

body.system-screen-body .system-panel-scroll {
  padding: 1rem 0.95rem 1.3rem !important;
}

body.system-screen-body .system-panel-scroll > section:first-child {
  padding: 1.55rem 1.75rem !important;
}

body.system-screen-body .system-panel-scroll > section:first-child .system-toolbar {
  align-items: flex-start !important;
}

body.system-screen-body .system-panel-scroll > section:first-child .system-page-header-copy > .inline-flex:first-child {
  align-self: flex-start !important;
  margin: 0 !important;
}

body.system-screen-body .system-panel-scroll > section:first-child h1,
body.system-screen-body .system-panel-scroll > section:first-child h2 {
  margin-top: 0.85rem !important;
}

body.system-screen-body .system-member-header-shell {
  padding: 1.25rem 1.4rem !important;
}

body.system-screen-body .system-page-header--member-modern {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.system-screen-body .system-member-toolbar {
  display: grid !important;
  grid-template-columns: auto minmax(17rem, 27rem) auto !important;
  align-items: center !important;
  gap: 0.9rem !important;
  width: min(100%, 40rem) !important;
  margin-inline-start: auto !important;
}

body.system-screen-body .system-member-toolbar__action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.9rem !important;
  height: 3.9rem !important;
  min-width: 3.9rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff7a22 0%, #ff5a1f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 34px rgba(255, 107, 53, 0.22) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

body.system-screen-body .system-member-toolbar__action:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 22px 38px rgba(255, 107, 53, 0.26) !important;
}

body.system-screen-body .system-member-toolbar__search {
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  min-height: 3.75rem !important;
  padding: 0 1.3rem !important;
  border: 2px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

body.system-screen-body .system-member-toolbar__search .material-symbols-outlined {
  color: #0f172a !important;
  font-size: 1.55rem !important;
}

body.system-screen-body .system-member-toolbar__search input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #475569 !important;
  font-size: 1.02rem !important;
}

body.system-screen-body .system-member-toolbar__search input::placeholder {
  color: #6b7280 !important;
}

body.system-screen-body .system-member-toolbar__search:focus-within {
  border-color: rgba(255, 107, 53, 0.44) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12) !important;
}

body.system-screen-body .system-table-shell--members {
  overflow: hidden !important;
}

body.system-screen-body .system-table-shell--members > .overflow-x-auto {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

body.system-screen-body .system-data-table--members {
  table-layout: auto !important;
  min-width: 82rem !important;
}

body.system-screen-body .system-data-table--members th,
body.system-screen-body .system-data-table--members td {
  padding: 1rem 0.95rem !important;
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--members th:first-child,
body.system-screen-body .system-data-table--members td:first-child {
  width: 4.05rem !important;
  max-width: none !important;
}

body.system-screen-body .system-data-table--members th:nth-child(7),
body.system-screen-body .system-data-table--members td[data-field="note"] {
  min-width: 11rem !important;
  white-space: normal !important;
}

body.system-screen-body .system-data-table--members th:last-child,
body.system-screen-body .system-member-actions-cell {
  width: 21.25rem !important;
  min-width: 21.25rem !important;
}

body.system-screen-body .system-data-table--members .system-row-avatar {
  width: 2.7rem !important;
  height: 2.7rem !important;
  min-width: 2.7rem !important;
}

body.system-screen-body .system-member-actions-cell {
  text-align: left !important;
}

body.system-screen-body .system-row-actions--member {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.65rem !important;
  flex-wrap: nowrap !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--solid {
  min-width: 9.65rem !important;
  min-height: 3rem !important;
  padding: 0.76rem 1.08rem !important;
  border-radius: 1rem !important;
  font-size: 0.94rem !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon,
body.system-screen-body .system-row-actions--member .system-table-button--ghost {
  width: 2.6rem !important;
  min-width: 2.6rem !important;
  height: 2.6rem !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  color: #111827 !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon:hover,
body.system-screen-body .system-row-actions--member .system-table-button--ghost:hover {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.86) !important;
}

@media (max-width: 1320px) {
  body.system-screen-body .site-nav-links {
    gap: 1.15rem !important;
  }

  body.system-screen-body .system-member-toolbar {
    grid-template-columns: auto minmax(14rem, 1fr) auto !important;
    width: min(100%, 34rem) !important;
  }

  body.system-screen-body .system-data-table--members {
    min-width: 77rem !important;
  }
}

@media (max-width: 1080px) {
  body.system-screen-body .system-page-header--member-modern {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.system-screen-body .system-member-toolbar {
    width: 100% !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    margin-inline-start: 0 !important;
  }
}

/* Final fit-and-type refinement for system pages */
body,
button,
input,
select,
textarea {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline {
  font-family: "Manrope", "Vazirmatn", sans-serif;
}

body {
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.system-screen-body .site-nav-link,
body.system-screen-body .site-language-button,
body.system-screen-body .site-nav-cta,
body.system-screen-body .system-sidebar-link,
body.system-screen-body .system-sidebar-branch__trigger,
body.system-screen-body .system-sidebar-branch__option,
body.system-screen-body .system-data-table th,
body.system-screen-body .system-data-table td,
body.system-screen-body .system-member-toolbar__search input {
  font-size: 0.88rem !important;
}

body.system-screen-body .system-screen-main {
  box-sizing: border-box !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: 4.45rem 0.5rem 0.55rem !important;
  overflow: hidden !important;
}

body.system-screen-body .system-screen-layout {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.system-screen-body .system-page-shell {
  height: 100% !important;
  gap: 0.8rem !important;
  padding: 0.42rem !important;
}

body.system-screen-body .system-sidebar {
  gap: 0.72rem !important;
  padding: 1.05rem !important;
}

body.system-screen-body .system-sidebar > div:first-child {
  padding: 0.95rem !important;
}

body.system-screen-body .system-sidebar-link {
  padding: 0.72rem 0.82rem !important;
  gap: 0.6rem !important;
  font-weight: 700 !important;
}

body.system-screen-body .system-sidebar-submenu .system-sidebar-link {
  padding-block: 0.58rem !important;
}

body.system-screen-body .system-sidebar-submenu-toggle {
  width: 1.7rem !important;
  height: 1.7rem !important;
}

body.system-screen-body .system-sidebar-branch {
  gap: 0.32rem !important;
}

body.system-screen-body .system-sidebar-branch__label {
  font-size: 0.68rem !important;
}

body.system-screen-body .system-sidebar-branch__trigger {
  min-height: 2.55rem !important;
  padding: 0.68rem 0.82rem !important;
}

body.system-screen-body .system-sidebar-subscription {
  padding: 0.85rem 0.9rem 0.92rem !important;
  border-radius: 1rem !important;
}

body.system-screen-body .system-sidebar-subscription__title {
  font-size: 0.8rem !important;
}

body.system-screen-body .system-sidebar-subscription strong {
  font-size: 1.02rem !important;
}

body.system-screen-body .system-user-card {
  gap: 0.72rem !important;
  padding: 0.8rem !important;
  border-radius: 1.25rem !important;
}

body.system-screen-body .system-user-avatar {
  width: 2.65rem !important;
  height: 2.65rem !important;
  flex-basis: 2.65rem !important;
}

body.system-screen-body .system-sidebar-logout {
  min-height: 2.2rem !important;
  padding: 0.52rem 0.76rem !important;
}

body.system-screen-body .system-panel-scroll {
  gap: 1rem !important;
  padding: 0.82rem 0.8rem 1rem !important;
}

body.system-screen-body .system-member-header-shell {
  padding: 1rem 1.15rem !important;
}

body.system-screen-body .system-page-header-copy h1,
body.system-screen-body .system-page-header-copy h2 {
  font-size: clamp(1.95rem, 2.5vw, 2.55rem) !important;
  line-height: 1.02 !important;
}

body.system-screen-body .system-page-header--member-modern .system-page-header-copy h2 {
  font-size: clamp(1.72rem, 1.9vw, 2.05rem) !important;
}

body.system-screen-body .system-member-toolbar {
  grid-template-columns: auto minmax(14rem, 1fr) auto !important;
  gap: 0.7rem !important;
  width: min(100%, 33rem) !important;
}

body.system-screen-body .system-member-toolbar__action {
  width: 3.35rem !important;
  height: 3.35rem !important;
  min-width: 3.35rem !important;
}

body.system-screen-body .system-member-toolbar__search {
  min-height: 3.2rem !important;
  padding: 0 1rem !important;
  gap: 0.65rem !important;
}

body.system-screen-body .system-member-toolbar__search .material-symbols-outlined {
  font-size: 1.3rem !important;
}

body.system-screen-body .system-member-toolbar__search input {
  font-size: 0.88rem !important;
}

body.system-screen-body .system-table-shell--members > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--members {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--members th,
body.system-screen-body .system-data-table--members td {
  padding: 0.82rem 0.54rem !important;
  font-size: 0.83rem !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
}

body.system-screen-body .system-data-table--members th:first-child,
body.system-screen-body .system-data-table--members td:first-child,
body.system-screen-body .system-row-avatar-cell {
  width: 3.2rem !important;
}

body.system-screen-body .system-row-avatar-cell {
  padding-inline: 0.45rem 0.28rem !important;
  text-align: center !important;
}

body.system-screen-body .system-data-table--members .system-row-avatar {
  width: 2.45rem !important;
  height: 2.45rem !important;
  min-width: 2.45rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(2),
body.system-screen-body .system-data-table--members td[data-field="name"] {
  width: 11rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(3),
body.system-screen-body .system-data-table--members td[data-field="gender"] {
  width: 6rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(4),
body.system-screen-body .system-data-table--members td[data-field="birthDate"] {
  width: 7.5rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(5),
body.system-screen-body .system-data-table--members td[data-field="phone1"] {
  width: 8.4rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(6),
body.system-screen-body .system-data-table--members td[data-field="balance"] {
  width: 5rem !important;
}

body.system-screen-body .system-data-table--members th:nth-child(7),
body.system-screen-body .system-data-table--members td[data-field="note"] {
  width: 8.6rem !important;
  min-width: 0 !important;
  white-space: normal !important;
}

body.system-screen-body .system-data-table--members td[data-field="name"] {
  white-space: normal !important;
  font-weight: 600 !important;
}

body.system-screen-body .system-data-table--members th:last-child,
body.system-screen-body .system-member-actions-cell {
  width: 17.8rem !important;
  min-width: 17.8rem !important;
}

body.system-screen-body .system-row-actions--member {
  gap: 0.35rem !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--solid {
  min-width: 7.1rem !important;
  min-height: 2.6rem !important;
  padding: 0.6rem 0.74rem !important;
  font-size: 0.8rem !important;
  border-radius: 0.95rem !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon,
body.system-screen-body .system-row-actions--member .system-table-button--ghost {
  width: 2.15rem !important;
  min-width: 2.15rem !important;
  height: 2.15rem !important;
}

@media (max-width: 1440px) {
  body.system-screen-body .system-member-toolbar {
    width: min(100%, 30rem) !important;
  }

  body.system-screen-body .system-data-table--members th,
  body.system-screen-body .system-data-table--members td {
    padding-inline: 0.46rem !important;
    font-size: 0.79rem !important;
  }

  body.system-screen-body .system-data-table--members th:nth-child(2),
  body.system-screen-body .system-data-table--members td[data-field="name"] {
    width: 9.6rem !important;
  }

  body.system-screen-body .system-data-table--members th:last-child,
  body.system-screen-body .system-member-actions-cell {
    width: 16.5rem !important;
    min-width: 16.5rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--solid {
    min-width: 6.45rem !important;
    font-size: 0.75rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--icon,
  body.system-screen-body .system-row-actions--member .system-table-button--ghost {
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
  }
}

/* Final heading and table normalization across system pages */
body.system-screen-body .system-page-header-copy h1,
body.system-screen-body .system-page-header-copy h2 {
  font-size: clamp(1.42rem, 1.7vw, 1.8rem) !important;
  line-height: 1.04 !important;
}

body.system-screen-body .system-panel-scroll h3.font-headline,
body.system-screen-body .system-panel-scroll h3 {
  font-size: clamp(1.02rem, 1.2vw, 1.34rem) !important;
  line-height: 1.12 !important;
}

body.system-screen-body .system-panel-scroll h4.font-headline,
body.system-screen-body .system-panel-scroll h4 {
  font-size: clamp(0.94rem, 1.08vw, 1.16rem) !important;
  line-height: 1.18 !important;
}

body.system-screen-body .system-table-shell {
  overflow: hidden !important;
  border-radius: 1.9rem !important;
}

body.system-screen-body .system-table-shell > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table th,
body.system-screen-body .system-data-table td {
  padding: 0.82rem 0.6rem !important;
  font-size: 0.8rem !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

body.system-screen-body .system-data-table th {
  font-weight: 800 !important;
  color: #64748b !important;
}

body.system-screen-body .system-data-table td {
  white-space: normal !important;
}

body.system-screen-body .system-data-table td:last-child,
body.system-screen-body .system-data-table th:last-child {
  white-space: nowrap !important;
}

body.system-screen-body .system-row-meta {
  display: block !important;
  margin-top: 0.18rem !important;
  color: #7c8798 !important;
  font-size: 0.74rem !important;
  line-height: 1.18 !important;
}

body.system-screen-body .system-row-avatar-cell {
  width: 3.35rem !important;
  text-align: center !important;
}

body.system-screen-body .system-row-avatar {
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
}

body.system-screen-body .system-table-button--icon,
body.system-screen-body .system-table-button--ghost {
  width: 2.1rem !important;
  min-width: 2.1rem !important;
  height: 2.1rem !important;
}

body.system-screen-body .system-table-button--solid {
  min-height: 2.55rem !important;
  padding: 0.58rem 0.85rem !important;
  font-size: 0.8rem !important;
}

body.system-screen-body .system-membership-ledger-header {
  padding: 1rem 1.2rem !important;
}

body.system-screen-body .system-membership-ledger-header__row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
}

body.system-screen-body .system-membership-ledger-searchbar {
  display: flex !important;
  align-items: center !important;
  gap: 0.7rem !important;
  width: min(100%, 38rem) !important;
  margin-inline-start: auto !important;
}

body.system-screen-body .system-membership-ledger-search {
  display: flex !important;
  align-items: center !important;
  gap: 0.68rem !important;
  width: 100% !important;
  min-height: 3rem !important;
  padding: 0 1rem !important;
  border: 2px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%) !important;
}

body.system-screen-body .system-membership-ledger-search .material-symbols-outlined {
  color: #111827 !important;
  font-size: 1.25rem !important;
}

body.system-screen-body .system-membership-ledger-search input {
  width: 100% !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 0.86rem !important;
  color: #4b5563 !important;
}

body.system-screen-body .system-membership-ledger-search input:focus {
  outline: none !important;
}

body.system-screen-body .system-membership-ledger-topline {
  padding: 0 0.5rem 0.35rem !important;
  color: #111827 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}

body.system-screen-body .system-data-table--membership-ledger {
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--membership-ledger thead {
  background: #d6d7db !important;
}

body.system-screen-body .system-data-table--membership-ledger th {
  padding: 1rem 0.46rem !important;
  color: #111111 !important;
  font-size: 0.8rem !important;
}

body.system-screen-body .system-data-table--membership-ledger td {
  padding: 0.78rem 0.46rem !important;
  font-size: 0.79rem !important;
  vertical-align: middle !important;
}

body.system-screen-body .system-data-table--membership-ledger th:first-child,
body.system-screen-body .system-data-table--membership-ledger td:first-child {
  width: 4.6rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(2),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(2) {
  width: 7.4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(3),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(3) {
  width: 6rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(4),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(4) {
  width: 5.2rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(7),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(7) {
  width: 4.7rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(10),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(10) {
  width: 5.85rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(11),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(11) {
  width: 5.8rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(12),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(12) {
  width: 2.7rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:last-child,
body.system-screen-body .system-data-table--membership-ledger td:last-child {
  width: 6rem !important;
}

body.system-screen-body .system-membership-ledger-table__action-head {
  text-align: right !important;
}

body.system-screen-body .system-membership-ledger-table__print,
body.system-screen-body .system-membership-ledger-footer__chart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

body.system-screen-body .system-membership-ledger-table__print .material-symbols-outlined,
body.system-screen-body .system-membership-ledger-footer__chart .material-symbols-outlined {
  font-size: 1.35rem !important;
}

body.system-screen-body .system-membership-ledger-actions {
  justify-content: flex-end !important;
  gap: 0.38rem !important;
  flex-wrap: nowrap !important;
}

body.system-screen-body .system-membership-ledger-actions .system-table-button--icon,
body.system-screen-body .system-membership-ledger-actions .system-table-button--ghost {
  width: 1.9rem !important;
  min-width: 1.9rem !important;
  height: 1.9rem !important;
}

body.system-screen-body .system-membership-ledger-footer {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 0.95rem 1.4rem 1.15rem !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body.system-screen-body .system-membership-ledger-footer p {
  margin: 0 !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

body.system-screen-body .system-membership-ledger-footer p:nth-child(2) {
  text-align: center !important;
}

body.system-screen-body .system-membership-ledger-footer__chart {
  justify-self: end !important;
}

@media (max-width: 1480px) {
  body.system-screen-body .system-data-table th,
  body.system-screen-body .system-data-table td {
    padding-inline: 0.46rem !important;
    font-size: 0.76rem !important;
  }

  body.system-screen-body .system-data-table--membership-ledger th,
  body.system-screen-body .system-data-table--membership-ledger td {
    font-size: 0.73rem !important;
  }

  body.system-screen-body .system-membership-ledger-searchbar {
    width: min(100%, 31rem) !important;
  }
}

@media (max-width: 1200px) {
  body.system-screen-body .system-membership-ledger-header__row {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.system-screen-body .system-membership-ledger-searchbar {
    width: 100% !important;
    margin-inline-start: 0 !important;
  }
}

/* Member page rebuild */
body.system-screen-body .system-page-header--member-modern .system-page-header-copy h2 {
  font-size: clamp(1.3rem, 1.55vw, 1.75rem) !important;
  line-height: 1.05 !important;
}

body.system-screen-body .system-member-toolbar {
  width: min(100%, 39rem) !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
}

body.system-screen-body .system-member-toolbar__action {
  width: 3.1rem !important;
  height: 3.1rem !important;
  min-width: 3.1rem !important;
}

body.system-screen-body .system-member-toolbar__search {
  min-height: 3rem !important;
}

body.system-screen-body .system-panel-scroll {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

body.system-screen-body #member-table-shell {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-height: 0 !important;
  border-radius: 2rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
}

body.system-screen-body #member-table-shell > .overflow-x-auto {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable !important;
}

body.system-screen-body #member-table-shell .system-data-table--members {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body #member-table-shell .system-data-table--members thead {
  background: #f7fbff !important;
}

body.system-screen-body #member-table-shell .system-data-table--members thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: #f7fbff !important;
  box-shadow: inset 0 -1px 0 rgba(226, 232, 240, 0.95) !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th,
body.system-screen-body #member-table-shell .system-data-table--members td {
  padding: 0.88rem 0.48rem !important;
  font-size: 0.8rem !important;
  line-height: 1.28 !important;
  vertical-align: middle !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:first-child,
body.system-screen-body #member-table-shell .system-data-table--members td:first-child {
  width: 13rem !important;
  min-width: 13rem !important;
}

body.system-screen-body #member-table-shell .system-row-avatar-cell--member {
  padding-inline-start: 0.6rem !important;
  padding-inline-end: 0.55rem !important;
}

body.system-screen-body #member-table-shell .system-row-avatar {
  width: 2.85rem !important;
  height: 2.85rem !important;
  min-width: 2.85rem !important;
  border: 1px solid rgba(191, 219, 254, 0.85) !important;
}

body.system-screen-body #member-table-shell .system-member-name-cell {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  min-width: 0 !important;
}

body.system-screen-body #member-table-shell .system-member-name-cell__text {
  display: block !important;
  min-width: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  white-space: normal !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:nth-child(2),
body.system-screen-body #member-table-shell .system-data-table--members td[data-field="gender"] {
  width: 5.4rem !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:nth-child(3),
body.system-screen-body #member-table-shell .system-data-table--members td[data-field="birthDate"] {
  width: 6.2rem !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:nth-child(4),
body.system-screen-body #member-table-shell .system-data-table--members td[data-field="phone1"] {
  width: 6.65rem !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:nth-child(5),
body.system-screen-body #member-table-shell .system-data-table--members td[data-field="balance"] {
  width: 4.5rem !important;
}

body.system-screen-body #member-table-shell .system-data-table--members td[data-field="balance"] {
  font-weight: 600 !important;
}

body.system-screen-body #member-table-shell .system-data-table--members th:nth-child(6),
body.system-screen-body #member-table-shell .system-data-table--members td[data-field="note"] {
  width: 6.25rem !important;
  white-space: normal !important;
}

body.system-screen-body #member-table-shell .system-member-actions-cell,
body.system-screen-body #member-table-shell .system-data-table--members th:last-child {
  width: 15.45rem !important;
  min-width: 15.45rem !important;
}

body.system-screen-body .system-member-table__action-head-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
}

body.system-screen-body .system-member-table__head-tools {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.32rem !important;
}

body.system-screen-body .system-member-table__head-tools .system-table-button {
  width: 2.2rem !important;
  min-width: 2.2rem !important;
  height: 2.2rem !important;
}

body.system-screen-body .system-row-actions--member {
  display: flex !important;
  align-items: center !important;
  gap: 0.22rem !important;
  flex-wrap: nowrap !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--solid {
  min-width: 5.95rem !important;
  min-height: 2.45rem !important;
  padding: 0.5rem 0.34rem !important;
  border-radius: 1rem !important;
  font-size: 0.62rem !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon,
body.system-screen-body .system-row-actions--member .system-table-button--ghost {
  width: 1.74rem !important;
  min-width: 1.74rem !important;
  height: 1.74rem !important;
  border-radius: 999px !important;
}

body.system-screen-body .system-member-plus-wrap {
  position: relative !important;
}

body.system-screen-body .system-member-plus-menu[hidden] {
  display: none !important;
}

body.system-screen-body .system-member-plus-menu {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: calc(100% + 0.45rem) !important;
  bottom: auto !important;
  transform: none !important;
  width: 11.25rem !important;
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.92) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14) !important;
  z-index: 60 !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
}

body.system-screen-body .system-member-plus-menu button {
  display: block !important;
  width: 100% !important;
  padding: 0.82rem 0.95rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #111111 !important;
  text-align: left !important;
  font-size: 0.9rem !important;
}

body.system-screen-body .system-member-plus-menu button + button {
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body.system-screen-body .system-member-plus-menu button:hover {
  background: #f8fafc !important;
}

body.system-screen-body .system-table-shell__footer {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}

body.system-screen-body .system-member-dialog {
  width: min(96vw, 58rem) !important;
  max-width: min(96vw, 58rem) !important;
  max-height: min(88dvh, 48rem) !important;
  padding: 0 !important;
  border-radius: 2rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.18) !important;
}

body.system-screen-body .system-member-dialog--view {
  width: min(97vw, 90rem) !important;
  max-width: min(97vw, 90rem) !important;
}

body.system-screen-body .system-member-dialog__banner {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 5.4rem !important;
  padding: 1.3rem 2rem !important;
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86) !important;
}

body.system-screen-body .system-member-dialog__banner h3 {
  margin: 0 !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.system-screen-body .system-member-dialog__close {
  position: absolute !important;
  inset-inline-end: 1.15rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.65rem !important;
  height: 2.65rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #ef4444 !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

body.system-screen-body .system-member-modal-form,
body.system-screen-body .system-member-search-form {
  padding: 1.1rem 2rem 0 !important;
  background: #ffffff !important;
  max-height: calc(min(88dvh, 48rem) - 5.4rem) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.system-screen-body .system-member-modal-profile {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  margin-top: 0 !important;
  margin-bottom: 1.45rem !important;
  flex-shrink: 0 !important;
}

body.system-screen-body .system-member-modal-avatar,
body.system-screen-body .system-member-view-hero__avatar {
  display: flex !important;
  justify-content: center !important;
}

body.system-screen-body .system-member-modal-avatar img {
  width: 9.6rem !important;
  height: 9.6rem !important;
  min-width: 9.6rem !important;
  border-radius: 999px !important;
  border: 6px solid #ffffff !important;
  object-fit: cover !important;
}

body.system-screen-body .system-member-view-hero__avatar img {
  width: 10.8rem !important;
  height: 10.8rem !important;
  min-width: 10.8rem !important;
  border-radius: 999px !important;
  border: 6px solid #ffffff !important;
  object-fit: cover !important;
}

body.system-screen-body .system-member-modal-avatar__clip {
  position: absolute !important;
  inset-inline-start: calc(50% + 2rem) !important;
  bottom: 0.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #efefef !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-modal-grid,
body.system-screen-body .system-member-finance-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.85rem 1rem !important;
  padding-bottom: 1.4rem !important;
}

body.system-screen-body .system-member-modal-grid .system-form-field,
body.system-screen-body .system-member-finance-grid .system-form-field,
body.system-screen-body .system-member-search-form .system-form-field {
  gap: 0.28rem !important;
}

body.system-screen-body .system-member-modal-grid .system-form-field label,
body.system-screen-body .system-member-finance-grid .system-form-field label,
body.system-screen-body .system-member-search-form .system-form-field label {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-modal-grid .system-form-field input,
body.system-screen-body .system-member-modal-grid .system-form-field select,
body.system-screen-body .system-member-finance-grid .system-form-field input,
body.system-screen-body .system-member-finance-grid .system-form-field select,
body.system-screen-body .system-member-search-form .system-form-field input,
body.system-screen-body .system-member-search-form .system-form-field select {
  min-height: 3.45rem !important;
  padding: 0.78rem 0.92rem !important;
  border: 2px solid #a5a6aa !important;
  border-radius: 0.45rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 0.83rem !important;
  color: #111111 !important;
}

body.system-screen-body .system-form-field--code {
  grid-column: span 2 !important;
}

body.system-screen-body .system-member-code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 0.45rem !important;
}

body.system-screen-body .system-member-generate {
  min-width: 5.8rem !important;
  border: 0 !important;
  border-radius: 0.45rem !important;
  background: linear-gradient(180deg, #ff8c35 0%, #ff6a22 100%) !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

body.system-screen-body .system-member-modal-actions,
body.system-screen-body .system-member-search-actions,
body.system-screen-body .system-member-finance-actions,
body.system-screen-body .system-member-view-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1rem !important;
  padding: 1.25rem 2rem 1.55rem !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body.system-screen-body .system-member-modal-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  min-width: 10rem !important;
  min-height: 3rem !important;
  padding: 0.72rem 1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

body.system-screen-body .system-member-search-actions .system-member-modal-button:first-child .material-symbols-outlined,
body.system-screen-body .system-member-modal-actions .system-member-modal-button:first-child .material-symbols-outlined,
body.system-screen-body .system-member-finance-actions .system-member-modal-button:first-child .material-symbols-outlined,
body.system-screen-body .system-member-finance-actions .system-member-modal-button:nth-child(2) .material-symbols-outlined {
  color: #16a34a !important;
}

body.system-screen-body .system-member-search-actions .system-member-modal-button:last-child .material-symbols-outlined,
body.system-screen-body .system-member-modal-actions .system-member-modal-button:last-child .material-symbols-outlined,
body.system-screen-body .system-member-finance-actions .system-member-modal-button:last-child .material-symbols-outlined,
body.system-screen-body .system-member-view-footer .system-member-modal-button .material-symbols-outlined {
  color: #ef4444 !important;
}

body.system-screen-body .system-member-search-form {
  padding-top: 1.55rem !important;
}

body.system-screen-body .system-member-search-form .system-member-modal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.8rem 1rem !important;
  padding-bottom: 1.7rem !important;
}

body.system-screen-body .system-member-search-form .system-form-field:last-child {
  grid-column: 1 / span 1 !important;
}

body.system-screen-body .system-member-view-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 1.35rem 1rem 1.6rem !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-view-hero__title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

body.system-screen-body .system-member-view-hero__title h4 {
  margin: 0 !important;
  color: #7a7a80 !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
}

body.system-screen-body .system-member-copy-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.4rem !important;
  height: 2.4rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-view-hero p {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-view-section {
  padding: 0 0.4rem 1.2rem !important;
}

body.system-screen-body .system-member-view-section h5 {
  margin: 0 0 0.7rem !important;
  text-align: center !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-view-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 1.25rem !important;
  overflow: hidden !important;
}

body.system-screen-body .system-member-view-table thead {
  background: #f7fbff !important;
}

body.system-screen-body .system-member-view-table th,
body.system-screen-body .system-member-view-table td {
  padding: 0.85rem 0.5rem !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  font-size: 0.82rem !important;
  color: #111111 !important;
  text-align: center !important;
  word-break: break-word !important;
}

body.system-screen-body .system-member-view-table__empty {
  color: #64748b !important;
  font-style: italic !important;
}

body.system-screen-body .system-member-view-footer {
  justify-content: space-between !important;
}

body.system-screen-body .system-member-view-footer p {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 0.96rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
}

body.system-screen-body .system-member-finance-grid {
  padding: 1.55rem 2rem 1.35rem !important;
}

body.system-screen-body .system-member-amount-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 4.25rem !important;
}

body.system-screen-body .system-member-amount-row input {
  border-inline-end-width: 1px !important;
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

body.system-screen-body .system-member-amount-row span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.45rem !important;
  border: 2px solid #a5a6aa !important;
  border-inline-start-width: 0 !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
  border-start-end-radius: 0.45rem !important;
  border-end-end-radius: 0.45rem !important;
  background: #ffffff !important;
  color: #111111 !important;
}

body.system-screen-body .system-member-payment-history {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  min-height: 4.7rem !important;
  padding: 1rem 2rem !important;
  background: #f7fbff !important;
  color: #334155 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body.system-screen-body .system-member-payment-history div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 1100px) {
  body.system-screen-body .system-member-dialog,
  body.system-screen-body .system-member-dialog--view {
    width: min(96vw, 58rem) !important;
    max-width: min(96vw, 58rem) !important;
  }

  body.system-screen-body .system-member-modal-grid,
  body.system-screen-body .system-member-search-form .system-member-modal-grid,
  body.system-screen-body .system-member-finance-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.system-screen-body .system-form-field--code {
    grid-column: auto !important;
  }

  body.system-screen-body .system-member-view-footer {
    flex-direction: column !important;
  }
}

/* Member actions, ledger dialogs, merge dialogs, and compact system responsiveness */
body.system-screen-body .system-row-actions--member .system-table-button--solid,
body.system-screen-body .system-member-modal-button--primary {
  border: 0 !important;
  background: linear-gradient(180deg, #ff7a22 0%, #ff5a1f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.2) !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--solid:hover,
body.system-screen-body .system-member-modal-button--primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 34px rgba(255, 107, 53, 0.24) !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon,
body.system-screen-body .system-row-actions--member .system-table-button--ghost,
body.system-screen-body .system-member-table__head-tools .system-table-button {
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

body.system-screen-body .system-row-actions--member .system-table-button--icon:hover,
body.system-screen-body .system-row-actions--member .system-table-button--ghost:hover,
body.system-screen-body .system-member-table__head-tools .system-table-button:hover {
  border-color: rgba(255, 122, 34, 0.45) !important;
  color: #ff5a1f !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-modal-button--danger {
  border-color: rgba(254, 202, 202, 0.95) !important;
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%) !important;
  color: #b91c1c !important;
}

body.system-screen-body .system-member-modal-button--danger .material-symbols-outlined {
  color: #ef4444 !important;
}

body.system-screen-body .system-member-dialog--ledger {
  width: min(97vw, 88rem) !important;
  max-width: min(97vw, 88rem) !important;
}

body.system-screen-body .system-member-dialog--merge {
  width: min(97vw, 92rem) !important;
  max-width: min(97vw, 92rem) !important;
}

body.system-screen-body .system-member-dialog--delete {
  width: min(92vw, 34rem) !important;
  max-width: min(92vw, 34rem) !important;
}

body.system-screen-body .system-member-ledger-shell {
  display: grid !important;
  gap: 1.15rem !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-ledger-card {
  overflow: hidden !important;
  border-radius: 1.6rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-ledger-table,
body.system-screen-body .system-member-merge-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-member-ledger-table thead,
body.system-screen-body .system-member-merge-table thead {
  background: #f3f4f6 !important;
}

body.system-screen-body .system-member-ledger-table th,
body.system-screen-body .system-member-ledger-table td,
body.system-screen-body .system-member-merge-table th,
body.system-screen-body .system-member-merge-table td {
  padding: 1rem 0.8rem !important;
  font-size: 0.84rem !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  word-break: break-word !important;
}

body.system-screen-body .system-member-ledger-table__row--positive {
  background: rgba(220, 252, 231, 0.42) !important;
}

body.system-screen-body .system-member-ledger-table__row--negative {
  background: rgba(254, 226, 226, 0.45) !important;
}

body.system-screen-body .system-member-ledger-summary {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  overflow: hidden !important;
  border-radius: 1.6rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-ledger-summary div {
  display: grid !important;
  gap: 0.35rem !important;
  justify-items: center !important;
  padding: 1.35rem 1rem !important;
}

body.system-screen-body .system-member-ledger-summary span {
  font-size: 0.95rem !important;
  color: #64748b !important;
}

body.system-screen-body .system-member-ledger-summary strong {
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 1.26rem !important;
  color: #1e293b !important;
}

body.system-screen-body .system-member-ledger-summary small {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

body.system-screen-body .system-member-ledger-summary small[data-state="debt"] {
  color: #ef4444 !important;
}

body.system-screen-body .system-member-ledger-summary small[data-state="credit"] {
  color: #16a34a !important;
}

body.system-screen-body .system-member-merge-form {
  display: grid !important;
  gap: 1rem !important;
  padding: 1.3rem 1.3rem 0 !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-merge-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

body.system-screen-body .system-member-merge-panels {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

body.system-screen-body .system-member-merge-panel {
  overflow: hidden !important;
  border-radius: 1.6rem !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-merge-panel h4 {
  margin: 0 !important;
  padding: 1rem 1rem 0.8rem !important;
  text-align: center !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

body.system-screen-body .system-member-delete-copy {
  display: grid !important;
  gap: 0.6rem !important;
  justify-items: center !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
}

body.system-screen-body .system-member-delete-copy p {
  margin: 0 !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.system-screen-body .system-member-delete-copy strong {
  font-size: 1rem !important;
  color: #64748b !important;
}

@media (max-width: 1100px), (max-height: 860px) {
  body.system-screen-body .system-page-header-copy h1,
  body.system-screen-body .system-page-header-copy h2 {
    font-size: clamp(1.2rem, 2.3vw, 1.5rem) !important;
    line-height: 1.05 !important;
  }

  body.system-screen-body .system-panel-scroll h3.font-headline,
  body.system-screen-body .system-panel-scroll h3 {
    font-size: clamp(0.98rem, 1.6vw, 1.15rem) !important;
  }

  body.system-screen-body .system-panel-scroll h4.font-headline,
  body.system-screen-body .system-panel-scroll h4 {
    font-size: clamp(0.88rem, 1.3vw, 1rem) !important;
  }

  body.system-screen-body .system-panel-scroll > section:first-child {
    padding: 1rem 1.1rem !important;
  }

  body.system-screen-body .system-page-header-copy p,
  body.system-screen-body .dashboard-preview-meta p,
  body.system-screen-body .system-section-head p {
    font-size: 0.84rem !important;
    line-height: 1.42 !important;
  }

  body.system-screen-body .dashboard-chart-stage .h-72 {
    height: 13.25rem !important;
  }

  body.system-screen-body .system-sidebar {
    gap: 0.55rem !important;
    padding: 0.82rem !important;
  }

  body.system-screen-body .system-sidebar > div:first-child {
    padding: 0.8rem !important;
  }

  body.system-screen-body .system-sidebar-branch__trigger {
    min-height: 2.3rem !important;
  }

  body.system-screen-body .system-sidebar-subscription {
    padding: 0.72rem 0.8rem !important;
  }

  body.system-screen-body .system-sidebar-subscription strong {
    font-size: 0.92rem !important;
  }

  body.system-screen-body .system-user-card {
    padding: 0.68rem !important;
  }

  body.system-screen-body .system-user-avatar {
    width: 2.3rem !important;
    height: 2.3rem !important;
    flex-basis: 2.3rem !important;
  }

  body.system-screen-body .system-sidebar-logout {
    min-height: 2rem !important;
    padding: 0.46rem 0.66rem !important;
  }
}

@media (max-width: 1024px) {
  body.system-screen-body .system-screen-main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 4.25rem 0.35rem 0.45rem !important;
  }

  body.system-screen-body .system-page-shell {
    padding: 0.25rem !important;
  }

  body.system-screen-body .system-sidebar {
    width: min(15rem, calc(100% - 1rem)) !important;
  }

  body.system-screen-body .system-panel-scroll {
    padding: 3.45rem 0.45rem 0.7rem !important;
  }

  body.system-screen-body .system-member-header-shell {
    padding: 0.9rem !important;
  }

  body.system-screen-body .system-page-header--member-modern {
    gap: 0.75rem !important;
  }

  body.system-screen-body .system-member-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  body.system-screen-body .system-member-toolbar__action {
    width: 2.95rem !important;
    height: 2.95rem !important;
    min-width: 2.95rem !important;
  }

  body.system-screen-body .system-member-toolbar__search {
    min-height: 2.85rem !important;
    padding: 0 0.8rem !important;
    gap: 0.5rem !important;
  }

  body.system-screen-body .system-member-toolbar__search input {
    font-size: 0.8rem !important;
  }

  body.system-screen-body #member-table-shell > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body #member-table-shell .system-data-table--members {
    min-width: 47rem !important;
    table-layout: auto !important;
  }

  body.system-screen-body #member-table-shell .system-data-table--members th:first-child,
  body.system-screen-body #member-table-shell .system-data-table--members td:first-child {
    min-width: 11rem !important;
  }

  body.system-screen-body #member-table-shell .system-member-actions-cell,
  body.system-screen-body #member-table-shell .system-data-table--members th:last-child {
    min-width: 15.5rem !important;
  }

  body.system-screen-body .system-row-actions--member {
    gap: 0.3rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--solid {
    min-width: 5.6rem !important;
    min-height: 2.2rem !important;
    font-size: 0.68rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--icon,
  body.system-screen-body .system-row-actions--member .system-table-button--ghost {
    width: 1.95rem !important;
    min-width: 1.95rem !important;
    height: 1.95rem !important;
  }

  body.system-screen-body .system-member-ledger-summary {
    grid-template-columns: 1fr !important;
  }

  body.system-screen-body .system-member-merge-grid,
  body.system-screen-body .system-member-merge-panels {
    grid-template-columns: 1fr !important;
  }

  body.system-screen-body .system-member-delete-copy p {
    font-size: 1.12rem !important;
  }
}

@media (max-width: 640px) {
  body.system-screen-body .system-page-header-copy h1,
  body.system-screen-body .system-page-header-copy h2 {
    font-size: 1.12rem !important;
  }

  body.system-screen-body .system-panel-scroll h3.font-headline,
  body.system-screen-body .system-panel-scroll h3 {
    font-size: 0.96rem !important;
  }

  body.system-screen-body .system-panel-scroll > section:first-child {
    padding: 0.88rem 0.92rem !important;
  }

  body.system-screen-body .system-page-header-copy p {
    font-size: 0.78rem !important;
  }

  body.system-screen-body .system-member-toolbar__search input::placeholder {
    font-size: 0.76rem !important;
  }

  body.system-screen-body .system-member-dialog,
  body.system-screen-body .system-member-dialog--view,
  body.system-screen-body .system-member-dialog--ledger,
  body.system-screen-body .system-member-dialog--merge {
    width: min(97vw, 36rem) !important;
    max-width: min(97vw, 36rem) !important;
  }

  body.system-screen-body .system-member-ledger-shell,
  body.system-screen-body .system-member-merge-form {
    padding-inline: 0.75rem !important;
  }

  body.system-screen-body .system-member-modal-actions,
  body.system-screen-body .system-member-search-actions,
  body.system-screen-body .system-member-finance-actions,
  body.system-screen-body .system-member-view-footer {
    flex-direction: column !important;
  }

  body.system-screen-body .system-member-modal-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Final mobile system pass: keep headers visible, free sidebar space, and simplify tables. */
@media (max-width: 860px) {
  body.system-screen-body {
    overflow: auto !important;
  }

  body.system-screen-body .site-nav-inner {
    min-height: 3.7rem !important;
    padding-inline: 0.85rem !important;
  }

  body.system-screen-body .site-logo img {
    height: 2rem !important;
  }

  body.system-screen-body .site-nav-actions {
    gap: 0.6rem !important;
  }

  body.system-screen-body .site-nav-cta {
    min-height: 2.55rem !important;
    padding: 0.6rem 0.95rem !important;
    font-size: 0.82rem !important;
    border-radius: 0.9rem !important;
  }

  body.system-screen-body .system-screen-main {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 4.55rem 0.38rem 0.72rem !important;
  }

  body.system-screen-body .system-screen-layout,
  body.system-screen-body .system-page-shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.system-screen-body .system-page-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.7rem !important;
    padding: 0.4rem !important;
  }

  body.system-screen-body .system-sidebar {
    inset-block: 5rem 0.8rem !important;
    inline-size: min(18rem, calc(100vw - 1rem)) !important;
    border-radius: 1.6rem !important;
    padding: 0.95rem !important;
  }

  body.system-screen-body .system-page-shell.is-sidebar-open .system-sidebar {
    transform: translateX(0) !important;
  }

  body[dir="rtl"].system-screen-body .system-page-shell.is-sidebar-open .system-sidebar,
  [dir="rtl"] body.system-screen-body .system-page-shell.is-sidebar-open .system-sidebar {
    transform: translateX(0) !important;
  }

  body.system-screen-body .system-sidebar > div:first-child {
    padding: 0.82rem !important;
  }

  body.system-screen-body .system-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
  }

  body.system-screen-body .system-sidebar > div:first-child p:first-child {
    font-size: 0.56rem !important;
    letter-spacing: 0.18em !important;
  }

  body.system-screen-body .system-sidebar > div:first-child p:last-child {
    font-size: 0.88rem !important;
    line-height: 1.25 !important;
  }

  body.system-screen-body .system-sidebar-link {
    flex: 0 0 auto !important;
    padding: 0.68rem 0.8rem !important;
    font-size: 0.86rem !important;
  }

  body.system-screen-body .system-sidebar-branch__trigger {
    min-height: 2.35rem !important;
    padding: 0.6rem 0.78rem !important;
  }

  body.system-screen-body .system-sidebar-subscription {
    padding: 0.72rem 0.8rem !important;
    border-radius: 1rem !important;
  }

  body.system-screen-body .system-sidebar-subscription__title {
    font-size: 0.72rem !important;
  }

  body.system-screen-body .system-sidebar-subscription strong {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }

  body.system-screen-body .system-user-card {
    padding: 0.72rem !important;
    gap: 0.62rem !important;
    border-radius: 1rem !important;
  }

  body.system-screen-body .system-user-avatar {
    width: 2.35rem !important;
    height: 2.35rem !important;
    flex-basis: 2.35rem !important;
  }

  body.system-screen-body .system-user-copy p:first-child {
    font-size: 0.54rem !important;
    letter-spacing: 0.18em !important;
  }

  body.system-screen-body .system-user-copy p:last-child {
    font-size: 0.84rem !important;
    line-height: 1.28 !important;
  }

  body.system-screen-body .system-sidebar-logout {
    min-height: 2.15rem !important;
    padding: 0.5rem 0.72rem !important;
    font-size: 0.84rem !important;
  }

  body.system-screen-body .system-panel-scroll {
    padding: 3.45rem 0.52rem 0.85rem !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  body.system-screen-body .system-panel-scroll > section:first-child {
    display: block !important;
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
    padding: 0.92rem 1rem !important;
    margin-bottom: 0.72rem !important;
  }

  body.system-screen-body .system-page-header-copy h1,
  body.system-screen-body .system-page-header-copy h2 {
    font-size: 1.3rem !important;
    line-height: 1.08 !important;
  }

  body.system-screen-body .system-page-header-copy p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  body.system-screen-body .system-page-header--member-modern {
    align-items: stretch !important;
    gap: 0.8rem !important;
  }

  body.system-screen-body .system-member-toolbar {
    width: 100% !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 0.5rem !important;
  }

  body.system-screen-body .system-member-toolbar__action {
    width: 2.9rem !important;
    height: 2.9rem !important;
    min-width: 2.9rem !important;
  }

  body.system-screen-body .system-member-toolbar__search {
    min-height: 2.8rem !important;
    padding: 0 0.82rem !important;
  }

  body.system-screen-body .system-member-toolbar__search input {
    font-size: 0.82rem !important;
  }

  body.system-screen-body .system-table-shell--members {
    padding: 0.3rem !important;
  }

  body.system-screen-body .system-table-shell--members > .overflow-x-auto {
    overflow-x: visible !important;
  }

  body.system-screen-body .system-data-table--members {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
  }

  body.system-screen-body .system-data-table--members thead tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  body.system-screen-body .system-data-table--members tbody {
    display: grid !important;
    gap: 0.72rem !important;
    padding-top: 0.72rem !important;
  }

  body.system-screen-body .system-data-table--members tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    background: #ffffff !important;
    border: 1px solid rgba(198, 214, 237, 0.7) !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 20px 45px -34px rgba(32, 56, 88, 0.22) !important;
  }

  body.system-screen-body .system-data-table--members thead th:nth-child(2),
  body.system-screen-body .system-data-table--members thead th:nth-child(3),
  body.system-screen-body .system-data-table--members thead th:nth-child(4),
  body.system-screen-body .system-data-table--members thead th:nth-child(5),
  body.system-screen-body .system-data-table--members thead th:nth-child(6),
  body.system-screen-body .system-data-table--members tbody td:nth-child(2),
  body.system-screen-body .system-data-table--members tbody td:nth-child(3),
  body.system-screen-body .system-data-table--members tbody td:nth-child(4),
  body.system-screen-body .system-data-table--members tbody td:nth-child(5),
  body.system-screen-body .system-data-table--members tbody td:nth-child(6) {
    display: none !important;
  }

  body.system-screen-body .system-data-table--members th,
  body.system-screen-body .system-data-table--members td {
    padding: 0.8rem 0.55rem !important;
    font-size: 0.84rem !important;
    border: 0 !important;
  }

  body.system-screen-body .system-data-table--members th:first-child,
  body.system-screen-body .system-data-table--members td:first-child {
    width: auto !important;
    min-width: 0 !important;
  }

  body.system-screen-body .system-data-table--members tbody td:first-child,
  body.system-screen-body .system-data-table--members tbody td:last-child {
    display: block !important;
    width: 100% !important;
  }

  body.system-screen-body .system-row-avatar-cell,
  body.system-screen-body .system-row-avatar-cell--member {
    width: auto !important;
    min-width: 0 !important;
    padding-inline: 0.5rem !important;
  }

  body.system-screen-body .system-member-name-cell {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem !important;
    min-width: 0 !important;
  }

  body.system-screen-body .system-member-name-cell__text {
    display: block !important;
    min-width: 0 !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
  }

  body.system-screen-body .system-data-table--members .system-row-avatar {
    width: 2.55rem !important;
    height: 2.55rem !important;
    min-width: 2.55rem !important;
  }

  body.system-screen-body .system-data-table--members th:last-child,
  body.system-screen-body .system-member-actions-cell {
    width: auto !important;
    min-width: 0 !important;
  }

  body.system-screen-body .system-member-actions-cell {
    padding-top: 0.1rem !important;
    border-top: 1px solid rgba(224, 232, 243, 0.95) !important;
  }

  body.system-screen-body .system-member-table__head-tools {
    justify-content: flex-end !important;
    gap: 0.45rem !important;
  }

  body.system-screen-body .system-row-actions--member {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 0.4rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--solid {
    flex: 1 1 9.5rem !important;
    width: auto !important;
    min-width: 8.6rem !important;
    min-height: 2.35rem !important;
    padding: 0.58rem 0.78rem !important;
    font-size: 0.76rem !important;
  }

  body.system-screen-body .system-row-actions--member .system-table-button--icon,
  body.system-screen-body .system-row-actions--member .system-table-button--ghost {
    width: 2rem !important;
    min-width: 2rem !important;
    height: 2rem !important;
  }

  body.system-screen-body .system-table-shell__footer {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
}

@media (max-width: 640px) {
  body.system-screen-body .site-nav-cta {
    display: none !important;
  }

  body.system-screen-body .system-screen-main {
    padding: 4.2rem 0.25rem 0.55rem !important;
  }

  body.system-screen-body .system-page-shell {
    padding: 0.28rem !important;
  }

  body.system-screen-body .system-sidebar {
    inset-block: 4.55rem 0.55rem !important;
    inline-size: min(17rem, calc(100vw - 0.7rem)) !important;
  }

  body.system-screen-body .system-panel-scroll {
    padding: 3.15rem 0.4rem 0.72rem !important;
  }

  body.system-screen-body .system-panel-scroll > section:first-child {
    padding: 0.84rem 0.88rem !important;
  }

  body.system-screen-body .system-page-header-copy h1,
  body.system-screen-body .system-page-header-copy h2 {
    font-size: 1.14rem !important;
  }

  body.system-screen-body .system-page-header-copy p {
    font-size: 0.76rem !important;
  }

  body.system-screen-body .system-member-toolbar__search input::placeholder {
    font-size: 0.74rem !important;
  }

  body.system-screen-body .system-data-table--members th {
    font-size: 0.8rem !important;
  }

  body.system-screen-body .system-data-table--members td {
    padding: 0.7rem 0.48rem !important;
  }

  body.system-screen-body .system-member-name-cell__text {
    font-size: 0.9rem !important;
  }

  body.system-screen-body .system-member-actions-cell {
    min-width: 8.7rem !important;
  }
}

/* Transaction pages: payment, debts, credits */
body.system-screen-body .system-transaction-header-shell {
  padding: 1.15rem 1.4rem !important;
}

body.system-screen-body .system-page-header--transactions {
  gap: 1rem !important;
}

body.system-screen-body .system-page-header--transactions .system-page-header-copy h2 {
  font-size: clamp(1.68rem, 2vw, 2.1rem) !important;
}

body.system-screen-body .system-page-header--transactions .system-page-header-tools {
  width: min(100%, 44rem) !important;
  margin-inline-start: auto !important;
}

body.system-screen-body .system-page-header--transactions .system-toolbar-search {
  min-height: 3.35rem !important;
  padding-inline: 1.15rem !important;
  border-radius: 1.25rem !important;
}

body.system-screen-body .system-page-header--transactions .system-toolbar-search input {
  font-size: 0.94rem !important;
}

body.system-screen-body .system-page-header--transactions .system-icon-button {
  width: 3.1rem !important;
  min-width: 3.1rem !important;
  height: 3.1rem !important;
  border-radius: 1.15rem !important;
}

body.system-screen-body .system-table-shell--transactions > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--transactions {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--transactions thead {
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fd 100%) !important;
}

body.system-screen-body .system-data-table--transactions th,
body.system-screen-body .system-data-table--transactions td {
  padding: 1rem 0.95rem !important;
  font-size: 0.92rem !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

body.system-screen-body .system-data-table--transactions th {
  font-weight: 800 !important;
  color: #64748b !important;
}

body.system-screen-body .system-data-table--transactions tbody tr {
  background: rgba(255, 255, 255, 0.96) !important;
}

body.system-screen-body .system-data-table--transactions tbody tr:hover {
  background: #fff8f3 !important;
}

body.system-screen-body .system-data-table--transactions tbody tr.is-selected {
  background: #fff3e8 !important;
}

body.system-screen-body .system-data-table--transactions th:first-child,
body.system-screen-body .system-data-table--transactions td:first-child {
  width: 23% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(2),
body.system-screen-body .system-data-table--transactions td:nth-child(2) {
  width: 16% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(3),
body.system-screen-body .system-data-table--transactions td:nth-child(3) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(4),
body.system-screen-body .system-data-table--transactions td:nth-child(4) {
  width: 16% !important;
}

body.system-screen-body .system-data-table--transactions th:nth-child(5),
body.system-screen-body .system-data-table--transactions td:nth-child(5) {
  width: auto !important;
}

body.system-screen-body .system-data-table--transactions th:last-child,
body.system-screen-body .system-data-table--transactions td:last-child {
  width: 7.75rem !important;
  min-width: 7.75rem !important;
}

body.system-screen-body .system-row-avatar-cell--transaction {
  width: auto !important;
  text-align: start !important;
  padding-inline: 0.9rem !important;
}

body.system-screen-body .system-row-avatar--transaction {
  width: 3rem !important;
  height: 3rem !important;
  min-width: 3rem !important;
}

body.system-screen-body .system-transaction-member-cell {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  min-width: 0 !important;
}

body.system-screen-body .system-transaction-member-cell__text {
  display: block !important;
  min-width: 0 !important;
  color: #1f2937 !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  white-space: normal !important;
}

body.system-screen-body .system-transaction-actions-cell {
  text-align: end !important;
}

body.system-screen-body .system-transaction-table__action-head {
  text-align: end !important;
}

body.system-screen-body .system-data-table--transactions .system-row-actions--compact {
  justify-content: flex-end !important;
  gap: 0.45rem !important;
}

body.system-screen-body .system-data-table--transactions .system-row-actions--compact .system-table-button--icon,
body.system-screen-body .system-data-table--transactions .system-row-actions--compact .system-table-button--ghost {
  width: 2.25rem !important;
  min-width: 2.25rem !important;
  height: 2.25rem !important;
}

body.system-screen-body .system-table-shell__footer--transactions {
  padding: 1.1rem 1.35rem !important;
  font-size: 0.98rem !important;
}

body.system-screen-body .system-table-shell__footer--transactions strong {
  font-size: 1.02rem !important;
}

@media (max-width: 1180px) {
  body.system-screen-body .system-page-header--transactions .system-page-header-tools {
    width: min(100%, 36rem) !important;
  }

  body.system-screen-body .system-data-table--transactions th,
  body.system-screen-body .system-data-table--transactions td {
    padding-inline: 0.8rem !important;
    font-size: 0.86rem !important;
  }

  body.system-screen-body .system-data-table--transactions th:first-child,
  body.system-screen-body .system-data-table--transactions td:first-child {
    width: 21% !important;
  }

  body.system-screen-body .system-data-table--transactions th:last-child,
  body.system-screen-body .system-data-table--transactions td:last-child {
    width: 7rem !important;
    min-width: 7rem !important;
  }

  body.system-screen-body .system-transaction-member-cell__text {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 860px) {
  body.system-screen-body .system-transaction-header-shell {
    padding: 0.92rem 1rem !important;
  }

  body.system-screen-body .system-page-header--transactions {
    align-items: stretch !important;
  }

  body.system-screen-body .system-page-header--transactions .system-page-header-copy h2 {
    font-size: 1.24rem !important;
  }

  body.system-screen-body .system-page-header--transactions .system-page-header-tools {
    width: 100% !important;
  }

  body.system-screen-body .system-page-header--transactions .system-toolbar-search {
    min-height: 2.85rem !important;
    padding-inline: 0.9rem !important;
  }

  body.system-screen-body .system-page-header--transactions .system-toolbar-search input {
    font-size: 0.82rem !important;
  }

  body.system-screen-body .system-page-header--transactions .system-icon-button {
    width: 2.8rem !important;
    min-width: 2.8rem !important;
    height: 2.8rem !important;
  }

  body.system-screen-body .system-table-shell--transactions > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--transactions {
    min-width: 52rem !important;
    table-layout: fixed !important;
  }

  body.system-screen-body .system-row-avatar-cell--transaction {
    min-width: 11rem !important;
  }

  body.system-screen-body .system-table-shell__footer--transactions {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.35rem !important;
  }
}

/* Final membership ledger fit override */
body.system-screen-body #membership-ledger-shell > .overflow-x-auto {
  overflow-x: auto !important;
}

body.system-screen-body .system-data-table--membership-ledger {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--membership-ledger th,
body.system-screen-body .system-data-table--membership-ledger td {
  padding: 0.58rem 0.18rem !important;
  font-size: 0.69rem !important;
  line-height: 1.18 !important;
}

body.system-screen-body .system-data-table--membership-ledger th:first-child,
body.system-screen-body .system-data-table--membership-ledger td:first-child {
  width: 2.45rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(2),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(2) {
  width: 5rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(3),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(3) {
  width: 4.4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(4),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(4) {
  width: 3.35rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(5),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(6),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(7),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(7) {
  width: 3rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(8),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(9),
body.system-screen-body .system-data-table--membership-ledger th:nth-child(10),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(10) {
  width: 3.9rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(11),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(11) {
  width: 4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:nth-child(12),
body.system-screen-body .system-data-table--membership-ledger td:nth-child(12) {
  width: 3.4rem !important;
}

body.system-screen-body .system-data-table--membership-ledger th:last-child,
body.system-screen-body .system-data-table--membership-ledger td:last-child {
  width: 4.85rem !important;
  min-width: 4.85rem !important;
}

body.system-screen-body .system-membership-ledger-actions {
  gap: 0.18rem !important;
}

body.system-screen-body .system-membership-ledger-actions .system-table-button--icon,
body.system-screen-body .system-membership-ledger-actions .system-table-button--ghost {
  width: 1.6rem !important;
  min-width: 1.6rem !important;
  height: 1.6rem !important;
}

/* Membership details modal and course page */
body.system-screen-body .system-form-panel--membership-details .system-member-dialog--membership,
body.system-screen-body .system-form-panel--course .system-member-dialog--course {
  width: min(96vw, 58rem) !important;
  max-width: min(96vw, 58rem) !important;
  max-height: min(90dvh, 58rem) !important;
}

body.system-screen-body .system-form-panel--course .system-member-dialog--search {
  width: min(96vw, 58rem) !important;
  max-width: min(96vw, 58rem) !important;
}

body.system-screen-body .system-form-panel--course .system-member-dialog--exercise {
  width: min(92vw, 34rem) !important;
  max-width: min(92vw, 34rem) !important;
}

body.system-screen-body .system-form-panel--course .system-member-dialog--course,
body.system-screen-body .system-form-panel--course .system-member-dialog--search {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body.system-screen-body .system-membership-detail-form,
body.system-screen-body .system-course-form {
  display: grid !important;
  gap: 0 !important;
  max-height: calc(min(90dvh, 58rem) - 5.4rem) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}

body.system-screen-body .system-membership-detail-form--view,
body.system-screen-body .system-course-form--view {
  padding-top: 1rem !important;
}

body.system-screen-body .system-course-search-form {
  display: grid !important;
  gap: 0 !important;
  max-height: calc(min(90dvh, 58rem) - 5.4rem) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}

body.system-screen-body .system-member-finance-grid--membership,
body.system-screen-body .system-member-finance-grid--course {
  padding: 1.35rem 2rem 1rem !important;
}

body.system-screen-body .system-membership-split-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 5.2rem !important;
}

body.system-screen-body .system-membership-split-field input,
body.system-screen-body .system-membership-split-field select,
body.system-screen-body .system-membership-split-field span {
  min-height: 3.45rem !important;
}

body.system-screen-body .system-membership-split-field input {
  border-inline-end-width: 1px !important;
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

body.system-screen-body .system-membership-split-field select,
body.system-screen-body .system-membership-split-field span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #a5a6aa !important;
  border-inline-start-width: 0 !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
  border-start-end-radius: 0.45rem !important;
  border-end-end-radius: 0.45rem !important;
  background: #ffffff !important;
  color: #111111 !important;
  padding: 0 0.8rem !important;
}

body.system-screen-body .system-form-field--membership-coach {
  grid-column: 2 / span 1 !important;
}

body.system-screen-body .system-membership-detail-section {
  padding: 0 2rem 1.2rem !important;
  background: #ffffff !important;
}

body.system-screen-body .system-membership-inline-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #111111 !important;
  font-family: "Manrope", "Vazirmatn", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  margin-bottom: 1rem !important;
}

body.system-screen-body .system-membership-inline-action .material-symbols-outlined {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 3.1rem !important;
  height: 3.1rem !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ff8d2f 0%, #ff6b21 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 28px rgba(255, 107, 53, 0.2) !important;
}

body.system-screen-body .system-membership-subtable {
  width: 100% !important;
  border-collapse: collapse !important;
  overflow: hidden !important;
  border-radius: 1.35rem !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

body.system-screen-body .system-membership-subtable thead {
  background: #8d8d8d !important;
}

body.system-screen-body .system-membership-subtable th,
body.system-screen-body .system-membership-subtable td {
  padding: 0.95rem 0.85rem !important;
  text-align: center !important;
  font-size: 0.84rem !important;
  color: #111111 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
}

body.system-screen-body .system-membership-subtable th {
  color: #ffffff !important;
  font-weight: 800 !important;
  background: #8d8d8d !important;
}

body.system-screen-body .system-membership-subtable--freeze th,
body.system-screen-body .system-membership-subtable--freeze td {
  width: 50% !important;
}

body.system-screen-body .system-subtable-empty {
  color: #64748b !important;
  font-style: italic !important;
}

body.system-screen-body .system-form-panel--membership-details [data-editor-form="membership"] .system-member-finance-actions .system-member-modal-button:nth-child(3) .material-symbols-outlined {
  color: #ef4444 !important;
}

body.system-screen-body .system-form-panel--membership-details [data-editor-form="membership"] .system-member-finance-actions .system-member-modal-button:nth-child(4) .material-symbols-outlined,
body.system-screen-body .system-form-panel--membership-details [data-system-modal="membership-record-view"] .system-member-view-footer .system-member-modal-button:first-child .material-symbols-outlined {
  color: #111827 !important;
}

body.system-screen-body .system-form-panel--membership-details .system-member-view-footer,
body.system-screen-body .system-form-panel--course .system-member-view-footer {
  justify-content: center !important;
  gap: 1rem !important;
}

body.system-screen-body .system-table-shell--course {
  height: min(72dvh, 44rem) !important;
}

body.system-screen-body .system-table-shell--course > .overflow-x-auto {
  overflow-x: auto !important;
  overflow-y: auto !important;
}

body.system-screen-body .system-data-table--course {
  min-width: 75rem !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--course th,
body.system-screen-body .system-data-table--course td {
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--course th:nth-child(1),
body.system-screen-body .system-data-table--course td:nth-child(1) {
  width: 22% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(2),
body.system-screen-body .system-data-table--course td:nth-child(2) {
  width: 15% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(3),
body.system-screen-body .system-data-table--course td:nth-child(3) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(4),
body.system-screen-body .system-data-table--course td:nth-child(4),
body.system-screen-body .system-data-table--course th:nth-child(5),
body.system-screen-body .system-data-table--course td:nth-child(5) {
  width: 15% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(6),
body.system-screen-body .system-data-table--course td:nth-child(6),
body.system-screen-body .system-data-table--course th:nth-child(7),
body.system-screen-body .system-data-table--course td:nth-child(7) {
  width: 6.75rem !important;
}

body.system-screen-body .system-data-table--course th:last-child,
body.system-screen-body .system-data-table--course td:last-child {
  width: 11rem !important;
  min-width: 11rem !important;
}

body.system-screen-body .system-data-table--course .system-transaction-actions-cell {
  white-space: nowrap !important;
}

body.system-screen-body .system-table-shell__footer--course {
  justify-content: flex-start !important;
}

body.system-screen-body .system-course-print-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.system-screen-body .system-course-print-menu[hidden] {
  display: none !important;
}

body.system-screen-body .system-course-print-menu {
  position: absolute !important;
  inset-inline-end: 0 !important;
  top: calc(100% + 0.55rem) !important;
  min-width: 12rem !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 1rem !important;
  background: #ffffff !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14) !important;
  overflow: hidden !important;
  z-index: 70 !important;
}

body.system-screen-body .system-course-print-menu button {
  width: 100% !important;
  padding: 0.9rem 1rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
  color: #111111 !important;
  text-align: left !important;
  font-size: 0.9rem !important;
}

body.system-screen-body .system-course-print-menu button:last-child {
  border-bottom: 0 !important;
}

body.system-screen-body .system-course-print-menu button:hover {
  background: #f8fafc !important;
}

body.system-screen-body .system-course-search-form .system-form-field--expiration {
  grid-column: 2 / span 1 !important;
}

body.system-screen-body .system-course-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  min-height: 3.45rem !important;
}

body.system-screen-body .system-course-toggle input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.system-screen-body .system-course-toggle__track {
  position: relative !important;
  width: 3.3rem !important;
  height: 1.5rem !important;
  border-radius: 999px !important;
  background: #1d7ad6 !important;
}

body.system-screen-body .system-course-toggle__track::after {
  content: "" !important;
  position: absolute !important;
  top: 0.2rem !important;
  left: 1.9rem !important;
  width: 1.1rem !important;
  height: 1.1rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
}

body.system-screen-body .system-form-panel--course .system-member-finance-actions,
body.system-screen-body .system-form-panel--course .system-member-search-actions,
body.system-screen-body .system-form-panel--course .system-member-view-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 4 !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #ffffff 22%) !important;
}

@media (max-width: 1280px) {
  body.system-screen-body .system-form-panel--course .system-member-dialog--course,
  body.system-screen-body .system-form-panel--course .system-member-dialog--search {
    width: min(94vw, 52rem) !important;
    max-width: min(94vw, 52rem) !important;
  }
}

@media (max-width: 1100px) {
  body.system-screen-body .system-member-finance-grid--membership,
  body.system-screen-body .system-member-finance-grid--course {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.system-screen-body .system-form-field--membership-coach,
  body.system-screen-body .system-course-search-form .system-form-field--expiration {
    grid-column: auto !important;
  }

  body.system-screen-body .system-course-search-form .system-member-modal-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.system-screen-body .system-data-table--course {
    min-width: 68rem !important;
  }
}

@media (max-height: 940px) {
  body.system-screen-body .system-form-panel--course .system-member-dialog--course,
  body.system-screen-body .system-form-panel--course .system-member-dialog--search {
    max-height: 84dvh !important;
  }

  body.system-screen-body .system-course-form,
  body.system-screen-body .system-course-search-form {
    max-height: calc(84dvh - 5.1rem) !important;
  }
}

@media (max-width: 720px) {
  body.system-screen-body .system-membership-detail-section,
  body.system-screen-body .system-member-finance-grid--membership,
  body.system-screen-body .system-member-finance-grid--course {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.system-screen-body .system-membership-inline-action {
    font-size: 0.88rem !important;
  }

  body.system-screen-body .system-form-panel--course .system-member-dialog--course,
  body.system-screen-body .system-form-panel--course .system-member-dialog--search {
    width: min(96vw, 40rem) !important;
    max-width: min(96vw, 40rem) !important;
    max-height: 88dvh !important;
  }

  body.system-screen-body .system-course-form,
  body.system-screen-body .system-course-search-form {
    max-height: calc(88dvh - 4.8rem) !important;
  }

  body.system-screen-body .system-form-panel--course .system-member-finance-actions,
  body.system-screen-body .system-form-panel--course .system-member-search-actions,
  body.system-screen-body .system-form-panel--course .system-member-view-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Final system table and modal polish overrides */
body.system-screen-body .system-table-shell {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.system-screen-body .system-table-shell > .overflow-x-auto {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable both-edges !important;
}

body.system-screen-body .system-table-shell > .overflow-x-auto.has-y-scroll {
  overflow-y: auto !important;
}

body.system-screen-body .system-table-shell > .overflow-x-auto.has-x-scroll {
  overflow-x: auto !important;
}

body.system-screen-body .system-table-shell > .overflow-x-auto.has-y-scroll::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 1rem !important;
  height: var(--system-table-head-height, 4.75rem) !important;
  background: #eff6ff !important;
  border-top-right-radius: 1.6rem !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

body.system-screen-body .system-table-shell--members > .overflow-x-auto {
  max-height: min(70dvh, 47rem) !important;
}

body.system-screen-body .system-table-shell--transactions > .overflow-x-auto,
body.system-screen-body .system-table-shell--course > .overflow-x-auto,
body.system-screen-body .system-table-shell--income > .overflow-x-auto {
  max-height: min(68dvh, 44rem) !important;
}

body.system-screen-body .system-table-shell__footer,
body.system-screen-body .system-table-shell__footer--course,
body.system-screen-body .system-table-shell__footer--transactions {
  flex: 0 0 auto !important;
}

body.system-screen-body .system-data-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.system-screen-body .system-data-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: #eff6ff !important;
  box-shadow: inset 0 -1px 0 rgba(203, 213, 225, 0.95) !important;
}

body.system-screen-body .system-data-table th {
  white-space: nowrap !important;
  vertical-align: middle !important;
}

body.system-screen-body .system-data-table td {
  vertical-align: middle !important;
  word-break: normal !important;
}

body.system-screen-body .system-data-table td:last-child,
body.system-screen-body .system-data-table th:last-child,
body.system-screen-body .system-transaction-actions-cell,
body.system-screen-body .system-member-actions-cell {
  white-space: nowrap !important;
}

body.system-screen-body .system-row-actions--compact,
body.system-screen-body .system-row-actions--member {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0.65rem !important;
}

body.system-screen-body .system-table-shell__footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 1rem !important;
}

body.system-screen-body .system-member-footer-report {
  justify-self: end !important;
  flex-shrink: 0 !important;
}

body.system-screen-body .system-member-dialog--report {
  width: min(94vw, 70rem) !important;
  max-width: min(94vw, 70rem) !important;
  max-height: 90dvh !important;
  overflow: hidden !important;
}

body.system-screen-body .system-member-report-shell {
  max-height: calc(90dvh - 6rem) !important;
  overflow: auto !important;
  padding: 1.5rem !important;
}

body.system-screen-body .system-member-report-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

body.system-screen-body .system-member-report-donut-row {
  display: grid !important;
  grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: center !important;
}

body.system-screen-body .system-report-donut[data-member-report-donut] {
  position: relative !important;
  width: min(100%, 18rem) !important;
  aspect-ratio: 1 !important;
  margin: 0 auto !important;
  border-radius: 999px !important;
  background: conic-gradient(#e2e8f0 0deg 360deg) !important;
}

body.system-screen-body .system-report-donut[data-member-report-donut]::after {
  content: "" !important;
  position: absolute !important;
  inset: 1.1rem !important;
  border-radius: inherit !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.85) !important;
}

body.system-screen-body .system-report-donut[data-member-report-donut] > div {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: grid !important;
  place-content: center !important;
  text-align: center !important;
  gap: 0.25rem !important;
}

body.system-screen-body .system-member-report-legend {
  display: grid !important;
  gap: 0.85rem !important;
}

body.system-screen-body .system-member-report-legend__item {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
}

body.system-screen-body .system-member-report-legend__item strong,
body.system-screen-body .system-member-report-legend__item small {
  display: block !important;
}

body.system-screen-body .system-member-report-legend__swatch {
  width: 0.9rem !important;
  height: 0.9rem !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
  background: var(--swatch, #ff7a1a) !important;
}

body.system-screen-body .system-member-report-legend__empty {
  color: #64748b !important;
  font-size: 0.95rem !important;
}

body.system-screen-body .system-member-report-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

body.system-screen-body .system-transaction-amount-field {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

body.system-screen-body .system-transaction-amount-field > input,
body.system-screen-body .system-transaction-amount-field > select {
  height: 100% !important;
  min-height: 3.9rem !important;
}

body.system-screen-body .system-transaction-amount-field > input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body.system-screen-body .system-transaction-amount-field > select {
  min-width: 5.25rem !important;
  padding: 0 1rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid rgba(203, 213, 225, 0.95) !important;
  background: #fff7ed !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

body.system-screen-body .system-form-field.is-disabled input[data-rate-field] {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

body.system-screen-body .system-course-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

body.system-screen-body .system-course-toggle__label {
  min-width: 2rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

body.system-screen-body .system-course-toggle input:not(:checked) + .system-course-toggle__track {
  background: #cbd5e1 !important;
}

body.system-screen-body .system-course-toggle input:not(:checked) + .system-course-toggle__track::after {
  left: 0.2rem !important;
}

body.system-screen-body .system-course-toggle input:checked + .system-course-toggle__track {
  background: #1d7ad6 !important;
}

body.system-screen-body .system-course-toggle input:checked + .system-course-toggle__track::after {
  left: 1.95rem !important;
}

body.system-screen-body .system-table-shell--course > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--course {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--course th,
body.system-screen-body .system-data-table--course td {
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--course th:nth-child(1),
body.system-screen-body .system-data-table--course td:nth-child(1) {
  width: 24% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(2),
body.system-screen-body .system-data-table--course td:nth-child(2) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(3),
body.system-screen-body .system-data-table--course td:nth-child(3) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(4),
body.system-screen-body .system-data-table--course td:nth-child(4),
body.system-screen-body .system-data-table--course th:nth-child(5),
body.system-screen-body .system-data-table--course td:nth-child(5) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--course th:nth-child(6),
body.system-screen-body .system-data-table--course td:nth-child(6),
body.system-screen-body .system-data-table--course th:nth-child(7),
body.system-screen-body .system-data-table--course td:nth-child(7) {
  width: 8% !important;
}

body.system-screen-body .system-data-table--course th:last-child,
body.system-screen-body .system-data-table--course td:last-child {
  width: 9.5rem !important;
  min-width: 9.5rem !important;
}

body.system-screen-body .system-table-shell--income > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--income {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--income th,
body.system-screen-body .system-data-table--income td {
  padding-left: 0.7rem !important;
  padding-right: 0.7rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 0.89rem !important;
  line-height: 1.3 !important;
  vertical-align: middle !important;
}

body.system-screen-body .system-data-table--income th:nth-child(1),
body.system-screen-body .system-data-table--income td:nth-child(1) {
  width: 8% !important;
  padding-left: 0.45rem !important;
}

body.system-screen-body .system-data-table--income th:nth-child(2),
body.system-screen-body .system-data-table--income td:nth-child(2) {
  width: 10% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(3),
body.system-screen-body .system-data-table--income td:nth-child(3) {
  width: 7% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(4),
body.system-screen-body .system-data-table--income td:nth-child(4),
body.system-screen-body .system-data-table--income th:nth-child(6),
body.system-screen-body .system-data-table--income td:nth-child(6) {
  width: 7% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(5),
body.system-screen-body .system-data-table--income td:nth-child(5) {
  width: 10% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(9),
body.system-screen-body .system-data-table--income td:nth-child(9),
body.system-screen-body .system-data-table--income th:nth-child(10),
body.system-screen-body .system-data-table--income td:nth-child(10),
body.system-screen-body .system-data-table--income th:nth-child(11),
body.system-screen-body .system-data-table--income td:nth-child(11) {
  width: 7% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(7),
body.system-screen-body .system-data-table--income td:nth-child(7) {
  width: 9% !important;
}

body.system-screen-body .system-data-table--income th:nth-child(8),
body.system-screen-body .system-data-table--income td:nth-child(8) {
  width: 10% !important;
}

body.system-screen-body .system-data-table--income th:last-child,
body.system-screen-body .system-data-table--income td:last-child {
  width: 11% !important;
  min-width: 7.5rem !important;
  padding-right: 0.8rem !important;
  padding-left: 0.5rem !important;
}

body.system-screen-body .system-data-table--income .system-row-actions {
  justify-content: flex-end !important;
  gap: 0.35rem !important;
}

body.system-screen-body .system-data-table--income .system-table-button--icon {
  width: 2.35rem !important;
  min-width: 2.35rem !important;
  height: 2.35rem !important;
}

body.system-screen-body .system-data-table--income .system-row-meta {
  display: block !important;
  margin-top: 0.12rem !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

body.system-screen-body .system-data-table--income th:nth-child(2),
body.system-screen-body .system-data-table--income th:nth-child(3),
body.system-screen-body .system-data-table--income td:nth-child(2),
body.system-screen-body .system-data-table--income td:nth-child(3) {
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--income th:last-child,
body.system-screen-body .system-data-table--income td:last-child,
body.system-screen-body .system-data-table--income .system-transaction-actions-cell {
  text-align: end !important;
}

body.system-screen-body .system-course-toggle__label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.system-screen-body .system-form-dialog--transaction-wide,
body.system-screen-body .system-form-panel--course .system-member-dialog--course,
body.system-screen-body .system-form-panel--course .system-member-dialog--search,
body.system-screen-body .system-form-panel--course .system-member-dialog--view {
  width: min(94vw, 70rem) !important;
  max-width: min(94vw, 70rem) !important;
  max-height: 90dvh !important;
  overflow: hidden !important;
}

body.system-screen-body .system-form-panel--course .system-course-form,
body.system-screen-body .system-form-panel--course .system-course-search-form,
body.system-screen-body .system-transaction-modal-form {
  max-height: calc(90dvh - 6rem) !important;
  overflow: auto !important;
  padding-bottom: 1.25rem !important;
}

@media (max-width: 1180px) {
  body.system-screen-body .system-table-shell--income > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--income {
    min-width: 72rem !important;
  }

  body.system-screen-body .system-data-table--income th,
  body.system-screen-body .system-data-table--income td {
    font-size: 0.84rem !important;
    padding-inline: 0.65rem !important;
  }
}

@media (max-width: 1100px) {
  body.system-screen-body .system-table-shell__footer {
    grid-template-columns: 1fr auto !important;
  }

  body.system-screen-body .system-table-shell__footer > :nth-child(2) {
    justify-self: end !important;
  }

  body.system-screen-body .system-member-footer-report {
    grid-column: 1 / -1 !important;
  }

  body.system-screen-body .system-member-report-donut-row {
    grid-template-columns: 1fr !important;
  }

  body.system-screen-body .system-form-dialog--transaction-wide,
  body.system-screen-body .system-form-panel--course .system-member-dialog--course,
  body.system-screen-body .system-form-panel--course .system-member-dialog--search,
  body.system-screen-body .system-form-panel--course .system-member-dialog--view {
    width: min(96vw, 54rem) !important;
    max-width: min(96vw, 54rem) !important;
  }

  body.system-screen-body .system-table-shell--course > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--course {
    min-width: 64rem !important;
  }

  body.system-screen-body .system-table-shell--income > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--income {
    min-width: 72rem !important;
  }
}

@media (max-width: 820px) {
  body.system-screen-body .system-form-grid--two,
  body.system-screen-body .system-member-modal-grid,
  body.system-screen-body .system-member-finance-grid,
  body.system-screen-body .system-member-finance-grid--course,
  body.system-screen-body .system-member-finance-grid--membership {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.system-screen-body .system-transaction-modal-actions,
  body.system-screen-body .system-member-finance-actions,
  body.system-screen-body .system-member-search-actions,
  body.system-screen-body .system-member-view-footer {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
}

/* July 2026 sale page and dark-mode system fixes */

body.system-screen-body .system-table-shell--sale > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--sale {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--sale th,
body.system-screen-body .system-data-table--sale td {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 0.92rem !important;
  line-height: 1.32 !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(1),
body.system-screen-body .system-data-table--sale td:nth-child(1) {
  width: 16% !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(2),
body.system-screen-body .system-data-table--sale td:nth-child(2) {
  width: 13% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(3),
body.system-screen-body .system-data-table--sale td:nth-child(3) {
  width: 10% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(4),
body.system-screen-body .system-data-table--sale td:nth-child(4) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(5),
body.system-screen-body .system-data-table--sale td:nth-child(5) {
  width: 11% !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(6),
body.system-screen-body .system-data-table--sale td:nth-child(6) {
  width: 11% !important;
}

body.system-screen-body .system-data-table--sale th:nth-child(7),
body.system-screen-body .system-data-table--sale td:nth-child(7) {
  width: 13% !important;
}

body.system-screen-body .system-data-table--sale th:last-child,
body.system-screen-body .system-data-table--sale td:last-child {
  width: 10.2rem !important;
  min-width: 10.2rem !important;
  text-align: end !important;
}

body.system-screen-body .system-data-table--sale .system-row-actions {
  justify-content: flex-end !important;
  gap: 0.35rem !important;
}

body.system-screen-body .system-data-table--sale .system-table-button--icon {
  width: 2.35rem !important;
  min-width: 2.35rem !important;
  height: 2.35rem !important;
}

body.system-screen-body .system-data-table--sale .system-row-meta {
  display: block !important;
  margin-top: 0.12rem !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
}

@media (max-width: 1180px) {
  body.system-screen-body .system-table-shell--sale > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--sale {
    min-width: 64rem !important;
  }

  body.system-screen-body .system-data-table--sale th,
  body.system-screen-body .system-data-table--sale td {
    font-size: 0.84rem !important;
    padding-inline: 0.65rem !important;
  }
}

html.dark body.system-screen-body .system-member-header-shell,
html.dark body.system-screen-body .system-transaction-header-shell,
html.dark body.system-screen-body .system-table-shell,
html.dark body.system-screen-body .system-table-shell__footer,
html.dark body.system-screen-body .system-table-shell__footer--transactions,
html.dark body.system-screen-body .system-table-shell__footer--course,
html.dark body.system-screen-body .system-panel-scroll > section:first-child {
  background: #223242 !important;
  border-color: rgba(71, 85, 105, 0.52) !important;
  box-shadow: 0 18px 42px rgba(5, 10, 16, 0.28) !important;
  color: #edf3f8 !important;
}

html.dark body.system-screen-body .system-data-table thead th {
  background: linear-gradient(180deg, #26394b 0%, #223242 100%) !important;
  color: #dce8f5 !important;
  box-shadow: inset 0 -1px 0 rgba(71, 85, 105, 0.65) !important;
}

html.dark body.system-screen-body .system-data-table tbody tr {
  background: #1e2c3a !important;
  border-top-color: rgba(71, 85, 105, 0.42) !important;
}

html.dark body.system-screen-body .system-data-table tbody tr:nth-child(even) {
  background: #223140 !important;
}

html.dark body.system-screen-body .system-data-table tbody tr:hover {
  background: rgba(255, 97, 40, 0.12) !important;
}

html.dark body.system-screen-body .system-data-table tbody tr.is-selected {
  background: rgba(255, 97, 40, 0.18) !important;
  box-shadow: inset 3px 0 0 #ff6128 !important;
}

html.dark body.system-screen-body .system-page-header-copy h1,
html.dark body.system-screen-body .system-page-header-copy h2,
html.dark body.system-screen-body .system-table-shell__footer strong {
  color: #f8fafc !important;
}

html.dark body.system-screen-body .system-data-table th,
html.dark body.system-screen-body .system-data-table td,
html.dark body.system-screen-body .system-page-header-copy p,
html.dark body.system-screen-body .system-row-meta,
html.dark body.system-screen-body .system-table-shell__footer {
  color: #d7e2ef !important;
}

html.dark body.system-screen-body #member-table-shell .system-data-table--members thead,
html.dark body.system-screen-body #member-table-shell .system-data-table--members thead th {
  background: linear-gradient(180deg, #26394b 0%, #223242 100%) !important;
  color: #e4edf7 !important;
  box-shadow: inset 0 -1px 0 rgba(71, 85, 105, 0.65) !important;
}

html.dark body.system-screen-body #member-table-shell .system-data-table--members thead th .material-symbols-outlined,
html.dark body.system-screen-body #member-table-shell .system-data-table--members thead th svg,
html.dark body.system-screen-body #member-table-shell .system-data-table--members thead th [data-sort-arrow] {
  color: inherit !important;
  fill: currentColor !important;
  opacity: 0.92 !important;
}

html.dark body.system-screen-body #member-table-shell .system-data-table--members tbody tr.is-selected {
  background: #ffe1d3 !important;
  box-shadow: inset 3px 0 0 #ff6128 !important;
}

html.dark body.system-screen-body #member-table-shell .system-data-table--members tbody tr.is-selected td,
html.dark body.system-screen-body #member-table-shell .system-data-table--members tbody tr.is-selected strong,
html.dark body.system-screen-body #member-table-shell .system-data-table--members tbody tr.is-selected [data-field] {
  color: #1f2937 !important;
}

html.dark body.system-screen-body #member-table-shell .system-data-table--members tbody tr.is-selected .system-row-meta {
  color: #475569 !important;
}

/* July 2026 coach salary pages */

body.system-screen-body .system-table-shell--coach {
  min-height: min(66dvh, 42rem) !important;
}

body.system-screen-body .system-table-shell--coach > .overflow-x-auto {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.system-screen-body .system-data-table--coach {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--coach th,
body.system-screen-body .system-data-table--coach td {
  font-size: 0.93rem !important;
  line-height: 1.34 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(1),
body.system-screen-body .system-data-table--coach td:nth-child(1) {
  width: 20% !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(2),
body.system-screen-body .system-data-table--coach td:nth-child(2) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(3),
body.system-screen-body .system-data-table--coach td:nth-child(3) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(4),
body.system-screen-body .system-data-table--coach td:nth-child(4) {
  width: 16% !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(5),
body.system-screen-body .system-data-table--coach td:nth-child(5) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--coach th:nth-child(6),
body.system-screen-body .system-data-table--coach td:nth-child(6) {
  width: 10% !important;
}

body.system-screen-body .system-data-table--coach th:last-child,
body.system-screen-body .system-data-table--coach td:last-child {
  width: 14% !important;
  min-width: 8.75rem !important;
}

body.system-screen-body .system-data-table--coach .system-transaction-actions-cell {
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--coach .system-row-actions--compact {
  justify-content: flex-end !important;
  gap: 0.4rem !important;
}

body.system-screen-body .system-data-table--coach .system-row-actions--compact .system-table-button--icon,
body.system-screen-body .system-data-table--coach .system-row-actions--compact .system-table-button--ghost {
  width: 2.35rem !important;
  min-width: 2.35rem !important;
  height: 2.35rem !important;
}

body.system-screen-body .system-coach-report-launcher {
  display: flex !important;
  justify-content: flex-end !important;
  padding-right: 0.2rem !important;
  margin-top: 1rem !important;
}

body.system-screen-body .system-coach-report-dialog {
  width: min(96vw, 72rem) !important;
  max-width: min(96vw, 72rem) !important;
  max-height: min(90dvh, 60rem) !important;
}

body.system-screen-body .system-coach-report-shell {
  position: relative !important;
  display: grid !important;
  gap: 1.25rem !important;
  padding-bottom: 5.4rem !important;
}

body.system-screen-body .system-coach-report-dialog .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--coach-report {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--coach-report th,
body.system-screen-body .system-data-table--coach-report td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 0.88rem !important;
}

body.system-screen-body .system-data-table--coach-report th:nth-child(1),
body.system-screen-body .system-data-table--coach-report td:nth-child(1) {
  width: 4% !important;
}

body.system-screen-body .system-data-table--coach-report th:nth-child(2),
body.system-screen-body .system-data-table--coach-report td:nth-child(2) {
  width: 20% !important;
}

body.system-screen-body .system-data-table--coach-report th:nth-child(3),
body.system-screen-body .system-data-table--coach-report td:nth-child(3),
body.system-screen-body .system-data-table--coach-report th:nth-child(4),
body.system-screen-body .system-data-table--coach-report td:nth-child(4),
body.system-screen-body .system-data-table--coach-report th:nth-child(5),
body.system-screen-body .system-data-table--coach-report td:nth-child(5),
body.system-screen-body .system-data-table--coach-report th:nth-child(6),
body.system-screen-body .system-data-table--coach-report td:nth-child(6),
body.system-screen-body .system-data-table--coach-report th:nth-child(7),
body.system-screen-body .system-data-table--coach-report td:nth-child(7) {
  width: 14% !important;
}

body.system-screen-body .system-coach-report-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  gap: 0.85rem 1.25rem !important;
  color: #475569 !important;
  font-size: 0.95rem !important;
}

body.system-screen-body .system-coach-report-summary strong {
  color: #0f172a !important;
}

body.system-screen-body .system-coach-report-print-wrap {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
}

html.dark body.system-screen-body .system-course-print-menu {
  background: #223242 !important;
  border-color: rgba(71, 85, 105, 0.55) !important;
  box-shadow: 0 18px 36px rgba(5, 10, 16, 0.35) !important;
}

html.dark body.system-screen-body .system-course-print-menu button {
  background: #223242 !important;
  border-bottom-color: rgba(71, 85, 105, 0.55) !important;
  color: #e2ebf5 !important;
}

html.dark body.system-screen-body .system-course-print-menu button:hover {
  background: #2a3d50 !important;
}

html.dark body.system-screen-body .system-coach-report-summary {
  color: #d7e2ef !important;
}

html.dark body.system-screen-body .system-coach-report-summary strong {
  color: #f8fafc !important;
}

@media (max-width: 1160px) {
  body.system-screen-body .system-data-table--coach th,
  body.system-screen-body .system-data-table--coach td {
    font-size: 0.86rem !important;
    padding-inline: 0.78rem !important;
  }

  body.system-screen-body .system-data-table--coach th:nth-child(1),
  body.system-screen-body .system-data-table--coach td:nth-child(1) {
    width: 18% !important;
  }

  body.system-screen-body .system-data-table--coach th:last-child,
  body.system-screen-body .system-data-table--coach td:last-child {
    min-width: 8.2rem !important;
  }
}

@media (max-width: 900px) {
  body.system-screen-body .system-table-shell--coach > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--coach {
    min-width: 56rem !important;
  }

  body.system-screen-body .system-coach-report-dialog {
    width: min(96vw, 52rem) !important;
    max-width: min(96vw, 52rem) !important;
  }

  body.system-screen-body .system-coach-report-dialog .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--coach-report {
    min-width: 44rem !important;
  }

  body.system-screen-body .system-coach-report-print-wrap {
    position: static !important;
    justify-self: end !important;
  }
}

/* July 2026 safe page */

body.system-screen-body .system-page-header--transactions .system-page-header-tools--safe {
  width: min(100%, 34rem) !important;
}

body.system-screen-body .system-table-shell--safe-page > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--safe-page {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--safe-page th,
body.system-screen-body .system-data-table--safe-page td {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.system-screen-body .system-data-table--safe-page th:nth-child(1),
body.system-screen-body .system-data-table--safe-page td:nth-child(1) {
  width: 34% !important;
}

body.system-screen-body .system-data-table--safe-page th:nth-child(2),
body.system-screen-body .system-data-table--safe-page td:nth-child(2) {
  width: 22% !important;
}

body.system-screen-body .system-data-table--safe-page th:nth-child(3),
body.system-screen-body .system-data-table--safe-page td:nth-child(3) {
  width: auto !important;
}

body.system-screen-body .system-data-table--safe-page th:last-child,
body.system-screen-body .system-data-table--safe-page td:last-child {
  width: 7rem !important;
  min-width: 7rem !important;
}

body.system-screen-body .system-data-table--safe-page .system-row-actions--compact {
  justify-content: flex-end !important;
}

body.system-screen-body .system-table-shell__footer--safe {
  justify-content: center !important;
  text-align: center !important;
  padding-block: 1.25rem !important;
}

body.system-screen-body .system-table-shell__footer--safe strong {
  font-size: 1.05rem !important;
}

body.system-screen-body .system-safe-report-launcher {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 1rem !important;
}

body.system-screen-body .system-safe-report-launcher__button {
  width: 3.8rem !important;
  min-width: 3.8rem !important;
  height: 3.8rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
}

body.system-screen-body .system-form-dialog--safe {
  width: min(92vw, 40rem) !important;
  max-width: min(92vw, 40rem) !important;
}

body.system-screen-body .system-form-dialog--safe-report {
  width: min(96vw, 92rem) !important;
  max-width: min(96vw, 92rem) !important;
}

body.system-screen-body .system-transaction-modal-form--safe {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.system-screen-body .system-safe-report-shell {
  display: grid !important;
  gap: 1.5rem !important;
}

body.system-screen-body .system-data-table--safe-report {
  width: 100% !important;
  min-width: 72rem !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(1),
body.system-screen-body .system-data-table--safe-report td:nth-child(1) {
  width: 6% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(2),
body.system-screen-body .system-data-table--safe-report td:nth-child(2) {
  width: 18% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(3),
body.system-screen-body .system-data-table--safe-report td:nth-child(3) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(4),
body.system-screen-body .system-data-table--safe-report td:nth-child(4) {
  width: 14% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(5),
body.system-screen-body .system-data-table--safe-report td:nth-child(5) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(6),
body.system-screen-body .system-data-table--safe-report td:nth-child(6),
body.system-screen-body .system-data-table--safe-report th:nth-child(7),
body.system-screen-body .system-data-table--safe-report td:nth-child(7) {
  width: 12% !important;
}

body.system-screen-body .system-data-table--safe-report th:nth-child(8),
body.system-screen-body .system-data-table--safe-report td:nth-child(8) {
  width: 8% !important;
}

body.system-screen-body .system-safe-report-time-grid {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.system-screen-body .system-safe-report-time-inputs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

body.system-screen-body .system-safe-report-time-inputs input,
body.system-screen-body .system-safe-report-time-inputs select {
  border-radius: 0 !important;
  text-align: center !important;
}

body.system-screen-body .system-safe-report-time-inputs > *:first-child {
  border-top-left-radius: 1rem !important;
  border-bottom-left-radius: 1rem !important;
}

body.system-screen-body .system-safe-report-time-inputs > *:last-child {
  border-top-right-radius: 1rem !important;
  border-bottom-right-radius: 1rem !important;
}

body.system-screen-body .system-safe-report-summary-grid .system-report-card {
  padding: 1.5rem 1.6rem !important;
}

body.system-screen-body .system-safe-report-summary-value {
  display: block !important;
  margin-top: 0.35rem !important;
  font-family: Manrope, "Vazirmatn", sans-serif !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

html.dark body.system-screen-body .system-safe-report-launcher__button {
  background: #223242 !important;
  border-color: rgba(71, 85, 105, 0.52) !important;
  box-shadow: 0 18px 36px rgba(5, 10, 16, 0.34) !important;
}

html.dark body.system-screen-body .system-safe-report-summary-value {
  color: #f8fafc !important;
}

@media (max-width: 980px) {
  body.system-screen-body .system-page-header--transactions .system-page-header-tools--safe {
    width: 100% !important;
  }

  body.system-screen-body .system-table-shell--safe-page > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--safe-page {
    min-width: 40rem !important;
  }

  body.system-screen-body .system-form-dialog--safe-report {
    width: min(96vw, 46rem) !important;
    max-width: min(96vw, 46rem) !important;
  }

  body.system-screen-body .system-data-table--safe-report {
    min-width: 58rem !important;
  }

  body.system-screen-body .system-safe-report-time-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* July 2026 attendance and event-log pages */

body.system-screen-body .system-table-shell--attendance > .overflow-x-auto,
body.system-screen-body .system-table-shell--event-log > .overflow-x-auto {
  overflow-x: hidden !important;
}

body.system-screen-body .system-data-table--attendance,
body.system-screen-body .system-data-table--event-log {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

body.system-screen-body .system-data-table--attendance th,
body.system-screen-body .system-data-table--attendance td,
body.system-screen-body .system-data-table--event-log th,
body.system-screen-body .system-data-table--event-log td {
  padding-left: 0.82rem !important;
  padding-right: 0.82rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  font-size: 0.91rem !important;
  line-height: 1.32 !important;
}

body.system-screen-body .system-data-table--attendance th:nth-child(1),
body.system-screen-body .system-data-table--attendance td:nth-child(1) {
  width: 18% !important;
}

body.system-screen-body .system-data-table--attendance th:nth-child(2),
body.system-screen-body .system-data-table--attendance td:nth-child(2) {
  width: 15% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--attendance th:nth-child(3),
body.system-screen-body .system-data-table--attendance td:nth-child(3),
body.system-screen-body .system-data-table--attendance th:nth-child(4),
body.system-screen-body .system-data-table--attendance td:nth-child(4) {
  width: 11% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--attendance th:nth-child(5),
body.system-screen-body .system-data-table--attendance td:nth-child(5),
body.system-screen-body .system-data-table--attendance th:nth-child(6),
body.system-screen-body .system-data-table--attendance td:nth-child(6) {
  width: 14% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--attendance th:nth-child(7),
body.system-screen-body .system-data-table--attendance td:nth-child(7) {
  width: 17% !important;
}

body.system-screen-body .system-data-table--attendance th:last-child,
body.system-screen-body .system-data-table--attendance td:last-child,
body.system-screen-body .system-data-table--event-log th:last-child,
body.system-screen-body .system-data-table--event-log td:last-child {
  width: 4.8rem !important;
  min-width: 4.8rem !important;
  text-align: end !important;
}

body.system-screen-body .system-data-table--event-log th:nth-child(1),
body.system-screen-body .system-data-table--event-log td:nth-child(1) {
  width: 20% !important;
}

body.system-screen-body .system-data-table--event-log th:nth-child(2),
body.system-screen-body .system-data-table--event-log td:nth-child(2) {
  width: 18% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--event-log th:nth-child(3),
body.system-screen-body .system-data-table--event-log td:nth-child(3) {
  width: 23% !important;
}

body.system-screen-body .system-data-table--event-log th:nth-child(4),
body.system-screen-body .system-data-table--event-log td:nth-child(4) {
  width: 15% !important;
  white-space: nowrap !important;
}

body.system-screen-body .system-data-table--event-log th:nth-child(5),
body.system-screen-body .system-data-table--event-log td:nth-child(5) {
  width: 19% !important;
}

@media (max-width: 1180px) {
  body.system-screen-body .system-table-shell--attendance > .overflow-x-auto,
  body.system-screen-body .system-table-shell--event-log > .overflow-x-auto {
    overflow-x: auto !important;
  }

  body.system-screen-body .system-data-table--attendance {
    min-width: 66rem !important;
  }

  body.system-screen-body .system-data-table--event-log {
    min-width: 56rem !important;
  }
}

/* ============================================================
 * Chart axis day labels in Arabic / Kurdish Sorani.
 * Full day names ("چوارشەممە") are much wider than "Wed", so the
 * six-slot flex row ran them together with no gap. The labels are
 * abbreviated in the translation tables; this keeps them from
 * touching on the narrowest phones as well.
 * ============================================================ */
html[dir="rtl"] [data-period-labels] {
  gap: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0;
}
html[dir="rtl"] [data-period-labels] > span {
  white-space: nowrap;
  flex: 0 0 auto;
}
@media (max-width: 420px) {
  html[dir="rtl"] [data-period-labels] {
    font-size: 0.62rem;
    gap: 0.2rem;
  }
}

/* ============================================================
 * TABLET NAV (768px – 1023px).
 * The desktop link row + language switcher + Request Demo CTA
 * together are wider than a tablet viewport — especially in
 * Kurdish/Arabic, where the link labels are long — so the CTA
 * was pushed off the edge and clipped. Collapse to the same
 * hamburger used on phones (it already holds those links and
 * the language options) and let the CTA keep its place.
 * ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-nav-links,
  .site-nav-actions > .site-language-switcher {
    display: none !important;
  }

  .site-mobile-menu-button {
    display: inline-flex !important;
  }

  .site-mobile-menu {
    display: block;
  }

  .site-nav-inner {
    gap: 0.85rem;
    padding-inline: 1.25rem !important;
  }

  /* Actions sit at the far edge; the CTA shrinks rather than clips. */
  .site-nav-actions {
    margin-inline-start: auto;
    gap: 0.6rem;
    min-width: 0;
  }

  .site-nav-actions > .site-nav-cta {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 2.85rem;
    padding: 0.7rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .site-mobile-menu-panel {
    width: min(70vw, 22rem);
  }
}

/* ============================================================
 * Home-page system preview — sidebar nav.
 * Mirrors the live system sidebar (icon + label, caret on the
 * items that have sub-pages). Ten modules have to fit a short
 * column, so rows are compact and labels never wrap.
 * ============================================================ */
.dashboard-preview-nav__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.85rem;
  padding: 0.4rem 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.dashboard-preview-nav__item > span:not(.material-symbols-outlined) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-preview-nav__item .material-symbols-outlined {
  font-size: 0.95rem;
  flex: 0 0 auto;
}
.dashboard-preview-nav__caret {
  margin-inline-start: auto;
  opacity: 0.55;
  font-size: 0.85rem !important;
}
.dashboard-preview-nav__item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.dashboard-preview-nav__item.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}
.dashboard-preview-nav__item.is-active .dashboard-preview-nav__caret { opacity: 0.4; }

/* RTL: labels and carets follow the reading direction. */
html[dir="rtl"] .dashboard-preview-nav__item { text-align: right; }
