/* ============================================
   DAILY JOB - Jordan Job Posting Platform
   Complete Production-Ready Stylesheet
   Enhanced RTL/LTR Support
   ============================================ */

:root {
  /* Primary Colors */
  --navy-950: #0B0F1E;
  --navy-900: #111731;
  --navy-800: #1A2140;
  --navy-outline: #2E3660;

  /* Accent Colors */
  --orange-600: #E85E00;
  --orange-500: #F07020;
  --orange-tint: #FDF2EB;
  --orange-tint-2: #FAEADE;

  /* Neutral Colors */
  --bg: #F3F4F8;
  --card: #FFFFFF;
  --ink-900: #151A2E;
  --ink-700: #3A4058;
  --ink-500: #7A8099;
  --ink-300: #C6CADA;
  --line: #ECEDF3;

  /* Tints */
  --blue-tint: #E9F0FF;
  --gray-tint: #EEF0F4;

  /* Status Colors */
  --green-600: #2E9E5B;
  --red-600: #E63946;

  /* Shadows */
  --shadow-card: 0 6px 24px rgba(17, 23, 49, .06);
  --shadow-pop: 0 20px 60px rgba(11, 15, 30, .35);

  /* Typography */
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow-wrap: break-word;
}

html {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  height: 100%;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font-en);
  background: var(--bg, #f8fafc);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: font-family 0.3s ease;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* RTL Font Switch */
html[dir="rtl"] body {
  font-family: var(--font-ar);
}

/* ============================================
   APP SHELL (Mobile Container)
   ============================================ */

.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow-x: hidden;
}

/* ============================================
   HEADER / TOPBAR
   ============================================ */

.topbar {
  background: var(--navy-950);
  color: #fff;
  padding: 8px 16px;
  min-height: 52px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 17px;
}

.brand-accent {
  color: var(--orange-500);
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
}

.icon-btn:active {
  background: rgba(255, 255, 255, .08);
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  border: 2px solid var(--navy-950);
}

html[dir="rtl"] .notif-dot {
  right: auto;
  left: 7px;
}

.lang-toggle {
  border: 1px solid var(--navy-outline);
  border-radius: 999px;
  width: auto;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   SCREENS (Page Views)
   ============================================ */

.screen {
  display: none;
  flex: 1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: 32px;
}

.screen.active {
  display: block;
  animation: fadeIn .22s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

/* ============================================
   PROMINENT POST AD BANNER
   ============================================ */

.post-ad-banner {
  padding: 14px 16px 0;
}

.btn-post-ad {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(232, 94, 0, .3);
  transition: all .25s ease;
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-post-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(232, 94, 0, .4);
}

.btn-post-ad i {
  font-size: 18px;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 10px 30px rgba(232, 94, 0, .3);
  }

  50% {
    box-shadow: 0 10px 40px rgba(232, 94, 0, .5);
  }
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: var(--shadow-card);
}

.search-ic {
  color: var(--ink-500);
  font-size: 14px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  background: transparent;
}

.filter-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--orange-tint);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  position: relative;
}

.filter-btn.has-active::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-600);
  border: 2px solid #fff;
}

html[dir="rtl"] .filter-btn.has-active::after {
  right: auto;
  left: -2px;
}

/* ============================================
   CHIP ROW (Category Filters)
   ============================================ */

.chip-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  color: var(--ink-700);
  border: 1px solid var(--line);
  transition: all .2s ease;
}

.chip-cat {
  background: var(--navy-950);
  color: #fff;
  border-color: var(--navy-950);
}

.chip.active,
.chip-highlight.active {
  background: var(--orange-600);
  color: #fff;
  border-color: var(--orange-600);
}

/* ============================================
   ACTIVE FILTERS TAGS
   ============================================ */

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px;
  margin-bottom: 4px;
}

.active-filters:empty {
  display: none;
}

.filter-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-950);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.filter-tag i {
  cursor: pointer;
  font-size: 10px;
  opacity: .75;
}

.filter-tag i:hover {
  opacity: 1;
}

/* ============================================
   SECTION LABEL
   ============================================ */

.section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 16px 10px;
  font-size: 13.5px;
  font-weight: 800;
}

.section-flame {
  color: var(--orange-600);
  font-size: 13px;
}

.results-count {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 12px;
  margin-left: auto;
}

html[dir="rtl"] .results-count {
  margin-left: 0;
  margin-right: auto;
}

/* ============================================
   ADS LIST & CARDS
   ============================================ */

.ads-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 0 16px;
}

.ad-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
}

.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(17, 23, 49, .1);
}

.ad-image-wrapper {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--gray-tint);
}

.ad-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ad-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--orange-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-daily {
  background: linear-gradient(135deg, #FF6A00, #FF8533);
}

.badge-fulltime {
  background: linear-gradient(135deg, #1967D2, #2B7DE9);
}

.badge-ads {
  background: linear-gradient(135deg, #C2185B, #E91E63);
}

.badge-services {
  background: linear-gradient(135deg, #1565C0, #1976D2);
}

.badge-used {
  background: linear-gradient(135deg, #546E7A, #78909C);
}

.badge-free {
  background: linear-gradient(135deg, #2E7D32, #43A047);
}

.badge-construction {
  background: linear-gradient(135deg, #D84315, #FF6E40);
}

.badge-delivery {
  background: linear-gradient(135deg, #0277BD, #0288D1);
}

.badge-cleaning {
  background: linear-gradient(135deg, #7B1FA2, #9C27B0);
}

.badge-realestate {
  background: linear-gradient(135deg, #6A1B9A, #8E24AA);
}

.badge-cars {
  background: linear-gradient(135deg, #E65100, #F57C00);
}

.badge-rentals {
  background: linear-gradient(135deg, #00838F, #00ACC1);
}

.ad-title {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
}

.ad-fav-btn {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-size: 14px;
  transition: all .2s ease;
}

.ad-fav-btn:hover {
  color: var(--red-600);
}

.ad-fav-btn.is-fav {
  color: var(--red-600);
}

.ad-meta-row {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: var(--ink-500);
}

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

.ad-meta-row i {
  font-size: 11px;
  color: var(--orange-600);
}

.ad-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ad-contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--orange-tint);
  color: var(--orange-600);
  font-size: 12px;
  font-weight: 700;
  transition: all .2s ease;
}

.ad-contact-btn:hover {
  background: var(--orange-600);
  color: #fff;
}

.ad-contact-btn i {
  font-size: 12px;
}

.ad-price {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  font-size: 14px;
  color: var(--orange-600);
}

.ad-price small {
  font-size: 10px;
  font-weight: 600;
  opacity: .8;
}

.ad-price.free-price {
  color: var(--green-600);
  font-size: 12px;
}

.price-period {
  font-weight: 500;
  opacity: 0.7;
  font-size: 10px;
}

.ad-price-weekly {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 2px;
}


.ad-mine-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--blue-tint);
  color: #1967D2;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

html[dir="rtl"] .ad-mine-tag {
  right: auto;
  left: 10px;
}

.ad-card.mine {
  border: 1.5px solid var(--blue-tint);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 32px;
  text-align: center;
  color: var(--ink-500);
}

.empty-state i {
  font-size: 48px;
  opacity: .2;
  color: var(--ink-700);
}

.empty-state p {
  font-size: 13px;
  line-height: 1.6;
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  margin-top: 4px;
}

.btn-reset-filters:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================
   DETAILS TOPBAR
   ============================================ */

.details-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 15;
}

.details-topbar.dark {
  background: var(--navy-950);
  color: #fff;
  border-bottom-color: var(--navy-outline);
}

.back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--gray-tint);
  color: var(--ink-700);
  font-size: 14px;
  transition: all .2s ease;
}

.back-btn:hover {
  background: var(--line);
}

.details-topbar.dark .back-btn {
  background: var(--navy-outline);
  color: #fff;
}

.back-btn.light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.abudinar-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.abudinar-title small {
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
}

.topbar-spacer {
  width: 32px;
}

/* ============================================
   DETAILS CARD
   ============================================ */

.details-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.ad-details-image-wrapper {
  width: 100%;
  max-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--gray-tint);
}

.ad-details-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.details-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.pill-orange {
  background: var(--orange-tint);
  color: var(--orange-600);
}

.pill-outline {
  background: var(--gray-tint);
  color: var(--ink-700);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-700);
}

.meta-item i {
  color: var(--orange-600);
  font-size: 12px;
  flex-shrink: 0;
}

/* ============================================
   IMAGE GALLERY CAROUSEL
   ============================================ */

.gallery-container {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-tint);
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 10;
  transition: all .2s ease;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, .8);
}

.gallery-nav.prev {
  left: 8px;
}

.gallery-nav.next {
  right: 8px;
}

html[dir="rtl"] .gallery-nav.prev {
  left: auto;
  right: 8px;
}

html[dir="rtl"] .gallery-nav.next {
  right: auto;
  left: 8px;
}

.gallery-counter {
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-500);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* ============================================
   PRICE ROW
   ============================================ */

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--blue-tint);
  border-radius: 12px;
}

.price-big {
  font-size: 28px;
  font-weight: 900;
  color: #1967D2;
}

.price-big.is-free {
  color: var(--green-600);
}

.price-currency {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  opacity: .8;
}

.price-unit {
  font-size: 11px;
  color: var(--ink-500);
}

/* ============================================
   PAYMENT METHOD DISPLAY
   ============================================ */

.payment-display {
  padding: 12px;
  background: var(--orange-tint);
  border-radius: 12px;
  margin-bottom: 16px;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}

.payment-label i {
  color: var(--orange-600);
}

.payment-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-600);
  margin: 0;
}

/* ============================================
   PHONE DISPLAY CARD (PROMINENT)
   ============================================ */

.phone-display-card {
  padding: 14px 12px;
  background: linear-gradient(135deg, #fff0e4, #ffe4ce);
  border: 2px solid var(--orange-600);
  border-radius: 12px;
  margin-bottom: 16px;
}

.phone-display-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-display-label i {
  color: var(--orange-600);
  font-size: 13px;
}

.phone-display-value {
  font-size: 16px;
  font-weight: 900;
  color: var(--orange-600);
  letter-spacing: 1px;
}

.phone-display-card.is-locked {
  cursor: pointer;
  background: #fff8f3;
  border: 1.5px dashed var(--orange-600);
  transition: all 0.2s ease;
}

.phone-display-card.is-locked:hover {
  background: #fff0e4;
  transform: translateY(-1px);
}

.phone-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-600);
  cursor: pointer;
}

.phone-locked i {
  font-size: 14px;
}

/* ============================================
   DESCRIPTION CARD
   ============================================ */

.desc-card {
  margin-bottom: 16px;
}

.desc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink-900);
}

.desc-head i {
  color: var(--orange-600);
}

.desc-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 10px;
}

.desc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-list li {
  font-size: 12px;
  color: var(--ink-700);
  padding-left: 20px;
  position: relative;
}

html[dir="rtl"] .desc-list li {
  padding-left: 0;
  padding-right: 20px;
}

.desc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 800;
}

html[dir="rtl"] .desc-list li::before {
  left: auto;
  right: 0;
}

/* ============================================
   DETAILS ACTION BAR
   ============================================ */

.details-actionbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  z-index: 15;
}

.icon-round {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-tint);
  color: var(--ink-700);
  font-size: 14px;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.icon-round:hover {
  background: var(--orange-tint);
  color: var(--orange-600);
  transform: translateY(-2px);
}

.icon-round.is-fav {
  background: rgba(230, 57, 70, .1);
  color: var(--red-600);
}

.icon-round.hidden {
  display: none !important;
}

/* زر التعديل بجانب أزرار الإعلان */
#editAdBtn {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
#editAdBtn:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
  transform: translateY(-2px);
}

/* زر الحذف بجانب أزرار الإعلان */
#deleteAdBtn {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}
#deleteAdBtn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
  transform: translateY(-2px);
}

/* زر الإبلاغ عن الإعلان */
#reportAdBtn {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fecaca;
}
#reportAdBtn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #f87171;
  transform: translateY(-2px);
}

@media (max-width: 400px) {
  .details-actionbar {
    gap: 6px;
    padding: 10px 10px;
  }
  .icon-round {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 13px;
  }
  .contact-call-btn span {
    display: none;
  }
  .contact-call-btn {
    padding: 10px 10px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    justify-content: center;
  }
  .contact-main {
    padding: 10px 12px;
    font-size: 12px;
  }
}

.contact-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s ease;
}

.contact-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 106, 0, .3);
}

.contact-main i {
  font-size: 14px;
}

.contact-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  background: var(--gray-tint);
  color: var(--ink-700);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s ease;
}

.contact-call-btn:hover {
  background: var(--ink-300);
  color: var(--ink-900);
}

.contact-call-btn i {
  font-size: 14px;
}

.icon-round {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-tint);
  color: var(--ink-700);
  font-size: 14px;
  transition: all .2s ease;
}

.icon-round:hover {
  background: var(--orange-tint);
  color: var(--orange-600);
}

.icon-round.is-fav {
  background: rgba(230, 57, 70, .1);
  color: var(--red-600);
}

.icon-round.hidden {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 106, 0, .3);
}

.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: #fff;
  color: var(--ink-700);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--orange-600);
  color: var(--orange-600);
}

.btn-outline.danger {
  color: var(--red-600);
  border-color: var(--red-600);
}

.btn-block {
  width: 100%;
}

.text-btn-small {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-600);
  padding: 6px 10px;
}

/* ============================================
   FORMS
   ============================================ */

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 16px;
  margin: 12px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-900);
  background: #fff;
  margin-bottom: 14px;
  transition: all .2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--orange-600);
  box-shadow: 0 0 0 3px var(--orange-tint);
}

textarea.form-input {
  resize: vertical;
  font-family: inherit;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(230, 57, 70, .08);
  color: var(--red-600);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-error.hidden {
  display: none;
}

/* ============================================
   IMAGE UPLOAD AREA
   ============================================ */

.image-upload-area {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.image-file-input {
  display: none;
}

.image-file-input.hidden {
  display: none;
}

.image-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  border: 2px dashed var(--orange-600);
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange-600);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.image-upload-btn:hover {
  background: #fff;
  border-color: var(--orange-500);
}

.image-upload-btn i {
  font-size: 16px;
}

/* Image source picker modal (2-column modern cards) */
.image-source-sheet {
  max-width: 380px !important;
  padding: 26px 20px !important;
  border-radius: 24px !important;
  text-align: center;
}

.image-source-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

.image-source-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 20px 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.image-source-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.image-source-card:active {
  transform: scale(0.97) !important;
}

.image-source-card#btnSourceCamera:hover {
  border-color: #ff6a00 !important;
  background: #fff8f3 !important;
}

.image-source-card#btnSourceGallery:hover {
  border-color: #2563eb !important;
  background: #f0f7ff !important;
}

.source-card-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  transition: transform 0.2s ease !important;
}

.image-source-card:hover .source-card-icon {
  transform: scale(1.08) !important;
}

.camera-card-icon {
  background: rgba(255, 106, 0, 0.12) !important;
  color: #ff6a00 !important;
}

.gallery-card-icon {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
}

.source-card-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

.image-source-card#btnSourceCamera:hover .source-card-title {
  color: #ff6a00 !important;
}

.image-source-card#btnSourceGallery:hover .source-card-title {
  color: #2563eb !important;
}

/* Webcam Modal Viewport */
.webcam-viewport {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webcam-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.image-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-tint);
  border: 1px solid var(--line);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(230, 57, 70, .95);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

html[dir="rtl"] .image-preview-remove {
  right: auto;
  left: 2px;
}

.image-preview-item:hover .image-preview-remove,
.image-preview-remove:hover {
  opacity: 1;
  transform: scale(1.1);
}

.image-preview-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #ff6a00;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 4px;
  z-index: 1;
  line-height: 1.2;
}

html[dir="rtl"] .image-preview-badge {
  right: auto;
  left: 2px;
}

/* ============================================
   PAYMENT OPTIONS
   ============================================ */

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cliq-receipt-section {
  margin-bottom: 14px;
  padding: 12px;
  background: var(--gray-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cliq-receipt-section.hidden {
  display: none;
}

.payment-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
}

.payment-option input[type="radio"] {
  margin: 0;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--orange-600);
}

html[dir="rtl"] .payment-option input[type="radio"] {
  margin-right: 0;
  margin-left: 12px;
}

.payment-option-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .2s ease;
}

.payment-option input[type="radio"]:checked+.payment-option-text {
  background: var(--orange-tint);
  border-color: var(--orange-600);
}

.payment-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange-600);
  font-size: 14px;
  flex-shrink: 0;
}

.payment-label-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.payment-label-text span:first-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
}

.payment-label-text small {
  font-size: 11px;
  color: var(--ink-500);
}

/* ============================================
   DRAWER / SIDEBAR
   ============================================ */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 100;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(0, 0, 0, .3);
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform .3s ease;
  box-shadow: 8px 0 24px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .drawer-panel {
  left: auto;
  right: 0;
  transform: translateX(100%);
}

.drawer-overlay.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--orange-600);
  flex-shrink: 0;
}

.drawer-user {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-user strong {
  font-size: 13px;
  color: var(--ink-900);
}

.drawer-user span {
  font-size: 11px;
  color: var(--ink-500);
  line-height: 1.3;
}

.drawer-edit-btn {
  background: transparent;
  border: none;
  color: var(--orange-600);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.drawer-edit-btn:hover {
  background: var(--orange-tint);
  color: var(--orange-700);
}

.profile-avatar-box:hover {
  border-color: var(--orange-600) !important;
  transform: scale(1.02);
}

.profile-avatar-badge:hover {
  background: var(--orange-600) !important;
  transform: scale(1.1);
}

.drawer-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  overflow-y: auto;
}

.drawer-list li {
  border-bottom: 1px solid var(--line);
}

.drawer-list li:last-child {
  border-bottom: none;
}

.drawer-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  transition: all .2s ease;
}

.drawer-list button,
.drawer-list a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

html[dir="rtl"] .drawer-list button,
html[dir="rtl"] .drawer-list a {
  text-align: right;
  flex-direction: row;
}

html[dir="ltr"] .drawer-list button,
html[dir="ltr"] .drawer-list a {
  text-align: left;
  flex-direction: row;
}

.drawer-list button:hover,
.drawer-list a:hover {
  background: var(--gray-tint);
  color: var(--orange-600);
}

.drawer-list button i,
.drawer-list a i {
  font-size: 16px;
  color: var(--orange-600);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.drawer-list button:hover {
  background: var(--gray-tint);
  color: var(--orange-600);
}

.drawer-list button i {
  font-size: 14px;
  color: var(--orange-600);
  flex-shrink: 0;
}

.drawer-list .drawer-item-danger button {
  color: #dc2626;
}

.drawer-list .drawer-item-danger button i {
  color: #ef4444;
}

.drawer-list .drawer-item-danger button:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.drawer-cta {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.drawer-foot {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-btn-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 1.5px solid #fee2e2;
  border-radius: 10px;
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.drawer-btn-delete i {
  color: #ef4444;
  font-size: 14px;
}

.drawer-btn-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  display: flex;
  align-items: center; /* تم التغيير من flex-end لتوسيط النافذة عمودياً */
  justify-content: center; /* تمت الإضافة لتوسيط النافذة أفقياً */
  z-index: 110;
  padding: 16px; /* مسافة أمان للشاشات الصغيرة */
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
  background: rgba(0, 0, 0, .5);
}

.modal-sheet {
  width: 100%;
  max-width: 430px; /* */
  max-height: 92vh; /*[cite: 1] */
  overflow-y: auto;
  background: #fff; /*[cite: 1] */
  border-radius: 24px;
  padding: 24px 22px 30px 22px;
  position: relative;
  transform: translateY(-30px); /* تم التغيير لتنزل النافذة من الأعلى بشكل أنيق */
  transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  box-shadow: var(--shadow-pop); /* استخدام متغير الظل الموجود بملفك[cite: 1] */
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gray-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
  transition: all .2s ease;
}

html[dir="rtl"] .modal-close {
  right: auto;
  left: 16px;
}

.modal-close:hover {
  background: var(--ink-300);
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--orange-tint);
  color: var(--orange-600);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.modal-title {
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 18px;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--gray-tint);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-500);
  transition: all .2s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--orange-600);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.auth-step {
  display: block;
}

.auth-step.hidden {
  display: none;
}

/* ============================================
   GOOGLE AUTH DIVIDER & BUTTON WRAPPER
   ============================================ */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px 0;
  color: var(--ink-400, #94a3b8);
  font-size: 13px;
  font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.auth-divider span {
  padding: 0 12px;
}

.google-auth-container {
  width: 100%;
  margin: 6px 0 14px 0;
  display: flex;
  justify-content: center;
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 12px;
  color: #3c4043;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  box-sizing: border-box;
}

.btn-google-auth:hover {
  background: #f8fafd;
  border-color: #c2c7d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.btn-google-auth:active {
  background: #f1f3f4;
  transform: scale(0.99);
}

.btn-google-auth svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.google-auth-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin-bottom: 6px;
  width: 100%;
}

/* ============================================
   NOTIFICATIONS LIST
   ============================================ */

.notif-list {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  width: 100%;
  box-sizing: border-box;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: all .2s ease;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.notif-item.unread {
  background: linear-gradient(90deg, var(--orange-tint), transparent 40%);
}

.notif-item:hover {
  background: var(--gray-tint);
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--orange-tint);
  color: var(--orange-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notif-delete-btn {
  background: none;
  border: none;
  color: var(--ink-300);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  margin-inline-start: auto;
  align-self: center;
  transition: all .2s ease;
  flex-shrink: 0;
}

.notif-delete-btn:hover {
  color: var(--red-600);
  background: rgba(230, 57, 70, .08);
}

.notif-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-900);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notif-text {
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notif-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 12px;
  background: var(--orange-tint);
  color: var(--orange-600);
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(232, 94, 0, 0.25);
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  transition: all .2s ease;
  box-sizing: border-box;
}

.notif-link-badge:hover {
  background: var(--orange-600);
  color: #fff;
  border-color: var(--orange-600);
}

.notif-time {
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.settings-container,
.coupons-container {
  width: 100%;
  max-width: 620px;
  margin: 20px auto 60px;
  padding: 0 16px;
  box-sizing: border-box;
}

.settings-section {
  margin-top: 20px;
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 10px;
  text-align: start;
}

.settings-section-title i {
  color: var(--orange-600);
  font-size: 14px;
}

.settings-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(17, 23, 49, 0.04);
}

.settings-card .form-input:disabled {
  background: var(--gray-tint);
  color: var(--ink-500);
  cursor: not-allowed;
  border-color: var(--line);
}

/* Align buttons to the start (Right in Arabic RTL, Left in English LTR) */
.settings-actions-align {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

/* Save Changes Button */
.settings-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 160px;
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--orange-600) 0%, #ff7b25 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(240, 112, 32, 0.25);
}

.settings-save-btn:hover {
  background: linear-gradient(135deg, #d84315 0%, var(--orange-600) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 112, 32, 0.35);
}

.settings-save-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(240, 112, 32, 0.2);
}

.settings-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.toggle-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}

.toggle-text small {
  font-size: 11.5px;
  color: var(--ink-500);
  display: block;
  margin-top: 2px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: .25s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] .slider::before {
  left: auto;
  right: 3px;
}

.switch input:checked + .slider {
  background: var(--orange-600);
}

html[dir="ltr"] .switch input:checked + .slider::before {
  transform: translateX(22px);
}

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

/* Language Selection Options */
.lang-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lang-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-700);
  position: relative;
  background: #fff;
  transition: all .2s ease;
  cursor: pointer;
}

.lang-option:hover {
  border-color: var(--orange-500);
  background: rgba(240, 112, 32, 0.04);
  transform: translateY(-1px);
}

.lang-option .lang-flag {
  font-size: 20px;
  line-height: 1;
}

.lang-option .lang-check {
  font-size: 12px;
  color: var(--orange-600);
  margin-inline-start: 4px;
  opacity: 0;
  transition: opacity .2s ease;
}

.lang-option.active {
  border-color: var(--orange-600);
  background: var(--orange-tint);
  color: var(--orange-600);
  box-shadow: 0 2px 10px rgba(240, 112, 32, 0.12);
}

.lang-option.active .lang-check {
  opacity: 1;
}

.settings-hint {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-500);
  text-align: center;
}

/* Settings Action Buttons (Change Password, Logout & Delete Account) */
.settings-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.settings-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: start;
  box-sizing: border-box;
}

.settings-action-item .settings-btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-action-item .settings-chevron {
  font-size: 12px;
  color: var(--ink-300);
  transition: all 0.2s ease;
}

html[dir="ltr"] .settings-action-item .settings-chevron {
  transform: rotate(180deg);
}

/* Change Password */
.settings-btn-change-pass {
  color: var(--ink-900);
}

.settings-btn-change-pass i {
  color: var(--orange-500);
  font-size: 15px;
}

.settings-btn-change-pass:hover {
  background: rgba(240, 112, 32, 0.05);
  border-color: var(--orange-500);
  color: var(--orange-600);
  transform: translateY(-1px);
}

.settings-btn-change-pass:hover .settings-chevron {
  color: var(--orange-500);
  transform: translateX(-4px);
}

html[dir="ltr"] .settings-btn-change-pass:hover .settings-chevron {
  transform: rotate(180deg) translateX(-4px);
}

/* Logout */
.settings-btn-logout {
  color: var(--ink-800);
}

.settings-btn-logout i {
  color: var(--ink-500);
  font-size: 15px;
}

.settings-btn-logout:hover {
  background: var(--gray-tint);
  border-color: var(--ink-300);
  transform: translateY(-1px);
}

.settings-btn-logout:hover .settings-chevron {
  color: var(--ink-700);
  transform: translateX(-4px);
}

html[dir="ltr"] .settings-btn-logout:hover .settings-chevron {
  transform: rotate(180deg) translateX(-4px);
}

/* Delete Account */
.settings-btn-delete {
  color: #e63946;
  border-color: #fee2e2;
  background: #ffffff;
}

.settings-btn-delete i {
  color: #ef4444;
  font-size: 15px;
}

.settings-btn-delete:hover {
  background: #fff5f5;
  border-color: #f87171;
  transform: translateY(-1px);
}

.settings-btn-delete:hover .settings-chevron {
  color: #ef4444;
  transform: translateX(-4px);
}

html[dir="ltr"] .settings-btn-delete:hover .settings-chevron {
  transform: rotate(180deg) translateX(-4px);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-950);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 40px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast i {
  color: var(--orange-500);
  font-size: 14px;
}

.toast.toast-success i {
  color: var(--green-600);
}

.toast.toast-error i {
  color: var(--red-600);
}

/* ============================================
   FILTER MODAL
   ============================================ */

.filter-block {
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.chip-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-grid button {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  color: var(--ink-700);
  border: 1.5px solid var(--line);
  transition: all .2s ease;
}

.chip-grid button:hover {
  border-color: var(--orange-500);
}

.chip-grid button.active {
  background: var(--orange-600);
  color: #fff;
  border-color: var(--orange-600);
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.filter-actions .btn-outline,
.filter-actions .btn-primary {
  flex: 1;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 380px) {
  .brand-name {
    font-size: 15px;
  }

  .ad-title {
    font-size: 13px;
  }

  .details-title {
    font-size: 16px;
  }

  .price-big {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hide-text-mobile {
    display: none !important;
  }
}

/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */

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

*:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--orange-tint);
  color: var(--orange-600);
}

@media (min-width: 768px) {
  .ad-details-image-wrapper {
    background: #212529;
    max-height: 400px;
    border-radius: 12px;
  }
  .ad-details-image-wrapper img {
    object-fit: contain;
  }
}

/* ============================================
   PASSWORD FIELD & INTERACTIVITY
   ============================================ */

/* تغليف حقل كلمة المرور */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

/* تعديل الحقل الداخلي للكلمة المرور لتجنب تداخل النص مع العين */
.password-wrapper .form-input {
  margin-bottom: 0;
  padding-right: 40px; 
}

/* دعم الاتجاه العربي (RTL) للعين[cite: 1] */
html[dir="rtl"] .password-wrapper .form-input {
  padding-right: 12px;
  padding-left: 40px;
}

/* أيقونة العين لإظهار/إخفاء الباسورد */
.toggle-password {
  position: absolute;
  right: 14px;
  color: var(--ink-500); /* استخدام اللون الرمادي من ملفك[cite: 1] */
  font-size: 15px;
  cursor: pointer;
  transition: color .2s ease;
}

html[dir="rtl"] .toggle-password {
  right: auto;
  left: 14px;
}

.toggle-password:hover {
  color: var(--orange-600); /* استخدام اللون البرتقالي الأساسي[cite: 1] */
}

/* رابط نسيت كلمة المرور */
.forgot-password-link {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 14px;
}

html[dir="rtl"] .forgot-password-link {
  text-align: left;
}

.forgot-password-link a {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-600); /*[cite: 1] */
  text-decoration: none;
  transition: color .2s ease;
}

.forgot-password-link a:hover {
  color: var(--orange-500); /*[cite: 1] */
  text-decoration: underline;
}
/* إخفاء العين الافتراضية الخاصة بالمتصفح (خصوصاً Edge) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS FOR DESKTOP & TABLETS
   ============================================ */
@media (min-width: 1024px) {
  .app-shell {
    max-width: 100%;
    margin: 0;
    border: none;
  }

  .topbar {
    padding: 12px 28px;
  }

  .post-ad-banner,
  .search-wrap,
  .chip-row,
  .section-label,
  .active-filters {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }

  .ads-list {
    max-width: 100%;
    padding-left: 28px;
    padding-right: 28px;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 22px;
  }

  .details-card {
    max-width: 100%;
    margin: 0;
    padding: 32px 28px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .add-form-wrap,
  .admin-wrap,
  .account-wrap,
  .notifs-wrap {
    max-width: 100%;
    margin: 0;
    padding: 24px 28px;
  }
}

html[dir="rtl"] .back-btn i {
  transform: rotate(180deg);
}

/* ============================================
   ADMIN PANEL TABS & COMPONENTS (App Match)
   ============================================ */
.admin-tabs-bar {
  display: flex;
  background: #0B0F1E;
  padding: 8px 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 56px;
  z-index: 10;
}

.admin-tabs-bar::-webkit-scrollbar {
  display: none;
}

.admin-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #7A8099;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.admin-tab-btn i {
  font-size: 13px;
}

.admin-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-tab-btn.active {
  color: #FF6A00;
  background: rgba(255, 106, 0, 0.15);
}

.admin-tab-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.admin-tab-btn.active .admin-tab-badge {
  background: #FF6A00;
  color: #fff;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-user-avatar.admin {
  background: #FFF0E4;
  color: #FF6A00;
}

.admin-user-avatar.user {
  background: #E9F0FF;
  color: #1967D2;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.admin-user-email {
  font-size: 12px;
  color: var(--ink-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.admin-user-badge.admin {
  background: #FFF0E4;
  color: #FF6A00;
}

.admin-user-badge.user {
  background: #EEF0F4;
  color: #7A8099;
}

.admin-published-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 10px;
}

.admin-published-info {
  flex: 1;
  min-width: 0;
}

.admin-delete-btn {
  background: #fff5f5;
  color: #e63946;
  border: 1px solid #fecaca;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}

.admin-delete-btn:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* Fix grid overflow on very small screens */
@media (max-width: 359px) {
  .ads-list {
    grid-template-columns: 1fr;
  }
}

/* Full width on all screen sizes */
