:root {
  --brand-green: rgba(85, 107, 47, 1); /* قريب من اللون بالصورة */
  --muted: #8a8a8a;
  --field-bg: rgba(239, 239, 239, 1);
  --field-border: rgba(239, 239, 239, 1);
  --iBM-font: "IBM Plex Sans Arabic", sans-serif;
  --tajawal: "Tajawal", sans-serif;
}
html,
body {
  height: 100%;
}
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background: #ffffff;
}
/* =========================
   Settings / Profile Page
   ========================= */

/* Page spacing like screenshot */
.settings-page {
  padding: 24px 0 48px;
  min-height: 80vh;
}

/* Two columns: content + sidebar (RTL) */
.settings-layout {
  display: grid;
  grid-template-columns: 260px 1fr; /* main then sidebar */
  gap: 20px;
  align-items: start;
}

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

/* Cards */
.settings-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  padding: 20px;
}
#terms-tab {
  font-family: var(--tajawal);
}

@media (max-width: 576px) {
  .settings-card {
    padding: 12px;
  }
}

/* Sidebar "الإعدادات" */
.settings-sidebar-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 14px;
  color: rgba(0, 0, 0, 1);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Nav item (inactive) */
.settings-nav-item {
  font-size: 16px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: rgba(0, 0, 0, 0.55);
  text-decoration: none;
  font-weight: 400;
}

/* icon container */
.settings-nav-item .nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  /* border: 1px solid rgba(0, 0, 0, 0.1); */
}

.settings-nav-item .nav-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0); /* Ensure visibility on white bg */
  opacity: 0.5;
  transition: all 0.3s;
}

/* Active */
.settings-nav-item.active {
  background: #4f632b; /* نفس الأخضر بالصورة */
  color: #fff;
}

.settings-nav-item.active .nav-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: transparent;
}

.settings-nav-item.active .nav-icon img {
  filter: brightness(0) invert(1); /* Ensure visibility on dark bg */
  opacity: 1;
}

/* Main header */
.settings-section-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  color: rgba(0, 0, 0, 1);
  font-family: var(--tajawal);
}

.settings-section-subtitle {
  font-family: var(--tajawal);
  margin: 0 0 22px;
  font-weight: 400;
  font-size: 14px;
  color: rgba(102, 112, 133, 1);
}

/* Form grid like screenshot (2 columns) */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
}

@media (max-width: 768px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Field */
.profile-field {
  position: relative;
}

.profile-field label {
  position: absolute;
  top: 6px;
  inset-inline-start: 18px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* Input style (grey pill) */
.profile-input {
  width: 100%;
  height: 46px;
  padding: 20px 16px 6px;
  border-radius: 12px;
  border: 0;
  outline: none;
  background: rgba(0, 0, 0, 0.07);
  color: rgba(88, 88, 88, 1);
  font-weight: 600;
}

.profile-input:focus {
  box-shadow: none;
}

/* Change password link row */
.change-password-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 16px;
  color: rgba(201, 164, 59, 1); /* الأصفر اللي في الصورة */
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.change-password-row img {
  width: 18px;
  height: 18px;
}

/* Save button full width */
.profile-save-btn {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: #4f632b;
  color: #fff;
  font-weight: 800;
  margin-top: 16px;
}

.profile-save-btn:hover {
  filter: brightness(0.96);
}

/* Delete account */
.delete-account-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 14px;
}

.delete-account-btn {
  border: 0;
  background: transparent;
  color: rgba(224, 57, 57, 1);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.delete-account-btn img {
  width: 18px;
  height: 18px;
}

/* =========================
   Terms & Conditions section
   ========================= */
.terms-wrap {
  margin-top: 6px;
}

.terms-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #111;
}

.terms-subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.55);
}

.terms-content {
  font-size: 14px;
  line-height: 1.95;
  color: rgba(0, 0, 0, 0.6);
}

/* Optional: make long terms scroll inside card */
.terms-content.scrollable {
  max-height: 520px;
  overflow: auto;
  padding-inline-start: 6px; /* RTL scrollbar space */
}
/* =========================
   Custom Modals & Components
   ========================= */
.tajawal-font {
  font-family: var(--tajawal) !important;
}

.custom-modal .modal-content {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.btn-close-custom {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-close-custom img {
  width: 24px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  cursor: pointer;
  opacity: 0.6;
}

.btn-green {
  background: #4f632b;
  color: #fff;
  border-radius: 14px;
  border: none;
  transition: all 0.3s;
}

.btn-green:hover {
  background: #3e4d22;
  color: #fff;
}

.btn-cancel {
  background: #f1f3f0;
  color: #4f632b;
  border-radius: 14px;
  border: none;
}

.btn-cancel:hover {
  background: #e5e8e3;
}

.btn-danger {
  background: #e03939;
  border-radius: 14px;
  border: none;
}

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

.text-green {
  color: #4f632b;
}

.text-danger {
  color: #e03939;
}

.text-warning {
  color: #c9a43b;
}

/* Adjusting profile-input for modals */
.custom-modal .profile-input {
  background: #f4f4f4;
  height: 56px;
  padding: 12px 18px;
  padding-inline-end: 45px; /* space for the icon */
}

.custom-modal .profile-field label {
  position: static;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  pointer-events: auto;
}
