: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;
}

/* Navbar */
.topbar {
  border-bottom: 1px solid rgba(240, 240, 240, 0.5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
}
.brand-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-btn {
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9f8;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
}

.icon-btn:hover {
  background: #f0f2f0;
  transform: translateY(-2px);
}

.icon-btn img {
  width: 20px;
  height: 20px;
}

.btn-green {
  background: var(--brand-green);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-family: var(--tajawal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(85, 107, 47, 0.2);
}
.btn-green:hover {
  background-color: var(--brand-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(85, 107, 47, 0.3);
}
.btn-green img {
  width: 18px;
  height: 18px;
}

.search-wrap {
  max-width: 400px;
  width: 100%;
  flex-shrink: 1;
  position: relative;
}
.search-wrap input {
  height: 44px;
  border-radius: 12px;
  padding-inline-end: 40px;
  border: 1px solid rgba(182, 182, 182, 1);
  background: #fff;
}
.search-wrap .search-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.nav-tabs-clean {
  gap: 22px;
  font-weight: 600;
}
.nav-tabs-clean a {
  text-decoration: none;
  color: #222;
  position: relative;
  padding: 8px 0;
  font-family: var(--tajawal);
}
.nav-tabs-clean a.active::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-inline-start: 0;
  bottom: -36px;
  height: 6px;
  background: var(--brand-green);
  border-radius: 99px 99px 0 0;
  margin: auto;
  width: 100%;
}

@media (max-width: 1400px) {
  .topbar .container > div {
    gap: 8px !important;
  }
  .nav-tabs-clean {
    gap: 12px;
  }
  .nav-tabs-clean a {
    font-size: 14px;
  }
  .btn-green {
    padding: 10px 10px;
    font-size: 14px;
  }
  .brand-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 1200px) {
  .topbar .container > div {
    gap: 6px !important;
  }
  .nav-tabs-clean {
    gap: 8px;
  }
  .btn-green {
    padding: 8px 8px;
    font-size: 13px;
  }
  .brand-avatar {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1250px) {
  .hero {
    padding: 36px 0 10px;
  }
  .slider-img {
    height: 240px;
  }
  .action-card {
    min-height: 140px;
    font-size: 14px;
    gap: 8px;
  }
  .action-card img {
    width: 60px;
    height: 60px;
  }
  .section-title {
    margin: 32px 0 16px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .ad-img {
    height: 220px;
  }
  .footer {
    padding: 16px 0;
    min-height: 160px;
  }
  .footer-logo {
    width: 90px;
    height: 90px;
  }
  .footer-bottom {
    margin-top: 24px;
  }
}

.language-text {
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(224, 224, 224, 1);
}
@media (max-width: 768px) {
  .nav-tabs-clean a.active::after {
    bottom: -15px;
  }
}

/* Slider */
.hero {
  padding: 56px 0 10px;
}
.carousel-inner {
  border-radius: 18px;
  overflow: hidden;
}
.hero-img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}
.carousel-indicators [data-bs-target] {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  opacity: 0.4;
}
.carousel-indicators .active {
  opacity: 1;
}

/* Swiper Styles */
.heroSwiper {
  width: 100%;
  padding-bottom: 30px !important;
}
.heroSwiper .swiper-slide {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.heroSwiper .swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(201, 164, 59, 0.4);
  pointer-events: none;
}
.slider-img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.heroSwiper .swiper-pagination-bullet {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-green);
  opacity: 0.3;
}
.heroSwiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
}

/* Actions row */
.action-card {
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  color: var(--brand-green);
  font-family: var(--tajawal);
  font-size: 16px;
}
.bg-gray {
  background: rgba(194, 205, 194, 1);
}
.action-card img {
  width: 80px;
  height: 80px;
  opacity: 1;
}
.action-card.primary {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}
.action-card.primary img {
  filter: brightness(10);
}

/* Section title */
.section-title {
  margin: 64px 0 16px;
  text-align: start;
}
.section-title h2 {
  font-family: var(--tajawal);
  font-weight: 700;
  font-size: 24px;
  color: rgba(41, 41, 41, 1);
}

/* Ad card */
.ad-card {
  border: 1px solid rgba(0, 0, 0, 1);
  border-radius: 0;
  padding: 6px;
  background: #fff;
}
.ad-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #f2f2f2;
}
.ad-meta {
  font-size: 12px;
  color: rgba(149, 149, 149, 1);
  font-family: var(--tajawal);
}
.ad-name {
  font-weight: 700;
  font-size: 12px;
  color: rgba(41, 41, 41, 1);
  font-family: var(--tajawal);
}
.ad-actions {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ad-actions .mini-icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}
.ad-actions .mini-icons img {
  width: 24px;
  height: 24px;
}
.btn-outline-green {
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green);
  font-family: var(--tajawal);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 600;
  font-size: 12px;
}
.btn-outline-green:hover {
  background: var(--brand-green);
  color: #fff;
}
#step-6 .phone-input {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}

/* Footer */
.footer {
  background: #14240f;
  color: #d8dfd3;
  padding: 28px 0;
  margin-top: 32px;
  position: relative;
  min-height: 220px;
}
.footer .social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer .social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.footer .social img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.footer-logo {
  width: 113px;
  height: 113px;
  border-radius: 16px;
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 44px;
}

/* Mobile Menu Styling */
.menu-toggler {
  background: none;
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 8px;
}
.mobile-menu {
  display: none;
  background: #fff;
  padding-bottom: 20px;
  border-top: 1px solid #eee;
}
.mobile-menu.active {
  display: block;
}
.nav-tabs-mobile a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-family: var(--tajawal);
  padding: 5px 0;
}
.nav-tabs-mobile a.active {
  color: var(--brand-green);
}

/* Add Ad Offcanvas Styles */
.add-ad-offcanvas {
  width: 100% !important;
  max-width: 601px;
  border-start-start-radius: 24px;
  border-end-start-radius: 24px;
}
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offcanvas-body .form-label {
  font-family: var(--tajawal);
  font-size: 16px;
  color: rgba(41, 41, 41, 1);
  font-weight: 700;
  margin-bottom: 24px;
}
.btn-close-custom {
  background: #f5f5f5;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.btn-close-custom img {
  width: 14px;
}
.step-tabs {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  border: 0;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--tajawal);
  background: transparent;
  color: #333;
}
.tab-btn.active {
  background: var(--brand-green);
  color: #fff;
}
.custom-input {
  height: 56px;
  background: #f2f2f2;
  border: 0;
  border-radius: 14px;
}
.gender-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.08);
}
.gender-card.active {
  border-color: var(--brand-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.gender-img-wrap {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}
.gender-img-wrap.male {
  background: #556b2f;
}
.gender-img-wrap.female {
  background: #eef2ef;
}
.gender-img-wrap img {
  width: 35%;
  height: 35%;
  object-fit: contain;
}

.slider-group {
  border: 1px solid rgba(239, 239, 239, 1);
  padding: 16px;
  border-radius: 16px;
}
.slider-group .contain label {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--tajawal);
}

.gender-card span {
  font-family: var(--tajawal);
  font-weight: 500;
  color: rgba(129, 129, 129, 1);
  font-size: 14px;
}

/* Custom Range/Slider */
.custom-range {
  height: 6px;
  background: #fdfaf2;
  border-radius: 10px;
}
.custom-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  translate: 0 -8px;
}
.custom-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #fdfaf2;
  border-radius: 10px;
}
/* For Firefox and IE, more styling would be needed but focusing on Webkit for now */

.custom-select {
  height: 56px;
  background: #f2f2f2;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-family: var(--tajawal);
}

.step-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.step-content h6 {
  font-family: var(--tajawal);
  font-weight: 600;
  color: rgba(53, 53, 53, 1);
  font-size: 18px;
  margin-bottom: 8px;
}
.step-content .sub-title {
  font-family: var(--tajawal);
  color: rgba(88, 88, 88, 1);
  font-weight: 400;
}
/* Responsive tweaks */
@media (max-width: 992px) {
  .hero-img {
    height: 170px;
  }
}
@media (max-width: 768px) {
  .brand-avatar {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 576px) {
  .hero-img {
    height: 150px;
  }
  .search-wrap {
    max-width: 100%;
  }
}
.custom-select-wrapper {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: #fff;
}

:root {
  --gold: #c9a227; /* لون الدهبي */
  --track: #eee8d8; /* لون الخلفية الفاتح */
  --card-border: #eef1f4;
}

.custom-select-wrapper {
  width: 100%;
}

.select-box {
  position: relative;
}

.nice-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  height: 54px;

  border-radius: 16px;
  border: 1px solid #eef1f4;

  background: #f5f6f7;
  padding: 0 18px;
  padding-inline-start: 45px; /* space for arrow */

  font-size: 14px;
  font-weight: 500;
  color: #6b7280;

  transition: 0.25s;
  cursor: pointer;
}

/* hover */
.nice-select:hover {
  background: #f0f2f3;
}

/* focus */
.nice-select:focus {
  background: #fff;
  border-color: #556b2f;
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.12);
}

/* remove bootstrap arrow */
.nice-select.form-select {
  background-image: none;
}

/* custom arrow */
.select-arrow {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  pointer-events: none;
  opacity: 0.6;
  transition: 0.2s;
}

.nice-select.bg-light-gray {
  background-color: #f5f6f7;
}
.custom-select-wrapper .select-box .nice-select {
  border-radius: 12px;
}
/* Ensure location icon stays fixed */
.select-box .select-arrow.opacity-100 {
  opacity: 1 !important;
}

.range-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: #fff;
}

.range-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f1f1f;
}

.range-value {
  font-size: 13px;
  color: #8b8b8b;
  font-weight: 500;
}

.range-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8b8b;
  text-align: start;
}

/* track wrapper */
.range-track {
  margin-top: 8px;
}

/* THE RANGE */
.pretty-range {
  --fill: 50%;

  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;

  /* RTL fill */
  background: linear-gradient(
    to left,
    #c9a227 0%,
    #c9a227 var(--fill),
    #eee8d8 var(--fill),
    #eee8d8 100%
  );
}

[dir="ltr"] .pretty-range {
  background: linear-gradient(
    to right,
    #c9a227 0%,
    #c9a227 var(--fill),
    #eee8d8 var(--fill),
    #eee8d8 100%
  );
}

/* webkit track */
.pretty-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

/* thumb */
.pretty-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  margin-top: -6px; /* centers thumb on 6px track */
}

/* firefox track */
.pretty-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.pretty-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
}

/* Step 4 Styles */
.declaration-card {
  background: #fff;
  border: 1px solid rgba(239, 239, 239, 1);
  border-radius: 20px;
}
.declaration-text {
  font-size: 13px;
  color: #8b8b8b;
  line-height: 2;
  text-align: justify;
  text-align-last: start;
  font-family: var(--tajawal);
}
.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--brand-green) !important;
  cursor: pointer;
}
.custom-checkbox:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.btn-outline-secondary.text-dark:hover {
  background: #f8f9fa;
}

/* Step 5 & 6 Extras */
#step-5 .add-your-image {
  border: 1px solid rgba(239, 239, 239, 1);
  border-radius: 20px;
  padding: 16px 18px;
}
#step-5 .add-your-image label {
  color: rgba(41, 41, 41, 1);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--tajawal);
}
.phone-input-group {
  background: #f5f6f7;
  border-radius: 999px;
}
.phone-input-group input:focus {
  background: transparent !important;
  box-shadow: none !important;
}
.bg-green-light {
  background-color: #f1f4f1;
  border: 1px dashed var(--brand-green) !important;
}
.text-green {
  color: var(--brand-green);
}
.filter-green {
  filter: invert(34%) sepia(87%) saturate(314%) hue-rotate(42deg)
    brightness(91%) contrast(91%);
}
.upload-area {
  background-color: var(--brand-green);
  color: rgba(255, 255, 255, 1);
  font-family: var(--tajawal);
  border-radius: 12px;
}

.prev-step {
  color: #8b8b8b !important;
  font-weight: 500;
}
.prev-step:hover {
  background: #f8f9fa !important;
  color: #555 !important;
}

/* Payment Methods */
.payment-item {
  transition: all 0.2s;
  border-color: rgba(239, 239, 239, 1) !important;
}
.payment-item:hover {
  background: #fcfcfc;
}
.payment-item:has(input:checked) {
  border-color: var(--brand-green) !important;
  background: #f9faf9;
}
.custom-radio {
  width: 20px;
  height: 20px;
  border-color: #ddd !important;
}
.custom-radio:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.payment-icon {
  width: 50px;
  height: 50px;
  border: 1px solid #eee;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
}

/* OTP Inputs */
.otp-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 16px;
  border: 1.5px solid #eef1f4;
  background: #fff;
}
.otp-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

/* Success Modal */
.success-circle {
  width: 212px;
  height: 212px;
  /* background: #f1f4f1; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
#successModal .modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#step-8 h4 {
  font-size: 30px;
  font-weight: 700;
  color: rgba(53, 53, 53, 1);
  font-family: var(--tajawal);
}
#step-8 p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(88, 88, 88, 1);
  font-family: var(--tajawal);
}
#verifyOtpBtn {
  border-radius: 12px;
  width: 60%;
}
#successModal .modal-body h3 {
  font-family: var(--tajawal);
}
#successModal .modal-body button {
  border-radius: 16px;
}

/* Contact Modal Extras */
.btn-light-gray {
  background-color: #f1f4f1;
  border: none;
  font-weight: 500;
}
.btn-light-gray:hover {
  background-color: #e8ece8;
}
#contactModal .modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
#messageModal h3,
#whatsappModal h3,
#telegramModal h3,
#contactModal h3 {
  font-family: var(--tajawal);
  font-size: 24px;
  font-weight: 700;
  color: rgba(53, 53, 53, 1);
}
