@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('../../Fonts/TheYearofHandicrafts-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('../../Fonts/TheYearofHandicrafts-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('../../Fonts/TheYearofHandicrafts-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('../../Fonts/TheYearofHandicrafts-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Year of Handicrafts';
  src: url('../../Fonts/TheYearofHandicrafts-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-primary: #0e5aef;
  --brand-primary-dark: #0b49c4;
  --brand-primary-hover: #0a4dd0;
  --brand-secondary: #036ed2;
  --brand-primary-light: #eaf2ff;
  --gray-100: #f7f8fa;
  --gray-200: #e5e7eb;
  --gray-500: #6b7381;
  --gray-400: #9ca3af;
  --text-primary: #111827;
  --white: #ffffff;
  --error: #ee1f11;
  --success: #23b062;
  --success-bg: #effbf3;
  --success-text: #0c6634;
  --warning: #f4b400;
  --warning-bg: #f4edcc;
  --warning-text: #7e8a00;
  --info-text: #082d72;
  --stopped-bg: #f7f8fa;
  --stopped-text: #6b7381;
  --draft-bg: #f4edcc;
  --draft-text: #7e8a00;
  --danger-bg: #fdecee;
  --danger-text: #b42318;
  --sidebar-width: 260px;
  --radius: 12px;
  --font: 'The Year of Handicrafts', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--text-primary);
  direction: rtl;
}

a { text-decoration: none; color: inherit; }

.provider-shell {
  min-height: 100vh;
  display: block;
  position: relative;
}

.provider-sidebar {
  width: var(--sidebar-width);
  background: var(--brand-primary-hover);
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  padding: 8px 16px 16px;
  z-index: 20;
  border-radius: 16px 0 0 16px;
}

.sidebar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 16px 16px;
  direction: rtl;
}

.sidebar-logo {
  position: relative;
  width: 64px;
  height: 68px;
  flex: 0 0 64px;
}

.sidebar-logo img {
  position: absolute;
  display: block;
}

.sidebar-logo .sidebar-logo__site {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.sidebar-logo .logo-p { width: 48px; height: 47px; left: 19px; top: 0; }
.sidebar-logo .logo-p1 { width: 59px; height: 25px; left: 3px; top: 42px; }
.sidebar-logo .logo-p2 { width: 54px; height: 40px; left: 0; top: 6px; }
.sidebar-logo .logo-p3 { width: 21px; height: 18px; left: 34px; top: 9px; }

.sidebar-brand-text {
  text-align: right;
  flex: 1;
  min-width: 0;
}

.sidebar-brand-text strong {
  display: block;
  font-size: 14px;
  line-height: 16px;
}

.sidebar-brand-text small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: .9;
  line-height: 1.4;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  padding: 0 4px;
}

.sidebar-nav a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  border: 1px solid transparent;
  direction: rtl;
}

.sidebar-nav a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.sidebar-nav a.is-active {
  background: rgba(184, 210, 218, .2);
  border-color: rgba(229, 231, 235, .55);
  box-shadow: 0 0 30px rgba(0,0,0,.06);
  backdrop-filter: blur(20px);
}

.sidebar-logout {
  padding: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.sidebar-logout button {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 40px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #d6c4ff;
  font: inherit;
  cursor: pointer;
  direction: rtl;
}

.sidebar-logout img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: none;
  opacity: .95;
}

.provider-main {
  margin-right: var(--sidebar-width);
  width: auto;
  min-height: 100vh;
  max-width: calc(100% - var(--sidebar-width));
}

html[dir="ltr"] .provider-sidebar {
  right: auto;
  left: 0;
  border-radius: 0 16px 16px 0;
}

html[dir="ltr"] .provider-main {
  margin-right: 0;
  margin-left: var(--sidebar-width);
}

html[dir="ltr"] .sidebar-brand,
html[dir="ltr"] .sidebar-brand-text,
html[dir="ltr"] .sidebar-nav a,
html[dir="ltr"] .sidebar-logout button {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .provider-header,
html[dir="ltr"] .provider-header .hello {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .header-actions {
  direction: rtl; /* لغة | بحث | جرس | أفاتار */
}

html[dir="ltr"] .profile-dropdown {
  left: auto;
  right: 0;
}

html[dir="ltr"] .profile-dropdown__head,
html[dir="ltr"] .profile-dropdown a,
html[dir="ltr"] .profile-dropdown button {
  text-align: left;
}

.lang-toggle {
  display: inline-flex;
  margin: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.lang-btn:hover {
  background: var(--gray-100);
}

.provider-header {
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 40px 0 32px;
  direction: rtl;
}

.provider-header .hello {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  flex: 1;
  min-width: 0;
  text-align: right;
  direction: rtl;
  white-space: nowrap;
  overflow: hidden;
  padding-inline-start: 4px;
}

.provider-header .hello__greet,
.provider-header .hello__name,
.provider-header .hello__emoji {
  flex-shrink: 0;
}

.provider-header .hello__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  /* الترتيب من الشمال لليمين: أفاتار → جرس → بحث → لغة */
  direction: ltr;
}

.header-search {
  width: 240px;
  height: 40px;
  background: var(--gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  direction: rtl;
}

.header-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  text-align: right;
  color: var(--text-primary);
}

.header-search img {
  width: 18px;
  height: 18px;
  opacity: 1;
  flex-shrink: 0;
}

.icon-btn,
.lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--gray-100);
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  cursor: pointer;
}

.icon-btn img {
  width: 18px;
  height: 18px;
  display: block;
}

.lang-btn {
  background: transparent;
  width: 28px;
  height: 28px;
}

.icon-btn .badge {
  position: absolute;
  top: 2px;
  left: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 50px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}

.icon-btn .badge[hidden] {
  display: none !important;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
}

.profile-menu {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
  padding: 12px;
  z-index: 50;
}

.profile-dropdown__head {
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
  text-align: right;
}

.profile-dropdown__head strong {
  display: block;
  font-size: 14px;
}

.profile-dropdown__head span {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.profile-dropdown a,
.profile-dropdown button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--gray-100);
}

.profile-dropdown .is-danger {
  color: var(--error);
}

.provider-content {
  padding: 24px 32px 40px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.home-stats .stat-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 23px 20px 20px;
  border-top: 3px solid transparent;
  min-height: 167px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
}

.home-stats .toned-secondary { border-top-color: var(--brand-secondary); }
.home-stats .toned-success { border-top-color: var(--success); }
.home-stats .toned-warning { border-top-color: var(--warning); }
.home-stats .toned-primary { border-top-color: var(--brand-primary); }

.stat-card__top {
  /* فيجما: أيقونة شمال | عنوان يمين */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
  direction: ltr;
}

.stat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toned-secondary .stat-card__icon { background: var(--brand-secondary); }
.toned-success .stat-card__icon { background: var(--success); }
.toned-warning .stat-card__icon { background: var(--warning); }
.toned-primary .stat-card__icon { background: var(--brand-primary); }

.stat-card__icon img {
  width: 18px;
  height: 18px;
  display: block;
  filter: none;
}

.stat-card__label {
  color: var(--gray-500);
  font-size: 14px;
  text-align: right;
  flex: 1;
}

.stat-card__num {
  font-size: 32px;
  font-weight: 700;
  line-height: 36px;
  margin-bottom: 8px;
  width: 100%;
  text-align: right;
  color: var(--text-primary);
}

.stat-card__hint {
  color: var(--gray-400);
  font-size: 12px;
  width: 100%;
  text-align: right;
  margin-top: auto;
}

.home-table-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}

.home-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.home-table-card__head h2 {
  margin: 0;
  font-size: 18px;
}

.home-table-card__head a {
  color: var(--brand-primary);
  font-size: 14px;
}

.home-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.home-table th,
.home-table td {
  padding: 14px 24px;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  vertical-align: middle;
}

.home-table thead th {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
}

.home-table th:nth-child(1),
.home-table td:nth-child(1) { width: 24%; }
.home-table th:nth-child(2),
.home-table td:nth-child(2) { width: 24%; }
.home-table th:nth-child(3),
.home-table td:nth-child(3) { width: 18%; }
.home-table th:nth-child(4),
.home-table td:nth-child(4) { width: 16%; }
.home-table th:nth-child(5),
.home-table td:nth-child(5) { width: 18%; }

.home-table .muted {
  color: var(--gray-500);
}

.home-table .empty-state {
  text-align: center;
  padding: 48px 24px;
}

.table-link {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
}

.name-cell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  direction: rtl;
}

.name-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50px;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pill-review {
  background: var(--brand-primary-light);
  color: var(--info-text);
}

.pill-accepted {
  background: var(--success-bg);
  color: var(--success-text);
}

.pill-hired {
  background: var(--success-bg);
  color: var(--success-text);
}

.pill-rejected {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.pill-interview {
  background: var(--warning-bg);
  color: var(--warning-text);
}

@media (max-width: 1100px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .provider-sidebar {
    display: none;
  }

  .provider-main {
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .provider-header {
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding: 16px;
    align-items: stretch;
  }
}


.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  direction: rtl;
}

.page-head__title {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.jobs-head .page-head__title {
  display: block;
}

.page-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-head p {
  margin: 4px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.jobs-head .btn-primary {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  white-space: nowrap;
}

.btn-primary:hover { background: var(--brand-primary-dark); }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  height: 44px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  white-space: nowrap;
}

.btn-danger:hover {
  background: #b91c1c;
}

.security-card {
  max-width: none;
}

.security-block {
  margin-bottom: 28px;
}

.security-block__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.security-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
}

.security-fields .form-group {
  margin: 0;
}

.security-danger {
  max-width: 560px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  padding: 20px 22px;
}

.security-danger__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
}

.security-danger__text {
  margin: 0 0 16px;
  color: #9f1239;
  font-size: 13px;
  line-height: 1.7;
}

.filters-card,
.table-card,
.stats-grid .stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* فيجما: بحث + فلاتر جنب بعض من اليمين */
.filters-card.jobs-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  margin-bottom: 16px;
  min-height: 72px;
  direction: rtl;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.filter-pills a {
  height: 36px;
  padding: 0 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.filter-pills a.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  font-weight: 700;
}

.jobs-search {
  width: 320px;
  max-width: 100%;
  height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  gap: 8px;
  background: #fff;
  color: var(--gray-500);
  direction: rtl;
  flex: 0 0 auto;
}

.jobs-search img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.jobs-search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  text-align: right;
}

.jobs-search input::placeholder {
  color: #9ca3af;
}

.table-card {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 900px;
}

.jobs-table thead {
  background: var(--gray-100);
}

.jobs-table th,
.jobs-table td {
  padding: 14px 20px;
  text-align: right;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

.jobs-table th {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 700;
  padding-top: 12px;
  padding-bottom: 12px;
  white-space: nowrap;
}

.jobs-table tbody tr:last-child td {
  border-bottom: 0;
}

.jobs-table tbody tr:hover td {
  background: #fafbfc;
}

.jobs-table .col-actions {
  width: 88px;
  text-align: center;
  overflow: visible;
  position: relative;
}

.jobs-table tbody tr:has(details[open]) {
  position: relative;
  z-index: 30;
}

.job-title {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 14px;
  color: var(--text-primary);
}

.job-company {
  color: #9ca3af;
  font-size: 12px;
  line-height: 18px;
}

.applicants {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.status-pill.active { background: var(--success-bg); color: var(--success-text); }
.status-pill.stopped { background: var(--stopped-bg); color: var(--stopped-text); }
.status-pill.pending { background: #ffedd5; color: #9a3412; }
.status-pill.featured { background: #fff4d6; color: #9a6700; margin-inline-start: 6px; }
.status-pill.upgraded { background: #e8f5e9; color: #1b5e20; margin-inline-start: 6px; font-size: 11px; font-weight: 600; }
.status-pill.under_review { background: #eaf2ff; color: #082d72; }
.status-pill.viewed { background: #f3e8ff; color: #6b21a8; }
.status-pill.accepted { background: var(--success-bg); color: var(--success-text); }
.status-pill.rejected { background: #fee2e2; color: #991b1b; }
.status-pill.interview { background: #ffedd5; color: #9a3412; }
.status-pill.hired { background: #d1fae5; color: #065f46; }

.applicants-head {
  direction: rtl;
}

.applicants-head .page-head__title {
  display: block;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: #1f2937;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-export img {
  display: block;
  width: 18px;
  height: 18px;
}

.btn-export:hover {
  background: var(--gray-100);
}

.applicants-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  direction: rtl;
}

.applicants-filters__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.applicants-search {
  flex: 0 1 320px;
  width: 320px;
  max-width: 100%;
  min-width: 200px;
}

.filter-select {
  position: relative;
  min-width: 140px;
}

.filter-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  cursor: pointer;
}

.filter-select i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 11px;
  pointer-events: none;
}

.applicants-pills {
  flex-wrap: wrap;
}
.status-pill.accepted { background: var(--success-bg); color: var(--success-text); }
.status-pill.hired { background: var(--success-bg); color: var(--success-text); }
.status-pill.rejected { background: #f9ebec; color: #ee1f11; }

.applicant-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.applicant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50px;
  background: var(--brand-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.applicant-avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.applicants-table .col-actions {
  width: auto;
  min-width: 180px;
  text-align: right;
}

.applicant-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

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

.link-view {
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-row {
  height: 28px;
  padding: 0 11px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-row.accept {
  background: var(--success-bg);
  border: 1px solid #23b062;
  color: var(--success-text);
}

.btn-row.reject {
  background: #f9ebec;
  border: 1px solid #ee1f11;
  color: #661100;
}

.btn-row.hire {
  background: #23b062;
  border: 1px solid #23b062;
  color: #fff;
}

.applicant-details-card {
  max-width: 920px;
  width: 100%;
}

.form-card.applicant-details-card {
  max-width: 920px;
  width: 100%;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
}

.applicant-details-head {
  max-width: 920px;
  width: 100%;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.applicant-details-head .page-head__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-details-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  direction: rtl;
}

.applicant-profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.applicant-profile__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.applicant-profile__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 14px;
}

.applicant-profile__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.applicant-profile__loc i {
  color: var(--brand-primary);
  font-size: 12px;
}

.applicant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.applicant-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.applicant-meta i { color: var(--brand-primary); }

.applicant-section {
  margin-bottom: 28px;
}

.applicant-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.applicant-section__title i {
  color: var(--gray-500);
  font-size: 14px;
}

.applicant-job-box {
  background: var(--gray-100);
  border-radius: 12px;
  padding: 16px 18px;
}

.applicant-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.applicant-rating-summary__score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
}

.applicant-rating-summary__score i {
  color: #F59E0B;
}

.applicant-rating-summary__count {
  color: var(--gray-500);
  font-weight: 600;
  font-size: .92rem;
}

.applicant-rating-card {
  margin-bottom: 14px;
}

.applicant-rating-card__comment {
  margin: 12px 0 0;
  color: var(--gray-600, #4b5563);
  line-height: 1.7;
  white-space: pre-wrap;
}

.applicant-rating-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #F59E0B;
}

.applicant-rating-stars span {
  margin-inline-start: 6px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: .92rem;
}

.applicant-rating-form {
  width: 100%;
  max-width: 560px;
  margin-top: 4px;
}

.applicant-rating-form .form-group {
  margin-bottom: 18px;
}

.applicant-rating-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.applicant-rating-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
  min-height: 110px;
  resize: vertical;
}

.applicant-rating-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.applicant-rate-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.applicant-rate-picker__star {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
}

.applicant-rate-picker__star:hover,
.applicant-rate-picker__star.is-active {
  color: #F59E0B;
  border-color: #F59E0B;
  background: #FFFBEB;
}

.applicant-rate-picker__star.is-active i {
  font-weight: 900;
}

.applicant-rating-form__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.applicant-rating-form__actions .btn-accept {
  min-width: 160px;
}

.applicant-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.applicant-job-tags span {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--gray-500);
}

.app-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-end: 8px;
  position: relative;
}

.app-timeline__item {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 22px;
}

.app-timeline__item:last-child {
  padding-bottom: 0;
}

.app-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 22px;
  inset-inline-start: 11px;
  width: 2px;
  bottom: 0;
  background: #e5e7eb;
}

.app-timeline__item.is-done:not(:last-child)::before,
.app-timeline__item.is-current:not(:last-child)::before {
  background: #23b062;
}

.app-timeline__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  color: #fff;
  font-size: 11px;
}

.app-timeline__item.is-done .app-timeline__dot,
.app-timeline__item.is-current .app-timeline__dot {
  background: #23b062;
  border-color: #23b062;
}

.app-timeline__item.is-pending .app-timeline__dot {
  background: #fff;
  border-color: #d1d5db;
}

.app-timeline__body {
  min-width: 0;
  padding-top: 2px;
}

.app-timeline__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.app-timeline__item.is-pending .app-timeline__label {
  color: var(--gray-500);
  font-weight: 500;
}

.app-timeline__item.is-pending .app-timeline__label strong {
  font-weight: 600;
}

.app-timeline__current {
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 700;
}

.app-timeline__date {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.profile-accordion {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.profile-accordion__item {
  border-bottom: 1px solid var(--gray-200);
}

.profile-accordion__item:last-child {
  border-bottom: 0;
}

.profile-accordion__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  user-select: none;
}

.profile-accordion__item summary::-webkit-details-marker {
  display: none;
}

.profile-accordion__item summary i {
  color: var(--gray-500);
  font-size: 12px;
  transition: transform .2s ease;
}

.profile-accordion__item[open] summary i {
  transform: rotate(180deg);
}

.profile-accordion__body {
  padding: 0 16px 14px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.6;
}

.applicant-details-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.btn-accept {
  background: #23b062;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.btn-reject-outline {
  background: #fff;
  color: #ee1f11;
  border: 1px solid #ee1f11;
  border-radius: var(--radius);
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.btn-interview-outline {
  background: #fff;
  color: #e8a317;
  border: 1.5px solid #e8a317;
  border-radius: var(--radius);
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.btn-interview-outline:hover {
  background: #fff8e8;
}

.btn-whatsapp {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: var(--gray-100);
}

.btn-messages {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.btn-messages:hover {
  background: var(--gray-100);
}

.btn-messages.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-messages i {
  font-size: 16px;
  color: var(--gray-500);
}

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

.mujj-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mujj-modal[hidden] {
  display: none !important;
}

.mujj-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.mujj-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
  padding: 20px 22px 22px;
  direction: rtl;
  z-index: 1;
}

.mujj-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mujj-modal__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  text-align: start;
}

.mujj-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mujj-modal__close:hover {
  background: #e8ebf0;
}

.mujj-modal__body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mujj-modal__field {
  width: 100%;
  margin-bottom: 1rem;
}

.mujj-modal__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: start;
}

.mujj-modal__body .form-control,
.mujj-modal__body input,
.mujj-modal__body select,
.mujj-modal__body textarea,
.mujj-modal__field .form-control,
.mujj-modal__field input,
.mujj-modal__field select,
.mujj-modal__field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
}

.mujj-modal__body select,
.mujj-modal__field select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-start: 40px;
  padding-inline-end: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 12px 8px;
}

[dir="ltr"] .mujj-modal__body select,
[dir="ltr"] .mujj-modal__field select {
  background-position: right 16px center;
}

.mujj-modal__body .form-control:focus,
.mujj-modal__body input:focus,
.mujj-modal__body select:focus,
.mujj-modal__body textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.mujj-datetime {
  position: relative;
  margin-bottom: 18px;
  direction: ltr;
  cursor: pointer;
}

.mujj-datetime input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 52px 0 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.mujj-datetime input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.mujj-datetime input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.mujj-datetime:not(.has-value) input,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-fields-wrapper,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-text,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-month-field,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-day-field,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-year-field,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-hour-field,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-minute-field,
.mujj-datetime:not(.has-value) input::-webkit-datetime-edit-ampm-field {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.mujj-datetime__placeholder {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 14px;
  letter-spacing: .4px;
  pointer-events: none;
  z-index: 1;
}

.mujj-datetime.has-value .mujj-datetime__placeholder {
  display: none;
}

.mujj-datetime__icons {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.mujj-modal__submit {
  width: 100%;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .applicant-details-top {
    flex-direction: column;
  }

  .applicant-meta {
    flex-direction: column;
    gap: 8px;
  }
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: var(--gray-500);
  font-size: 13px;
  border-top: 1px solid var(--gray-200);
  direction: rtl;
  flex-wrap: wrap;
}

.pagination-row__info {
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  white-space: nowrap;
}

.pagination-row__links {
  margin-inline-start: auto;
}

.mujj-pagination__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.mujj-pagination__item {
  margin: 0;
}

.mujj-pagination__link,
.mujj-pagination__page,
.mujj-pagination__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #374151;
  text-decoration: none;
}

.mujj-pagination__link:hover {
  color: var(--brand-primary);
  background: #eef2ff;
}

.mujj-pagination__item.is-active .mujj-pagination__page {
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  min-width: 28px;
  width: 28px;
}

.mujj-pagination__dots {
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-primary);
}

.stat-card .label {
  color: var(--gray-500);
  margin-top: 6px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #eef3ff, #f7f8fa 55%);
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(14, 90, 239, .08);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--gray-500);
}

.auth-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.auth-card input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
  font-family: var(--font);
}

.auth-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.alert-error {
  background: #ffeaea;
  color: var(--error);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.form-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 24px;
  max-width: 720px;
  margin-right: auto;
}

.job-form-card {
  max-width: none;
  width: 100%;
  padding: 32px;
}

.jobs-create-head {
  margin-bottom: 24px;
}

.jobs-create-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.locale-tabs {
  margin-bottom: 18px;
}

.locale-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.locale-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.locale-tabs__btn.is-active {
  border-color: var(--brand-primary);
  background: #eef2ff;
  color: var(--brand-primary);
}

.locale-tabs__flag {
  font-size: 16px;
  line-height: 1;
}

.locale-tabs__panel[hidden] {
  display: none !important;
}

.lang-card {
  max-width: none;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.lang-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lang-option__side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lang-option__radio {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.lang-option__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
}

.lang-option.is-active {
  border-color: var(--brand-primary);
  background: #f8fbff;
}

.lang-option.is-active .lang-option__radio {
  border-color: var(--brand-primary);
}

.lang-option.is-active .lang-option__radio::after {
  background: var(--brand-primary);
}

.lang-option__name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.lang-option__flag {
  font-size: 22px;
  line-height: 1;
}

/* إخفاء تصميم المربعات القديم إن وُجد */
.lang-tiles,
.lang-tile {
  display: none !important;
}

.jobs-create-actions .btn-secondary {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.page-head__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.back-btn:hover {
  background: #eef1f5;
}

.job-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.job-section {
  margin-bottom: 28px;
}

.job-section__title {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.job-section__title i {
  color: var(--brand-primary);
  font-size: 15px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group .req {
  color: #ee1f11;
}

.currency-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
}

.currency-row__label {
  color: #9ca3af;
  font-size: 14px;
}

.currency-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.currency-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  cursor: pointer;
  margin: 0;
}

.currency-tag input { display: none; }

.currency-tag.is-active {
  background: #2563eb;
  color: #fff;
}

.period-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-group label.period-pill,
.period-pill {
  position: relative;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  background: #f7f8fa;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.period-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.period-pill__dot {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 50%;
  border: 2px solid #c5cad3;
  background: #fff;
  box-sizing: border-box;
  display: inline-block;
}

.period-pill__text {
  line-height: 1;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-block;
}

.period-pill.is-active {
  background: #eaf2ff;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.period-pill.is-active .period-pill__dot {
  border: 5px solid var(--brand-primary);
  background: #fff;
}

@media (max-width: 520px) {
  .period-pills {
    grid-template-columns: 1fr;
  }
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
}

.input-with-icon input {
  padding-left: 40px;
}

.exp-range {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.exp-field {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  min-width: 0;
  background: #fff;
}

.exp-field input {
  border: 0 !important;
  outline: 0;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0;
  width: 100%;
  flex: 1;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.exp-field input::-webkit-outer-spin-button,
.exp-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.exp-field input::placeholder {
  color: #9ca3af;
}

.exp-sep {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

.exp-unit {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.skills-input {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  min-height: 48px;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.skills-tags:empty {
  margin-bottom: 0;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf2ff;
  color: var(--brand-primary);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.skill-chip em {
  font-style: normal;
}

.skill-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.skills-input > input {
  border: 0 !important;
  padding: 4px 0 !important;
  width: 100%;
  outline: 0;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.benefit-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.benefit-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: #fff;
  flex-shrink: 0;
  font-size: 11px;
}

.benefit-check input:checked + .benefit-check__box {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
  min-height: 48px;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-start: 40px;
  padding-inline-end: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 12px 8px;
}

[dir="ltr"] .form-group select {
  background-position: right 16px center;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #eef1f5;
}

.actions-menu {
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  z-index: 2;
}

.actions-menu details {
  position: relative;
}

.actions-menu details[open] {
  z-index: 50;
}

.actions-menu details summary {
  list-style: none;
  cursor: pointer;
  color: var(--gray-500);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.actions-menu details summary:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.actions-menu details summary::-webkit-details-marker { display: none; }

.actions-menu .menu {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  bottom: auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  min-width: 148px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
  z-index: 60;
  overflow: hidden;
  text-align: right;
}

.actions-menu .menu.is-floating {
  position: fixed;
  z-index: 9999;
}

.actions-menu .menu a,
.actions-menu .menu button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 14px;
  border: 0;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-primary);
}

.actions-menu .menu a:hover,
.actions-menu .menu button:hover { background: var(--gray-100); }

.actions-menu .menu .danger { color: var(--error); }

@media (max-width: 768px) {
  .form-grid,
  .job-form-layout,
  .form-row-2,
  .exp-range { flex-wrap: wrap; }
  .exp-field { min-width: calc(50% - 20px); }
  .job-form-card { padding: 16px; }
  .currency-row { flex-direction: column; align-items: stretch; }
}

.home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.card-title {
  font-weight: 700;
  margin-bottom: 16px;
  padding: 16px 16px 0;
}

.chart-card { padding-bottom: 16px; }

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 200px;
  padding: 0 16px 16px;
  gap: 8px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.bar {
  width: 100%;
  max-width: 36px;
  min-height: 8px;
  background: linear-gradient(180deg, #3b82f6, #0e5aef);
  border-radius: 8px 8px 4px 4px;
}

.bar-col span, .bar-col small {
  font-size: 11px;
  color: var(--gray-500);
}

.recent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--gray-200);
}

.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-brand {
  background: linear-gradient(160deg, #0a2f7a, #0e5aef);
  color: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  padding: 40px;
}

.brand-big {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  border-radius: 24px;
  background: rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
}

.auth-side {
  display: grid;
  place-items: center;
  background: var(--gray-100);
  padding: 24px;
}

.auth-card.flat { box-shadow: 0 10px 30px rgba(14,90,239,.08); }

.auth-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.auth-links a { color: var(--brand-primary); }

.settings-page__title-wrap {
  display: flex;
  justify-content: flex-start;
  direction: rtl;
  margin-bottom: 16px;
}

.settings-page__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.settings-shell {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}

.settings-shell__body {
  padding: 16px 24px 24px;
  background: #fff;
}

.settings-shell__body.form-card,
.settings-shell__body.settings-profile-card {
  max-width: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 16px 24px 24px;
}

.settings-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  direction: rtl;
  margin-bottom: 0;
  padding: 0 24px;
  background: #fff;
  border-radius: 0;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.settings-nav a {
  padding: 16px 4px;
  margin-inline-end: 22px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: -1px;
}

.settings-nav a.active {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.settings-shell__body .settings-section-head {
  margin-top: 0;
  margin-bottom: 14px;
}

.settings-shell__body.settings-billing,
.settings-shell__body.settings-plans,
.settings-shell__body.settings-checkout {
  margin-top: 0;
}

.settings-head h1 {
  margin-bottom: 0;
}

.settings-profile-card,
.form-card.settings-profile-card,
.settings-nav + .form-card {
  max-width: none;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
  padding-top: 16px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.settings-nav + .form-card .settings-section-head {
  margin-bottom: 16px;
}

.settings-subhead {
  margin-top: 16px;
}

.office-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.office-logo__picker {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px dashed #d1d5db;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.office-logo__picker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-logo__placeholder {
  color: #9ca3af;
  font-size: 22px;
}

.office-logo__meta strong {
  display: block;
  font-size: 15px;
  color: #111827;
  margin-bottom: 4px;
}

.office-logo__meta p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

.is-hidden {
  display: none !important;
}

.settings-phone {
  display: flex;
  align-items: stretch;
  gap: 10px;
  direction: ltr;
}

.settings-phone input[name="phone"] {
  flex: 1;
  text-align: right;
  direction: rtl;
}

.settings-phone__cc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  justify-content: center;
}

.settings-profile-actions {
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.btn-link-cancel {
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.btn-link-cancel:hover {
  color: #111827;
}

@media (max-width: 768px) {
  .settings-phone {
    flex-direction: column;
  }

  .settings-phone__cc {
    min-height: 48px;
    width: 100%;
  }
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
}

.plan-card.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(14,90,239,.15);
}

.plan-card h3 { margin: 0 0 8px; }
.plan-card .price { font-size: 28px; font-weight: 700; color: var(--brand-primary); margin-bottom: 12px; }
.plan-card ul { padding: 0 18px 0 0; margin: 0 0 16px; color: var(--gray-500); font-size: 13px; }

@media (max-width: 992px) {
  .home-grid, .auth-split, .plan-grid { grid-template-columns: 1fr; }
  .auth-brand { min-height: 220px; }
}

.empty-state {
  padding: 48px;
  text-align: center;
  color: var(--gray-500);
}

.muted {
  color: var(--gray-500);
}

.notif-head {
  direction: rtl;
  align-items: flex-start;
}

.notif-head .page-head__title {
  display: block;
  text-align: right;
}

.notif-head .page-head__title h1 {
  margin: 0;
}

.notif-head .page-head__title p {
  margin: 6px 0 0;
  color: var(--gray-500);
  font-size: 14px;
}

.notif-read-all {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: visible;
  direction: rtl;
}

.notif-tabs-wrap {
  display: none;
}

.notif-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 16px 16px 0;
  padding: 4px;
  background: #eef1f6;
  border-radius: 999px;
  direction: rtl;
}

.notif-tabs__item {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
  text-decoration: none;
  border: 0;
  background: transparent;
  white-space: nowrap;
}

.notif-tabs__item:hover {
  color: var(--text-primary);
}

.notif-tabs__item.is-active {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.notif-list {
  padding: 8px 0 0;
  overflow: visible;
  background: transparent;
  position: relative;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .15s ease;
  direction: rtl;
  position: relative;
  z-index: 1;
}

.notif-item:last-child {
  border-bottom: 0;
}

.notif-item:hover {
  background: #fafbfc;
}

.notif-item.is-unread {
  background: #f5f9ff;
}

.notif-item:has(details[open]) {
  z-index: 80;
}

.notif-list:has(details[open]) .notif-item:not(:has(details[open])) .notif-item__menu {
  visibility: hidden;
  pointer-events: none;
}

.notif-item__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.notif-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}

.notif-item__icon.tone-primary {
  background: #eaf2ff;
  color: var(--brand-primary);
}

.notif-item__icon.tone-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.notif-item__icon.tone-warning {
  background: #fff6e8;
  color: #c47a12;
}

.notif-item__icon.tone-secondary {
  background: var(--gray-100);
  color: var(--gray-500);
}

.notif-item__body {
  min-width: 0;
  flex: 1;
}

.notif-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.notif-item__title strong {
  font-size: 14px;
  color: var(--text-primary);
}

.notif-item__title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.notif-item__body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
}

.notif-item__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-item__time {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

.notif-item__menu.actions-menu {
  width: auto;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item__menu details {
  position: relative;
}

.notif-item__menu summary {
  list-style: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  cursor: pointer;
  margin: 0;
}

.notif-item__menu summary::-webkit-details-marker {
  display: none;
}

.notif-item__menu summary:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.notif-item__menu .menu {
  left: auto;
  right: 0;
  min-width: 160px;
  z-index: 200;
}

.notif-item__menu .menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: right;
}

.notif-item__menu .menu button:hover {
  background: var(--gray-100);
}

.notif-item__menu .menu button.is-danger {
  color: #ee1f11;
}

.notif-item__body small {
  display: none;
}

@media (max-width: 992px) {
  .provider-sidebar { display: none; }
  .provider-main { margin-right: 0; width: 100%; max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-search { width: 100%; }
  .page-head__actions { width: 100%; }
  .page-head__actions .jobs-search { flex: 1; min-width: 0; }
  .provider-content { padding: 16px; }
  .provider-header { padding: 0 16px; }
}

/* Location map picker (company profile) */
.map-picker-input {
  position: relative;
  display: flex;
  align-items: center;
}

.map-picker-input input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px 12px 48px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--text-primary);
  min-height: 48px;
}

.map-picker-btn {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #fff1f2;
  color: #e11d48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.map-picker-btn:hover {
  background: #ffe4e6;
}

.map-picker-panel {
  margin-top: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.map-picker-panel[hidden] {
  display: none !important;
}

.map-picker-hint {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray-500);
  background: #f9fafb;
  border-bottom: 1px solid var(--gray-200);
}

.map-picker-canvas {
  width: 100%;
  height: 280px;
}

/* ===== Chats (Figma) ===== */
.chats-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8db;
  border: 1px solid #f6e7a1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  direction: rtl;
}

.chats-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  direction: rtl;
  min-height: calc(100vh - 140px);
  align-items: stretch;
}

.chats-sidebar,
.chats-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.chats-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px;
  padding: 0 12px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.chats-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  min-width: 0;
}

.chats-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
}

.chats-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.chats-item:hover {
  background: #f8fafc;
}

.chats-item.is-active {
  background: var(--brand-primary-light);
}

.chats-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.chats-item__avatar.lg {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.chats-item__body {
  flex: 1;
  min-width: 0;
}

.chats-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chats-item__top strong {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chats-item__top span {
  font-size: 11px;
  color: var(--gray-500);
  flex-shrink: 0;
}

.chats-item__preview {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chats-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.chats-empty,
.chats-messages__empty,
.chats-panel__placeholder {
  padding: 32px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

.chats-panel__placeholder {
  margin: auto;
  max-width: 360px;
}

.chats-panel__placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.chats-panel__placeholder h2 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 20px;
}

.chats-panel__placeholder p {
  margin: 0;
  line-height: 1.6;
}

.chats-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
}

.chats-panel__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chats-panel__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.chats-panel__role {
  margin-top: 2px;
  font-size: 12px;
  color: var(--gray-500);
}

.chats-alert__text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #8a6d00;
  font-size: 13px;
  line-height: 1.5;
}

.chats-alert__text i {
  margin-top: 3px;
  color: #c9a227;
}

.chats-alert__text strong {
  display: block;
  margin-bottom: 2px;
  color: #7a5f00;
}

.chats-alert__text p {
  margin: 0;
}

.chats-alert__close {
  border: 0;
  background: transparent;
  color: #8a6d00;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.chats-alert__close:hover {
  background: rgba(0,0,0,.04);
}

.chats-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fbfcfe;
}

.chats-bubble {
  max-width: min(72%, 520px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chats-bubble.is-mine {
  align-self: flex-start;
}

.chats-bubble.is-theirs {
  align-self: flex-end;
}

.chats-bubble__body {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
}

.chats-bubble.is-mine .chats-bubble__body {
  background: var(--brand-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chats-bubble.is-theirs .chats-bubble__body {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 4px;
}

.chats-bubble__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gray-500);
  padding: 0 4px;
}

.chats-bubble.is-mine .chats-bubble__meta {
  justify-content: flex-start;
}

.chats-bubble.is-theirs .chats-bubble__meta {
  justify-content: flex-end;
}

.chats-bubble__meta i {
  color: var(--brand-primary);
  font-size: 12px;
}

.chats-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

.chats-composer__field {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #fff;
}

.chats-composer__field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  min-width: 0;
}

.chats-composer__attach {
  border: 0;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin: 0;
}

.chats-composer__attach:hover {
  color: var(--brand-primary);
}

.chats-composer__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chats-composer__filename {
  max-width: 120px;
  font-size: 11px;
  color: var(--brand-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.chats-bubble__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.chats-bubble__img {
  display: block;
  max-width: 220px;
  max-height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.chats-composer__send {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chats-composer__send:hover {
  background: var(--brand-primary-dark);
}

@media (max-width: 992px) {
  .chats-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .chats-sidebar {
    min-height: 280px;
  }

  .chats-panel {
    min-height: 480px;
  }
}

/* Settings — الاشتراكات والدفع */
.settings-billing {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.billing-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff8e8;
  border: 1px solid #f5e0a8;
  border-radius: 16px;
  padding: 18px 20px;
}

.billing-alert.is-urgent {
  background: #fff1f0;
  border-color: #f5c2c0;
}

.billing-alert__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffe9b0;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-alert.is-urgent .billing-alert__icon {
  background: #ffd6d4;
  color: #b91c1c;
}

.billing-alert__body {
  flex: 1;
  min-width: 0;
}

.billing-alert__body strong {
  display: block;
  margin-bottom: 4px;
  color: #92400e;
  font-size: 15px;
}

.billing-alert.is-urgent .billing-alert__body strong {
  color: #991b1b;
}

.billing-alert__body p {
  margin: 0 0 12px;
  color: #a16207;
  font-size: 13px;
  line-height: 1.6;
}

.billing-alert__bar {
  height: 8px;
  border-radius: 999px;
  background: #f3e4b8;
  overflow: hidden;
}

.billing-alert__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.billing-alert.is-urgent .billing-alert__bar {
  background: #fdd;
}

.billing-alert.is-urgent .billing-alert__bar span {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.billing-alert__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: #a16207;
}

.billing-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #eef4ff;
  border: 1px solid #d7e4ff;
  border-radius: 16px;
  padding: 20px 22px;
}

.billing-plan__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.billing-plan__main h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.billing-plan__main p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  max-width: 520px;
}

.billing-plan__price {
  text-align: start;
  flex-shrink: 0;
  color: var(--brand-primary);
}

.billing-plan__price strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.billing-plan__price span {
  font-size: 13px;
  color: #6b7280;
}

.billing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.billing-action {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.billing-action:hover {
  border-color: #c7d7fe;
  box-shadow: 0 2px 10px rgba(14, 90, 239, 0.08);
}

.billing-action.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
}

.billing-action__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-action__icon.is-upgrade {
  background: #e7f8ef;
  color: #0a9b74;
}

.billing-action__icon.is-renew {
  background: #fff4db;
  color: #d97706;
}

.billing-action__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.billing-action__text strong {
  font-size: 15px;
  color: #111827;
}

.billing-action__text small {
  color: #6b7280;
  font-size: 12px;
}

.billing-action__chevron {
  color: #9ca3af;
  font-size: 12px;
}

.billing-payment {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 20px;
}

.billing-payment h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #111827;
}

.billing-payment__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.billing-payment__info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.billing-payment__card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-payment__info strong {
  display: block;
  font-size: 14px;
  color: #111827;
}

.billing-payment__info small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.billing-payment__update {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.billing-payment__update:hover {
  text-decoration: underline;
}

.billing-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
}

.billing-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.billing-empty p {
  margin: 0 0 16px;
  color: #6b7280;
}

/* Settings — ترقية الباقة */
.settings-plans {
  width: 100%;
  margin-top: 0;
}

.settings-plans-card {
  margin-top: 0;
}

.settings-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.settings-section-head__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-section-head h2 {
  margin: 0 0 2px;
  font-size: 18px;
  color: #111827;
}

.settings-section-head p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.settings-notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fafbff;
}

.settings-notify-row__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.settings-notify-row__text strong {
  font-size: 15px;
  color: #111827;
}

.settings-notify-row__text span {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.settings-notify-row__note {
  margin-top: 4px;
  color: #9ca3af !important;
  font-size: 12px !important;
}

.settings-notify-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #E8A017 12%, #fff);
  border: 1px solid color-mix(in srgb, #E8A017 28%, transparent);
  color: #8a5b00;
  font-size: 13px;
  line-height: 1.5;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background .2s ease;
}

.settings-switch__slider::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  inset-inline-start: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s ease;
}

.settings-switch input:checked + .settings-switch__slider {
  background: var(--brand-primary, #0E5AEF);
}

.settings-switch input:checked + .settings-switch__slider::before {
  transform: translateX(22px);
}

html[dir="rtl"] .settings-switch input:checked + .settings-switch__slider::before {
  transform: translateX(-22px);
}

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

.settings-plans__toggle--inline {
  margin: 0 0 20px;
}

.plan-option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  order: 2;
}

.plan-option__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-option__title em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.plan-option__meta {
  color: #6b7280;
  font-size: 12px;
}

.plan-option__price {
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.plan-option__icon {
  order: 1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.plan-option.is-active .plan-option__icon {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
}

.settings-plans__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.settings-plans__back {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.settings-plans__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}

.settings-plans__toggle {
  display: flex;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  gap: 4px;
}

.settings-plans__toggle a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #6b7280;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.settings-plans__toggle a.is-active {
  background: var(--brand-primary);
  color: #fff;
}

.settings-plans__save {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
}

.settings-plans__toggle a.is-active .settings-plans__save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.settings-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.settings-plans__card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.settings-plans__card.is-current {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.settings-plans__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.settings-plans__card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
  color: #111827;
}

.settings-plans__audience {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 13px;
}

.settings-plans__price {
  margin-bottom: 16px;
}

.settings-plans__price strong {
  font-size: 34px;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}

.settings-plans__price span {
  color: #6b7280;
  margin-inline-start: 4px;
  font-size: 14px;
}

.settings-plans__price small {
  display: block;
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
}

.settings-plans__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1;
}

.settings-plans__features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 13px;
}

.settings-plans__features li.is-on {
  color: #1f2937;
}

.settings-plans__features li.is-off {
  color: #9ca3af;
}

.settings-plans__features li span {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  color: #0a9b74;
  font-weight: 700;
}

.settings-plans__features li.is-off span {
  color: #9ca3af;
}

.settings-plans__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  text-decoration: none;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
  width: 100%;
}

.settings-plans__cta:hover {
  background: var(--brand-primary-light);
}

.settings-plans__cta.is-current {
  border-color: transparent;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  cursor: default;
}

.settings-plans__cta.is-disabled {
  border-color: #d1d5db;
  color: #9ca3af;
  background: #f9fafb;
  cursor: not-allowed;
  pointer-events: none;
}

.settings-billing__card.is-empty {
  border-color: var(--gray-200, #e5e7eb);
}

.settings-billing__plan-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-billing__crown {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-billing__plan-head h2 {
  margin: 0;
  font-size: 20px;
  color: #111827;
}

.settings-billing__plan-head p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.settings-billing__price {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.settings-billing__meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.settings-billing__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #6b7280;
}

.settings-billing__meta strong {
  color: #111827;
}

.settings-billing__meta strong.is-ok {
  color: #0a9b74;
}

.settings-billing__actions {
  display: flex;
  gap: 10px;
}

.settings-billing__actions .btn-primary,
.settings-billing__card.is-empty .btn-primary {
  width: 100%;
  justify-content: center;
}

.settings-checkout {
  width: 100%;
  margin-top: 0;
}

.settings-checkout .mujj-sub,
.settings-checkout.mujj-sub {
  min-height: 0;
  background: transparent;
  padding: 0;
}

.settings-checkout__wrap {
  max-width: none;
  margin: 0;
}

.settings-checkout__head {
  justify-content: flex-start !important;
  margin-bottom: 20px !important;
}

.settings-checkout__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  text-align: start;
}

.settings-checkout .mujj-checkout__plan {
  background: var(--brand-primary-light);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  border-bottom: 0;
}

.settings-checkout .mujj-checkout__card-fields .form-group {
  margin-bottom: 14px;
}

.settings-checkout .mujj-checkout__card-fields .form-group.full {
  width: 100%;
}

.settings-checkout .mujj-checkout__card-fields label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: start;
}

.settings-checkout .mujj-checkout__card-fields input {
  width: 100%;
  height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  background: #f9fafb;
  color: #6b7280;
  font: inherit;
}

.settings-checkout .mujj-checkout__card-fields .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.settings-card-input {
  position: relative;
}

.settings-card-input input {
  padding-inline-start: 42px !important;
}

.settings-card-input i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.settings-checkout__pay-btn {
  width: 100%;
  justify-content: center;
  height: 48px;
  margin-top: 8px;
}

@media (max-width: 992px) {
  .billing-actions {
    grid-template-columns: 1fr;
  }

  .billing-plan {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-plans__grid {
    grid-template-columns: 1fr;
  }

  .settings-checkout .mujj-checkout__card-fields .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== English / LTR dashboard layout ===== */
html[dir="ltr"] .provider-content {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .page-head,
html[dir="ltr"] .notif-head,
html[dir="ltr"] .jobs-head,
html[dir="ltr"] .applicants-head,
html[dir="ltr"] .applicant-details-head,
html[dir="ltr"] .filters-card,
html[dir="ltr"] .jobs-filters,
html[dir="ltr"] .applicants-filters,
html[dir="ltr"] .table-card,
html[dir="ltr"] .form-card,
html[dir="ltr"] .home-table-card,
html[dir="ltr"] .home-table-card__head,
html[dir="ltr"] .home-stats,
html[dir="ltr"] .stat-card,
html[dir="ltr"] .stat-card__top,
html[dir="ltr"] .notif-card,
html[dir="ltr"] .notif-tabs,
html[dir="ltr"] .notif-item,
html[dir="ltr"] .notif-item__main,
html[dir="ltr"] .notif-item__aside,
html[dir="ltr"] .notif-item__title,
html[dir="ltr"] .chats-layout,
html[dir="ltr"] .chats-sidebar,
html[dir="ltr"] .chats-panel,
html[dir="ltr"] .chats-panel__head,
html[dir="ltr"] .chats-item,
html[dir="ltr"] .chats-item__top,
html[dir="ltr"] .chats-composer,
html[dir="ltr"] .chats-alert,
html[dir="ltr"] .settings-shell,
html[dir="ltr"] .settings-shell__body,
html[dir="ltr"] .settings-nav,
html[dir="ltr"] .settings-page__title-wrap,
html[dir="ltr"] .settings-billing,
html[dir="ltr"] .settings-plans,
html[dir="ltr"] .billing-alert,
html[dir="ltr"] .billing-plan,
html[dir="ltr"] .billing-actions,
html[dir="ltr"] .billing-action,
html[dir="ltr"] .billing-payment,
html[dir="ltr"] .billing-payment__row,
html[dir="ltr"] .security-card,
html[dir="ltr"] .lang-options,
html[dir="ltr"] .pagination-row,
html[dir="ltr"] .filter-pills,
html[dir="ltr"] .name-cell,
html[dir="ltr"] .applicant-cell,
html[dir="ltr"] .applicant-details-top,
html[dir="ltr"] .applicant-profile,
html[dir="ltr"] .applicant-meta,
html[dir="ltr"] .applicant-actions,
html[dir="ltr"] .form-actions,
html[dir="ltr"] .jobs-create-head,
html[dir="ltr"] .jobs-create-actions {
  direction: ltr;
}

html[dir="ltr"] .page-head__title,
html[dir="ltr"] .notif-head .page-head__title,
html[dir="ltr"] .stat-card,
html[dir="ltr"] .stat-card__label,
html[dir="ltr"] .stat-card__num,
html[dir="ltr"] .stat-card__hint,
html[dir="ltr"] .home-table th,
html[dir="ltr"] .home-table td,
html[dir="ltr"] .jobs-table th,
html[dir="ltr"] .jobs-table td,
html[dir="ltr"] .applicants-table th,
html[dir="ltr"] .applicants-table td,
html[dir="ltr"] .notif-item__body,
html[dir="ltr"] .notif-item__body p,
html[dir="ltr"] .form-group,
html[dir="ltr"] .form-group label,
html[dir="ltr"] .settings-section-head,
html[dir="ltr"] .chats-item__body,
html[dir="ltr"] .chats-panel__placeholder {
  text-align: left;
}

html[dir="ltr"] .back-btn i,
html[dir="ltr"] .billing-action__chevron,
html[dir="ltr"] .settings-plans__back img {
  transform: scaleX(-1);
}

html[dir="ltr"] .notif-item__menu .menu,
html[dir="ltr"] .actions-menu .menu {
  right: auto;
  left: 0;
}

html[dir="ltr"] .jobs-search,
html[dir="ltr"] .applicants-search,
html[dir="ltr"] .chats-search,
html[dir="ltr"] .header-search {
  direction: ltr;
}

html[dir="ltr"] .provider-header {
  padding: 0 32px 0 40px;
}

html[dir="ltr"] .sidebar-nav a i,
html[dir="ltr"] .sidebar-nav a img {
  margin-inline: 0 12px;
}

html[dir="ltr"] .settings-page__title {
  text-align: left;
}

html[dir="ltr"] .settings-nav a {
  margin-inline-end: 0;
  margin-inline-start: 0;
  margin-right: 22px;
}

html[dir="ltr"] .settings-section-head,
html[dir="ltr"] .lang-option,
html[dir="ltr"] .lang-option__side {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .lang-option {
  flex-direction: row;
}

html[dir="ltr"] .lang-option__side {
  flex-direction: row;
}

html[dir="rtl"] .lang-option {
  direction: rtl;
}

html[dir="rtl"] .lang-option__side {
  flex-direction: row;
}
