:root {
  --gold: #c89632;
  --gold-dark: #b78322;
  --gold-light: #f4d27c;
  --dark: #222;
  --muted: #8c8c8c;
  --danger: #ef5a5a;
}

* {
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
}

/* ==========================================
   DIRECTION SYSTEM
   RTL-only rules  → html[dir="rtl"]  .class { ... }
   LTR-only rules  → html[dir="ltr"]  .class { ... }
   Default styles should work for both.
   Language is switched via ?change_language=ar or ?change_language=en
   The dir attribute on <html> is set automatically in layouts/frontend.blade.php
   based on app()->getLocale().
========================================== */

html[dir="rtl"],
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"],
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

.gold {
  color: var(--gold);
}

/* =========================
   Top Bar
========================= */

.top-bar {
  background: #f5f5f5;
  min-height: 34px;
  font-size: 13px;
  color: #777;
}

.top-bar a,
.top-bar span {
  color: #777;
}

.top-bar a:hover {
  color: var(--gold);
}

.lang-btn {
  background: linear-gradient(135deg, #f6d978, var(--gold));
  border: 0;
  color: #222;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
}

.lang-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.top-bar i {
  font-size: 16px;
}

/* =========================
   Header
========================= */

.main-header {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.logo img {
    width: 200px;
}

.navbar-nav .nav-link {
  color: #333;
  font-size: 15px;
  padding: 8px 16px !important;
  transition: .25s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--gold);
}

.add-item-btn {
  background: linear-gradient(135deg, #f6d978, var(--gold));
  color: #111;
  border: none;
  border-radius: 9px;
  min-width: 150px;
  height: 42px;
  box-shadow: 0 8px 18px rgba(200, 150, 50, .18);
  transition: .25s;
}

.add-item-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.navbar-offcanvas .offcanvas-body {
  padding: 0;
}

.header-actions {
  flex-shrink: 0;
}

.offcanvas-logo img {
  width: 160px;
}


/* =========================
   Page
========================= */

.content-area {
  padding: 35px 0 48px;
  background: #fff;
}

.filters-row {
  margin-bottom: 30px;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.filter-tab {
  min-width: 145px;
  height: 42px;
  border-radius: 9px;
  border: 0;
  background: #f7f7f7;
  color: #444;
  font-size: 14px;
  transition: .25s;
}

.filter-tab.active,
.filter-tab:hover {
  background: linear-gradient(135deg, #f8d779, var(--gold));
  color: #111;
  
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.filter-icon-btn,
.view-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #f7f7f7;
  color: #777;
  transition: .25s;
}

.view-btn {
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
}

.view-btn.active img,
.view-btn:hover img,
.filter-icon-btn:hover img {
  filter: brightness(0);
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  right: auto;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 18px;
}

.search-box {
  width: 300px;
  height: 42px;
  border-radius: 25px;
  border: 0;
  background: #f7f7f7;
  padding: 0 18px 0 45px;
  color: #777;
  outline: none;
  text-align: start;
}

html[dir="ltr"] .search-field i {
  right: auto;
  left: 17px;
}

html[dir="ltr"] .search-box {
  padding: 0 18px 0 45px;
}

/* =========================
   Grid View
========================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 42px;
}

.content-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #f4f4f4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .11);
  transition: .25s;
  height: 100%;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .14);
}

.content-image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.content-image img {
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    margin: 7px;
    border-radius: 5px;
    object-fit: cover;
    transition: .35s;
}

.status-badge {
    position: absolute;
    top: 7px;
    right: 15px;
    background: linear-gradient(135deg, #d8b05a9e, var(--gold-dark));
    color: #fff;
    padding: 7px 18px;
    min-width: 82px;
    font-size: 13px;
    border-radius: 0 0 13px 13px;
    text-align: center;
}

.sold-badge {
    position: absolute;
    bottom: 7px;
    left: 7px;
    background: var(--danger);
    color: #fff;
    padding: 5px;
    min-width: 70px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: var(--gold);
    color: #fff;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.content-body {
  padding: 16px 15px 17px;
  text-align: start;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.content-title {
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin: 0;
    line-height: 1.5;
    text-align: start;
}

.meta-pill {
  background: #f7f7f7;
  color: #b3b3b3;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.meta-pill i {
  color: var(--gold);
}

.content-info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: #8d8d8d;
  font-size: 13px;
  margin-bottom: 6px;
  text-align: start;
}

.content-info i {
  width: 16px;
  color: #9b9b9b;
  font-size: 13px;
  text-align: center;
}

.content-info .location-icon {
  color: var(--gold);
}

.price {
    color: #333;
    font-size: 21px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
    justify-content: flex-start;
    text-align: left;
    margin-top: -25px;
}

.price small {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700;
}

.list-side {
  display: none;
}

/* =========================
   List View
   الصورة يمين - التفاصيل وسط - السعر والمفضلة يسار
========================= */

.cards-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cards-grid.list-view .content-card {
  height: 145px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.cards-grid.list-view .content-card:hover {
  transform: none;
}

.cards-grid.list-view .content-image {
  width: 230px;
  min-width: 230px;
  height: 145px;
  order: 1;
  border-radius: 5px;
}

.cards-grid.list-view .content-image .favorite-btn {
  display: none;
}

.cards-grid.list-view .content-body {
  flex: 1;
  order: 2;
  padding: 20px 26px;
  text-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cards-grid.list-view .card-head {
  display: block;
  margin-bottom: 8px;
  width: 100%;
}

.cards-grid.list-view .card-head .meta-pill {
  display: none;
}

.cards-grid.list-view .content-title {
    font-size: 18px;
    margin-bottom: 10px;
    width: 100%;
    text-align: start;
}

.cards-grid.list-view .content-info {
  width: 100%;
}

.cards-grid.list-view .price {
  display: none;
}

.cards-grid.list-view .list-side {
    width: 230px;
    min-width: 230px;
    order: 3;
    padding: 18px 28px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    margin-right: auto;
}

.favorite-btn-list {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: var(--gold);
    border: 0;
    color: #fff;
    display: grid;
    place-items: center;
}

.list-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #b8b8b8;
  font-size: 13px;
}

.list-price {
    color: #333;
    font-size: 21px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    direction: ltr;
}

.list-price small {
  color: var(--gold);
  font-size: 14px;
}

/* =========================
   Empty State
========================= */

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  background: #fff;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #777;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.empty-state i {
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 10px;
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 800;
  color: #333;
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
  color: #999;
}

/* =========================
   Pagination
========================= */

.pagination-wrap {
  margin-top: 38px;
}

.pagination .page-link {
  color: #444;
  border: 1px solid #e9e9e9;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 5px !important;
  margin: 0 4px;
  font-size: 14px;
  box-shadow: none;
}

.pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
  font-weight: 700;
}

.pagination-wrap nav div:last-of-type {
  flex-direction: column-reverse !important;
}


/* =========================
   Footer
========================= */

.footer-top {
    background: url("../img/bg-f.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 10px;
}

.footer-logo {
  margin: 0 10px 30px 10px;
}

.footer-logo img {
  max-width: 15%;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  background: #fff;
  color: #555;
  min-width: 130px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .05);
  transition: .25s;
}

.footer-links a:hover {
  background: var(--gold);
  color: #fff;
}

.footer-bottom {
  background: #bd8116;
  color: #fff;
  font-size: 13px;
}

.company-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.social-links a {
  color: #fff;
  opacity: .85;
  margin: 0 5px;
  font-size: 14px;
}

.social-links a:hover {
  opacity: 1;
}


/* =========================
   Contact Page
========================= */

.contact-page {
  background: #fff;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.contact-card {
  background: #fff;
  border-color: #ddd !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
}

.contact-control {
  height: 40px;
  border-radius: 6px;
  border-color: #cfcfcf;
  font-size: 14px;
  color: #333;
  text-align: right;
  box-shadow: none !important;
}

.contact-control::placeholder {
  color: #777;
}

.contact-control:focus {
  border-color: var(--gold);
}

.contact-message {
  height: 140px;
  resize: none;
}

.contact-phone-group {
  direction: ltr;
}

.contact-phone-group .contact-control {
  direction: rtl;
  border-radius: 0 6px 6px 0 !important;
}

.contact-code {
    max-width: 115px;
    height: 40px;
    border-color: #cfcfcf;
    color: #777;
    font-size: 14px;
    box-shadow: none !important;
    border-radius: 6px 0 0 6px !important;
}

.contact-code:focus {
  border-color: var(--gold);
}

.contact-submit-btn {
	min-width: 165px;
	line-height: 31px;
	border: 0;
	border-radius: 8px;
	color: #111;
	font-weight: 700;
	background: linear-gradient(135deg, #f6d978, var(--gold));
	box-shadow: 0 8px 18px rgba(200, 150, 50, 0.18);
}

.contact-submit-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}


/* =========================
   About Page
========================= */

.about-page {
  background: #fff;
}

.about-card {
  background: #fff;
  border-color: #ddd !important;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.06);
}

.about-content {
  max-height: 310px;
  overflow-y: auto;
  padding-inline-start: 30px;
  padding-inline-end: 10px;
  color: #858b96;
  font-size: 15px;
  line-height: 2.35;
  text-align: right;
}

.about-content p {
  margin-bottom: 6px;
}

.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #d9d9d9;
}

.custom-scroll::-webkit-scrollbar {
  width: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #d9d9d9;
  border-radius: 20px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 20px;
}


/* =========================
   FAQ Page
========================= */

.faq-page {
  background: #fff;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.faq-item:has(.accordion-button:not(.collapsed)) {
  border-color: var(--gold) !important;
}

.faq-button {
  min-height: 64px;
  padding: 14px 18px;
  background: #fff !important;
  box-shadow: none !important;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  gap: 14px;
}

.faq-button::after {
  margin-right: auto;
  margin-left: 0;
  width: 14px;
  height: 14px;
  background-size: 14px;
}

.faq-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.faq-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq-title {
  flex: 1;
}

.faq-body {
  padding: 0 78px 18px 18px;
  color: #777;
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}


/* =========================
   Messages Page
========================= */

.messages-page {
  background: #fff;
}

.messages-list {
  display: flex;
  flex-direction: column;
}

.message-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px 0;
  border-bottom: 1px solid #e9e9e9;
  text-decoration: none;
  color: inherit;
}

.message-item:hover .message-name {
  color: var(--gold);
}

.message-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.message-name {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  transition: color 0.2s ease;
}

.message-text {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-meta {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  color: #777;
  font-size: 13px;
}

.message-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dedede;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.message-time {
  color: #777;
}

.messages-pagination .pagination {
  gap: 8px;
}

.messages-pagination .page-link {
  width: 36px;
  height: 36px;
  border-radius: 5px !important;
  border-color: #ddd;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: none !important;
}

.messages-pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.messages-pagination .page-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}


/* =========================
   Notifications Page
========================= */

.notifications-page {
  background: #fff;
}

.notifications-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid #e9e9e9;
  text-decoration: none;
  color: inherit;
}

.notification-item:hover .notification-title {
  color: var(--gold);
}

.notification-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #9b9b9b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.notification-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  transition: color 0.2s ease;
}

.notification-text {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-meta {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
  color: #777;
  font-size: 13px;
}

.notification-count {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dedede;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.notification-time {
  color: #777;
}

.notifications-pagination .pagination {
  gap: 8px;
}

.notifications-pagination .page-link {
  width: 36px;
  height: 36px;
  border-radius: 5px !important;
  border-color: #ddd;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: none !important;
}

.notifications-pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.notifications-pagination .page-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}


/* =========================
   Advertiser Profile Page
========================= */

.advertiser-profile-page {
  background: #fff;
}

.advertiser-profile-box {
  min-height: 120px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
}

.advertiser-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.advertiser-text {
  text-align: right;
}

.advertiser-text h1 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.advertiser-text p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.advertiser-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}

.advertiser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advertiser-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.advertiser-action {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 28px;
  background: #fff;
}

.advertiser-alert {
  border: 2px solid #ff4b3e;
  color: #ff4b3e;
}

.advertiser-chat {
  color: #8c96a3;
  font-size: 34px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-align: right;
}


.my-content-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.my-content-action {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.delete-item-btn {
  color: #ff4b4b;
}

.edit-item-btn {
  color: #111;
}

.my-content-action:hover {
  opacity: 0.75;
}


/* ================================
   InAstro Chat Page
================================ */

.iv-chat-page {
  padding: 42px 0;
  background: #fff;
}

.iv-chat-page-title {
  max-width: 1120px;
  margin: 0 auto 38px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.iv-chat-card {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  overflow: hidden;
}

.iv-chat-header {
  min-height: 96px;
  padding: 22px 34px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.iv-chat-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.iv-chat-avatar {
  width: 62px;
  height: 62px;
  position: relative;
  flex-shrink: 0;
}

.iv-chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.iv-chat-avatar span {
  position: absolute;
  left: 2px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  background: #19c56b;
  border: 2px solid #fff;
  border-radius: 50%;
}

.iv-chat-user-info small {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #b8b8b8;
}

.iv-chat-user-info h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #111;
}

.iv-chat-area {
  background: #f5f5f5;
  padding: 45px 44px 34px;
}

.iv-chat-messages {
  height: 430px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.iv-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.iv-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.iv-chat-messages::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 20px;
}

.iv-chat-message {
  display: flex;
  margin-bottom: 16px;
}

.iv-chat-message--sent {
  justify-content: flex-start;
}

.iv-chat-message--received {
  justify-content: flex-end;
}

.iv-chat-bubble {
  width: fit-content;
  max-width: 690px;
  min-width: 290px;
  padding: 13px 34px 13px 22px;
}

.iv-chat-message--sent .iv-chat-bubble {
  background: #fff1c4;
  border-radius: 22px 0 22px 22px;
}

.iv-chat-message--received .iv-chat-bubble {
  background: #fff;
  border-radius: 0 22px 22px 22px;
}

.iv-chat-message--small .iv-chat-bubble {
  min-width: 325px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.iv-chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #222;
}

.iv-chat-bubble span {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: #555;
}

.iv-chat-message--sent .iv-chat-bubble span {
  text-align: left;
}

.iv-chat-message--received .iv-chat-bubble span {
  text-align: right;
  color: #aaa;
}

.iv-chat-form {
  margin-top: 34px;
}

.iv-chat-composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iv-chat-form-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.iv-chat-pending {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 16px;
}

.iv-chat-pending.d-none {
  display: none;
}

.iv-chat-pending:not(.d-none) {
  display: flex;
}

.iv-chat-pending-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 36px 8px 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
}

.iv-chat-pending-item--image {
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 36px 8px 8px;
}

.iv-chat-pending-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.iv-chat-pending-remove {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.iv-chat-pending-remove:hover {
  background: rgba(0, 0, 0, 0.75);
}

.iv-chat-extra-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7dc7b, #c6942f);
  color: #333;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.iv-chat-extra-btn:hover {
  transform: translateY(-1px);
}

.iv-chat-input-box {
  flex: 1;
  height: 48px;
  position: relative;
}

.iv-chat-input-box .form-control {
  width: 100%;
  height: 48px;
  border: 1px solid #e6e6e6;
  border-radius: 30px;
  background: #fff;
  padding: 0 26px 0 64px;
  font-size: 14px;
  color: #222;
  box-shadow: none;
}

.iv-chat-input-box .form-control:focus {
  border-color: #d6ad4d;
  box-shadow: none;
}

.iv-chat-input-box .form-control::placeholder {
  color: #222;
}

.iv-chat-input-box button {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%) rotate(180deg);
}

.iv-chat-input-box button .iv-chat-send-icon,
.iv-chat-input-box button .iv-chat-send-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iv-chat-input-box button .iv-chat-send-spinner .spinner-border {
  width: 1.15rem;
  height: 1.15rem;
  color: #c6942f;
  border-width: 0.15em;
}

.iv-chat-input-box button.is-sending .iv-chat-send-icon {
  display: none;
}

.iv-chat-input-box button.is-sending .iv-chat-send-spinner {
  display: inline-flex !important;
}

.iv-chat-form--sending .iv-chat-form-row {
  opacity: 0.72;
}

.iv-chat-form--sending .iv-chat-pending-remove {
  pointer-events: none;
}

.iv-chat-file-input {
  display: none;
}

.iv-chat-file-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iv-chat-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.iv-chat-file-info {
  min-width: 0;
}

.iv-chat-file-name {
  display: block;
  max-width: 260px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-chat-file-size {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #777;
}

.iv-chat-image-preview {
  display: block;
  max-width: 220px;
  max-height: 160px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 8px;
}


/* ================================
   Ad Details Pages
================================ */

.iv-content-page {
  padding: 28px 0 70px;
  background: #fff;
}

.iv-content-wrapper {
  max-width: 1120px;
  margin: 0 auto;
}

.iv-content-gallery {
  margin-bottom: 28px;
}

.iv-content-main-img {
  position: relative;
  height: 430px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.iv-content-main-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.iv-content-badge {
  position: absolute;
  top: 0;
  right: auto;
  left: 45px;
  min-width: 125px;
  height: 38px;
  padding: 0 24px;
  background: linear-gradient(135deg, #f7d876, #bd8727);
  color: #fff;
  border-radius: 0 0 8px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.iv-content-thumbs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.iv-content-thumbs button {
  height: 92px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.iv-content-thumbs button.active {
  border-color: #c89632;
}

.iv-content-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv-content-head {
  margin-top: 8px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iv-content-head h1 {
  margin: 0;
  color: #111;
  font-size: 24px;
  font-weight: 800;
}

.iv-content-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.iv-content-icons button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 25px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iv-content-icons button.is-active {
  color: #c89632;
}

.iv-content-icons span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8c8c8c;
  font-size: 13px;
}

.iv-content-icons span i {
  color: #222;
  font-size: 24px;
}

.iv-content-price {
  min-height: 60px;
  padding: 0 34px;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iv-content-price span {
  color: #333;
  font-size: 16px;
}

.iv-content-price strong {
  color: #333;
  font-size: 25px;
  font-weight: 800;
  direction: ltr;
}

.iv-content-price strong i {
  color: #c89632;
  margin-inline-end: 8px;
  font-size: 20px;
}

.iv-content-info-card {
  margin-top: 18px;
  margin-bottom: 24px;
  padding: 0 34px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  background: #fff;
}

.iv-content-info-card > div {
  min-height: 44px;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iv-content-info-card > div:last-child {
  border-bottom: 0;
}

.iv-content-info-card span,
.iv-content-info-card small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 14px;
}

.iv-content-info-card i {
  color: #999;
  font-size: 15px;
}

.iv-content-section-title {
  margin: 0 0 14px;
  color: #111;
  font-size: 23px;
  font-weight: 700;
  text-align: right;
}

.iv-content-description {
  padding: 34px 42px;
  border: 1px solid #dedede;
  border-radius: 7px;
  background: #fff;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 2.2;
  text-align: center;
}

.iv-content-description p {
  margin: 0 0 18px;
}

.iv-content-description p:last-child {
  margin-bottom: 0;
}

.iv-report-item-btn {
  margin-top: 20px;
}

.iv-outline-red {
  min-width: 132px;
  height: 40px;
  padding: 0 24px;
  border: 1px solid #e14d4d;
  border-radius: 25px;
  background: #fff;
  color: #111;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.iv-gold-btn {
  min-width: 132px;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 25px;
  background: linear-gradient(135deg, #f7d876, #bd8727);
  color: #111;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.iv-owner-card {
  margin-top: 38px;
  padding: 24px 34px 18px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
}

.iv-owner-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.iv-owner-top img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.iv-owner-top small {
  display: block;
  margin-bottom: 5px;
  color: #aaa;
  font-size: 12px;
}

.iv-owner-top h3 {
  margin: 0;
  color: #222;
  font-size: 15px;
  font-weight: 800;
}

.iv-owner-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iv-owner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv-phone-area {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #444;
  font-size: 14px;
}

.iv-phone-area strong {
  direction: ltr;
  font-weight: 500;
  color: #555;
}

.iv-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
}

.iv-switch input {
  display: none;
}

.iv-switch span {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s ease;
}

.iv-switch span::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
}

.iv-switch input:checked + span {
  background: #c89632;
}

.iv-switch input:checked + span::before {
  right: 23px;
}

.iv-page-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  direction: ltr;
}

.iv-page-actions > * {
  direction: rtl;
  border-radius: 4px;
  min-width: 160px;
}


/* =========================
   Responsive
========================= */

@media (max-width: 1199px) {
  .cards-grid {
    gap: 24px;
  }

  .cards-grid.list-view .content-image {
    width: 210px;
    min-width: 210px;
  }

  .cards-grid.list-view .list-side {
    width: 190px;
    min-width: 190px;
  }
}

@media (max-width: 991px) {
  .main-header {
    height: auto;
    padding: 15px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-wrap {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .cards-grid.list-view .content-card {
    height: auto;
    flex-wrap: wrap;
  }

  .cards-grid.list-view .content-image {
    width: 190px;
    min-width: 190px;
    height: 145px;
  }

  .cards-grid.list-view .content-body {
    flex: 1;
  }

  .cards-grid.list-view .list-side {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f4f4f4;
  }

  .navbar-offcanvas {
    width: 280px !important;
  }

  .navbar-offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
    padding: 18px 20px;
  }

  .navbar-offcanvas .offcanvas-body {
    padding: 20px;
    display: block;
  }

  .navbar-offcanvas .navbar-nav {
    gap: 6px;
  }

  .navbar-offcanvas .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f3f3f3;
  }

  .header-actions {
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 18px;
  }

  .header-actions .add-item-btn {
    width: 100%;
  }

  .header-actions .bell-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

    .contact-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .page-title {
    font-size: 21px;
    text-align: center;
  }

  .contact-card .card-body {
    padding: 24px 16px !important;
  }

  .contact-submit-btn {
    width: 100%;
  }

    .about-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .about-content {
    max-height: 360px;
    padding-inline-start: 18px;
    padding-inline-end: 6px;
    font-size: 14px;
    line-height: 2;
  }

    .faq-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .faq-button {
    min-height: 58px;
    padding: 12px;
    font-size: 14px;
    gap: 10px;
  }

  .faq-icon {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .faq-body {
    padding: 0 60px 16px 12px;
    font-size: 13px;
  }

    .messages-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .message-item {
    min-height: auto;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  .message-avatar {
    width: 48px;
    height: 48px;
  }

  .message-name {
    font-size: 14px;
  }

  .message-text {
    white-space: normal;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .message-meta {
    width: auto;
    min-width: 46px;
    font-size: 12px;
    align-items: flex-end;
  }

  .message-count {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

    .notifications-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .notification-item {
    min-height: auto;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
  }

  .notification-icon {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .notification-title {
    font-size: 14px;
  }

  .notification-text {
    white-space: normal;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .notification-meta {
    width: auto;
    min-width: 46px;
    font-size: 12px;
    align-items: flex-end;
  }

  .notification-count {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

    .advertiser-profile-page {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .advertiser-profile-box {
    padding: 18px;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }

  .advertiser-info {
    margin-inline-start: 0;
  }

  .advertiser-actions {
    justify-content: center;
    gap: 24px;
  }

  .section-title {
    font-size: 21px;
    text-align: center;
  }

    .iv-chat-page-title,
  .iv-chat-card {
    max-width: 100%;
  }

  .iv-chat-area {
    padding: 35px 25px 28px;
  }

  .iv-chat-bubble {
    max-width: 80%;
  }

    .iv-content-main-img {
    height: 360px;
  }

  .iv-content-thumbs {
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .top-bar {
    text-align: center;
    padding: 8px 0;
  }

  .logo {
    font-size: 24px;
  }

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

  .filter-tab {
    min-width: calc(50% - 8px);
  }

  .search-box {
    width: 100%;
  }

  .search-field {
    width: 100%;
    margin-bottom: 15px;
  }

button.view-btn.js-grid-view-btn,
button.view-btn.js-list-view-btn {
  display: none;
}

  .cards-grid.list-view .content-card {
    display: block;
    height: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .11);
    border: 1px solid #f4f4f4;
  }

  .cards-grid.list-view .content-image {
    width: 100%;
    min-width: 100%;
    height: 185px;
  }

  .cards-grid.list-view .content-title {
    font-size: 17px;
  }

  .cards-grid.list-view .list-side {
    display: none;
  }

  .cards-grid.list-view .card-head {
    display: flex;
  }

  .cards-grid.list-view .card-head .meta-pill {
    display: inline-flex;
  }

  .cards-grid.list-view .price {
    display: flex;
    margin-top: 0;
  }

  .filter-tabs {
    justify-content: center;
}

  .iv-chat-page {
    padding: 28px 0;
  }

  .iv-chat-page-title {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .iv-chat-header {
    min-height: auto;
    padding: 18px;
  }

  .iv-chat-area {
    padding: 25px 15px;
  }

  .iv-chat-messages {
    height: 420px;
  }

  .iv-chat-bubble,
  .iv-chat-message--small .iv-chat-bubble {
    min-width: auto;
    max-width: 86%;
    padding: 12px 18px;
  }

  .iv-chat-bubble p {
    font-size: 13px;
  }

  .iv-chat-form-row {
    gap: 10px;
  }

  .iv-chat-extra-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .iv-chat-input-box,
  .iv-chat-input-box .form-control {
    height: 44px;
  }

  .iv-chat-input-box .form-control {
    padding-right: 20px;
    padding-left: 56px;
  }

  .iv-chat-file-name {
    max-width: 180px;
  }

  .iv-chat-image-preview {
    max-width: 180px;
  }

    .iv-content-page {
    padding-top: 20px;
  }

  .iv-content-main-img {
    height: 250px;
  }

  .iv-content-badge {
    left: 20px;
    min-width: 95px;
    height: 34px;
    font-size: 13px;
  }

  .iv-content-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .iv-content-thumbs button {
    height: 85px;
  }

  .iv-content-head {
    align-items: flex-start;
    gap: 14px;
  }

  .iv-content-head h1 {
    font-size: 20px;
  }

  .iv-content-price,
  .iv-content-info-card {
    padding-inline: 18px;
  }

  .iv-content-description {
    padding: 24px 18px;
    font-size: 13px;
  }

  .iv-owner-card {
    padding: 20px 18px;
  }

  .iv-owner-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .iv-phone-area {
    flex-wrap: wrap;
  }

  .iv-page-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* =========================
   New designer pages - forms, account, payment
========================= */
.iv-form-page,
.iv-account-page {
  background: #fff;
}

.iv-page-head .page-title,
.page-title {
  color: #222;
  font-weight: 800;
}

.iv-muted {
  color: #9a9a9a;
  font-size: 14px;
}

.iv-form-card,
.iv-account-panel,
.iv-profile-card,
.iv-summary-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
}

.iv-form-card {
  padding: 34px;
}

.iv-stepper-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 34px;
  position: relative;
}

.iv-stepper-dot {
  border: 0;
  background: #f8f8f8;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #999;
  text-align: right;
  transition: .25s;
}

.iv-stepper-dot span {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9e9e9;
  color: #777;
  font-weight: 800;
}

.iv-stepper-dot small {
  font-size: 13px;
  font-weight: 700;
}

.iv-stepper-dot.is-active,
.iv-stepper-dot.is-complete {
  background: rgba(200, 150, 50, .12);
  color: #222;
}

.iv-stepper-dot.is-active span,
.iv-stepper-dot.is-complete span {
  background: linear-gradient(135deg, #f6d978, var(--gold));
  color: #111;
}

.iv-step-pane {
  display: none;
}

.iv-step-pane.is-active {
  display: block;
}

.iv-label {
  display: block;
  margin-bottom: 9px;
  color: #555;
  font-weight: 700;
  font-size: 14px;
}

.iv-control,
.contact-control.iv-control,
.form-select.iv-control {
  height: 48px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background-color: #fbfbfb;
  box-shadow: none;
  color: #555;
}

.iv-control:focus,
.form-select.iv-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(200, 150, 50, .12);
}

.iv-textarea {
  height: auto;
  min-height: 170px;
  resize: vertical;
  padding-top: 16px;
}

.iv-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.iv-radio-card {
  position: relative;
  border: 1px solid #eee;
  background: #fbfbfb;
  border-radius: 12px;
  min-height: 120px;
  padding: 22px 22px 18px;
  cursor: pointer;
  transition: .25s;
}

.iv-radio-card input {
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  accent-color: var(--gold);
}

.iv-radio-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(200, 150, 50, .08);
}

.iv-radio-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--gold);
  margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .06);
}

.iv-radio-card strong {
  display: block;
  color: #222;
  margin-bottom: 7px;
}

.iv-radio-card small {
  color: #999;
  line-height: 1.7;
}

.iv-money-field {
  position: relative;
}

.iv-money-field .iv-control {
  padding-left: 48px;
}

.iv-money-field img {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
}

.iv-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.iv-upload-box {
  min-height: 110px;
  border: 1px dashed #ddd;
  border-radius: 10px;
  background: #fafafa;
  display: grid;
  place-items: center;
  color: #b8b8b8;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: .25s;
}

.iv-upload-box input {
  display: none;
}

.iv-upload-box:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.iv-upload-box i {
  font-size: 28px;
}

.iv-upload-box--main {
  color: var(--gold);
}

.iv-upload-box--main span {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}

.iv-upload-box--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv-upload-box--filled span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
}

.iv-upload-box--filled span i {
  font-size: 14px;
}

.iv-switch-row {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  padding: 15px 18px;
}

.iv-switch-row .form-check-input {
  float: none;
  margin-left: 10px;
  margin-right: 0;
  accent-color: var(--gold);
}

.iv-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.iv-secondary-btn {
  height: 44px;
  min-width: 120px;
  border: 1px solid #e9e9e9;
  background: #f8f8f8;
  color: #777;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.iv-secondary-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.iv-verify-box {
  max-width: 520px;
  padding: 18px 0;
}

.iv-verify-icon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(200, 150, 50, .12);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 34px;
  margin: 0 auto 18px;
}

.iv-verify-box h2 {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 10px;
}

.iv-verify-box p {
  color: #999;
  line-height: 1.8;
  margin-bottom: 22px;
}

.iv-otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.iv-otp-inputs .form-control {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
}

.iv-link-btn {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
}

.iv-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.iv-payment-method {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.iv-payment-method input {
  accent-color: var(--gold);
}

.iv-payment-method span {
  font-weight: 700;
  color: #555;
}

.iv-payment-method.is-active {
  border-color: var(--gold);
  background: rgba(200, 150, 50, .08);
}

.iv-summary-card {
  padding: 24px;
  position: sticky;
  top: 20px;
}

.iv-summary-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.iv-summary-row,
.iv-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #f1f1f1;
  padding: 13px 0;
  color: #777;
}

.iv-summary-total {
  border-bottom: 0;
  font-size: 18px;
  color: #222;
  font-weight: 800;
}

.iv-summary-total img,
.iv-mini-ad strong img {
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.iv-profile-card {
  padding: 28px;
  text-align: center;
}

.iv-profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 4px solid rgba(200, 150, 50, .16);
}

.iv-profile-card h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 6px;
}

.iv-profile-card p {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
}

.iv-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  padding: 12px 0;
  color: #777;
  border-top: 1px solid #f1f1f1;
}

.iv-profile-info i {
  color: var(--gold);
}

.iv-account-panel {
  padding: 22px;
}

.iv-account-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.iv-account-tabs button {
  border: 0;
  background: #f7f7f7;
  color: #777;
  min-width: 110px;
  height: 40px;
  border-radius: 8px;
  font-weight: 700;
}

.iv-account-tabs button.active,
.iv-account-tabs button:hover {
  background: linear-gradient(135deg, #f6d978, var(--gold));
  color: #111;
}

.iv-account-content-list {
  display: grid;
  gap: 14px;
}

.iv-mini-ad {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 12px;
}

.iv-mini-ad > img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.iv-mini-ad h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.iv-mini-ad p {
  color: #999;
  margin-bottom: 8px;
  font-size: 13px;
}

.iv-mini-ad p i {
  color: var(--gold);
}

.iv-mini-ad strong {
  display: flex;
  align-items: center;
  direction: ltr;
  justify-content: flex-end;
  gap: 4px;
}

.iv-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iv-mini-actions a {
  min-width: 74px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  color: #777;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.iv-mini-actions a:hover {
  background: var(--gold);
  color: #fff;
}

.iv-avatar-upload {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.iv-avatar-upload img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.iv-avatar-upload input {
  display: none;
}

.iv-notifications-modern .notification-item.is-unread {
  background: rgba(200, 150, 50, .06);
}

@media (max-width: 991.98px) {
  .iv-form-card {
    padding: 24px;
  }

  .iv-choice-grid,
  .iv-payment-methods {
    grid-template-columns: 1fr;
  }

  .iv-upload-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .iv-mini-ad {
    grid-template-columns: 95px 1fr;
  }

  .iv-mini-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 575.98px) {
  .iv-form-card,
  .iv-account-panel,
  .iv-profile-card,
  .iv-summary-card {
    padding: 18px;
  }

  .iv-stepper-progress {
    grid-template-columns: 1fr;
  }

  .iv-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iv-mini-ad {
    grid-template-columns: 1fr;
  }

  .iv-mini-ad > img {
    width: 100%;
    height: 160px;
  }
}

/* =========================
   Invastro Modal Windows
========================= */

.iv-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.iv-modal-root.is-active {
  display: flex;
}

.iv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(3px);
}

.iv-modal-dialog {
  position: relative;
  width: min(823px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: linear-gradient(115deg, #fff 0%, #fff 58%, #f7f0e3 100%);
  border-radius: 14px;
  padding: 56px 62px 48px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: .2s ease;
}

.iv-modal-dialog.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

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

.iv-modal-sm {
  width: min(482px, 100%);
  min-height: 280px;
  padding: 52px 58px 40px;
}

.iv-modal-md {
  width: min(622px, 100%);
}

.iv-modal-tall {
  width: min(820px, 100%);
  padding-top: 54px;
}

.iv-modal-close {
  position: absolute;
  top: 26px;
  left: 32px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transition: .2s;
}

.iv-modal-close:hover {
  color: var(--gold-dark);
  transform: rotate(90deg);
}

.iv-modal-title {
  font-size: 26px;

  color: #222;
  margin-bottom: 34px;
}

.iv-modal-title-sm {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

.iv-modal-subtitle {
  color: #555;
  font-size: 15px;
  line-height: 1.9;
  margin-top: -22px;
  margin-bottom: 28px;
}

.iv-modal-form {
  display: grid;
  gap: 14px;
}

.iv-auth-link {
  color: #333;
  text-decoration: underline;
  font-weight: 700;
  transition: .2s;
}

.iv-auth-link:hover {
  color: var(--gold-dark);
}

.iv-auth-row {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.iv-modal-control,
.iv-modal-select,
.iv-modal-textarea {
  width: 100%;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  padding: 0 18px;
  color: #333;
  outline: none;
  font-size: 14px;
  box-shadow: none;
}

.iv-modal-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: 18px 16px, 12px 16px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  color: #777;
}

.iv-modal-textarea {
  min-height: 137px;
  border-radius: 12px;
  resize: vertical;
  padding-top: 18px;
}

.iv-phone-control,
.iv-password-control {
  position: relative;
  border-radius: 50px;
}

.iv-phone-control .iv-modal-control {
  padding-left: 100px;
  border-radius: 0px 50px 50px 0px !important;
  border: 0px 1px 1px 1px solid #bd8727;
}

.iv-phone-code {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #bd8727;
  background: transparent;
  color: #999;
  outline: 0;
  direction: ltr;
  min-width: 72px;
  border-radius: 50px 0px 0px 50px !important;
}

.iv-password-toggle {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 18px;
}

.iv-password-control .iv-modal-control {
  padding-left: 56px;
  border-radius: 50px;
}

.iv-modal-btn,
.iv-modal-btn-outline,
.iv-modal-btn-danger-outline {
  min-width: 150px;
  height: 38px;
  border-radius: 14px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  font-weight: 700;
  color: #111;
  background: linear-gradient(135deg, #ffe28a, var(--gold));
  transition: .2s;
}

.iv-modal-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.iv-modal-btn-outline {
  background: #fff;
  border: 1px solid #ddd;
  color: #444;
}

.iv-modal-btn-danger-outline {
  background: #fff;
  border: 1px solid #f04444;
  color: #e22;
}

.iv-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.iv-modal-actions-center {
  justify-content: center;
}

.iv-modal-checks {
  display: grid;
  gap: 16px;
  margin: 14px 0 10px;
  justify-content: start;
}

.iv-check-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
}

.iv-check-row input {
  display: none;
}

.iv-check-row span {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid #bbb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.iv-check-row input:checked + span {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.iv-check-row input:checked + span::before {
  content: "✓";
  font-weight: 800;
}

.iv-otp-large {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 36px auto 28px;
  max-width: 560px;
  direction: ltr;
}

.iv-otp-large input {
  height: 108px;
  border: 1px solid #999;
  border-radius: 12px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  outline: 0;
  background: transparent;
}

.iv-otp-large input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 50, .12);
}

.iv-otp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9aa9bc;
  margin-bottom: 8px;
}

.iv-otp-meta strong {
  color: #333;
  direction: ltr;
}

.iv-otp-change {
  color: var(--gold-dark);
  text-decoration: underline;
  font-weight: 700;
}

.iv-success-content,
.iv-confirm-content {
  text-align: center;
}

.iv-success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin-bottom: 26px;
}

.iv-success-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.iv-success-text,
.iv-confirm-text {
  font-size: 18px;
  line-height: 1.8;
  color: #111;
  margin-bottom: 24px;
}

.iv-confirm-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.iv-info-content {
  text-align: center;
  max-width: 430px;
  margin: auto;
}

.iv-info-content p {
  color: #777;
  line-height: 2.1;
  font-size: 16px;
  margin: 0;
}

.iv-filter-form {
  display: grid;
  gap: 22px;
}

.iv-filter-row {
  border-bottom: 1px solid #ddd;
  padding-bottom: 18px;
}

.iv-filter-row:last-of-type {
  border-bottom: 0;
}

.iv-filter-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.iv-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #d5d5d5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.iv-radio-dot.is-active::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

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

@media (max-width: 767.98px) {
  .iv-modal-root {
    padding: 14px;
  }

  .iv-modal-dialog,
  .iv-modal-sm,
  .iv-modal-md,
  .iv-modal-tall {
    padding: 48px 20px 28px;
    width: 100%;
  }

  .iv-modal-close {
    left: 18px;
    top: 18px;
  }

  .iv-modal-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

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

  .iv-otp-large {
    gap: 8px;
  }

  .iv-otp-large input {
    height: 76px;
    font-size: 28px;
  }

  .iv-modal-btn,
  .iv-modal-btn-outline,
  .iv-modal-btn-danger-outline {
    width: 100%;
  }
}

/* =========================
   Modal refinements requested
========================= */
.iv-modal-dialog {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .16);
}

.iv-modal-control,
.iv-modal-select,
.iv-modal-textarea {
  height: 48px;
  border: 1px solid #bd8727;
  border-radius: 50px;
  background: #fbfbfb;
  padding: 0 16px;
  color: #555;
}

.iv-modal-control:focus,
.iv-modal-select:focus,
.iv-modal-textarea:focus,
.iv-phone-code:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(200, 150, 50, .12);
}

.iv-modal-textarea {
  height: auto;
  min-height: 137px;
  padding-top: 16px;
}

.iv-phone-control {
  position: relative;
  display: flex;
  direction: ltr;
  width: 100%;
}

.iv-phone-control .iv-modal-control {
  direction: rtl;
  border-radius: 0 8px 8px 0;
  padding: 0 16px;
  flex: 1 1 auto;
}

.iv-phone-code {
  position: static;
  transform: none;
  min-width: 88px;
  height: 48px;
  border: 1px solid #bd8727;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background-color: #fbfbfb;
  color: #777;
  padding: 0 12px;
  outline: 0;
  direction: ltr;
  text-align: center;
  box-shadow: none;
}

.iv-password-control .iv-modal-control {
  padding-left: 56px;
}

.iv-modal-btn,
.iv-modal-btn-outline,
.iv-modal-btn-danger-outline {
  height: 40px;
  border-radius: 50px;
  box-shadow: 0 8px 18px rgba(200, 150, 50, .18);
}

.iv-modal-btn-outline,
.iv-modal-btn-danger-outline {
  box-shadow: none;
}

.iv-modal-actions {
  margin-top: 18px;
}

.iv-modal-verify {
  width: min(620px, 100%);
  padding-top: 48px;
}

.iv-modal-verify-box {
  max-width: 520px;
  padding: 0;
}

.iv-modal-verify-box .iv-modal-form {
  gap: 12px;
}

.iv-modal-verify-box .iv-otp-inputs {
  margin: 10px 0 12px;
}

.iv-modal-verify-box .iv-otp-inputs .form-control {
  width: 54px;
  height: 54px;
  border: 1px solid #ececec;
  background: #fbfbfb;
  box-shadow: none;
}

.iv-modal-verify-box .iv-otp-inputs .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(200, 150, 50, .12);
}

.iv-modal-verify-box .iv-link-btn strong {
  color: #555;
}

.iv-terms-modal {
  width: min(622px, 100%);
  min-height: 536px;
  padding: 78px 58px 50px;
  border-radius: 14px;
  background: #fff;
}

.iv-terms-title {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
}

.iv-terms-scroll {
  direction: ltr;
  max-height: 330px;
  overflow-y: auto;
  padding-left: 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #dedede;
}

.iv-terms-scroll::-webkit-scrollbar {
  width: 5px;
}

.iv-terms-scroll::-webkit-scrollbar-track {
  background: #dedede;
  border-radius: 999px;
}

.iv-terms-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

.iv-terms-scroll-inner {
  direction: rtl;
}

.iv-terms-scroll p {
  color: #8d97a4;
  font-size: 16px;
  line-height: 2.1;
  text-align: right;
  margin: 0 0 18px;
}

@media (max-width: 767.98px) {
  .iv-modal-dialog,
  .iv-modal-sm,
  .iv-modal-md,
  .iv-modal-tall,
  .iv-modal-verify,
  .iv-terms-modal {
    padding: 48px 20px 28px;
    width: 100%;
  }

  .iv-phone-code {
    min-width: 82px;
    font-size: 12px;
  }

  .iv-modal-verify-box .iv-otp-inputs {
    gap: 8px;
  }

  .iv-modal-verify-box .iv-otp-inputs .form-control {
    width: 48px;
    height: 48px;
  }

  .iv-terms-modal {
    min-height: auto;
  }

  .iv-terms-title {
    margin-bottom: 26px;
  }

  .iv-terms-scroll {
    max-height: 58vh;
    padding-left: 22px;
  }
}

/* Search filter modal stability fix */
.iv-modal-root {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.iv-modal-dialog {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.iv-modal-tall[data-iv-modal="search-filter"] {
  max-height: calc(100dvh - 48px);
}

.iv-modal-tall[data-iv-modal="search-filter"] .iv-filter-form {
  padding-bottom: 4px;
}

.iv-modal-tall[data-iv-modal="search-filter"] .iv-modal-select,
.iv-modal-tall[data-iv-modal="search-filter"] .iv-modal-btn {
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .iv-modal-root {
    align-items: flex-start;
    padding: 12px;
  }

  .iv-modal-tall[data-iv-modal="search-filter"] {
    max-height: calc(100dvh - 24px);
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 24px;
  }

  .iv-modal-tall[data-iv-modal="search-filter"] .iv-filter-form {
    gap: 16px;
  }

  .iv-modal-tall[data-iv-modal="search-filter"] .iv-filter-row {
    padding-bottom: 14px;
  }
}

/* =========================================================
   Bilingual Direction Support
   Usage:
   Arabic : <html lang="ar" dir="rtl">
   English: <html lang="en" dir="ltr">
   Keep this block at the END of style.css
========================================================= */

/* Base English direction */
html[dir="ltr"],
html[dir="ltr"] body,
body[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

/* Main text alignment */
:is(html[dir="ltr"], body[dir="ltr"]) .filter-tabs {
  justify-content: flex-end;
}

:is(html[dir="ltr"], body[dir="ltr"]) .content-body,
:is(html[dir="ltr"], body[dir="ltr"]) .content-title,
:is(html[dir="ltr"], body[dir="ltr"]) .content-info,
:is(html[dir="ltr"], body[dir="ltr"]) .cards-grid.list-view .content-body,
:is(html[dir="ltr"], body[dir="ltr"]) .cards-grid.list-view .content-title,
:is(html[dir="ltr"], body[dir="ltr"]) .contact-control,
:is(html[dir="ltr"], body[dir="ltr"]) .about-content,
:is(html[dir="ltr"], body[dir="ltr"]) .faq-button,
:is(html[dir="ltr"], body[dir="ltr"]) .faq-body,
:is(html[dir="ltr"], body[dir="ltr"]) .message-content,
:is(html[dir="ltr"], body[dir="ltr"]) .notification-content,
:is(html[dir="ltr"], body[dir="ltr"]) .advertiser-text,
:is(html[dir="ltr"], body[dir="ltr"]) .section-title,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-content-section-title,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-stepper-dot,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-profile-info,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-terms-scroll p {
  text-align: left;
}

/* Search */
:is(html[dir="ltr"], body[dir="ltr"]) .search-field i {
  left: 17px;
  right: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .search-box {
  padding: 0 18px 0 45px;
  text-align: left;
}

/* Cards */
:is(html[dir="ltr"], body[dir="ltr"]) .cards-grid,
:is(html[dir="ltr"], body[dir="ltr"]) .cards-grid.list-view .content-card,
:is(html[dir="ltr"], body[dir="ltr"]) .list-meta {
  direction: ltr;
}

:is(html[dir="ltr"], body[dir="ltr"]) .status-badge {
  left: 15px;
  right: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .sold-badge {
  right: 7px;
  left: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .favorite-btn {
  right: 12px;
  left: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .cards-grid.list-view .list-side {
  align-items: flex-end;
  margin-left: auto;
  margin-right: 0;
}

/* Keep prices, OTP and phone codes LTR in both languages */
.price,
.list-price,
.iv-content-price strong,
.iv-phone-area strong,
.iv-otp-large,
.iv-otp-meta strong,
.iv-mini-ad strong,
.iv-phone-code,
.contact-code {
  direction: ltr;
}

/* Contact phone field */
:is(html[dir="ltr"], body[dir="ltr"]) .contact-phone-group .contact-control,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-phone-control .iv-modal-control {
  direction: ltr;
  text-align: left;
}

/* FAQ */
:is(html[dir="ltr"], body[dir="ltr"]) .faq-button::after {
  margin-left: auto;
  margin-right: 0;
}

:is(html[dir="ltr"], body[dir="ltr"]) .faq-body {
  padding: 0 18px 18px 78px;
}

/* Messages / notifications */
:is(html[dir="ltr"], body[dir="ltr"]) .message-meta,
:is(html[dir="ltr"], body[dir="ltr"]) .notification-meta {
  align-items: flex-end;
}

/* Chat */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-message--sent {
  justify-content: flex-end;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-message--received {
  justify-content: flex-start;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-message--sent .iv-chat-bubble span {
  text-align: right;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-message--received .iv-chat-bubble span {
  text-align: left;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-input-box .form-control {
  padding: 0 64px 0 26px;
  text-align: left;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-input-box button {
  right: 16px;
  left: auto;
  transform: translateY(-50%);
}

/* Ad details */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-content-badge {
  right: 45px;
  left: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-page-actions > * {
  direction: ltr;
}

/* Toggle switch */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-switch span::before {
  left: 3px;
  right: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-switch input:checked + span::before {
  left: 23px;
  right: auto;
}

/* Forms */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-switch-row .form-check-input {
  margin-right: 10px;
  margin-left: 0;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-summary-total img,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-mini-ad strong img {
  margin-right: 4px;
  margin-left: 0;
}

/* Modals */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-close {
  right: 32px;
  left: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-control,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-select,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-textarea,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-control,
:is(html[dir="ltr"], body[dir="ltr"]) .form-select.iv-control {
  text-align: left;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-select {
  background-position: calc(100% - 12px) 20px, calc(100% - 18px) 20px;
  padding-right: 42px;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-password-toggle {
  right: 18px;
  left: auto;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-password-control .iv-modal-control {
  padding-right: 56px;
  padding-left: 16px;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-checks,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-filter-head {
  justify-content: flex-start;
}

/* Terms content */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-terms-scroll,
:is(html[dir="ltr"], body[dir="ltr"]) .iv-terms-scroll-inner {
  direction: ltr;
}

:is(html[dir="ltr"], body[dir="ltr"]) .iv-terms-scroll {
  padding-right: 48px;
  padding-left: 0;
}

/* Mobile refinements */
@media (max-width: 767.98px) {
  :is(html[dir="ltr"], body[dir="ltr"]) .iv-modal-close {
    right: 18px;
    left: auto;
  }

  :is(html[dir="ltr"], body[dir="ltr"]) .iv-content-badge {
    right: 20px;
    left: auto;
  }

  :is(html[dir="ltr"], body[dir="ltr"]) .iv-chat-input-box .form-control {
    padding-right: 56px;
    padding-left: 20px;
  }

  :is(html[dir="ltr"], body[dir="ltr"]) .iv-terms-scroll {
    padding-right: 22px;
    padding-left: 0;
  }
}

/* Main ad cards: in English keep the number itself LTR, but move the price block to the mirrored side */
:is(html[dir="ltr"], body[dir="ltr"]) .content-card .price {
  direction: ltr;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

/* List view price side */
:is(html[dir="ltr"], body[dir="ltr"]) .list-price {
  direction: ltr;
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}

/* Account / mini ad blocks: align price with the English text column */
:is(html[dir="ltr"], body[dir="ltr"]) .iv-mini-ad strong {
  direction: ltr;
  justify-content: flex-start;
  text-align: left;
}

/* Keep currency icon and number visually stable */
.price .currency-icon,
.list-price .currency-icon,
.iv-mini-ad strong img {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  :is(html[dir="ltr"], body[dir="ltr"]) .cards-grid.list-view .price {
    justify-content: flex-end;
    text-align: right;
    width: 100%;
  }
}

.social-links a {
  color:#4C4C4C;
  font-size: 14px;
  border-left: 1px solid #dedede;
  padding-left: 10px;
  &:last-of-type {
    border-left: none;
  }
}