/* سوقنا — public version */
:root {
  --navy: #2E4A6B; /* mid blue — button/badge backgrounds (white text on it) */
  --navy2: #3D6390; /* lighter blue — hover + hero gradient end */
  --navy-text: #A8C6E8; /* light blue — links / headings / prices on dark */
  --gold: #C22744; /* برجندي مفتّح — brand primary on dark */
  --gold-dark: #9E1B32; /* darker burgundy — hover */
  --bg: #121214;
  --card: #1C1C1E;
  --text: #EDEDEF;
  --muted: #A1A1AA;
  --faint: #71717A;
  --soft: #1C1C1E;
  --border: #2E2E33;
  --green: #3ECF8E;
  --red: #F0524D;
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { direction: rtl; }
html[dir="ltr"] { direction: ltr; }
body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--navy-text); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--card); color: var(--text); width: 100%; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 5px; }

/* header */
header { background: #1A1A1D; color: var(--text); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo { font-size: 24px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.logo span { color: var(--gold); }
.logo small { display: block; font-size: 11px; font-weight: 400; color: #C7D3E0; }
nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav.main-nav a { color: var(--text); padding: 8px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }
nav.main-nav a:hover, nav.main-nav a.active { background: var(--soft); color: var(--navy-text); }
.header-spacer { flex: 1; }
.btn { display: inline-block; border: none; border-radius: 3px; padding: 10px 18px; font-weight: 800; font-size: 15px; transition: .15s; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); }
.btn-ghost { background: transparent; color: var(--navy-text); border: 1.5px solid var(--navy-text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.google-btn { display: inline-flex; align-items: center; gap: 10px; background: #1C1C1E; color: #EDEDEF; border: 1px solid #3A3A40; border-radius: 4px; padding: 10px 18px; font-weight: 800; font-size: 15px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.google-btn:hover { background: #26262A; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-text); font-weight: 700; font-size: 14px; }
.user-chip img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }

/* layout */
.container { max-width: 1200px; margin: 0 auto; padding: 18px 16px 60px; }
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; border-radius: var(--radius); padding: 34px 26px; text-align: center; margin-bottom: 20px; }
.hero h1 { font-size: 30px; font-weight: 900; }
.hero h1 span { color: var(--gold); }
.hero p { color: #D7E2EE; font-size: 17px; margin-top: 6px; }
.notice { border-radius: 4px; padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px; font-weight: 700; }
.notice.warn { background: #2A2113; border: 1px solid #6B5A1E; color: #F5D67B; }
.notice.info { background: #14202E; border: 1px solid #2E4A6B; color: #A8CCF0; }
.notice.error { background: #2E1512; border: 1px solid #6B2A24; color: #F5A9A2; }
.notice.ok { background: #12291A; border: 1px solid #1E5C38; color: #8FE3B0; }

/* categories */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-chip { background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; color: var(--navy-text); }
.cat-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cat-chip .count { color: var(--muted); font-size: 12px; }
.cat-chip.active .count { color: var(--gold); }

/* filters */
.filters { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; align-items: end; }
.filters .field { display: flex; flex-direction: column; }

/* listing grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.45); }
.card .thumb { position: relative; aspect-ratio: 4/3; background: #26262A; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h2 { font-size: 15px; line-height: 1.5; }
.card h3 { font-size: 15px; line-height: 1.5; }
.card .price { font-size: 20px; font-weight: 900; color: var(--navy-text); }
.card .meta { color: var(--muted); font-size: 13px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 3px; padding: 2px 9px; }
.badge-gold { background: var(--gold); color: #fff; }
.badge-navy { background: var(--navy); color: #fff; }
.badge-demo { background: #2A2113; color: #F5D67B; border: 1px dashed #6B5A1E; }
.badge-green { background: #12291A; color: #8FE3B0; }
.badge-red { background: #2E1512; color: #F5A9A2; }
.badge-grey { background: #26262A; color: var(--muted); }
.views { color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty h2 { color: var(--navy-text); margin-bottom: 8px; }

/* detail */
.detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: start; }
.detail .gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #26262A; }
.detail .thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail .thumbs img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.detail .thumbs img.sel { border-color: var(--gold); }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h1 { font-size: 19px; margin-bottom: 8px; }
.panel h2 { font-size: 19px; margin-bottom: 8px; }
.panel h3 { font-size: 16px; margin-bottom: 8px; }
.seller-row { display: flex; align-items: center; gap: 10px; }
.seller-row .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.kv { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding: 7px 0; font-size: 14.5px; }
.kv:last-child { border-bottom: none; }
.kv b { color: var(--navy-text); }

/* forms */
.form-card { max-width: 680px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.form-card h1 { font-size: 24px; margin-bottom: 4px; }
.form-card h2 { font-size: 19px; margin-bottom: 8px; }
.form-card .sub { color: var(--muted); margin-bottom: 16px; font-size: 14.5px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field-error { color: var(--red); font-size: 13px; font-weight: 700; margin-top: 4px; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photo-preview img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* tables (admin) */
table.admin { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
table.admin th, table.admin td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: right; vertical-align: top; }
table.admin th { background: var(--navy); color: #fff; font-size: 13.5px; }
table.admin tr:hover td { background: #26262A; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { background: var(--card); border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 15px; font-weight: 800; font-size: 14px; color: var(--navy-text); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* plans */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; }
.plan-card.hot { border-color: var(--gold); box-shadow: 0 6px 22px rgba(194,39,68,.35); }
.plan-card h2 { font-size: 19px; }
.plan-card h3 { font-size: 19px; }
.plan-card .plan-price { font-size: 30px; font-weight: 900; color: var(--navy-text); }
.plan-card .plan-price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.plan-card ul { list-style: none; margin: 12px 0; }
.plan-card li { padding: 5px 0; font-size: 14.5px; }
.plan-card li::before { content: '✓ '; color: var(--green); font-weight: 900; }

/* messages */
.chat-list { display: grid; gap: 10px; }
.chat-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.chat-item:hover { border-color: var(--gold); }
.msg-thread { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 12px; margin-bottom: 8px; font-size: 15px; }
.msg.mine { background: var(--navy); color: #fff; margin-right: auto; }
.msg.theirs { background: #26262A; }
.msg .time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }

/* footer */
footer { background: var(--soft); color: var(--muted); margin-top: 30px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 26px 16px; font-size: 14px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer b { color: var(--navy-text); }
footer a { color: var(--navy-text); }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; }
  .logo { font-size: 20px; }
}

/* ---------- additions: moderators / Dubizzle / services / jobs / polish ---------- */
.lang-btn { background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 4px; padding: 5px 12px; font-weight: 800; font-size: 13px; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); color: var(--navy-text); }

/* Announcement ticker (gold on navy, pauses on hover, RTL-safe) */
.ticker { background: var(--gold); color: #fff; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-block; padding: 8px 0; font-weight: 800; font-size: 14.5px;
  animation: ticker-scroll 22s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
[dir="ltr"] .ticker-track { animation-name: ticker-scroll-ltr; }
@keyframes ticker-scroll-ltr { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* Profile dropdown menu */
.profile-menu-wrap { position: relative; }
.profile-menu-wrap .user-chip { background: transparent; border: none; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.profile-menu-wrap .user-chip:hover { background: rgba(255,255,255,.12); }
.pm-caret { color: var(--gold); font-size: 12px; }
.profile-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px;
  background: #1C1C1E; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.5); padding: 6px; z-index: 50; }
.profile-menu a, .profile-menu button { display: block; width: 100%; text-align: start;
  padding: 10px 12px; border-radius: 8px; color: var(--navy-text); font-weight: 700; font-size: 14.5px;
  background: none; border: none; cursor: pointer; text-decoration: none; }
.profile-menu a:hover, .profile-menu button:hover { background: #2A2A2E; color: var(--navy-text); }

/* Section titles / subtitles */
.section-title { font-size: 21px; margin-bottom: 4px; }
.section-sub { color: var(--muted); margin-bottom: 16px; font-size: 14.5px; }

/* Dubizzle-style cards: 4/3 photo, bold navy price, meta row */
.card .thumb { aspect-ratio: 4/3; }
.card .price { font-size: 20px; }
.price-old { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-inline-start: 8px; }
.price-note { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Discounts section on home */
.discounts { margin: 18px 0; }
.discounts h2 { font-size: 19px; margin-bottom: 10px; }
.discounts .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.disc-card { background: #2A2113; border: 1px solid #6B5A1E; border-radius: var(--radius); padding: 14px; }

/* Professional post form */
.form-pro .form-section { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; background: #1C1C1E; }
.form-pro .form-section h2 { font-size: 16px; color: var(--navy-text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; margin-bottom: 6px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--navy); }
.form-note { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.btn-publish { width: 100%; padding: 13px; font-size: 17px; }
.help-box { margin-top: 8px; }
.help-box .notice { margin-bottom: 0; }

/* Admin tabs (shared) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1.5px solid var(--navy); background: var(--card); color: var(--navy-text); border-radius: 999px;
  padding: 7px 14px; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.tab.active { background: var(--navy); color: #fff; }
table.admin { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.admin th, table.admin td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: start; }
table.admin th { background: #26262A; color: var(--navy-text); }

/* ---------- تصميم الرئيسية الجديد — على شكل مرجع فتحي ---------- */
/* الهيدر: شعار ذهبي/أبيض + أيقونات الروابط + زر ذهبي للنشر */
.header-inner { max-width: 1200px; gap: 10px; }
.logo { font-size: 22px; }
nav.main-nav { gap: 2px; }
nav.main-nav a { padding: 8px 8px; font-size: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); }
.logo span { color: var(--gold); }
.logo small { display: none; }
.logo-bag { width: 34px; height: 34px; flex: 0 0 34px; }
.logo .logo-img { height: 36px; }
nav.main-nav a[data-nav="new"] { background: var(--gold); color: #fff; border-radius: 4px; padding: 8px 16px; }
nav.main-nav a[data-nav="new"]:hover, nav.main-nav a[data-nav="new"].active { background: var(--gold-dark); color: #fff; }
.google-btn { padding: 8px 12px; border-radius: 4px; }

/* الهيرو: صورة برج الساعة على الكورنيش + عنوان ضخم ذهبي/كحلي */
.hero-new { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 16px; padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-new img { width: 100%; height: auto; display: block; }

.hero-new > * { position: relative; z-index: 1; }
.hero-badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: #1C1C1E; color: var(--text);
  border-radius: 999px; padding: 7px 15px; font-weight: 800; font-size: 14.5px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.hero-badge .hb-heart { color: #E02424; }
.brush-badge { position: static; margin-top: 14px; transform: none; text-align: center; max-width: 100%;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.brush-badge .bb-a { display: inline-block; background: var(--navy); color: #fff; font-weight: 900; font-size: 16px;
  line-height: 1.5; padding: 6px 14px; border-radius: 4px; box-shadow: none; }
.brush-badge .bb-b { display: inline-block; background: var(--gold); color: #fff; font-weight: 900; font-size: 16px;
  padding: 6px 14px; margin-top: 0; border-radius: 4px; transform: none; box-shadow: none; }
.hero-brand { display: flex; align-items: center; gap: 16px; font-size: clamp(34px, 6vw, 58px);
  font-weight: 900; line-height: 1.02; letter-spacing: -1px; }
.hero-brand-text { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }
.hero-brand .b-gold { color: var(--gold); text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 8px 22px rgba(0,0,0,.5); }
.hero-brand .b-navy { color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.6), 0 4px 16px rgba(0,0,0,.5); }
.hero-bag { width: clamp(52px, 10vw, 112px); height: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.3)); }
.hero-sub2 { font-size: clamp(15px, 2vw, 19px); font-weight: 800; color: #fff; margin-top: 10px;
  text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.hero-sub2 .heart { color: #E02424; }

/* شريط البحث على طريقة دوبيزل: شريط أبيض بارز 48px تحت الهيرو */
.search-bar { display: flex; align-items: stretch; gap: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.4); height: 48px; margin-bottom: 20px; overflow: hidden; }
.search-bar select { width: auto; max-width: 180px; min-width: 0; border: none; border-inline-end: 1px solid var(--border);
  background: var(--card); font-weight: 800; color: var(--navy-text); font-size: 14px; padding: 8px 10px; text-overflow: ellipsis; border-radius: 0; }
.search-bar input[type="search"] { border: none; flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px; background: transparent; border-radius: 0; }
.search-bar input[type="search"]:focus, .search-bar select:focus { outline: none; box-shadow: none; }
.search-btn { flex: 0 0 auto; min-width: 72px; border: none; border-radius: 0; background: var(--gold); color: #fff;
  font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; }
.search-btn:hover { background: var(--gold-dark); }

/* أقسام «استكشف» على طريقة دوبيزل: بلوك لكل قسم + أهم أقسامه الفرعية + «كل ما في…» */
.explore { margin: 2px 0 24px; }
.explore h1 { font-size: 20px; font-weight: 900; color: var(--navy-text); margin-bottom: 12px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.explore-cat { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; }
.explore-cat h3 { font-size: 16px; font-weight: 800; color: var(--navy-text); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.explore-cat h3 .cc-ico { font-size: 22px; }
.explore-sub { display: block; padding: 3px 0; color: var(--muted); font-size: 14px; background: none; border: none; cursor: pointer; text-align: start; font-family: inherit; }
.explore-sub:hover { color: var(--navy-text); text-decoration: underline; }
.explore-all { display: inline-block; margin-top: 8px; padding: 0; background: none; border: none; cursor: pointer;
  color: var(--navy-text); font-weight: 800; font-size: 14px; font-family: inherit; }
.explore-all:hover { text-decoration: underline; }
/* عمليات البحث الشائعة */
.popular { margin: 26px 0 4px; }
.popular-links { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-link { background: var(--soft); border: 1px solid var(--border); border-radius: 4px; padding: 7px 12px;
  font-size: 13.5px; font-weight: 700; color: var(--navy-text); cursor: pointer; font-family: inherit; }
.popular-link:hover { border-color: var(--gold); background: #2A1E22; }

/* قسم المساعدة أسفل الرئيسية */
.help { margin: 26px 0 4px; }
.help-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.help-card { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 14px 16px; color: var(--text); text-decoration: none; display: block; }
a.help-card:hover { border-color: var(--gold); }
.help-card h3 { font-size: 16px; font-weight: 800; color: var(--navy-text); margin: 6px 0; }
.help-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.help-ico { font-size: 24px; }

/* تبويبات الرئيسية: عنوان + تبويب ذهبي نشط + عرض الكل */
.home-tabs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 4px 0 14px; border-bottom: 1px solid var(--border); }
.home-tabs h2 { font-size: 20px; font-weight: 900; color: var(--navy-text); display: flex; align-items: center; gap: 6px; margin-inline-end: 10px; padding-bottom: 8px; }
.home-tabs h2 .crown { color: var(--gold); font-size: 22px; }
.home-tab { background: none; border: none; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 10px 8px;
  font-weight: 800; font-size: 14.5px; color: var(--muted); font-family: inherit; }
.home-tab:hover { color: var(--navy-text); }
.home-tab.active { color: var(--navy-text); border-bottom-color: var(--gold); }
.home-all { margin-inline-start: auto; background: none; border: none; color: var(--navy-text);
  border-radius: 4px; padding: 8px 10px; font-weight: 800; font-size: 14px; font-family: inherit; }
.home-all:hover { background: var(--soft); }

/* الفلاتر المصغّرة تحت التبويبات */
.filters-mini { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters-mini .field { margin-bottom: 0; flex: 1 1 150px; max-width: 220px; }
.filters-mini select, .filters-mini input { padding: 9px 11px; font-size: 14px; }
.results-line { color: var(--muted); margin-bottom: 12px; font-size: 14px; }

/* شبكة الرئيسية: 4 أعمدة على الشاشات الكبيرة */
.grid.home-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
@media (min-width: 1020px) { .grid.home-grid { grid-template-columns: repeat(4, 1fr); } }

/* كرت الإعلان على شكل المرجع: شريط مميز مائل + قلب + سعر أحمر + زر تواصل كحلي */
.card .ribbon { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; background: var(--gold);
  color: #fff; font-weight: 900; font-size: 13px; padding: 3px 10px;
  border-radius: 3px; box-shadow: none; }
.card .fav-heart { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 38px; height: 38px;
  border-radius: 50%; background: #1C1C1E; border: none; box-shadow: 0 3px 10px rgba(0,0,0,.22);
  font-size: 19px; line-height: 1; color: #94A3B8; display: flex; align-items: center; justify-content: center; }
.card .fav-heart.on { color: #E02424; }
.card .fav-heart:hover { transform: scale(1.08); }
.card .thumb a { display: block; width: 100%; height: 100%; }
.card .store-disc { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; }

.card .price-row { margin-bottom: 2px; }
.card .seller-line { font-size: 13px; }
.home-grid .card .seller-line { display: none; }
.card .foot .btn-contact { width: 100%; text-align: center; padding: 10px 14px; }

/* الشريط السفلي: زر ذهبي + 4 مميزات بأيقونات ذهبية */
.home-strip { background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 22px 20px; margin-top: 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.strip-add { background: var(--gold); color: #fff; border-radius: 4px; padding: 13px 24px;
  font-weight: 900; font-size: 17px; white-space: nowrap; box-shadow: none; }
.strip-add:hover { background: var(--gold-dark); color: #fff; }
.strip-feats { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; justify-content: space-around; }
.strip-feat { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; line-height: 1.55; }
.strip-feat + .strip-feat { border-inline-start: 1px solid var(--border); padding-inline-start: 16px; }
.strip-feat .sf-ico { font-size: 27px; color: var(--gold); flex: 0 0 auto; }

@media (max-width: 760px) {
  .hero-new { min-height: 0; padding: 0; }
  /* هيدر مدمج على الفون: صف واحد (شعار + زر اللغة + الصورة) — الروابط في الشريط السفلي وقائمة الحساب */
  .header-inner { flex-wrap: nowrap; padding: 8px 12px; gap: 8px; }
  nav.main-nav { display: none; }
  .logo-bag { width: 28px; height: 28px; flex: 0 0 28px; }
  .profile-menu-wrap .user-name { display: none; }
  nav.main-nav a { padding: 6px 7px; font-size: 13px; }
  .home-strip { flex-direction: column; align-items: stretch; }
  .strip-add { text-align: center; }
  .strip-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-badge { font-size: 12.5px; padding: 6px 11px; }
  .brush-badge .bb-a { font-size: 16px; }
  .brush-badge .bb-b { font-size: 18px; }
  .search-bar { flex-wrap: wrap; height: auto; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .explore-cat { padding: 10px 12px; }
  .explore-cat h3 { font-size: 14.5px; }
  .explore-sub { font-size: 13px; }
  .search-bar select { max-width: none; flex: 1 1 100%; border-inline-end: none; border-bottom: 1px solid var(--border); }
  .search-bar input[type="search"] { font-size: 14.5px; }
  .search-btn { min-width: 64px; }
  .home-tabs h2 { font-size: 18px; }
  .home-all { margin-inline-start: 0; }
  .strip-feat + .strip-feat { border-inline-start: none; padding-inline-start: 0; }
  .strip-feats { gap: 14px; }
}

/* Souqna v2 */

/* ---------- ad banners carousel (JOB 2) ---------- */
.banner-slot { margin: 0 0 20px; }
.banner-carousel { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.banner-slide { display: none; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; aspect-ratio: 16/5; object-fit: cover; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.banner-arrow.prev { inset-inline-start: 10px; }
.banner-arrow.next { inset-inline-end: 10px; }
.banner-arrow:hover { background: var(--gold); }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 6px; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.banner-dot.active { background: var(--gold); }
@media (max-width: 760px) {
  .banner-slide img { aspect-ratio: 16/7; }
  .banner-arrow { width: 30px; height: 30px; font-size: 18px; }
}

/* ---------- mobile bottom tab bar (JOB 4) ---------- */
.mobile-tabs { display: none; }
@media (max-width: 760px) {
  .container { padding-bottom: 150px; }
  body { padding-bottom: 90px; }
  .mobile-tabs { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: #1A1A1D; border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); align-items: flex-end;
    box-shadow: 0 -2px 12px rgba(0,0,0,.4); }
  .mobile-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--muted); font-size: 12px; font-weight: 800; padding: 4px 2px; text-decoration: none; }
  .mobile-tabs a .mt-ico { font-size: 20px; line-height: 1; }
  .mobile-tabs a.active { color: var(--gold); }
  .mobile-tabs a.mt-sell { flex: 0 0 64px; }
  .mobile-tabs a.mt-sell .mt-plus { width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
    background: var(--gold); color: #fff; font-size: 30px; font-weight: 900; line-height: 1;
    display: flex; align-items: center; justify-content: center; border: 3px solid #1A1A1D;
    box-shadow: 0 4px 14px rgba(0,0,0,.5); }
}

/* ---------- القائمة الجانبية (الأقسام — زر ☰) ---------- */
.menu-btn { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 4px; width: 38px; height: 38px; font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer; flex: 0 0 38px; }
.menu-btn:hover { border-color: var(--gold); color: var(--navy-text); }
.menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; }
.side-menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 85vw); background: #1C1C1E; color: var(--text); z-index: 80; box-shadow: -4px 0 20px rgba(0,0,0,.5); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
html[dir="ltr"] .side-menu { transform: translateX(-105%); box-shadow: 4px 0 20px rgba(0,0,0,.5); }
.side-menu.open { transform: translateX(0); visibility: visible; }
.side-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 18px; }
.menu-close { background: transparent; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 4px 8px; }
.menu-close:hover { color: var(--gold); }
.side-menu-cats { padding: 8px 0; }
.sm-cat { border-bottom: 1px solid var(--border); padding: 4px 0; }
.sm-cat-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; color: var(--text); font-size: 16px; font-weight: 800; text-align: start; padding: 12px 16px; cursor: pointer; }
.sm-cat-btn:hover { background: #26262A; color: var(--navy-text); }
.sm-subs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px 46px; }
html[dir="ltr"] .sm-subs { padding: 0 16px 10px 46px; }
.sm-sub { background: #26262A; border: 1px solid var(--border); color: var(--muted); border-radius: 20px; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.sm-sub:hover { border-color: var(--gold); color: var(--text); }

#authArea { display: flex; align-items: center; gap: 10px; }
.notif-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); font-size: 18px; text-decoration: none; flex: none; }
.notif-badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #e00000; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-item { display: flex; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.notif-item.unread { border-color: var(--gold); }
.notif-ico { font-size: 20px; flex: none; }
.notif-text { display: block; font-weight: 600; }
.notif-time { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- agency-style motion (vanilla CSS/JS — hero + scroll reveal + cards) ---------- */
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-anim .hero-brand-text { animation: heroUp .7s ease both; }
.hero-anim .hero-sub2 { animation: heroUp .7s ease .12s both; }
.hero-anim .brush-badge { animation: heroUp .7s ease .24s both; }
.search-bar.hero-anim { animation: heroUp .7s ease .36s both; }
.reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card { transition: box-shadow .2s ease, transform .2s ease, opacity .6s ease var(--d, 0s); }
.card.reveal { transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s), box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.card .thumb img { transition: transform .45s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.banner-slide { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.banner-slide.active { position: relative; opacity: 1; pointer-events: auto; z-index: 1; }
.btn, .home-tab, .search-btn { transition: transform .15s ease, box-shadow .15s ease; }
.btn:active, .home-tab:active, .search-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- شعار سوقنا الجديد ---------- */
.logo-img { height: 44px; width: auto; }
.hero-new.hero-anim { animation: heroUp .7s ease both; }
@keyframes bannerSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-new.hero-anim img { animation: bannerSettle 6s ease-out both; }
@keyframes heroShine { 0% { transform: translateX(-160%) skewX(-18deg); } 22% { transform: translateX(260%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
.hero-new::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-160%) skewX(-18deg); animation: heroShine 6s ease-in-out 1.2s infinite; pointer-events: none; z-index: 2; }

/* ---------- روابط سريعة في القائمة الجانبية: اطلب خدمة / وظائف / المتاجر ---------- */
.side-menu-links { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid var(--border); }
.side-menu-links a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text); font-size: 16px; font-weight: 800; text-decoration: none; }
.side-menu-links a:hover { background: #26262A; color: var(--navy-text); }
