:root {
  --page-bg: #f4fbfb;
  --page-bg-deep: #e6f2f1;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: rgba(250, 253, 253, 0.92);
  --panel-border: rgba(10, 107, 116, 0.14);
  --panel-border-strong: rgba(10, 107, 116, 0.24);
  --ink: #184c55;
  --muted: #647c81;
  --accent: #0a6b74;
  --accent-deep: #084f56;
  --accent-soft: #dcefed;
  --accent-mist: rgba(10, 107, 116, 0.08);
  --success: #0c6d54;
  --danger: #8a3d35;
  --shadow: 0 30px 64px rgba(12, 74, 80, 0.14);
  --shadow-soft: 0 16px 34px rgba(12, 74, 80, 0.09);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --font-ui-ar: "Cairo", sans-serif;
  --font-ui-en: "Space Grotesk", sans-serif;
  --font-icon: "Material Symbols Rounded";
}

html {
  min-height: 100%;
  font-size: 14px;
  background:
    radial-gradient(circle at top left, rgba(10, 107, 116, 0.13), transparent 32%),
    radial-gradient(circle at center left, rgba(149, 207, 214, 0.22), transparent 22%),
    radial-gradient(circle at bottom right, rgba(10, 107, 116, 0.08), transparent 28%),
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg-deep) 100%);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  padding-bottom: 4.9rem;
}

body[data-loading="true"] {
  cursor: progress;
}

body[data-loading="true"]::after {
  content: "";
  position: fixed;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 32%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 107, 116, 0.05), rgba(10, 107, 116, 0.95), rgba(94, 205, 188, 0.9));
  box-shadow: 0 0 18px rgba(10, 107, 116, 0.18);
  animation: top-progress 1.15s ease-in-out infinite;
  z-index: 1800;
  pointer-events: none;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

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

@keyframes soft-glow {
  from {
    box-shadow: 0 0 0 rgba(12, 74, 80, 0);
  }

  to {
    box-shadow: var(--shadow-soft);
  }
}

@keyframes float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes pulse-halo {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(1);
  }

  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

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

@keyframes top-progress {
  0% {
    transform: translateX(-120%);
  }

  50% {
    transform: translateX(95%);
  }

  100% {
    transform: translateX(260%);
  }
}

body.app-page::before {
  content: "";
  position: fixed;
  inset: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(149, 207, 214, 0.18), transparent 24%),
    radial-gradient(circle at center right, rgba(123, 203, 190, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(240, 250, 249, 0.34));
  z-index: -1;
  pointer-events: none;
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(10, 107, 116, 0.16), transparent 22%),
    radial-gradient(circle at 84% 24%, rgba(255, 173, 132, 0.2), transparent 20%),
    radial-gradient(circle at 72% 76%, rgba(94, 205, 188, 0.13), transparent 24%),
    linear-gradient(180deg, rgba(251, 255, 255, 0.92), rgba(230, 244, 243, 0.88));
  z-index: -1;
  pointer-events: none;
}

html[lang="ar"] body {
  font-family: var(--font-ui-ar);
}

html[lang="en"] body {
  font-family: var(--font-ui-en);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.8), 0 0 0 0.28rem rgba(10, 107, 116, 0.2);
}

.brand-icon,
.material-symbols-rounded {
  font-family: var(--font-icon);
  font-weight: normal;
  font-style: normal;
  font-size: 1.22rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.is-busy {
  cursor: progress !important;
  pointer-events: none;
}

.busy-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.busy-inline-compact {
  gap: 0;
}

.busy-spinner {
  width: 1rem;
  height: 1rem;
  border: 0.16rem solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.72s linear infinite;
  flex: 0 0 auto;
}

.busy-label {
  font-weight: 800;
}

.is-busy-compact .busy-spinner {
  width: 0.8rem;
  height: 0.8rem;
  border-width: 0.13rem;
}

a.is-busy,
button.is-busy,
input.is-busy,
.btn.is-busy {
  opacity: 0.96;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 140;
  margin: 0;
  padding: 0.48rem 0 0.38rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(10, 107, 116, 0.08);
  box-shadow: 0 4px 20px rgba(13, 76, 82, 0.04);
  overflow: visible;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.95rem;
  min-height: 4.55rem;
  overflow: visible;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark:hover {
  color: var(--accent-deep);
}

.brand-logo {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-copy strong {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 0.95;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1.05;
}

html[lang="ar"] .brand-copy small {
  letter-spacing: 0.05em;
}

.nav-collapse-shell {
  flex: 1;
}

.nav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  overflow: visible;
}

.nav-toolbar-public {
  justify-content: flex-end;
}

.nav-public-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.62rem 0.92rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
  font-size: 0.93rem;
}

.nav-public-link:hover {
  background: rgba(10, 107, 116, 0.08);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.nav-menu-list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.2rem;
  flex: 1;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-link-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #27393d;
  font-weight: 700;
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-link-shell .material-symbols-rounded {
  font-size: 0.82rem;
}

.nav-link-text {
  display: none;
}

.nav-link-shell:hover,
.nav-link-shell.is-active {
  color: var(--accent-deep) !important;
  background: transparent;
  transform: translateY(-1px);
}

.nav-link-shell.is-active {
  box-shadow: none;
}

.top-icon-nav {
  overflow-x: auto;
  scrollbar-width: none;
}

.top-icon-nav::-webkit-scrollbar {
  display: none;
}

.nav-toolbar-aux {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-switch {
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  transition: 180ms ease;
  font-size: 0.93rem;
}

.lang-link:hover {
  color: var(--ink);
  background: rgba(10, 107, 116, 0.08);
}

.lang-link.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: var(--shadow-soft);
}

.user-flyout {
  position: relative;
}

.user-flyout-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  direction: ltr;
  min-height: 3rem;
  padding: 0.28rem 0.45rem 0.28rem 0.82rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.user-flyout-chevron {
  color: #70838a;
  transition: transform 180ms ease;
}

.user-flyout-name {
  flex: 1;
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffd9c0, #ffe9db 55%, #f8f4ee);
  color: #163944;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.user-avatar-lg {
  width: 3rem;
  height: 3rem;
  font-size: 1.02rem;
}

.user-flyout-panel {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.8rem);
  width: min(22rem, calc(100vw - 2rem));
  padding: 1.15rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 56px rgba(12, 74, 80, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 500;
}

.user-flyout-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.9rem;
  width: 100%;
  height: 0.9rem;
}

.user-flyout:hover .user-flyout-panel,
.user-flyout:focus-within .user-flyout-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-flyout:hover .user-flyout-chevron,
.user-flyout:focus-within .user-flyout-chevron {
  transform: rotate(180deg);
}

.user-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(10, 107, 116, 0.1);
}

.user-panel-copy {
  display: grid;
  flex: 1;
  gap: 0.08rem;
}

.user-panel-copy strong {
  font-size: 1.2rem;
}

.user-panel-copy span {
  color: var(--muted);
  font-size: 0.96rem;
}

.user-panel-links {
  display: grid;
  gap: 0.35rem;
}

.user-panel-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  direction: ltr;
  gap: 0.9rem;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.user-panel-link:hover {
  background: rgba(10, 107, 116, 0.08);
  color: var(--accent-deep);
  transform: translateX(-2px);
}

html[dir="ltr"] .user-panel-link:hover {
  transform: translateX(2px);
}

.user-panel-link .material-symbols-rounded {
  order: 2;
  margin-left: auto;
  flex-shrink: 0;
  color: #5f7480;
}

.user-panel-link span:last-child {
  order: 1;
  flex: 1;
}

.user-panel-footer {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(10, 107, 116, 0.1);
}

.user-panel-logout {
  display: block;
}

.user-panel-logout .user-panel-link {
  width: 100%;
}

.user-panel-link-danger {
  color: #d24d5a;
}

.user-panel-link-danger .material-symbols-rounded {
  color: #d24d5a;
}

html[dir="rtl"] .user-flyout-name,
html[dir="rtl"] .user-panel-copy,
html[dir="rtl"] .user-panel-link span:last-child {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] .user-flyout-name,
html[dir="ltr"] .user-panel-copy,
html[dir="ltr"] .user-panel-link span:last-child {
  direction: ltr;
  text-align: left;
}

.app-shell {
  position: relative;
  z-index: 0;
}

.app-main {
  padding-top: 1rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1.1fr);
  gap: 1.5rem;
  padding: 2.25rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(137, 201, 208, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 248, 0.94));
  box-shadow: var(--shadow);
  animation: fade-rise 520ms ease both;
}

.auth-page .hero-panel {
  min-height: calc(100vh - 14rem);
  align-items: stretch;
}

.auth-centered-page .app-main {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding-top: 0.25rem;
}

.auth-centered-page {
  padding-bottom: 0;
}

.auth-centered-page .footer-shell {
  display: none;
}

.auth-centered-shell {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 0.35rem 0 0.75rem;
  animation: fade-rise 540ms ease both;
}

.auth-card {
  width: min(100%, 29rem);
  padding: 1.7rem 1.75rem 1.45rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 48px rgba(12, 74, 80, 0.12);
  backdrop-filter: blur(14px);
  animation: fade-rise 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-login-card {
  position: relative;
  overflow: hidden;
}

.auth-login-card::before,
.auth-forgot-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -3rem;
  inset-block-start: -3rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 107, 116, 0.12), transparent 68%);
  animation: pulse-halo 7s ease-in-out infinite;
  pointer-events: none;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-card-header {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.auth-card-header-centered {
  margin-bottom: 0.7rem;
}

.auth-logo-badge,
.auth-icon-badge {
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10, 107, 116, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(10, 107, 116, 0.08);
}

.auth-icon-badge .material-symbols-rounded {
  font-size: 2.8rem;
  color: var(--accent);
}

.auth-brand-text {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
}

.auth-brand-text strong {
  font-size: 2rem;
  line-height: 1;
}

.auth-brand-text span {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.auth-card-copy {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  text-align: center;
}

.auth-card-copy h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.1;
}

.auth-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.98rem;
}

.auth-card-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form-group {
  display: grid;
  gap: 0.42rem;
}

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

.auth-input {
  min-height: 3.5rem;
  padding-inline: 3rem 1rem;
  border-radius: 16px;
  border-color: rgba(10, 107, 116, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.auth-input-icon {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  color: #7b8f94;
  pointer-events: none;
}

.auth-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: -0.1rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.auth-remember .form-check-input {
  margin: 0;
  flex: 0 0 auto;
}

.auth-remember .form-check-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.auth-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.auth-inline-link:hover {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  min-height: 3.25rem;
  margin-top: 0.05rem;
}

.auth-status-card {
  margin-bottom: 1rem;
  border-radius: 18px;
}

.auth-meta-card {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 18px;
  background: rgba(246, 252, 251, 0.92);
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-meta-card strong {
  color: var(--ink);
}

.auth-card-footer {
  display: grid;
  justify-items: center;
  margin-top: 1.2rem;
}

.auth-secondary-actions {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.auth-inline-form {
  display: contents;
}

.auth-secondary-btn {
  min-width: 12rem;
  justify-content: center;
}

.auth-code-input {
  letter-spacing: 0.16em;
  font-weight: 800;
}

.auth-demo-panel {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 107, 116, 0.08);
}

.auth-demo-panel summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.auth-demo-panel summary::-webkit-details-marker {
  display: none;
}

.auth-demo-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.auth-demo-item {
  display: grid;
  gap: 0.18rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 18px;
  background: rgba(247, 252, 251, 0.82);
}

.auth-demo-item span,
.auth-demo-item code {
  color: var(--muted);
}

.auth-demo-item code {
  width: fit-content;
  padding: 0.18rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(10, 107, 116, 0.06);
}

html[dir="rtl"] .auth-input {
  padding-inline: 1rem 3rem;
}

html[dir="rtl"] .auth-input-icon {
  inset-inline-start: auto;
  inset-inline-end: 1rem;
}

html[dir="rtl"] .auth-back-link .material-symbols-rounded {
  transform: scaleX(-1);
}

.auth-register-page .app-main {
  padding-top: 1rem;
}

.register-page-shell {
  gap: 1.3rem;
  padding-bottom: 1rem;
}

.register-toolbar {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 1.2rem 1.45rem 1.1rem;
  border-radius: 28px;
}

.register-toolbar::after {
  display: none;
}

.register-toolbar-copy {
  display: grid;
  gap: 0.28rem;
  max-width: none;
}

.register-title {
  max-width: 24ch;
  margin: 0.15rem 0 0.2rem;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}

html[lang="ar"] .register-title {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
}

.register-copy {
  max-width: 60rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.register-actions {
  grid-column: auto;
  width: auto;
  margin-top: 0.1rem;
}

.register-form-shell {
  display: grid;
  gap: 0.95rem;
  padding: 1.2rem;
}

.register-form-shell .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.register-photo-cell {
  grid-row: span 2;
  align-self: start;
}

.register-intro-panel {
  background:
    radial-gradient(circle at top left, rgba(10, 107, 116, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.98);
}

.register-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: center;
}

.register-intro-copy {
  display: grid;
  gap: 0.35rem;
}

.register-intro-copy strong {
  font-size: 1.06rem;
}

.register-intro-copy p,
.register-note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.register-intro-points {
  display: grid;
  gap: 0.6rem;
}

.register-intro-points span,
.register-note-card {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(10, 107, 116, 0.09);
  border-radius: 20px;
  background: rgba(246, 252, 251, 0.9);
}

.register-intro-points span {
  color: var(--ink);
  font-weight: 700;
}

.register-form-shell .section-block {
  border-radius: 24px;
}

.register-form-shell .form-grid-span-2 {
  grid-column: 1 / -1;
}

.register-form-shell .section-head h2 {
  font-size: 1.08rem;
}

.register-form-shell .form-label {
  font-size: 0.93rem;
}

.register-note-card {
  display: grid;
  gap: 0.3rem;
  align-content: center;
  min-height: 100%;
}

.register-note-card strong {
  font-size: 0.96rem;
}

.register-submit-row {
  margin-top: 0.45rem;
}

.btn-register-submit {
  min-width: 12rem;
  justify-content: center;
}

.hero-copy h1,
.page-title {
  margin: 0.6rem 0 0.75rem;
  font-size: clamp(2.15rem, 4.4vw, 4rem);
  line-height: 1.12;
}

.hero-copy p,
.page-copy {
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.page-actions,
.table-actions,
.form-actions,
.filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-actions {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 1rem;
  align-self: stretch;
}

.form-actions {
  margin-top: 1.7rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(10, 107, 116, 0.1);
}

html[dir="rtl"] .page-actions,
html[dir="rtl"] .form-actions,
html[dir="rtl"] .filter-actions {
  justify-content: flex-end;
}

html[dir="ltr"] .page-actions,
html[dir="ltr"] .form-actions,
html[dir="ltr"] .filter-actions {
  justify-content: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .callout-label,
html[lang="ar"] .stat-label,
html[lang="ar"] .metric-label {
  letter-spacing: 0;
  text-transform: none;
}

.hero-callout,
.stat-card,
.info-card,
.metric-card,
.filter-panel,
.data-table-panel,
.form-shell,
.section-block,
.quick-link-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-callout {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.7rem;
}

.brand-callout {
  background:
    radial-gradient(circle at top right, rgba(10, 107, 116, 0.1), transparent 38%),
    var(--surface-strong);
}

.callout-label,
.stat-label,
.metric-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.callout-metrics {
  display: grid;
  gap: 1rem;
}

.callout-metrics div {
  display: grid;
  gap: 0.15rem;
}

.callout-metrics strong,
.metric-value,
.stat-value {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.callout-metrics span,
.user-stack span,
.metadata-stack span,
.helper-text,
.empty-state p,
.quick-link-card p {
  color: var(--muted);
}

.stats-grid,
.content-grid,
.metrics-strip,
.quick-links-grid,
.filter-grid,
.form-grid,
.role-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

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

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

.filter-grid,
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.form-grid-span-2 {
  grid-column: 1 / -1;
}

.role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.stat-card,
.info-card,
.quick-link-card {
  padding: 1.5rem;
}

.metric-card {
  display: grid;
  align-content: space-between;
  justify-items: center;
  min-height: 176px;
  padding: 1.8rem 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 255, 255, 0.92));
}

.stat-card {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.stat-head,
.section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.info-card h2,
.section-head h2,
.empty-state h2 {
  margin: 0;
}

.info-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

html[dir="rtl"] .info-card ul {
  padding-left: 0;
  padding-right: 1.2rem;
}

.info-card li + li {
  margin-top: 0.5rem;
}

.dashboard-alert,
.platform-alert {
  margin-top: 1rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.page-shell {
  display: grid;
  gap: 1.75rem;
  animation: fade-rise 460ms ease both;
}

.page-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  align-items: center;
  gap: 1.2rem;
  padding: 2.1rem 2.25rem;
  overflow: hidden;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(137, 201, 208, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 249, 248, 0.94));
  box-shadow: var(--shadow);
  animation: fade-rise 520ms ease both;
}

.page-toolbar::after {
  content: "";
  position: absolute;
  inset-inline-start: -8rem;
  inset-block-end: -8rem;
  width: 21rem;
  height: 21rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(85, 174, 182, 0.16), transparent 70%);
  pointer-events: none;
}

.page-toolbar > * {
  position: relative;
  z-index: 1;
}

.page-toolbar-copy {
  max-width: 52rem;
}

.btn-accent,
.btn-outline-panel,
.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.35rem;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}

.btn-accent {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
}

.btn-accent:hover {
  border-color: #063f45;
  background: linear-gradient(135deg, var(--accent-deep), #063f45);
  color: #fff;
}

.btn-outline-panel {
  border: 1px solid rgba(10, 107, 116, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.btn-light {
  border: 1px solid rgba(10, 107, 116, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.btn-outline-panel:hover,
.btn-light:hover {
  background: var(--accent-mist);
  transform: translateY(-1px);
}

.filter-panel,
.data-table-panel,
.form-shell,
.section-block {
  padding: 1.45rem 1.55rem;
}

.toggle-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.switch-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.table-shell {
  overflow-x: auto;
}

.user-table {
  margin: 0;
}

.user-table th {
  padding: 1.15rem 0.95rem;
  border-bottom-width: 1px;
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
}

.user-table td {
  padding: 1.15rem 0.95rem;
  vertical-align: middle;
}

.user-table tbody tr + tr td {
  border-top: 1px solid rgba(10, 107, 116, 0.08);
}

.user-stack,
.metadata-stack {
  display: grid;
  gap: 0.18rem;
}

.tag-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 107, 116, 0.1);
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 0.46rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
}

.status-active {
  color: var(--success);
  background: rgba(12, 109, 84, 0.12);
}

.status-inactive {
  color: var(--danger);
  background: rgba(138, 61, 53, 0.12);
}

.inline-form {
  display: inline-flex;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1rem 0.35rem;
}

.empty-state .material-symbols-rounded {
  font-size: 2rem;
}

.section-block + .section-block {
  margin-top: 1rem;
}

.profile-photo-card {
  display: grid;
  grid-template-columns: minmax(6.2rem, 6.8rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 251, 0.92));
}

.profile-photo-trigger {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.profile-photo-preview {
  display: grid;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 107, 116, 0.08);
  box-shadow: inset 0 0 0 1px rgba(10, 107, 116, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-photo-trigger:hover .profile-photo-preview,
.profile-photo-trigger:focus-visible .profile-photo-preview {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(10, 107, 116, 0.12), var(--shadow-soft);
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-deep);
  background: radial-gradient(circle at top, rgba(137, 201, 208, 0.32), rgba(255, 255, 255, 0.92));
}

.profile-photo-trigger-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.profile-photo-trigger-copy .material-symbols-rounded {
  font-size: 1rem;
}

.profile-photo-meta {
  display: grid;
  gap: 0.28rem;
}

.profile-photo-meta strong {
  font-size: 0.98rem;
}

.profile-photo-meta .form-control {
  max-width: 26rem;
}

.profile-photo-help {
  font-size: 0.88rem;
  line-height: 1.6;
}

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

.photo-validation-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.2rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  font-weight: 600;
}

.photo-validation-status[data-state="valid"] {
  color: var(--success);
}

.photo-validation-status[data-state="invalid"] {
  color: var(--danger);
}

.photo-validation-status[data-state="warning"] {
  color: #8f5f0a;
}

.photo-validation-status[data-state="pending"] {
  color: var(--accent-deep);
}

.role-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
}

.role-card strong {
  font-size: 1rem;
}

.role-card span,
.role-card code {
  color: var(--muted);
  font-size: 0.92rem;
}

.role-card code {
  direction: ltr;
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(10, 107, 116, 0.06);
}

.helper-text {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
}

pre.helper-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}

.audit-json {
  width: min(26rem, 100%);
}

.audit-json summary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 999px;
  background: rgba(10, 107, 116, 0.04);
  color: var(--accent-deep);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.audit-json summary::-webkit-details-marker {
  display: none;
}

.audit-json[open] summary {
  margin-bottom: 0.75rem;
}

.audit-json-content {
  max-width: 26rem;
  max-height: 18rem;
  margin: 0;
  padding: 0.9rem 1rem;
  overflow: auto;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 18px;
  background: rgba(245, 250, 250, 0.94);
  color: #4a6670;
  font-size: 0.9rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.audit-json-empty {
  color: var(--muted);
  font-weight: 600;
}

.quick-link-card {
  display: grid;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: fade-rise 420ms ease both;
}

.quick-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow);
}

.quick-link-card .material-symbols-rounded {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-link-card strong {
  font-size: 1.06rem;
}

.brand-showcase {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-showcase-copy {
  display: grid;
  gap: 0.2rem;
}

.brand-showcase-copy strong {
  font-size: 1.25rem;
}

.auth-brand-logo {
  width: 5.6rem;
  height: 5.6rem;
}

.auth-hero {
  position: relative;
  overflow: hidden;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: 58%;
  inset-block-start: -10%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 107, 116, 0.12), transparent 68%);
  pointer-events: none;
}

.auth-copy {
  position: relative;
  z-index: 1;
}

.auth-info-card {
  margin-top: 1.2rem;
}

.auth-form-shell {
  display: grid;
  align-content: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 249, 0.96));
}

.btn-auth-submit {
  min-width: 12rem;
  justify-content: center;
}

.demo-grid {
  grid-template-columns: 1fr;
}

.demo-card {
  gap: 0.35rem;
}

.auth-page .container-xl {
  max-width: 1280px;
}

.footer-shell {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 30;
  padding: 0.9rem 0 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(10, 107, 116, 0.1);
  box-shadow: 0 -8px 24px rgba(12, 74, 80, 0.05);
}

.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #748b8f;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-page .app-main {
  padding-top: 1.6rem;
}

.landing-page .app-main {
  padding-top: 1.65rem;
}

.landing-shell {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  animation: fade-rise 520ms ease both;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.88fr);
  gap: 1.1rem;
  align-items: center;
  min-height: 32rem;
  padding: 2rem 2.15rem;
  overflow: hidden;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top left, rgba(149, 207, 214, 0.26), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 203, 176, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 251, 250, 0.94));
  box-shadow: var(--shadow);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -6rem;
  inset-block-start: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 107, 116, 0.14), transparent 68%);
  animation: pulse-halo 6s ease-in-out infinite;
}

.landing-hero-copy,
.landing-hero-visual {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  display: grid;
  gap: 0.95rem;
  align-content: center;
}

.landing-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  padding: 0.72rem 0.92rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.landing-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.8rem;
  background: linear-gradient(145deg, rgba(10, 107, 116, 0.12), rgba(255, 255, 255, 0.92));
}

.landing-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
}

.landing-brand-mark img {
  width: 3rem;
  height: 3rem;
}

.landing-brand-copy {
  display: grid;
  gap: 0.08rem;
}

.landing-brand-copy strong {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1;
}

.landing-kicker,
.landing-cta-eyebrow {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
}

.landing-brand-copy small {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-size: 0.9rem;
}

.landing-title {
  max-width: 21ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  text-wrap: balance;
}

.landing-copy {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.82;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.btn-landing-primary,
.btn-landing-secondary {
  min-width: 12.8rem;
  justify-content: center;
}

.landing-hero-visual {
  display: grid;
  gap: 1rem;
  align-content: center;
  min-height: 100%;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.landing-orb-primary {
  inset-inline-end: 18%;
  inset-block-start: 16%;
  width: 8rem;
  height: 8rem;
  background: rgba(10, 107, 116, 0.16);
  animation: float-drift 7s ease-in-out infinite;
}

.landing-orb-secondary {
  inset-inline-start: 8%;
  inset-block-end: 14%;
  width: 6rem;
  height: 6rem;
  background: rgba(255, 186, 146, 0.24);
  animation: float-drift 8.5s ease-in-out infinite reverse;
}

.landing-visual-card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  max-width: 22rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  animation:
    fade-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) both,
    float-drift 9s ease-in-out 900ms infinite;
}

.landing-visual-card .material-symbols-rounded {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 1.2rem;
  background: rgba(10, 107, 116, 0.1);
  color: var(--accent);
  font-size: 1.55rem;
}

.landing-visual-card strong {
  font-size: 1.08rem;
}

.landing-visual-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.95rem;
}

.landing-visual-card-top {
  justify-self: start;
  margin-inline-start: 1rem;
}

.landing-visual-card-bottom {
  justify-self: end;
  margin-inline-end: 1rem;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-stat-card {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-height: 13.5rem;
  padding: 1.35rem 1.15rem;
  text-align: center;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: fade-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.landing-stat-card .material-symbols-rounded {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(10, 107, 116, 0.08);
  color: var(--accent);
  font-size: 1.55rem;
}

.landing-stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.landing-stat-value {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1;
}

.landing-stat-card small {
  max-width: 18rem;
  color: var(--muted);
  line-height: 1.75;
}

.landing-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.landing-cta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-cta-card {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  min-height: 13.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  animation: fade-rise 780ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.landing-cta-card-primary {
  background:
    radial-gradient(circle at top left, rgba(10, 107, 116, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(245, 253, 252, 0.98), rgba(255, 255, 255, 0.94));
}

.landing-cta-card h2 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.28rem, 2.4vw, 1.8rem);
}

.landing-cta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.96rem;
}

.landing-brand-lockup {
  animation: fade-rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 40ms;
}

.landing-title {
  animation: fade-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 140ms;
}

.landing-copy {
  animation: fade-rise 820ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 250ms;
}

.landing-actions {
  animation: fade-rise 880ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 380ms;
}

.landing-visual-card-top {
  animation-delay: 240ms, 1.1s;
}

.landing-visual-card-bottom {
  animation-delay: 420ms, 1.35s;
}

.landing-stat-card:nth-child(1) {
  animation-delay: 220ms;
}

.landing-stat-card:nth-child(2) {
  animation-delay: 340ms;
}

.landing-stat-card:nth-child(3) {
  animation-delay: 460ms;
}

.landing-note {
  animation: fade-rise 740ms ease both;
  animation-delay: 500ms;
}

.landing-cta-card:nth-child(1) {
  animation-delay: 540ms;
}

.landing-cta-card:nth-child(2) {
  animation-delay: 660ms;
}

html[lang="ar"] .landing-title {
  max-width: 15.5ch;
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1.22;
}

html[lang="ar"] .landing-copy {
  max-width: 37rem;
  font-size: 1rem;
  line-height: 1.95;
}

html[lang="ar"] .landing-brand-copy strong {
  font-size: clamp(1.52rem, 2.3vw, 2.05rem);
}

html[dir="rtl"] .landing-shell,
html[dir="rtl"] .landing-hero-copy,
html[dir="rtl"] .landing-copy,
html[dir="rtl"] .landing-cta-card,
html[dir="rtl"] .landing-note {
  text-align: right;
}

html[dir="ltr"] .landing-shell,
html[dir="ltr"] .landing-hero-copy,
html[dir="ltr"] .landing-copy,
html[dir="ltr"] .landing-cta-card,
html[dir="ltr"] .landing-note {
  text-align: left;
}

html[dir="rtl"] .landing-actions {
  justify-content: flex-start;
}

html[dir="ltr"] .landing-actions {
  justify-content: flex-start;
}

html[dir="rtl"] .landing-visual-card-top {
  justify-self: end;
  margin-inline-start: 0;
  margin-inline-end: 1rem;
}

html[dir="rtl"] .landing-visual-card-bottom {
  justify-self: start;
  margin-inline-end: 0;
  margin-inline-start: 1rem;
}

html[dir="rtl"] .landing-visual-card .material-symbols-rounded {
  justify-self: end;
}

html[dir="ltr"] .landing-visual-card .material-symbols-rounded {
  justify-self: start;
}

.dashboard-shell {
  display: grid;
  gap: 1.8rem;
}

.dashboard-hero,
.dashboard-stat,
.dashboard-module {
  animation: fade-rise 520ms ease both;
  animation-delay: calc(var(--reveal-order, 0) * 70ms);
}

.dashboard-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 2.1rem 1.5rem 0.4rem;
}

.dashboard-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.08;
}

.dashboard-copy {
  max-width: 48rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.9;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-stat {
  min-height: 165px;
  padding: 1.4rem 1rem;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 253, 253, 0.9));
}

.dashboard-stat .material-symbols-rounded {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: rgba(10, 107, 116, 0.08);
  color: var(--accent);
  font-size: 1.55rem;
}

.dashboard-modules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.dashboard-module {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.9rem;
  min-height: 272px;
  padding: 1.8rem 1.4rem;
  border: 1px solid rgba(10, 107, 116, 0.1);
  border-radius: 34px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.dashboard-module:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 107, 116, 0.18);
  box-shadow: var(--shadow);
}

.dashboard-module strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.25;
}

.dashboard-module-note {
  max-width: 18rem;
  color: rgba(24, 76, 85, 0.72);
  font-size: 0.96rem;
  line-height: 1.8;
}

.dashboard-module-icon {
  font-size: 5.2rem;
  line-height: 1;
}

.dashboard-module-users {
  background: linear-gradient(180deg, rgba(231, 241, 255, 0.95), rgba(243, 248, 255, 0.92));
}

.dashboard-module-users .dashboard-module-icon,
.dashboard-module-users strong {
  color: #4f7bf0;
}

.dashboard-module-geography {
  background: linear-gradient(180deg, rgba(229, 247, 242, 0.96), rgba(242, 252, 249, 0.92));
}

.dashboard-module-geography .dashboard-module-icon,
.dashboard-module-geography strong {
  color: #31c79a;
}

.dashboard-module-roles {
  background: linear-gradient(180deg, rgba(224, 245, 244, 0.96), rgba(239, 251, 250, 0.92));
}

.dashboard-module-roles .dashboard-module-icon,
.dashboard-module-roles strong {
  color: #0a9ba7;
}

.dashboard-module-settings {
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(252, 253, 255, 0.92));
}

.dashboard-module-settings .dashboard-module-icon,
.dashboard-module-settings strong {
  color: #425268;
}

.dashboard-module-notifications {
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.96), rgba(255, 248, 247, 0.92));
}

.dashboard-module-notifications .dashboard-module-icon,
.dashboard-module-notifications strong {
  color: #ff6a6f;
}

.dashboard-module-audit {
  background: linear-gradient(180deg, rgba(238, 235, 255, 0.96), rgba(248, 247, 255, 0.92));
}

.dashboard-module-audit .dashboard-module-icon,
.dashboard-module-audit strong {
  color: #6957e8;
}

.dashboard-module-guide {
  background: linear-gradient(180deg, rgba(246, 240, 255, 0.96), rgba(252, 249, 255, 0.92));
}

.dashboard-module-guide .dashboard-module-icon,
.dashboard-module-guide strong {
  color: #9a52ee;
}

html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-callout,
html[dir="rtl"] .info-card,
html[dir="rtl"] .stat-card,
html[dir="rtl"] .metric-card,
html[dir="rtl"] .filter-panel,
html[dir="rtl"] .data-table-panel,
html[dir="rtl"] .form-shell,
html[dir="rtl"] .quick-link-card,
html[dir="rtl"] .page-toolbar {
  text-align: right;
}

@media (max-width: 1199.98px) {
  .nav-toolbar {
    gap: 0.8rem;
  }

  .lang-link span:last-child {
    display: none;
  }

  .page-toolbar,
  .hero-panel {
    grid-template-columns: 1fr;
  }

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

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

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-title {
    max-width: none;
  }

  .landing-stats-grid,
  .landing-cta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .stats-grid,
  .content-grid,
  .metrics-strip,
  .quick-links-grid,
  .dashboard-stats-grid,
  .dashboard-modules-grid,
  .landing-stats-grid,
  .landing-cta-strip,
  .register-intro-grid,
  .filter-grid,
  .form-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .profile-photo-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-photo-meta .form-control {
    max-width: none;
  }

  .nav-shell,
  .nav-toolbar,
  .nav-toolbar-aux,
  .page-toolbar,
  .table-actions,
  .footer-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    padding-bottom: 0.85rem;
  }

  .nav-shell {
    min-height: auto;
  }

  .nav-toolbar-aux {
    width: 100%;
  }

  .nav-menu-list,
  .nav-item,
  .nav-link-shell {
    width: auto;
  }

  .top-icon-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .lang-switch,
  .user-flyout-trigger,
  .nav-public-link {
    width: 100%;
    justify-content: center;
  }

  .user-flyout-panel {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    display: none;
  }

  .user-flyout:hover .user-flyout-panel,
  .user-flyout:focus-within .user-flyout-panel {
    display: block;
  }

  .auth-brand-logo {
    width: 4.7rem;
    height: 4.7rem;
  }

  .auth-card {
    width: min(100%, 100%);
    padding: 1.35rem 1rem 1.15rem;
    border-radius: 26px;
  }

  .auth-link-row {
    align-items: flex-start;
    flex-direction: column;
  }

  body.app-page::before {
    inset: 0;
  }

  .dashboard-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .dashboard-copy {
    font-size: 1rem;
  }

  .dashboard-module {
    min-height: 230px;
  }

  .dashboard-module-icon {
    font-size: 4.2rem;
  }

  .landing-hero {
    padding: 1.5rem;
  }

  html[lang="ar"] .landing-title,
  html[lang="en"] .landing-title {
    max-width: none;
  }

  .landing-brand-lockup {
    width: 100%;
    justify-content: center;
    border-radius: 28px;
  }

  .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-landing-primary,
  .btn-landing-secondary {
    width: 100%;
  }

  .landing-hero-visual {
    min-height: 0;
  }

  .landing-visual-card-top,
  .landing-visual-card-bottom {
    justify-self: stretch;
    margin-inline: 0;
  }
}

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

.notification-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.notification-channel-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 252, 0.92));
}

.notification-channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-switch {
  margin: 0;
}

.compact-form-grid {
  gap: 0.9rem;
}

.checkbox-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(10, 107, 116, 0.12);
  border-radius: 999px;
  background: rgba(10, 107, 116, 0.04);
  cursor: pointer;
}

.checkbox-chip input {
  margin: 0;
}

.notification-switch-grid {
  display: grid;
  gap: 0.85rem;
}

.guide-summary-grid,
.guide-sections-grid {
  margin-top: 1rem;
}

.guide-step-grid,
.guide-rule-grid,
.guide-status-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-rule-grid,
.guide-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-step-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid rgba(10, 107, 116, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 252, 0.92));
  box-shadow: var(--shadow-soft);
}

.guide-step-card strong,
.guide-rule-card strong,
.guide-status-card h2,
.guide-section-card h2 {
  color: var(--ink-strong);
}

.guide-step-card p,
.guide-rule-card p {
  margin: 0;
  color: var(--muted);
}

.guide-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.guide-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(10, 107, 116, 0.12);
  color: var(--accent-deep);
  font-weight: 700;
}

.guide-step-head .material-symbols-rounded,
.guide-rule-card .material-symbols-rounded {
  color: var(--accent);
}

.guide-status-card,
.guide-section-card {
  display: grid;
  gap: 0.8rem;
}

@media (max-width: 1200px) {
  .guide-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .notification-channel-grid {
    grid-template-columns: 1fr;
  }

  .notification-channel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-rule-grid,
  .guide-status-grid,
  .guide-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
