/* ═══════════════════════════════════════════════════════════
   Social Mall MVC — Main Stylesheet
   Colors: Purple #2E76FF (primary) | Gold #F59E0B (VIP)
   ═══════════════════════════════════════════════════════════ */

*  { box-sizing: border-box; margin: 0; padding: 0; }
/* ── NEW BRAND COLORS: #2E76FF ─────────────────────────── */
:root {
  /* Primary brand */
  --primary:       #2E76FF;
  --primary-dark:  #1F5FE0;
  --primary-50:    #EEF4FF;
  --primary-100:   #DBEAFE;
  /* Status */
  --gold:          #F59E0B;
  --green:         #22C55E;
  --red:           #EF4444;
  --orange:        #F97316;
  /* Backgrounds */
  --bg:            #F5F7FB;
  --white:         #FFFFFF;
  /* Text */
  --gray-50:       #F8FAFC;
  --gray-100:      #F1F5F9;
  --gray-200:      #E2E8F0;
  --gray-300:      #CBD5E1;
  --gray-400:      #94A3B8;
  --gray-500:      #64748B;
  --gray-600:      #475569;
  --gray-700:      #334155;
  --gray-800:      #1E293B;
  --gray-900:      #0F172A;
  /* Shadows — softer */
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --shadow:        0 1px 4px rgba(46,118,255,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(46,118,255,.1),  0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:     0 8px 32px rgba(46,118,255,.12), 0 4px 12px rgba(0,0,0,.06);
}

body { font-family: 'Cairo', sans-serif; background: var(--bg); color: var(--gray-800); line-height: 1.6; overflow-x: hidden; }
a    { text-decoration: none; color: inherit; }
img  { max-width: 100%; height: auto; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.flex-1 { flex: 1; }
.text-orange { color: var(--orange); }
.text-purple { color: var(--primary); }

/* ── CONTAINER ───────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 700;
  font-family: 'Cairo', sans-serif; cursor: pointer; border: none; transition: all .15s;
  text-decoration: none; line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(46,118,255,.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 14px rgba(46,118,255,.4); transform: translateY(-2px); }
.btn-outline   { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-50); }
.btn-gold      { background: var(--gold); color: #000; }
.btn-gold:hover{ filter: brightness(.9); }
.btn-white     { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-50); }
.btn-green     { background: #22c55e; color: #fff; }
.btn-red       { background: #ef4444; color: #fff; }
.btn-amber     { background: #f59e0b; color: #fff; }
.btn-orange    { background: var(--orange); color: #fff; }
.btn-danger    { background: #fee2e2; color: #ef4444; border: 1px solid #fca5a5; }
.btn-full      { width: 100%; }
.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-xs  { padding: 4px 10px; font-size: 11px; }

/* ── FORMS ───────────────────────────────────────────── */
.form-input {
  width: 100%; border: 1.5px solid var(--gray-300); border-radius: var(--radius);
  padding: 11px 14px; font-size: 14px; font-family: 'Cairo', sans-serif;
  outline: none; transition: border-color .15s, box-shadow .15s; background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,62,184,.1); }
.form-input-sm  { max-width: 180px; }
.form-input-xs  { max-width: 110px; font-size: 12px; padding: 5px 8px; }
.form-input-color { height: 42px; cursor: pointer; }
.form-label  { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-hint   { font-size: 11px; color: var(--gray-400); font-weight: 400; }
.form-group  { margin-bottom: 14px; }
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .col-2 { grid-column: 1 / -1; }
.form-card   { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px; }
.form-card-title { font-size: 15px; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-100); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.form-actions.space-between { justify-content: space-between; }
.form-check  { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.check-input { width: 16px; height: 16px; cursor: pointer; }
.check-label { font-size: 13px; color: var(--gray-600); cursor: pointer; }
.char-count  { text-align: left; font-size: 11px; color: var(--gray-400); margin-top: 4px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .fa-search { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 13px; }
.input-icon-wrap .form-input { padding-right: 40px; }
.pw-toggle { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); }
.pw-toggle:hover { color: var(--gray-600); }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.review-notice { background: #fef9c3; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 12px 16px; font-size: 13px; color: #92400e; margin-bottom: 16px; }
.review-row  { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }

/* ── NAVBAR ──────────────────────────────────────────── */
.navbar      { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.navbar-inner{ max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo        { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 900; }
.logo-social { color: #1877F2; }
.logo-mall   { color: var(--gray-900); }
.logo-sep    { font-size: 13px; color: var(--gray-400); margin-right: 4px; }
.nav-links   { display: flex; gap: 2px; }
.nav-link    { padding: 7px 13px; border-radius: var(--radius); font-size: 13px; font-weight: 500; color: var(--gray-600); transition: .15s; }
.nav-link:hover,.nav-link.active { background: var(--primary-50); color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.user-menu   { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-lg); border: none; background: none; cursor: pointer; font-family: 'Cairo', sans-serif; color: var(--gray-700); transition: .15s; }
.user-menu-btn:hover { background: var(--gray-100); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.user-name   { font-size: 13px; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown { position: absolute; left: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 200px; padding: 6px 0; z-index: 200; }
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; color: var(--gray-700); cursor: pointer; transition: .1s; background: none; border: none; width: 100%; text-align: right; font-family: 'Cairo', sans-serif; }
.dropdown-item:hover { background: var(--primary-50); color: var(--primary); }
.dropdown-logout { color: var(--red); }
.dropdown-logout:hover { background: #fee2e2; }
.dropdown-divider { border-top: 1px solid var(--gray-100); margin: 4px 0; }
.hamburger   { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; background: none; border: none; padding: 8px; border-radius: 8px; min-width: 44px; min-height: 44px; }
.hamburger:hover { background: var(--gray-100); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; border-top: 1px solid var(--gray-100); background: #fff; padding: 6px 1.5rem 16px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.mobile-menu.open { display: block; animation: slideDown .2s ease; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mobile-link { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; color: var(--gray-700); margin-bottom: 3px; cursor: pointer; }
.mobile-link:hover { background: var(--primary-50); color: var(--primary); }
.mobile-logout { background: none; border: none; color: var(--red); font-family: 'Cairo', sans-serif; font-size: 14px; width: 100%; text-align: right; cursor: pointer; padding: 10px 12px; border-radius: var(--radius); }
.mobile-auth { display: flex; gap: 8px; padding: 8px 0; margin-top: 6px; border-top: 1px solid var(--gray-100); }
.mobile-auth .btn { flex: 1; justify-content: center; }

/* ── FLASH MESSAGES ──────────────────────────────────── */
.flash { padding: 12px 1.5rem; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.flash-success { background: #dcfce7; color: #166534; border-bottom: 1px solid #86efac; }
.flash-error   { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border-bottom: 1px solid #93c5fd; }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header { background: linear-gradient(135deg, #2E76FF, #1F5FE0); color: #fff; padding: 36px 0; }
.page-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.page-header p  { color: rgba(255,255,255,.8); font-size: 14px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-subtitle   { font-size: 14px; color: rgba(255,255,255,.7); }

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: 40px 0; }
.section-bg { background: var(--gray-50); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title  { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.section-link   { font-size: 13px; color: var(--primary); font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ── VIP SLIDER ──────────────────────────────────────── */
.vip-section    { position: relative; }
.vip-slider     { position: relative; overflow: hidden; border-radius: 0; min-height: 260px; }
.vip-slide      { position: absolute; inset: 0; background: linear-gradient(135deg, #2E76FF, #1F5FE0); background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 28px; opacity: 0; transition: opacity .5s; pointer-events: none; }
.vip-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.vip-overlay    { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.1)); }
.vip-content    { position: relative; z-index: 1; color: #fff; max-width: 600px; }
.vip-badge      { display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: #000; font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 20px; margin-bottom: 8px; }
.vip-name       { font-size: clamp(18px, 3vw, 26px); font-weight: 800; margin-bottom: 6px; }
.vip-desc       { font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.vip-city       { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.vip-btns       { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wa         { background: #25D366; color: #fff; }
.btn-outline-white { border: 2px solid rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.1); }
.btn-outline-white:hover { background: rgba(255,255,255,.2); }
.vip-dots       { position: absolute; bottom: 14px; right: 50%; transform: translateX(50%); display: flex; gap: 6px; z-index: 10; }
.vip-dot        { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; }
.vip-dot.active { width: 20px; background: #fff; }
.slider-prev,.slider-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.3); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
.slider-prev { right: 12px; }
.slider-next { left: 12px; }
.vip-placeholder { background: linear-gradient(135deg, #2E76FF, #1F5FE0); padding: 60px 0; text-align: center; color: #fff; }
.hero-title     { font-size: clamp(22px, 4vw, 42px); font-weight: 900; margin-bottom: 10px; }
.hero-sub       { color: rgba(255,255,255,.8); font-size: 15px; }

/* ── SEARCH ──────────────────────────────────────────── */
.search-section  { background: linear-gradient(135deg, #2E76FF, #1F5FE0); padding: 48px 0; }
.search-headline { color: #fff; font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 20px; }
.search-form     { background: #fff; border-radius: var(--radius-xl); padding: 16px; max-width: 680px; margin: 0 auto; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.search-row      { display: flex; gap: 10px; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap .fa-search { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.search-input    { width: 100%; padding: 11px 40px 11px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: 'Cairo', sans-serif; outline: none; }
.search-input:focus { border-color: var(--primary); }
.search-select   { border: 1.5px solid var(--gray-200); border-radius: var(--radius); padding: 11px 12px; font-size: 13px; font-family: 'Cairo', sans-serif; outline: none; background: #fff; min-width: 110px; }
.trending-tags   { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.trending-label  { font-size: 11px; color: var(--gray-500); }
.tag             { font-size: 12px; background: var(--gray-100); color: var(--gray-600); padding: 4px 12px; border-radius: 20px; transition: .15s; }
.tag:hover       { background: var(--primary-50); color: var(--primary); }

/* ── CATEGORIES GRID ─────────────────────────────────── */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.cat-card  { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 14px 8px; text-align: center; cursor: pointer; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-card:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon  { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.cat-name  { font-size: 11px; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.cat-more  { border-style: dashed; border-color: var(--primary-100); }

/* ── ADS LIST (home featured) ────────────────────────── */
.ads-list     { display: flex; flex-direction: column; gap: 14px; }
.ad-list-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; display: flex; transition: .2s; }
.ad-list-card.vip { border-right: 4px solid var(--gold); }
.ad-list-card:hover { box-shadow: var(--shadow-lg); }
.ad-list-img  { width: 120px; flex-shrink: 0; background: var(--primary-50); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.ad-list-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-placeholder-emoji { font-size: 40px; }
.vip-tag      { position: absolute; top: 6px; right: 6px; background: var(--gold); color: #000; font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px; }
.vip-tag-sm   { position: absolute; top: 4px; right: 4px; background: var(--gold); color: #000; font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 10px; }
.ad-list-body { flex: 1; padding: 14px; }
.ad-list-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ad-list-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.meta-city,.meta-cat { display: flex; align-items: center; gap: 4px; }
.ad-list-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-list-socials { display: flex; gap: 6px; }
.ad-list-aside { width: 100px; flex-shrink: 0; padding: 14px 10px; border-right: 1px solid var(--gray-100); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; }
.ad-stars     { color: var(--gold); font-size: 11px; text-align: center; }
.star-count   { color: var(--gray-400); font-size: 10px; }
.ad-views     { font-size: 11px; color: var(--gray-400); }

/* ── ADS GRID ────────────────────────────────────────── */
.ads-grid      { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ads-grid-sm   { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ad-card       { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: .2s; }
.ad-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ad-card.vip   { border-top: 3px solid var(--gold); }
.ad-card-img   { display: block; height: 140px; background: var(--primary-50); position: relative; overflow: hidden; }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-placeholder{ height: 100%; display: flex; align-items: center; justify-content: center; font-size: 50px; }
.logo-centered { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: var(--shadow); }
.city-tag      { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 20px; backdrop-filter: blur(4px); }
.ad-card-body  { padding: 12px; }
.ad-card-name  { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-name a:hover { color: var(--primary); }
.ad-card-desc  { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-card-meta  { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }
.ad-card-socials { display: flex; gap: 5px; }
.soc-btn       { padding: 5px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; border: none; font-family: 'Cairo', sans-serif; display: inline-flex; align-items: center; gap: 4px; transition: .15s; text-decoration: none; }
.soc-btn:hover { filter: brightness(.9); transform: translateY(-1px); }
.soc-wa        { background: #dcfce7; color: #166534; }
.soc-ig        { background: #fdf2f8; color: #9d174d; }
.soc-fb        { background: #eff6ff; color: #1d4ed8; }

/* ── STATS SECTION ───────────────────────────────────── */
.stats-section { background: #1A1A2E; padding: 48px 0; }
.stats-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; text-align: center; }
.stat-item .stat-num { font-size: 36px; font-weight: 900; color: #fff; }
.stat-item.gold .stat-num { color: var(--gold); }
.stat-item .stat-lbl { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, #2E76FF, #1F5FE0); padding: 56px 0; color: #fff; text-align: center; }
.cta-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta-section p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-btns  { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── ADS LISTING PAGE ────────────────────────────────── */
.ads-page   { padding: 24px 0 60px; }
.ads-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filter-sidebar {}
.filter-card  { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 18px; position: sticky; top: 80px; }
.filter-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.filter-group { margin-bottom: 14px; }
.filter-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.mobile-filter-bar  { display: none; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 12px; margin-bottom: 16px; }
.mobile-filter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.ads-main   {}
.empty-state { text-align: center; padding: 60px 0; }
.empty-icon  { font-size: 52px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.empty-state p  { color: var(--gray-400); margin-bottom: 16px; }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.page-btn   { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--gray-200); color: var(--gray-600); font-size: 13px; font-weight: 600; transition: .15s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── AD DETAIL ───────────────────────────────────────── */
.ad-detail-page { padding: 20px 0 60px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }
.ad-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.ad-gallery { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 16px; }
.gallery-main-img { width: 100%; height: 280px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 6px; padding: 8px; background: var(--gray-50); }
.gallery-thumb { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.gallery-thumb.active,.gallery-thumb:hover { opacity: 1; border-color: var(--primary); }
.ad-gallery-placeholder { height: 280px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xl); }
.logo-large { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.placeholder-emoji { font-size: 80px; }
.detail-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 20px; margin-bottom: 14px; }
.detail-header { display: flex; gap: 14px; margin-bottom: 14px; }
.detail-logo { width: 64px; height: 64px; border-radius: var(--radius-lg); background: var(--primary-50); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 24px; font-weight: 700; color: var(--primary); }
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; }
.detail-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-name { font-size: 20px; font-weight: 800; }
.vip-badge-lg { background: var(--gold); color: #000; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.detail-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge-city,.badge-cat,.badge-views { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.badge-city  { background: var(--primary-50); color: var(--primary); }
.badge-cat   { background: var(--gray-100); color: var(--gray-600); }
.badge-views { background: var(--gray-100); color: var(--gray-600); }
.detail-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.stars-display { color: var(--gold); }
.rating-val   { font-weight: 700; }
.rating-count { color: var(--gray-400); }
.detail-desc h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.detail-desc p  { font-size: 14px; color: var(--gray-600); line-height: 1.7; }
.rating-stars   { display: flex; gap: 6px; }
.star-btn       { font-size: 28px; color: var(--gray-300); background: none; border: none; cursor: pointer; transition: .1s; }
.star-btn:hover,.star-btn.filled { color: var(--gold); }
.rating-msg     { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 6px; }
.related-section { margin-top: 24px; }
.ad-card-mini   { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: .2s; }
.ad-card-mini:hover { box-shadow: var(--shadow-md); }
.ad-mini-img    { height: 100px; background: var(--primary-50); position: relative; overflow: hidden; }
.ad-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-mini-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.ad-mini-body   { padding: 8px 10px; }
.ad-mini-name   { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.ad-mini-city   { font-size: 11px; color: var(--gray-400); }
/* Aside */
.ad-detail-aside {}
.contact-card   { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 18px; margin-bottom: 14px; }
.contact-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.contact-btn    { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 700; cursor: pointer; border: none; font-family: 'Cairo', sans-serif; transition: .15s; margin-bottom: 8px; text-decoration: none; }
.contact-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.contact-wa  { background: #dcfce7; color: #166534; }
.contact-ig  { background: #fdf2f8; color: #9d174d; }
.contact-fb  { background: #eff6ff; color: #1d4ed8; }
.contact-phone { background: var(--primary-50); color: var(--primary); }
.info-card  { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 16px; margin-bottom: 14px; }
.info-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.info-row   { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.vip-text   { color: var(--gold); }
.upgrade-card { background: linear-gradient(135deg, #2E76FF, #1F5FE0); border-radius: var(--radius-xl); padding: 18px; text-align: center; color: #fff; }
.upgrade-emoji { font-size: 28px; margin-bottom: 6px; }
.upgrade-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.upgrade-card p  { font-size: 12px; color: rgba(255,255,255,.8); margin-bottom: 12px; }

/* ── CREATE/EDIT FORM ────────────────────────────────── */
.form-page  { padding: 28px 0 60px; max-width: 800px; }
.steps-bar  { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.step       { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gray-400); }
.step.active { color: var(--primary); }
.step.active span { background: var(--primary); }
.step span  { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-300); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.step-line  { flex: 1; height: 2px; background: var(--gray-200); }
.form-section {}
.social-inputs { display: flex; flex-direction: column; gap: 12px; }
.social-input-row { display: flex; align-items: flex-end; gap: 12px; }
.social-icon-wrap { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; margin-bottom: 2px; }
.social-icon-wrap.wa { background: #dcfce7; color: #16a34a; }
.social-icon-wrap.ig { background: #fdf2f8; color: #be185d; }
.social-icon-wrap.fb { background: #eff6ff; color: #1d4ed8; }
.social-icon-wrap.ph { background: var(--gray-100); color: var(--gray-600); }
.upload-zone { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: .2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-zone:hover { border-color: var(--primary); background: var(--primary-50); }
.upload-zone .fa-cloud-upload-alt,.upload-zone .fa-images { font-size: 28px; color: var(--gray-300); }
.upload-zone span { font-size: 13px; color: var(--gray-500); }
.upload-preview { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin-top: 10px; border: 2px solid var(--primary); }
.images-preview-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.preview-thumb { width: 80px; height: 80px; border-radius: var(--radius); object-fit: cover; border: 1px solid var(--gray-200); }
.review-grid { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }

/* ── CATEGORIES PAGE ─────────────────────────────────── */
.categories-header { background: linear-gradient(135deg, #2E76FF, #1F5FE0); }
.cats-page-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat-page-card  { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; }
.cat-page-header{ display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; }
.cat-page-left  { display: flex; align-items: center; gap: 12px; }
.cat-page-icon  { width: 42px; height: 42px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.cat-page-name  { font-size: 14px; font-weight: 700; }
.cat-page-sub-count { font-size: 12px; color: var(--gray-400); }
.cat-page-right { display: flex; align-items: center; gap: 8px; }
.cat-arrow      { color: var(--gray-400); font-size: 13px; transition: .2s; }
.cat-subs-panel { display: none; border-top: 1px solid var(--gray-100); }
.cat-subs-panel.open { display: block; }
.cat-sub-link   { display: flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: 13px; color: var(--gray-600); transition: .15s; }
.cat-sub-link:hover { background: var(--primary-50); color: var(--primary); }
.cat-sub-all    { display: block; text-align: center; padding: 10px; font-size: 12px; color: var(--primary); font-weight: 600; border-top: 1px solid var(--gray-50); }
.cat-show-header { padding: 32px 0; color: #fff; }
.cat-show-info  { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-show-icon  { width: 52px; height: 52px; border-radius: var(--radius-lg); background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cat-show-info h1 { font-size: 24px; font-weight: 800; }
.sub-tabs       { display: flex; gap: 6px; flex-wrap: wrap; }
.sub-tab        { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.15); color: #fff; transition: .15s; }
.sub-tab:hover,.sub-tab.active { background: #fff; color: var(--primary); }

/* ── AUTH ────────────────────────────────────────────── */
.auth-page { min-height: calc(100vh - 64px - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: linear-gradient(135deg, #2E76FF, #1F5FE0); }
.auth-card { background: #fff; border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 440px; box-shadow: 0 24px 48px rgba(0,0,0,.2); }
.auth-logo  { text-align: center; font-size: 36px; margin-bottom: 12px; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-sub   { font-size: 14px; color: var(--gray-400); text-align: center; margin-bottom: 24px; }
.auth-security-note { background: linear-gradient(135deg, #fef9c3, #fef3c7); border: 1px solid #fcd34d; border-radius: var(--radius-lg); padding: 12px 14px; margin-bottom: 20px; font-size: 13px; color: #92400e; line-height: 1.5; }
.auth-form  {}
.auth-forgot-pw-link { text-align: right; margin-bottom: 16px; }
.auth-forgot-pw-link a { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; transition: 0.15s; }
.auth-forgot-pw-link a:hover { text-decoration: underline; opacity: 0.8; }
.auth-switch { text-align: center; font-size: 13px; color: var(--gray-500); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.form-hint    { display: block; margin-top: 8px; font-size: 12px; color: #666; }

/* ── PROFILE ─────────────────────────────────────────── */
.profile-header { background: linear-gradient(135deg, #2E76FF, #1F5FE0); padding: 28px 0; color: #fff; }
.profile-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profile-info   { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; }
.profile-name   { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.profile-email  { font-size: 13px; color: rgba(255,255,255,.75); }
.profile-tags   { display: flex; gap: 6px; margin-top: 6px; }
.tag-pill       { font-size: 11px; background: rgba(255,255,255,.2); color: #fff; padding: 2px 10px; border-radius: 20px; }
.tag-green      { background: rgba(34,197,94,.3); }
.tag-gold       { background: rgba(244,196,48,.3); }
.expiry-warning { background: #fff7ed; border-bottom: 1px solid #fed7aa; }
.expiry-inner   { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 13px; color: #c2410c; font-weight: 600; }
.profile-page   { padding: 24px 0 60px; }
.stats-cards    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.stat-card      { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px; }
.stat-icon      { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 15px; }
.stat-icon.purple { background: var(--primary-50); color: var(--primary); }
.stat-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-icon.gold   { background: #fef9c3; color: #b45309; }
.stat-num       { font-size: 26px; font-weight: 800; }
.stat-lbl       { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.profile-tabs   { display: flex; gap: 2px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 4px; margin-bottom: 20px; width: fit-content; }
.tab-btn        { padding: 9px 20px; border-radius: var(--radius-lg); font-size: 13px; font-weight: 600; border: none; background: none; color: var(--gray-500); cursor: pointer; font-family: 'Cairo', sans-serif; transition: .15s; display: flex; align-items: center; gap: 6px; }
.tab-btn.active { background: var(--primary); color: #fff; }
.tab-content    { display: none; }
.tab-content.active { display: block; }
.ads-manage-list { display: flex; flex-direction: column; gap: 12px; }
.manage-card    { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.manage-card.vip-border { border-right: 4px solid var(--gold); }
.manage-card.hidden-card { opacity: .65; }
.manage-card-left { display: flex; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; }
.manage-logo    { width: 52px; height: 52px; border-radius: var(--radius-lg); background: var(--primary-50); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 20px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.manage-logo img { width: 100%; height: 100%; object-fit: cover; }
.manage-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.manage-name-row h3 { font-size: 15px; font-weight: 700; }
.badge-vip  { background: var(--gold); color: #000; }
.badge-hidden { background: var(--gray-200); color: var(--gray-600); }
.manage-meta { display: flex; gap: 12px; font-size: 12px; color: var(--gray-400); flex-wrap: wrap; }
.manage-actions { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; align-items: flex-start; }
.settings-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; max-width: 480px; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--gray-200); }
.data-table th { text-align: right; padding: 10px 14px; background: var(--gray-50); font-weight: 600; color: var(--gray-500); font-size: 12px; border-bottom: 1px solid var(--gray-200); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }

/* ── BADGES ──────────────────────────────────────────── */
.badge        { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-amber  { background: #fef9c3; color: #b45309; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-purple { background: var(--primary-50); color: var(--primary); }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-gold   { background: #fef9c3; color: #b45309; }

/* ── PROMOTE ─────────────────────────────────────────── */
.promote-hero { background: linear-gradient(135deg, #2E76FF, #1F5FE0); padding: 52px 0; color: #fff; }
.promote-emoji { font-size: 52px; margin-bottom: 12px; }
.promote-hero h1 { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.promote-hero p  { color: rgba(255,255,255,.8); }
.promote-price-tag { color: var(--gold); font-size: 20px; font-weight: 800; margin-top: 8px; }
.promote-page    { padding: 32px 0 60px; }
.promote-section { margin-bottom: 32px; }
.promote-step-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.store-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.store-select-card { background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: .15s; }
.store-select-card:hover,.store-select-card.selected { border-color: var(--primary); background: var(--primary-50); }
.store-card-logo { width: 44px; height: 44px; border-radius: var(--radius); background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); overflow: hidden; flex-shrink: 0; }
.store-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card-name { font-size: 13px; font-weight: 700; }
.store-card-city { font-size: 11px; color: var(--gray-400); }
.store-card-dot  { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gray-300); margin-right: auto; flex-shrink: 0; }
.store-select-card.selected .store-card-dot { background: var(--primary); border-color: var(--primary); }
.plans-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.plan-card   { background: #fff; border: 2px solid var(--gray-200); border-radius: var(--radius-xl); padding: 18px; cursor: pointer; text-align: center; transition: .15s; position: relative; }
.plan-card:hover,.plan-card.selected { border-color: var(--primary); background: var(--primary-50); }
.plan-card.plan-best { border-color: var(--primary); }
.plan-best-tag { position: absolute; top: -10px; right: 16px; background: var(--gold); color: #000; font-size: 10px; font-weight: 800; padding: 2px 10px; border-radius: 20px; }
.plan-price  { font-size: 30px; font-weight: 900; color: var(--primary); }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--gray-400); }
.plan-label  { font-size: 14px; font-weight: 700; margin: 4px 0; }
.plan-per    { font-size: 11px; color: var(--gray-400); }
.vip-type-selector { display: flex; gap: 10px; }
.vip-type-option   { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; font-size: 14px; font-weight: 600; transition: .15s; }
.vip-type-option:hover { border-color: var(--primary); }
.vip-type-option input { display: none; }
.vip-type-option:has(input:checked) { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.payment-info-card,.order-summary-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 22px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pay-method  { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); cursor: pointer; font-size: 14px; font-weight: 600; transition: .15s; }
.pay-method.active { border-color: var(--primary); background: var(--primary-50); }
.pay-method input { display: none; }
.pay-details-box { background: var(--gray-50); border-radius: var(--radius-lg); padding: 14px; }
.pay-detail-row  { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.summary-divider { border-top: 2px solid var(--gray-200); margin: 10px 0; }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.pay-notice { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); padding: 10px 12px; font-size: 12px; color: #166534; margin: 12px 0; display: flex; align-items: center; gap: 6px; }
.alert      { padding: 12px 16px; border-radius: var(--radius-lg); font-size: 13px; margin: 12px 0; display: flex; align-items: center; gap: 8px; }
.alert-warning { background: #fef9c3; border: 1px solid #fcd34d; color: #92400e; }

/* ── CONTACT ─────────────────────────────────────────── */
.contact-header { background: linear-gradient(135deg, #2E76FF, #1F5FE0); }
.contact-grid   { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.contact-info-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 22px; margin-bottom: 14px; }
.contact-info-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.contact-item   { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.contact-icon   { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-icon.wa { background: #dcfce7; color: #16a34a; }
.contact-icon.email { background: #dbeafe; color: #1d4ed8; }
.contact-icon.location { background: var(--primary-50); color: var(--primary); }
.contact-icon.clock { background: var(--gray-100); color: var(--gray-600); }
.contact-lbl { font-size: 11px; color: var(--gray-400); margin-bottom: 2px; }
.contact-val { font-size: 13px; font-weight: 600; }
.promo-contact-card { background: linear-gradient(135deg, #2E76FF, #1F5FE0); border-radius: var(--radius-xl); padding: 20px; color: #fff; text-align: center; }
.promo-contact-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.promo-contact-card p  { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.contact-right {}
.contact-form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 24px; }
.contact-form-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }

/* ── FOOTER ──────────────────────────────────────────── */
.footer      { background: #1E293B; color: var(--gray-400); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; }
.social-icon { width: 34px; height: 34px; background: #1E293B; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray-400); font-size: 14px; transition: .15s; }
.social-icon:hover { background: var(--primary); color: #fff; }
.contact-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gray-300); font-size: 16px; transition: .2s; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); }
.contact-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }
.footer-contact-link:hover { color: var(--primary) !important; }
.footer-contact-link h4:hover { color: var(--primary); }
.footer-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links li { font-size: 13px; transition: .15s; cursor: pointer; }
.footer-links li:hover { color: var(--primary-100); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 8px; }

/* ── FLOATING WHATSAPP ───────────────────────────────── */
.float-wa { position: fixed; bottom: 24px; left: 24px; width: 52px; height: 52px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 4px 16px rgba(37,211,102,.4); transition: .2s; z-index: 90; }
.float-wa:hover { transform: scale(1.1); }

/* ── ERROR PAGES ─────────────────────────────────────── */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-emoji { font-size: 60px; margin-bottom: 12px; }
.error-code  { font-size: 72px; font-weight: 900; color: var(--primary); margin-bottom: 4px; }
.error-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.error-desc  { color: var(--gray-500); margin-bottom: 24px; }
.error-actions { display: flex; gap: 12px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .ads-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .mobile-filter-bar { display: block; }

  /* Full filter drawer — reuses the desktop sidebar form as a slide-up sheet */
  .filter-sidebar.mobile-open {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    /* Above .pwa-bottomnav (z-index:300 in standalone/installed mode) —
       an open modal drawer must cover persistent app chrome like the
       bottom tab bar, not be covered by it (that was clipping the
       "Apply filters" button under the tab bar on iOS). */
    z-index: 310;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Stop scroll from chaining to the (locked) page behind once the
       drawer's own content hits its top/bottom edge — otherwise iOS's
       rubber-band effect can still visibly tug the background. */
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,.2);
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    animation: filterSheetUp .2s ease-out;
  }
  /* .filter-card's position:sticky (desktop page-scroll stickiness) has no
     purpose inside this fixed drawer and is a known-broken combination with
     iOS Safari — sticky inside an overflow:auto + position:fixed ancestor
     can freeze the ancestor's own touch-scrolling entirely. */
  .filter-sidebar.mobile-open .filter-card {
    position: static;
  }
  @keyframes filterSheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .mobile-filter-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    /* Below the drawer (310) but above .pwa-bottomnav (300), so the tab
       bar is dimmed/covered like the rest of the page while the drawer
       is open, consistent with the drawer sitting above it. */
    z-index: 309;
  }
  .mobile-filter-backdrop.open { display: block; }
  .mobile-filter-toggle-btn {
    position: relative;
    flex-shrink: 0;
    padding: 10px 14px !important;
  }
  .mobile-filter-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .mobile-filter-close { display: flex !important; }
  .ad-detail-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links,.nav-actions .btn { display: none; }
  .hamburger { display: flex; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .form-grid   { grid-template-columns: 1fr; }
  .form-grid .col-2 { grid-column: auto; }
  .ad-list-card { flex-direction: column; }
  .ad-list-aside { width: 100%; flex-direction: row; border-right: none; border-top: 1px solid var(--gray-100); }
  .footer-grid  { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
  .search-row { flex-direction: column; }
  .profile-header-inner { flex-direction: column; align-items: flex-start; }
  .vip-type-selector { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .cats-grid   { grid-template-columns: repeat(3, 1fr); }
  .ads-grid    { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   HERO IMAGE SECTION — Social Mall Jordan
   ══════════════════════════════════════════════════════ */
.hero-image-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  min-height: 500px;
  max-height: 600px;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  max-height: 580px;
  object-fit: cover;
  object-position: center center;  /* center for arch/landscape image */
  display: block;
}

/* Dark gradient overlay — bottom-heavy so text is readable */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 20, 50, 0.55) 0%,
    rgba(10, 20, 50, 0.45) 40%,
    rgba(10, 20, 50, 0.75) 75%,
    rgba(10, 20, 50, 0.88) 100%
  );
}

/* Content floated over the image */
.hero-img-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 110px 24px 20px;
  text-align: center;
}

.hero-img-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 4px 20px rgba(0,0,0,.55);
  letter-spacing: -0.3px;
}

.hero-img-sub {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  max-width: 680px;
}

/* Frosted backdrop panel behind the hero title/search — keeps text
   readable no matter how busy the background photo is, independent of
   the full-image gradient overlay above. */
.hero-text-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 780px;
  padding: 28px 32px 32px;
  background: rgba(10, 20, 50, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 480px) {
  .hero-text-panel { padding: 20px 16px 22px; border-radius: 16px; }
}

/* Search form inside hero */
.hero-search-form {
  width: 100%;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-search-row {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.hero-search-input-wrap {
  position: relative;
  flex: 1;
}

.hero-search-input-wrap .fa-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
}

.hero-search-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 12px 42px 12px 14px;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  color: #1a1a2e;
  background: transparent;
  border-radius: 10px;
}

.hero-search-input::placeholder { color: #94A3B8; }

.hero-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 46px;
  height: 46px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.hero-search-btn:hover { background: var(--primary-dark); }

/* Trending tags inside hero */
.hero-trending {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-trending-label {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.hero-tag {
  font-size: 12px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: .15s;
  text-decoration: none;
}
.hero-tag:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
}

/* Social platform badges */
.hero-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: .15s;
  cursor: default;
}

.hero-platform.fb  { background: rgba(24,119,242,0.35); border-color: rgba(24,119,242,0.6); }
.hero-platform.ig  { background: rgba(225,48,108,0.35); border-color: rgba(225,48,108,0.6); }
.hero-platform.wa  { background: rgba(37,211,102,0.35); border-color: rgba(37,211,102,0.6); }
.hero-platform.tt  { background: rgba(0,0,0,0.45);      border-color: rgba(255,255,255,0.3); }
.hero-platform.sc  { background: rgba(255,252,0,0.2);   border-color: rgba(255,252,0,0.5);  color: #fffde7; }

.hero-platform:hover { transform: translateY(-2px); filter: brightness(1.15); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-img-wrap  { min-height: 420px; max-height: 460px; }
  .hero-bg-img    { min-height: 420px; max-height: 460px; }
  .hero-img-content { padding: 60px 16px 12px; }
  .hero-search-row { padding: 10px; gap: 8px; }
  .hero-platforms { gap: 7px; }
  .hero-platform  { font-size: 11px; padding: 5px 12px; }

  /* The narrow mobile crop of a very wide (2.7:1) banner only shows the
     dead-center ~33% of its width by default — for this image that's the
     empty gap between its two product clusters. Shift the crop onto the
     left cluster (fashion/electronics/cars mockups) instead. */
  .hero-bg-img { object-position: 20% center; }
}

@media (max-width: 480px) {
  .hero-img-wrap  { min-height: 420px; max-height: 460px; }
  .hero-bg-img    { min-height: 420px; max-height: 460px; }
  .hero-img-title { font-size: 28px; }
  .hero-img-sub   { font-size: 13px; }
  .hero-trending  { display: none; }
}

/* ══════════════════════════════════════════════════════
   LANGUAGE TOGGLE (Fix 3)
   ══════════════════════════════════════════════════════ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  background: transparent;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: .15s;
}
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}
.lang-toggle .fa-globe { font-size: 13px; }

/* ══════════════════════════════════════════════════════
   ABOUT SECTION (Fix 7)
   ══════════════════════════════════════════════════════ */
.about-section {
  padding: 72px 0;
  background: linear-gradient(180deg, #fff 0%, #f4f9ff 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-tag {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.about-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #0d1b2a;
  line-height: 1.3;
  margin-bottom: 16px;
}
.about-desc {
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8f0fb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(30,115,190,.06);
}
.about-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--primary);
  flex-shrink: 0;
}
.about-feat-title { font-size: 13px; font-weight: 700; color: #1a1a2e; }
.about-feat-sub   { font-size: 11px; color: #94A3B8; margin-top: 2px; }
.about-btn { margin-top: 4px; }

/* Visual column */
.about-visual {
  position: relative;
  height: 380px;
}
.about-card-stack { position: relative; width: 100%; height: 100%; }
.about-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 8px 30px rgba(30,115,190,.12);
  border: 1px solid #e8f0fb;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
}
.about-card-1 { top: 20px;  right: 0;  z-index: 3; transform: rotate(1deg); }
.about-card-2 { top: 110px; right: 30px; z-index: 2; transform: rotate(-2deg); }
.about-card-3 { top: 200px; right: 10px; z-index: 3; transform: rotate(1.5deg); }
.about-badge-jordan {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { height: 260px; }
  .about-features { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   FIX 4: Filter improvements
   ══════════════════════════════════════════════════════ */
.filter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-clear-btn {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}
.mobile-filter-close {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--gray-500);
  width: 28px; height: 28px; align-items: center; justify-content: center;
}
.filter-input-wrap { position: relative; }
.filter-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 12px;
  pointer-events: none;
}
.filter-input { padding-right: 36px; }
.filter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}
.filter-check-text { color: var(--gray-700); font-weight: 500; }
.results-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.results-count { font-size: 14px; font-weight: 600; color: var(--gray-700); }
.vip-count-badge {
  font-size: 11px;
  background: #fef9c3;
  color: #b45309;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
}
/* Active filters display */
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  font-size: 12px;
}
.active-filters-label { color: var(--gray-500); font-weight: 500; }
.filter-chip {
  background: #fff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chip-remove { color: var(--red); font-weight: 700; font-size: 13px; }
.filter-clear-all { font-size: 12px; color: var(--red); font-weight: 600; margin-right: auto; }
/* Category chips (mobile) */
.cat-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  white-space: nowrap;
  text-decoration: none;
  transition: .15s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--primary);
  color: #fff;
}
/* Mobile search */
.mobile-search-wrap { position: relative; flex: 1; }
.mobile-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 12px;
  pointer-events: none;
}
/* FIX 8: Category/Subcategory badges on ad card */
.ad-h-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ad-cat-badge {
  font-size: 11px;
  background: var(--primary-50);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.ad-cat-badge:hover { background: var(--primary); color: #fff; }
.ad-subcat-badge {
  font-size: 11px;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   FIX 6: LTR mode overrides
   ══════════════════════════════════════════════════════ */
body.ltr-mode {
  direction: ltr;
  text-align: left;
}
body.ltr-mode .navbar-inner   { flex-direction: row; }
body.ltr-mode .nav-links       { direction: ltr; }
body.ltr-mode .nav-actions     { flex-direction: row; }
body.ltr-mode .user-dropdown   { left: auto; right: 0; }
body.ltr-mode .mobile-menu     { text-align: left; }
body.ltr-mode .ads-layout      { direction: ltr; }
body.ltr-mode .filter-sidebar  { order: -1; }
body.ltr-mode .ad-h-card       { direction: ltr; }
body.ltr-mode .ad-h-logo-col   { border-left: none; border-right: 1px solid #EFF6FF; order: -1; }
body.ltr-mode .ad-h-gallery    { order: 3; }
body.ltr-mode .footer          { direction: ltr; text-align: left; }
body.ltr-mode .footer-grid     { direction: ltr; }
body.ltr-mode .hero-img-content { text-align: center; }
body.ltr-mode .about-grid      { direction: ltr; }
body.ltr-mode .logo            { flex-direction: row; }
body.ltr-mode .form-input      { direction: ltr; text-align: left; }
body.ltr-mode select           { direction: ltr; }
body.ltr-mode .ad-h-footer     { flex-direction: row; }
body.ltr-mode .btn-see-more    { direction: ltr; }
body.ltr-mode .pagination      { direction: ltr; }
body.ltr-mode .admin-sidebar   { border-left: 1px solid #1E293B; border-right: none; }

/* ══════════════════════════════════════════════════════
   LOGO IMAGE (Fix 9)
   ══════════════════════════════════════════════════════ */
.logo-img-wrap { display: flex; align-items: center; }
.site-logo-img {
  height: 54px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
/* Hide text logo fallbacks */
.logo-social, .logo-mall, .logo-sep { display: none; }

/* ══════════════════════════════════════════════════════
   STATS SUB-LABEL (Fix 1)
   ══════════════════════════════════════════════════════ */
.stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════
   REMOVE LANGUAGE TOGGLE (Fix 4)
   ══════════════════════════════════════════════════════ */
.lang-toggle { display: none !important; }

/* ══════════════════════════════════════════════════════
   HIDE ABOUT SECTION (Fix 2)
   ══════════════════════════════════════════════════════ */
.about-section { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   AD CARD — Exact match to design image
   Layout: [LOGO col] | [INFO col] | [IMAGE GALLERY col]
   ═══════════════════════════════════════════════════════════ */

.ad-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Outer card ──────────────────────────────────────────── */
.ad-h-card {
  background: #ffffff;
  border: 1px solid #e8e3dc;
  border-radius: 20px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 240px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .15s;
}
.ad-h-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.ad-h-card.vip {
  border: 1.5px solid #F59E0B;
  box-shadow: 0 4px 20px rgba(244,196,48,.15);
}

/* ═══ LEFT COLUMN — Logo ═════════════════════════════════ */
.ad-h-logo-col {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  background: #F8FAFC;
  border-left: 1px solid #EFF6FF;  /* RTL: separator on left */
}

/* Circular dashed logo — exactly like the image */
.ad-h-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px dashed #c8bfb4;
  background: #EEF4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 32px;
  font-weight: 800;
  color: #8c7b6b;
  flex-shrink: 0;
}
.ad-h-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-h-platform {
  font-size: 12px;
  color: #9c8f82;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}

.vip-badge-sm {
  background: #F59E0B;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 20px;
  text-align: center;
}

/* ═══ MIDDLE COLUMN — Info ═══════════════════════════════ */
.ad-h-body {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #EFF6FF;  /* RTL: right separator */
}

/* Store name — large bold like image */
.ad-h-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 5px;
  display: block;
  text-decoration: none;
  letter-spacing: -.3px;
}
.ad-h-title:hover { color: var(--primary); }

/* Category badges */
.ad-h-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ad-cat-badge {
  font-size: 11px;
  background: var(--primary-50);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.ad-cat-badge:hover { background: var(--primary); color: #fff; }
.ad-subcat-badge {
  font-size: 11px;
  background: #F1F5F9;
  color: #64748B;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* Tagline — muted color like image */
.ad-h-tagline {
  font-size: 14px;
  color: #9c8c74;
  font-weight: 400;
  margin-bottom: 14px;
}

/* Horizontal divider */
.ad-h-divider {
  border: none;
  border-top: 1px solid #e8e3dc;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Full description — 3 lines max */
.ad-h-desc {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Social icon circles — exactly like image ── */
.ad-h-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.soc-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  border: 1.5px solid #e5e5e5;
  transition: all .18s ease;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.soc-circle:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Individual platform colors */
.soc-fb  { color: #1877F2; background: #f0f4ff; border-color: #d0e0ff; }
.soc-fb:hover  { background: #1877F2; color: #fff; border-color: #1877F2; }

.soc-ig  { color: #E1306C; background: #fff0f5; border-color: #ffd0e0; }
.soc-ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; border-color: transparent; }

.soc-wa  { color: #25D366; background: #f0faf4; border-color: #c0ecd0; }
.soc-wa:hover  { background: #25D366; color: #fff; border-color: #25D366; }

.soc-snap{ color: #FFFC00; background: #fffef0; border-color: #eeee00; }
.soc-snap:hover{ background: #FFFC00; color: #000; border-color: #FFFC00; }

.soc-web { color: var(--primary); background: var(--primary-50); border-color: #b0d0f0; }
.soc-web:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.soc-tt  { color: #000; background: #f0f0f0; border-color: #ccc; }
.soc-tt:hover  { background: #000; color: #fff; }

/* Phone number inline */
.ad-h-phone {
  font-size: 14px;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
}
.ad-h-phone .fa-phone {
  font-size: 15px;
  color: #64748B;
}

/* ── Footer row: rating + See More button ── */
.ad-h-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.ad-h-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94A3B8;
}
.ad-h-stars { color: #F59E0B; font-size: 13px; }
.ad-h-views { display: flex; align-items: center; gap: 4px; }
.ad-h-city  { display: flex; align-items: center; gap: 4px; }

/* "See More" button — dark olive like in image */
.btn-see-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2E76FF;
  color: #ffffff;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
}
.btn-see-more:hover {
  background: #333322;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.btn-see-more .fa-arrow-left {
  font-size: 13px;
  transition: transform .18s;
}
.btn-see-more:hover .fa-arrow-left {
  transform: translateX(-3px);
}

/* ═══ RIGHT COLUMN — Image Gallery ══════════════════════ */
.ad-h-gallery {
  width: 360px;
  flex-shrink: 0;
  background: #EFF6FF;
  position: relative;
  overflow: hidden;
}

.ad-h-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 240px;
}

/* Main image — fills the right panel */
.ad-h-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .35s ease;
  position: absolute;
  inset: 0;
}

/* Placeholder when no images */
.ad-h-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #c5bbb0;
  background: #EFF6FF;
}

/* Navigation arrows — white circles like in image */
.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  z-index: 5;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: all .15s;
}
.gallery-prev:hover,
.gallery-next:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.gallery-prev { right: 12px; }   /* RTL: prev is on right */
.gallery-next { left: 12px; }    /* RTL: next is on left  */

/* Image counter — dark pill bottom right like in image */
.gallery-counter {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(30,30,30,.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 22px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  letter-spacing: .04em;
  z-index: 5;
}

/* Dot indicators */
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: all .2s;
  cursor: pointer;
}
.gallery-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 3px;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ad-h-gallery { width: 280px; }
  .ad-h-logo-col { width: 150px; }
  .ad-h-body { padding: 22px 22px; }
  .ad-h-title { font-size: 21px; }
}
@media (max-width: 768px) {
  .ad-h-card {
    flex-direction: column;
    min-height: unset;
  }
  /* Gallery goes TOP on mobile */
  .ad-h-gallery {
    width: 100%;
    height: 220px;
    order: -1;
    flex-shrink: 0;
  }
  .ad-h-img-wrap { min-height: 220px; }
  /* Logo row horizontal on mobile */
  .ad-h-logo-col {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
    border-left: none;
    border-top: 1px solid #EFF6FF;
    border-bottom: 1px solid #EFF6FF;
    gap: 14px;
  }
  .ad-h-logo { width: 56px; height: 56px; font-size: 20px; }
  /* Body full width */
  .ad-h-body {
    padding: 16px 18px;
    border-right: none;
  }
  .ad-h-title { font-size: 18px; }
  .ad-h-desc  { font-size: 13px; }
}
@media (max-width: 480px) {
  .ad-h-title { font-size: 16px; }
  .soc-circle { width: 38px; height: 38px; font-size: 15px; }
  .btn-see-more { padding: 9px 18px; font-size: 13px; }
}

/* ── Stacked slider images ─────────────────────────────── */
.ad-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.ad-h-img-wrap { position: relative; min-height: 240px; }

/* ═══════════════════════════════════════════════════════════════
   FULL RESPONSIVE SYSTEM
   Breakpoints:
     xs  : ≤ 375px  (iPhone SE, small Android)
     sm  : ≤ 480px  (most phones portrait)
     md  : ≤ 768px  (large phones, small tablets)
     lg  : ≤ 1024px (tablets, small laptops)
   ═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL mobile base ───────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 1rem; }
  h1 { font-size: clamp(20px, 5vw, 28px) !important; }
  h2 { font-size: clamp(18px, 4vw, 24px) !important; }
  section { overflow-x: hidden; }
}

/* ── NAVBAR ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner { height: 56px; padding: 0 1rem; }
  .site-logo-img { height: 34px; max-width: 140px; }
  /* Hide desktop nav links and most buttons */
  .nav-links { display: none !important; }
  .nav-actions .btn:not(.hamburger) { display: none !important; }
  .hamburger { display: flex !important; }
  /* Mobile menu spacing */
  .mobile-menu { padding: 10px 1rem 16px; }
  .mobile-link {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #F1F5F9;
    font-weight: 600;
    color: #1a1a2e;
  }
  .mobile-auth {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-direction: column;
  }
  .mobile-auth .btn { width: 100%; justify-content: center; }
}

/* ── HERO ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-img-wrap,
  .hero-bg-img   { min-height: 420px !important; max-height: 460px !important; }
  .hero-img-content { padding: 60px 14px 12px !important; }
  .hero-img-title   { font-size: 30px !important; }
  .hero-img-sub     { font-size: 13px !important; margin-bottom: 18px !important; }

  /* Search box */
  .hero-search-form  { max-width: 100%; }
  .hero-search-row   {
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }
  .hero-trending     { justify-content: center; gap: 6px; margin-top: 8px; }
  .hero-tag          { font-size: 11px; padding: 3px 10px; }

  /* Platform badges */
  .hero-platforms { gap: 6px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
  .hero-platform  { font-size: 11px; padding: 5px 12px; }
}
@media (max-width: 480px) {
  .hero-img-wrap,
  .hero-bg-img   { min-height: 380px !important; max-height: 420px !important; }
  .hero-img-title { font-size: 26px !important; }
  .hero-platforms { display: flex; flex-wrap: wrap; }
  .hero-trending  { display: none; }
}

/* ── CATEGORIES GRID ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px;
  }
  .cat-card  { padding: 10px 4px; }
  .cat-icon  { width: 36px; height: 36px; font-size: 14px; }
  .cat-name  { font-size: 9px; }
}
@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 7px; }
  .cat-icon  { width: 32px; height: 32px; font-size: 13px; }
}
@media (max-width: 360px) {
  .cats-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── VIP / FEATURED AD CARDS ─────────────────────────────────── */
/* Mobile card rules are in ad-card.css — do not add conflicting rules here */

/* ── ADS PAGE — Filter bar ────────────────────────────────────── */
@media (max-width: 1024px) {
  .ads-layout { grid-template-columns: 1fr !important; }
  .filter-sidebar:not(.mobile-open) { display: none !important; }
  .mobile-filter-bar { display: block !important; }
}
@media (max-width: 768px) {
  .mobile-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .mobile-filter-form .form-input { min-width: 0; flex: 1 1 120px; }
  .mobile-filter-form .btn { flex-shrink: 0; }
  .cat-chips { padding-bottom: 8px; }
  .active-filters { font-size: 11px; gap: 5px; }
  .results-header { margin-bottom: 10px; }
  .pagination { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .page-btn { width: 36px; height: 36px; font-size: 13px; }
}

/* ── CATEGORIES PAGE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cats-hero          { padding: 32px 0 28px; }
  .cats-hero-inner    { flex-direction: column; gap: 18px; }
  .cats-search-row    { min-width: 0; width: 100%; }
  .cat-master-header  { padding: 14px 14px; gap: 10px; }
  .cat-master-icon    { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
  .cat-master-name    { font-size: 14px; }
  .cat-master-en      { display: none; }
  .cat-browse-btn     { display: none; }  /* hide on mobile, tap the card */
  .cat-subs-inner     { padding: 10px 14px 14px; gap: 6px; }
  .cat-sub-chip       { font-size: 11px; padding: 5px 12px; }
}
@media (max-width: 480px) {
  .cat-master-name    { font-size: 13px; }
  .cat-toggle-icon    { width: 28px; height: 28px; }
}

/* ── CREATE / EDIT FORM ───────────────────────────────────────── */
@media (max-width: 768px) {
  .create-grid  { grid-template-columns: 1fr !important; }
  .create-aside { order: -1; }  /* show media upload first on mobile */
  .form-grid    { grid-template-columns: 1fr !important; }
  .form-grid .col-2 { grid-column: auto !important; }
  .social-inputs { gap: 10px; }
  .social-input-row { gap: 10px; }
  .img-slots-grid { grid-template-columns: repeat(5,1fr) !important; gap: 6px; }
}

/* ── CONTACT PAGE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ── PROFILE PAGE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .profile-header-inner { flex-direction: column; gap: 12px; }
  .profile-stats  { grid-template-columns: repeat(2,1fr); }
  .manage-card    { flex-direction: column; gap: 10px; }
  .manage-card-actions { width: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
}

/* ── PROMOTE / PAYMENT PAGE ───────────────────────────────────── */
@media (max-width: 768px) {
  .payment-grid  { grid-template-columns: 1fr !important; }
  .plans-grid    { grid-template-columns: repeat(2,1fr) !important; gap: 10px; }
  .vip-type-selector { flex-direction: column; }
}
@media (max-width: 480px) {
  .plans-grid    { grid-template-columns: 1fr 1fr !important; }
}

/* ── FOOTER ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px; }
  footer       { padding: 28px 0 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}

/* ── ADS DETAIL (show page) ───────────────────────────────────── */
@media (max-width: 768px) {
  .ad-detail-grid { grid-template-columns: 1fr !important; }
  .ad-detail-sidebar { order: -1; }
  .contact-btns   { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .contact-btn    { text-align: center; justify-content: center; padding: 10px; }
}
@media (max-width: 480px) {
  .contact-btns   { grid-template-columns: 1fr; }
}

/* ── SECTION HEADERS ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .section-title  { font-size: 17px !important; }
  .section        { padding: 24px 0; }
}

/* ── TOUCH TARGETS ────────────────────────────────────────────── */
/* Ensure all tappable elements are at least 44x44px on mobile */
@media (max-width: 768px) {
  .btn, .nav-link, .cat-card, .mobile-link,
  .gallery-prev, .gallery-next,
  .soc-circle, .page-btn,
  .cat-sub-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Exception for chips which should be smaller */
  .cat-sub-chip, .hero-tag, .filter-chip {
    min-height: 36px;
  }
  .gallery-prev, .gallery-next {
    min-height: 40px !important;
  }
}

/* ── SAFE AREAS (iPhone X+ notch) ────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .float-wa {
    bottom: calc(22px + env(safe-area-inset-bottom));
    left:   calc(22px + env(safe-area-inset-left));
  }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* ── PREVENT HORIZONTAL SCROLL ───────────────────────────────── */
body, html { overflow-x: hidden; max-width: 100vw; }
.container { max-width: min(1280px, 100%); }

/* ── SMOOTH SCROLLING ────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── IMAGE OPTIMIZATION ─────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── TEXT READABILITY ON MOBILE ──────────────────────────────── */
@media (max-width: 480px) {
  p, .ad-h-desc { line-height: 1.65 !important; }
  .form-input   { font-size: 16px !important; } /* Prevent iOS zoom on input focus */
  select        { font-size: 16px !important; } /* Prevent iOS zoom on select focus */
}

/* ── iPhone 3G / very small screens (320px) ──────────────────── */
@media (max-width: 320px) {
  .navbar-inner    { padding: 0 10px; height: 50px; }
  .site-logo-img   { height: 28px; }
  .hero-img-wrap,
  .hero-bg-img     { min-height: 340px !important; max-height: 370px !important; }
  .hero-img-title  { font-size: 18px !important; }
  .hero-img-sub    { font-size: 11px !important; display: none; }
  .hero-search-row { padding: 8px !important; }
  .hero-search-input { font-size: 14px !important; }
  .hero-platforms  { display: none; }
  .cats-grid       { grid-template-columns: repeat(3,1fr) !important; gap: 5px; }
  .cat-card        { padding: 6px 2px; }
  .cat-icon        { width: 28px; height: 28px; font-size: 11px; }
  .cat-name        { font-size: 8px; }
  .ad-h-logo-col   { padding: 10px 12px !important; }
  .ad-h-logo       { width: 44px !important; height: 44px !important; }
  .ad-h-title      { font-size: 14px !important; }
  .ad-h-body       { padding: 12px 12px !important; }
  .btn-see-more    { font-size: 12px !important; padding: 8px 14px !important; }
  .section         { padding: 18px 0 !important; }
  .section-title   { font-size: 15px !important; }
  .container       { padding: 0 10px !important; }
  .footer          { padding: 20px 0 14px !important; }
}

/* ── ADS PAGE MOBILE — prevent horizontal overflow ────── */
@media (max-width: 768px) {
  .ads-page       { padding: 0 !important; }
  .ads-main       { min-width: 0; overflow: hidden; }
  .ad-cards-list  { padding: 0 2px; }

  /* Ensure page header doesn't overflow */
  .page-header .container h1 { font-size: 18px !important; }
  .page-header .container p  { font-size: 12px !important; }

  /* Mobile filter bar compact */
  .mobile-filter-bar {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .mobile-filter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  .mobile-filter-form .form-input {
    flex: 2 1 140px;
    min-width: 0;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 10px;
  }
  .mobile-filter-form .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 9px 18px;
    font-size: 13px;
  }

  /* Results header */
  .results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    margin-bottom: 10px;
  }
  .results-count { font-size: 13px; font-weight: 600; color: #334155; }
}

/* ── Bilingual Navbar Logo ────────────────────────── */
.navbar-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.1;
  gap: 1px;
}
/* Arabic row */
.navbar-logo-ar {
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-ar-social {
  font-size: 14px;
  font-weight: 900;
  color: #2E76FF;
  font-family: 'Cairo', sans-serif;
}
.logo-ar-mall {
  font-size: 14px;
  font-weight: 900;
  color: #1a1a1a;
  font-family: 'Cairo', sans-serif;
}
/* English row */
.navbar-logo-en {
  display: flex;
  align-items: center;
}
.logo-en-social {
  background: #2E76FF;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 1px 6px;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: .5px;
}
.logo-en-mall {
  font-size: 13px;
  font-weight: 900;
  color: #1a1a1a;
  font-family: 'Arial Black', sans-serif;
  letter-spacing: .5px;
}
/* Responsive */
@media (max-width: 768px) {
  .logo-ar-social, .logo-ar-mall { font-size: 12px; }
  .logo-en-social, .logo-en-mall { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════
   ENGLISH (LTR) MODE — body.lang-en
   All RTL properties are flipped for correct LTR layout
   ════════════════════════════════════════════════════════ */

body.lang-en {
  direction: ltr !important;
  text-align: left !important;
}

/* Navbar */
body.lang-en .navbar-inner   { direction: ltr; }
body.lang-en .nav-links       { direction: ltr; }
body.lang-en .nav-actions     { flex-direction: row; }
body.lang-en .navbar-logo     { align-items: flex-start; }
body.lang-en .navbar-logo-ar  { flex-direction: row; }
body.lang-en .mobile-menu     { direction: ltr; text-align: left; }
body.lang-en .mobile-link     { text-align: left; }
body.lang-en .user-dropdown   { left: 0; right: auto; }
body.lang-en .hamburger       { margin-left: 0; margin-right: auto; }

/* Hero */
body.lang-en .hero-img-content { text-align: center; }
body.lang-en .hero-search-input { text-align: left; direction: ltr; }
body.lang-en .hero-trending     { direction: ltr; }

/* Ad cards */
body.lang-en .ad-h-card        { direction: ltr; }
body.lang-en .ad-h-logo-col    { border-left: none; border-right: 1px solid #EFF6FF; order: 0; }
body.lang-en .ad-h-body        { border-right: none; border-left: 1px solid #EFF6FF; }
body.lang-en .ad-h-gallery     { order: 3; }
body.lang-en .gallery-prev     { right: auto; left: 12px; }
body.lang-en .gallery-next     { left: auto; right: 12px; }
body.lang-en .gallery-counter  { left: auto; right: 14px; }
body.lang-en .btn-see-more     { direction: ltr; }
body.lang-en .btn-see-more:hover { transform: translateX(3px); }
body.lang-en .ad-h-footer      { direction: ltr; }
body.lang-en .soc-circle:hover { transform: scale(1.12); }

/* Filter sidebar */
body.lang-en .ads-layout        { direction: ltr; }
body.lang-en .filter-sidebar    { order: -1; }
body.lang-en .form-input        { direction: ltr; text-align: left; }
body.lang-en select             { direction: ltr; }

/* Categories */
body.lang-en .cat-master-header { direction: ltr; }
body.lang-en .cat-subs-inner    { direction: ltr; }
body.lang-en .cat-master-actions { flex-direction: row-reverse; }
body.lang-en .cats-page-container.grid-view .cat-master-info { align-items: center; }
body.lang-en .cats-hero-inner   { flex-direction: row; }

/* About section */
body.lang-en .about-home-grid  { direction: ltr; }
body.lang-en .about-home-contact { direction: ltr; }

/* Sections */
body.lang-en .section-header   { direction: ltr; }
body.lang-en .section-link     { direction: ltr; }
body.lang-en .breadcrumb       { direction: ltr; }

/* Footer */
body.lang-en .footer,
body.lang-en .footer-grid { direction: ltr; text-align: left; }
body.lang-en .footer-bottom { direction: ltr; }

/* Forms */
body.lang-en .form-group    { direction: ltr; }
body.lang-en .form-label    { text-align: left; }
body.lang-en .create-grid   { direction: ltr; }
body.lang-en .social-input-row { direction: ltr; }

/* Profile */
body.lang-en .profile-header-inner { direction: ltr; }
body.lang-en .manage-card          { direction: ltr; }

/* Admin */
body.lang-en .admin-sidebar { border-left: 1px solid #1E293B; border-right: none; order: -1; }
body.lang-en .admin-main    { direction: ltr; }
body.lang-en table          { direction: ltr; }
body.lang-en th, body.lang-en td { text-align: left; }

/* Ad detail page */
body.lang-en .ad-detail-grid  { direction: ltr; }
body.lang-en .ad-detail-aside { order: 3; }
body.lang-en .detail-header   { direction: ltr; }
body.lang-en .sticky-contact-bar { direction: ltr; }

/* Flash messages */
body.lang-en .flash { direction: ltr; text-align: left; }

/* VIP slider */
body.lang-en .vip-nav-btns { direction: ltr; }

/* Mobile ad cards in LTR */
@media (max-width: 768px) {
  body.lang-en .ad-h-gallery { 
    order: -1 !important;
    border-radius: 14px 0 0 14px !important;
  }
  body.lang-en .ad-h-logo-col {
    border-right: none !important;
    border-bottom: 1px solid #EFF6FF !important;
  }
}

/* ── Fix 6: Mobile form — submit at bottom ── */
@media (max-width: 768px) {
  .create-grid { display: flex !important; flex-direction: column !important; }
  .create-main  { order: 1; }
  .create-aside { order: 2; }  /* media upload + submit AFTER all fields */
  /* Tips card hidden on mobile to reduce scroll */
  .tips-card { display: none; }
}

/* ── Fix 7,10: Mobile menu — vertical stack ── */
.mobile-menu {
  display: none;
  flex-direction: column !important;
  border-top: 1px solid var(--gray-100);
  background: #fff;
  padding: 8px 16px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex !important; }
.mobile-link {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  text-decoration: none !important;
  border-bottom: 1px solid #F1F5F9 !important;
  margin: 0 !important;
}
.mobile-link:last-of-type { border-bottom: none !important; }
.mobile-link:hover { background: var(--primary-50) !important; color: var(--primary) !important; }
.mobile-auth {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #F1F5F9 !important;
}
.mobile-auth .btn { width: 100% !important; justify-content: center !important; }

/* ── Inline field error messages ─────────────────────── */
.input-error {
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}
.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}
.field-error-msg {
  display: block;
  color: #EF4444;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 600;
}
.field-error-msg i { margin-left: 4px; }
.form-field-wrap { position: relative; }

/* ── Error summary box ────────────────────────────────── */
.form-errors-box {
  background: #FEF2F2;
  border: 1.5px solid #EF4444;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  color: #B91C1C;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-errors-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Extra LTR fixes for create + browse pages ── */
body.lang-en .create-grid,
body.lang-en .ads-grid,
body.lang-en .filter-panel { direction: ltr !important; }

body.lang-en .form-label,
body.lang-en .form-hint { text-align: left !important; }

body.lang-en .field-error-msg { text-align: left !important; }

body.lang-en .page-title,
body.lang-en .section-title { text-align: left !important; }

body.lang-en .ad-h-title,
body.lang-en .ad-h-tagline,
body.lang-en .ad-h-desc { text-align: left !important; }

body.lang-en .ad-h-footer,
body.lang-en .ad-h-meta { direction: ltr !important; }

body.lang-en .cat-name { direction: ltr !important; }

/* Mobile: same LTR treatment */
@media (max-width: 768px) {
  body.lang-en .ad-h-title,
  body.lang-en .ad-h-tagline,
  body.lang-en .ad-h-desc { text-align: left !important; }
}
