/* beta.css — واجهة سوق الإعلانات (Beta). بتعتمد على متغيّرات style.css (فاتح/داكن) والهوية الذهبية. */
body.beta { background: var(--bg); color: var(--text); font-family: var(--font); padding-bottom: 0; }
.beta a { color: inherit; }
.beta-wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.hide-sm { }

/* ---- Ribbon + Header ---- */
.beta-ribbon { background: var(--gold-grad); color: #0a0a0a; font-size: 12.5px; padding: 6px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; }
.beta-ribbon b { letter-spacing: .2em; margin-inline-end: 6px; }
.ribbon-btn { background: rgba(0,0,0,.85); color: #F3E08F; border: none; border-radius: 99px; padding: 3px 12px; font-size: 12px; cursor: pointer; font-family: inherit; }
.beta-ribbon > .auth-card { display: none; }
.beta-header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.beta-top { display: flex; align-items: center; gap: 18px; height: 64px; }
.beta-logo { display: flex; align-items: center; flex-shrink: 0; }
.beta-verticals { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.beta-verticals::-webkit-scrollbar { display: none; }
.vt { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--muted); transition: background .12s, color .12s; }
.vt svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vt:hover, .vt.active { background: var(--accent-soft); color: var(--text); }
.vt.active { box-shadow: inset 0 -2px 0 var(--accent); }
.beta-actions { display: flex; align-items: center; gap: 8px; }
.beta .theme-toggle { color: var(--muted); }
.beta .theme-toggle:hover { background: var(--hover-soft); color: var(--text); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); }
.icon-btn:hover { background: var(--hover-soft); color: var(--text); }
.icon-btn svg, .fav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.beta-search { display: flex; margin: 4px 0 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; overflow: hidden; background: var(--input-bg); height: 48px; }
.beta-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,97,.25); }
.beta-search .loc { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-inline-end: 1px solid var(--border); margin: 0; color: var(--accent-ink); flex-shrink: 0; }
.beta-search .loc svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.beta-search select { border: none !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; width: 130px; font-size: 14px; color: var(--text); }
.beta-search input[type=search] { flex: 1; min-width: 0; border: none !important; box-shadow: none !important; background: transparent !important; border-radius: 0; padding: 0 14px; font-size: 15px; height: 100%; }
.beta-search button { display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; background: #0a0a0a; color: #F3E08F; border: none; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.beta-search button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.beta-search button:hover { filter: brightness(1.25); }
.beta-catbar { border-top: 1px solid var(--border); }
.beta-catbar .beta-wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cb { position: relative; }
.cb > a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cb > a:hover { color: var(--accent-ink); }
.cb-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 210px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; }
.cb:hover .cb-menu { display: block; }
.cb-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.cb-menu a:hover { background: var(--accent-soft); }

/* ---- Hero / banners ---- */
.beta-hero { margin: 20px auto 8px; position: relative; border-radius: 18px; overflow: hidden; background: #0a0a0a; }
.bh-track { display: flex; transition: transform .5s ease; direction: ltr; }
.bh-slide { min-width: 100%; aspect-ratio: 21 / 6.5; position: relative; display: flex; align-items: center; background: #0a0a0a; direction: rtl; }
.bh-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-brand { background: radial-gradient(700px 260px at 80% 20%, rgba(201,169,97,.28), transparent 70%), linear-gradient(rgba(201,169,97,.06) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(201,169,97,.06) 1px, transparent 1px) 0 0/44px 44px, #0a0a0a; padding: 0 5%; }
.bh-brand h2 { font-family: var(--font-display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 5vw, 56px); margin: 0 0 8px; line-height: 1; direction: ltr; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.bh-brand p { color: #d8d2c0; margin: 0 0 16px; font-size: clamp(13px, 1.6vw, 18px); max-width: 520px; }
.bh-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.bh-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.bh-dots button.on { background: var(--accent); width: 22px; border-radius: 4px; }

/* ---- Sections ---- */
.beta-sec { margin: 34px auto; }
.beta-sec > h2 { font-size: 22px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.2px; }
.explore { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px 30px; }
.explore h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 10px; }
.explore h3 svg { width: 20px; height: 20px; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.explore a { display: block; padding: 5px 0; color: var(--muted); font-size: 14.5px; }
.explore a:hover { color: var(--text); }
.explore a.all { color: var(--accent-ink); font-weight: 600; margin-top: 4px; }

.beta-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.beta-tabs button { background: none; border: none; padding: 14px 8px 16px; text-align: center; cursor: pointer; font-family: inherit; color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.beta-tabs button b { display: block; font-size: 17px; }
.beta-tabs button span { color: var(--muted); font-size: 13px; }
.beta-tabs button.on { border-bottom-color: var(--accent); }
.tab-pane { display: none; } .tab-pane.on { display: block; }
.new-badge { background: var(--accent); color: #0a0a0a; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 7px; margin-inline-start: 6px; vertical-align: middle; }

/* ---- Ad cards ---- */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px 18px; }
.ad-card { position: relative; border-radius: 12px; background: var(--card); border: 1px solid transparent; transition: box-shadow .15s, border-color .15s, transform .15s; }
.ad-card:hover { box-shadow: 0 8px 28px -8px rgba(0,0,0,.25); border-color: var(--border); transform: translateY(-2px); }
.ad-link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.ad-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.ad-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-ph { opacity: .55; }
.ad-tag { position: absolute; top: 10px; right: 10px; background: var(--btn-grad); color: #0a0a0a; font-weight: 800; font-size: 11.5px; padding: 3px 10px; border-radius: 6px; z-index: 2; }
.fav { position: absolute; top: 8px; left: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #444; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s; }
.fav:hover { transform: scale(1.1); }
.fav.on { color: #e11d48; } .fav.on svg { fill: #e11d48; }
.ad-body { padding: 10px 6px 12px; display: flex; flex-direction: column; gap: 3px; }
.ad-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ad-price span { font-size: 19px; font-weight: 800; color: var(--accent-ink); letter-spacing: -.3px; }
.ad-price small { font-size: 12px; font-weight: 600; }
.ad-price em { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ad-title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ad-meta { font-size: 13px; font-weight: 700; }
.ad-loc, .ad-time { font-size: 12.5px; color: var(--muted); }
.ad-comm { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; width: fit-content; position: relative; z-index: 2; }
.beta-empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 14px; }
.band { border-radius: 18px; padding: 30px 34px; background: var(--gold-grad); color: #0a0a0a; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h3 { margin: 0 0 6px; font-size: 22px; } .band p { margin: 0; font-weight: 500; max-width: 520px; }
.band .btn { background: #0a0a0a; color: #F3E08F; }

/* ---- Search page ---- */
.sr-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; margin: 22px auto 40px; align-items: start; }
.sr-filters { background: var(--card); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); position: sticky; top: 190px; }
.sr-filters h3 { margin: 0 0 4px; font-size: 15px; }
.sr-filters label { margin: 14px 0 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sr-filters .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-filters .btn { width: 100%; margin-top: 16px; }
.sr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sr-head h1 { margin: 0; font-size: 21px; } .sr-head .muted { font-size: 13.5px; }
.sr-head select { width: auto; padding: 7px 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-ink); }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 30px 0 10px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--card); border: 1px solid var(--border); font-size: 14px; }
.pager .cur { background: var(--accent); color: #0a0a0a; border-color: transparent; font-weight: 800; }
.filter-toggle { display: none; }

/* ---- Detail ---- */
.dt-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; margin: 18px auto 40px; align-items: start; }
.dt-gallery .main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--surface-2); display: block; }
.dt-gallery .ph { aspect-ratio: 4/3; border-radius: 16px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.dt-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.dt-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .75; border: 2px solid transparent; }
.dt-thumbs img.on, .dt-thumbs img:hover { opacity: 1; border-color: var(--accent); }
.dt-card { background: var(--card); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 14px; }
.dt-price { font-size: 32px; font-weight: 900; color: var(--accent-ink); letter-spacing: -.5px; }
.dt-price small { font-size: 15px; } .dt-neg { font-size: 13px; color: var(--muted); font-weight: 600; margin-inline-start: 8px; }
.dt-title { margin: 6px 0 10px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.dt-sub { color: var(--muted); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.dt-attrs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.dt-attrs div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dt-attrs div:nth-last-child(-n+2) { border-bottom: none; }
.dt-attrs span { color: var(--muted); }
.dt-desc { white-space: pre-line; line-height: 1.9; color: var(--text); }
.dt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.dt-actions .btn { flex: 1; padding: 12px 14px; min-width: 120px; }
.seller { display: flex; align-items: center; gap: 12px; }
.seller .av { width: 46px; height: 46px; border-radius: 12px; background: var(--btn-grad); color: #0a0a0a; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.verified { color: #2563eb; font-size: 12.5px; font-weight: 700; }
.earn { border: 1.5px dashed var(--accent); background: var(--accent-soft); }
.earn b { color: var(--accent-ink); }
.earn code { display: block; direction: ltr; text-align: left; margin: 8px 0; padding: 8px 10px; word-break: break-all; font-size: 12px; }

/* ---- Mobile tab bar ---- */
.beta-footer { background: var(--sidebar); color: #cfc8b4; padding: 40px 0 24px; margin-top: 40px; }
.bf-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.bf-cols h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .25em; color: #C9A961; text-transform: uppercase; }
.bf-cols a { display: block; padding: 4px 0; color: #a79f88; font-size: 14px; } .bf-cols a:hover { color: #F3E08F; }
.bf-cols p { color: #8b846f; font-size: 14px; line-height: 1.8; margin: 12px 0 0; }
.bf-copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid #1d1910; color: #6f6957; font-size: 12px; letter-spacing: .12em; }
.beta-tabbar { display: none; }

@media (max-width: 900px) {
    .hide-sm { display: none !important; }
    .beta-top { height: 56px; gap: 10px; }
    .beta-verticals { display: none; }
    .beta-actions { margin-inline-start: auto; }
    .beta-actions .btn-primary { padding: 7px 12px; font-size: 12.5px; }
    .beta-catbar { display: none; }
    .beta-search { margin: 4px 0 12px; height: 44px; } .beta-search select { width: 96px; } .beta-search button span { display: none; } .beta-search button { padding: 0 16px; }
    .beta-hero { border-radius: 14px; margin-top: 12px; } .bh-slide { aspect-ratio: 16 / 8; }
    .sr-layout, .dt-layout { grid-template-columns: 1fr; }
    .sr-filters { position: static; display: none; } .sr-filters.open { display: block; }
    .filter-toggle { display: inline-flex; }
    .ad-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .dt-attrs { grid-template-columns: 1fr; } .dt-attrs div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
    .bf-cols { grid-template-columns: 1fr 1fr; } .bf-cols > div:first-child { grid-column: 1 / -1; }
    body.beta { padding-bottom: 72px; }
    .beta-tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--sidebar); border-top: 1px solid #222; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .beta-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: #8c8c8c; padding: 4px 0; }
    .beta-tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .beta-tabbar a.on { color: #F3E08F; }
    .beta-tabbar .sell .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--btn-grad); color: #0a0a0a; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: -16px; box-shadow: 0 4px 14px rgba(201,169,97,.5); line-height: 1; }
    .beta-tabbar .sell { color: #F3E08F; }
}
@media (max-width: 900px) { .explore { grid-template-columns: 1fr 1fr; gap: 16px; } .explore a:not(.all) { display: none; } .explore a.all { font-size: 13px; } }
@media (max-width: 480px) { .ad-price span { font-size: 16px; } .ad-title { font-size: 13.5px; } .dt-thumbs { grid-template-columns: repeat(4, 1fr); } }
.fav-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fav-btn.on { color: #e11d48; border-color: #e11d48; } .fav-btn.on svg { fill: #e11d48; }

.cbl { padding: 12px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--muted); } .cbl:hover, .cbl.on { color: var(--accent-ink); }

/* ---- حساب المشتري ---- */
.buyer-page { max-width: 880px; }
.buyer-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; }
.buyer-hero h1 { margin: 0; font-size: 22px; }
.buyer-hero .av { width: 54px; height: 54px; border-radius: 50%; background: var(--gold-grad); color: #0a0a0a; display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.buyer-nav { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 16px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.buyer-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.buyer-nav a svg { width: 18px; height: 18px; }
.buyer-nav a:hover, .buyer-nav a.on { background: var(--accent-soft); color: var(--text); }
.buyer-nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
.buyer-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.bst { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.bst b { font-size: 28px; font-weight: 900; color: var(--accent-ink); }
.bst span { color: var(--muted); font-size: 13.5px; }
.buyer-list { display: flex; flex-direction: column; gap: 10px; }
.buyer-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; color: var(--text); }
.buyer-row:hover { border-color: var(--accent); }
.buyer-row .th { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--hover-soft); flex-shrink: 0; }
.buyer-row .th img { width: 100%; height: 100%; object-fit: cover; }
.buyer-row .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.buyer-row .tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-row .dt { font-size: 12px; white-space: nowrap; }
.buyer-form { max-width: 520px; padding: 18px; }
.buyer-form label { display: block; margin: 12px 0 4px; font-weight: 700; font-size: 13.5px; }
.bf-fb { margin-inline-start: 14px; }

/* ---- انشر إعلانك ---- */
.sell-page { max-width: 1040px; }
.sell-h { margin: 6px 0 12px; font-size: 26px; }
.sell-sub { margin: 18px 0 12px; font-size: 18px; }
.sell-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.sell-steps span { padding: 7px 14px; border-radius: 99px; background: var(--hover-soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.sell-steps .on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.sell-steps .done { color: var(--accent-ink); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .12s, transform .12s; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat-card .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.cat-card .ci svg { width: 24px; height: 24px; }
.cat-card b { flex: 1; font-size: 15px; }
.cat-card i { font-style: normal; font-size: 22px; color: var(--muted); }
.sell-layout { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.sell-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.sf-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: start; }
.sf-row > label { font-weight: 800; padding-top: 10px; }
.sf-cat { padding-top: 8px; } .sf-change { color: var(--accent-ink); font-weight: 700; margin-inline-start: 10px; }
.sf-drop { border: 2px dashed var(--border-strong, var(--border)); border-radius: 14px; padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.sf-fields { padding-top: 12px; } .sf-actions { padding-top: 16px; text-align: start; }
.sell-help ul { padding-inline-start: 18px; line-height: 2; }
.sell-draft { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } .sell-layout { grid-template-columns: 1fr; } .sf-row { grid-template-columns: 1fr; gap: 4px; } .sf-row > label { padding-top: 0; } }

/* ---- هيرو السيارات/العقارات ---- */
.vh { border-radius: 22px; margin: 14px 0 20px; padding: 26px 28px 30px; color: #f4efe2; background: radial-gradient(circle at 85% 20%, #5a1c1c 0, #1a0f0f 45%, #0a0a0a 100%); }
.vh-prop { background: radial-gradient(circle at 15% 20%, #7a3d12 0, #24150b 45%, #0a0a0a 100%); }
.vh h1 { margin: 10px 0 4px; font-size: 30px; line-height: 1.3; } .vh p { margin: 0 0 16px; color: #cfc8b4; }
.vh-in { max-width: 560px; }
.vh-tabs { display: flex; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.vh-tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 9px; font-weight: 800; color: #222; }
.vh-tabs a.on { background: var(--gold-grad, #C9A961); color: #0a0a0a; }
.vh-panel { background: #eeeae0; border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.vh-panel input, .vh-panel select { background: #fff; color: #111; }
.vh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .vh { padding: 18px; } .vh h1 { font-size: 22px; } }
.sf-kept { display: flex; gap: 8px; flex-wrap: wrap; } .sf-th { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.sf-th img { width: 100%; height: 100%; object-fit: cover; } .sf-th .x { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; }

/* ===== صفحة تفاصيل الإعلان (تصميم مواقع الإعلانات) ===== */
.dt2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 10px; }
.gal { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.gal.single { grid-template-columns: 1fr; }
.gal-big { position: relative; border-radius: 16px; overflow: hidden; background: var(--hover-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gal-big img { width: 100%; height: 100%; object-fit: cover; }
.gal-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.gal-th { border: 2px solid transparent; padding: 0; border-radius: 14px; overflow: hidden; background: var(--hover-soft); cursor: pointer; }
.gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-th.on { border-color: var(--accent); }
.gal-tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold-grad, var(--accent)); color: #0a0a0a; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; z-index: 2; }
.gal-count { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; }
.dt2-head { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 10px; }
.dt2-price { font-size: 30px; font-weight: 900; color: var(--text); } .dt2-price small { font-size: 16px; font-weight: 700; }
.dt2-price em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 99px; margin-inline-start: 10px; }
.dt2-icons { display: flex; gap: 4px; }
.dt2-title { font-size: 20px; line-height: 1.5; margin: 6px 0 8px; }
.dt2-sub { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 13.5px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--hover-soft); overflow: hidden; }
.spec { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border-inline-start: 1px solid var(--border); }
.spec:first-child { border-inline-start: 0; } .spec span { color: var(--muted); font-size: 12.5px; } .spec b { font-size: 16px; }
.dt2-h { font-size: 20px; margin: 24px 0 10px; }
.dtab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.dtab-r { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--hover-soft); border-radius: 8px; overflow: hidden; }
.dtab-r span { padding: 12px 14px; color: var(--muted); } .dtab-r b { padding: 12px 14px; background: var(--card); margin: 2px; border-radius: 6px; }
.dt2-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.seller2 { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.seller2-top { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.seller2-top .av { width: 52px; height: 52px; border-radius: 12px; background: var(--gold-grad, var(--accent)); color: #0a0a0a; display: grid; place-items: center; font-weight: 900; font-size: 22px; }
.seller2-top b { display: block; font-size: 16px; } .seller2-top .verified { font-size: 12.5px; color: #2563eb; font-weight: 700; }
.seller2-meta { display: grid; grid-template-columns: 1fr 1fr; } .seller2-meta div { padding: 12px 16px; } .seller2-meta div + div { border-inline-start: 1px solid var(--border); }
.seller2-meta span { display: block; color: var(--muted); font-size: 12.5px; } .seller2-meta b { font-size: 18px; }
.dt2-cta { width: 100%; padding: 13px; font-size: 15.5px; justify-content: center; }
.dt2-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 4px; }
.dt2-report { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; font-size: 13px; }
@media (max-width: 900px) { .dt2 { grid-template-columns: 1fr; } .dt2-side { position: static; } .gal { grid-template-columns: 1fr; } .gal-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); } .gal-side .gal-th { aspect-ratio: 4/3; } .specs { grid-template-columns: repeat(2, 1fr); } .dtab { grid-template-columns: 1fr; } }

/* ===== نتائج البحث: صفوف أفقية + شريط جانبي بعدّادات ===== */
.ad-rows { display: flex; flex-direction: column; gap: 14px; }
.ad-row { position: relative; display: grid; grid-template-columns: 300px 1fr; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.ad-row:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.ad-row.featured { border-color: var(--accent); }
.ad-row .ad-link { position: absolute; inset: 0; z-index: 1; }
.ar-img { position: relative; background: var(--hover-soft); min-height: 200px; display: grid; place-items: center; }
.ar-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ar-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ar-top { display: flex; justify-content: space-between; align-items: center; }
.ar-price { font-size: 22px; font-weight: 900; } .ar-price small { font-size: 14px; }
.ar-price em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-inline-start: 8px; }
.ar-title { margin: 0; font-size: 16px; line-height: 1.5; }
.ar-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-chips div { background: var(--hover-soft); border-radius: 10px; padding: 8px 12px; min-width: 88px; } .ar-chips span { display: block; font-size: 11.5px; color: var(--muted); } .ar-chips b { font-size: 14px; }
.ar-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13.5px; }
.ar-act { display: flex; gap: 8px; margin-top: auto; position: relative; z-index: 2; } .ar-act .btn { pointer-events: none; padding: 8px 18px; }
.ad-row .fav { position: relative; z-index: 3; }
.sr-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.sr-tabs a { padding: 9px 22px; border: 1px solid var(--border); border-radius: 10px; font-weight: 700; background: var(--card); color: var(--text); }
.sr-tabs a.on { background: var(--accent-soft); border-color: var(--accent); }
.fct { margin-bottom: 14px; } .fct h4 { margin: 0 0 6px; font-size: 14px; }
.fct a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); } .fct a i { font-style: normal; font-size: 12.5px; }
.fct a.on { color: var(--text); font-weight: 800; } .fct a.sub { padding-inline-start: 14px; font-size: 13.5px; }
@media (max-width: 700px) { .ad-row { grid-template-columns: 1fr; } .ar-img { min-height: 190px; } }
.bf-fb, .bf-fb:hover { background: none !important; border: 1px solid #3a3a3a !important; color: #cfc8b4 !important; padding: 5px 14px !important; border-radius: 99px !important; font-size: 12.5px !important; cursor: pointer; }

/* إصلاح المعرض: المصغّرات متتحكّمش في الارتفاع */
.gal { align-items: stretch; }
.gal-side { position: relative; min-height: 0; grid-template-rows: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.gal-th { position: relative; min-height: 0; }
.gal-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; font-weight: 900; }
.gal-big img { position: absolute; inset: 0; }
.seller2-top .av.plat { background: #0a0a0a; }
@media (max-width: 900px) { .gal-side { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); } .gal-th { aspect-ratio: 4 / 3; } }

.brand-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.brand-chips a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 700; }
.brand-chips a i { font-style: normal; color: var(--muted); font-size: 12px; } .brand-chips a.on { background: var(--accent-soft); border-color: var(--accent); }

.sf-th.rm { cursor: pointer; } .sf-th.rm input { position: absolute; inset-inline-start: 6px; top: 6px; width: 18px; height: 18px; } .sf-th.rm .x { position: absolute; bottom: 0; inset-inline: 0; background: rgba(0,0,0,.6); color: #fff; text-align: center; font-size: 11px; padding: 2px 0; }
.sf-th.rm input:checked ~ img { opacity: .35; } .sf-th.rm input:checked ~ .x { background: #dc2626; }

/* ===== بانر ترويجي عريض (للتجار) ===== */
.promo-wide { position: relative; display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: 20px; min-height: 230px; margin: 26px 0; padding: 30px 44px; border-radius: 22px; overflow: hidden; color: #f4efe2;
  background: radial-gradient(520px 320px at 12% 50%, rgba(243,224,143,.32), transparent 70%), linear-gradient(115deg, #0a0a0a 0%, #19140a 55%, #5b4119 100%); border: 1px solid rgba(201,169,97,.3); }
.promo-wide:hover { border-color: var(--accent); }
.pw-tag { display: inline-block; border: 1.5px solid #C9A961; color: #F3E08F; border-radius: 99px; padding: 4px 16px; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.promo-wide h2 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 42px); line-height: 1.25; } .promo-wide h2 b { background: var(--gold-grad, linear-gradient(100deg,#F3E08F,#C9A961)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-cta { display: inline-block; background: linear-gradient(100deg, #F3E08F, #C9A961 60%, #B8943F); color: #0a0a0a; font-weight: 900; font-size: clamp(16px, 2vw, 22px); padding: 10px 26px; border-radius: 12px; box-shadow: 0 8px 28px rgba(201,169,97,.3); }
.promo-wide small { display: block; margin-top: 12px; color: #cfc8b4; font-size: 13.5px; }
.pw-art { position: relative; display: grid; place-items: center; height: 200px; }
.pw-art svg { width: 150px !important; height: 150px !important; position: relative; z-index: 2; filter: drop-shadow(0 0 30px rgba(201,169,97,.5)); }
.pw-art i { position: absolute; border: 2px solid rgba(201,169,97,.35); border-radius: 50%; } .pw-art i:nth-of-type(1) { width: 190px; height: 190px; } .pw-art i:nth-of-type(2) { width: 260px; height: 260px; opacity: .6; } .pw-art i:nth-of-type(3) { width: 330px; height: 330px; opacity: .3; }
@media (max-width: 760px) { .promo-wide { grid-template-columns: 1fr; padding: 22px; min-height: 0; } .pw-art { display: none; } }
.promo-wide h2 { color: #f4efe2 !important; }

/* ===== بانر التطبيق في الهوم ===== */
.apps-banner { position: relative; display: grid; grid-template-columns: 1fr 280px; align-items: center; gap: 20px; min-height: 220px; margin: 26px 0; padding: 30px 44px; border-radius: 22px; overflow: hidden; color: #f4efe2;
  background: radial-gradient(120% 140% at 85% 20%, rgba(232,199,102,.22), transparent 55%), linear-gradient(135deg, #0b0b0b, #1b1608 60%, #2a2208); border: 1px solid rgba(212,175,55,.4); }
.apps-banner .ab-tag { display: inline-block; background: #e8c766; color: #1a1400; font-weight: 800; font-size: 12px; padding: 3px 12px; border-radius: 999px; }
.apps-banner h2 { margin: 12px 0 8px; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.25; } .apps-banner h2 b { color: #e8c766; }
.apps-banner p { margin: 0 0 18px; opacity: .85; max-width: 560px; }
.ab-art { display: grid; place-items: center; }
.ab-phone { position: relative; width: 150px; height: 230px; border-radius: 28px; border: 3px solid rgba(232,199,102,.7); background: linear-gradient(160deg, #15110a, #000); display: grid; place-items: center; transform: rotate(-8deg); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.ab-phone i { position: absolute; left: 14px; right: 14px; height: 10px; border-radius: 6px; background: rgba(232,199,102,.22); } .ab-phone i:nth-of-type(1) { bottom: 56px; } .ab-phone i:nth-of-type(2) { bottom: 38px; right: 40px; } .ab-phone i:nth-of-type(3) { bottom: 20px; right: 70px; }
@media (max-width: 760px) { .apps-banner { grid-template-columns: 1fr; padding: 24px 20px; } .ab-art { display: none; } }

/* ===================================================================
   الهوم بيدج v2 (hp-*): هيرو واضح + أقسام كروت + خطوات التشغيل — نفس لغة لوحة المسوّق
   =================================================================== */
.hp .beta-sec { margin: 40px auto; }
.hp-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hp-h h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; } .hp-h > a { color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.hp-hero { margin-top: 22px; border-radius: 28px; padding: clamp(24px, 4vw, 52px); color: #F6F2E6; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; position: relative; overflow: hidden;
  background: radial-gradient(700px 320px at 85% 10%, rgba(217,178,76,.34), transparent 65%), linear-gradient(150deg, #100D07 0%, #231B07 100%); }
.hp-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(232,199,102,.05) 1px, transparent 1px) 0 0/44px 44px, linear-gradient(90deg, rgba(232,199,102,.05) 1px, transparent 1px) 0 0/44px 44px; pointer-events: none; mask-image: radial-gradient(70% 90% at 80% 20%, #000, transparent); }
.hp-hero-txt { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.hp-kick { align-self: flex-start; background: rgba(232,199,102,.14); color: #E8C766; border: 1px solid rgba(232,199,102,.3); border-radius: 99px; padding: 4px 14px; font-size: 13px; font-weight: 700; }
.hp-hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; letter-spacing: -.8px; font-weight: 800; } .hp-hero h1 b { color: #E8C766; }
.hp-hero p { margin: 0; color: #D9CFAE; font-size: clamp(14.5px, 1.5vw, 17px); max-width: 560px; line-height: 1.8; }
.hp-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hp-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.28); color: #F6F2E6; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, border-color .15s; }
.hp-btn:hover { transform: translateY(-2px); border-color: #E8C766; } .hp-btn-gold { border: 0; background: linear-gradient(135deg, #F0D27A, #D9B24C 55%, #B8902F); color: #15110A; box-shadow: 0 8px 24px rgba(184,144,47,.4); }
.hp-link { color: #E8C766; font-weight: 700; font-size: 14.5px; text-decoration: none; padding: 0 6px; }
.hp-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; } .hp-stats > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 10px 18px; display: flex; flex-direction: column; min-width: 96px; }
.hp-stats b { font-size: 22px; line-height: 1.2; color: #fff; } .hp-stats span { font-size: 12.5px; color: #BDB6A2; }
.hp-hero-art { position: relative; min-height: 260px; display: grid; place-items: center; z-index: 1; }
.hp-mark { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(232,199,102,.22), transparent 70%); border: 1px solid rgba(232,199,102,.25); }
.hp-float { position: absolute; background: rgba(255,255,255,.94); color: #15110A; border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 34px rgba(0,0,0,.35); display: flex; flex-direction: column; line-height: 1.35; animation: hpfloat 6s ease-in-out infinite; }
.hp-float b { font-size: 14px; } .hp-float small { font-size: 12px; color: #6B6554; } .hp-dot { position: absolute; top: 12px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: #1FAF5A; }
.hp-f1 { top: 6%; inset-inline-start: 4%; } .hp-f2 { top: 44%; inset-inline-end: 0; animation-delay: -2s; } .hp-f3 { bottom: 4%; inset-inline-start: 10%; animation-delay: -4s; }
@keyframes hpfloat { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hp-float { animation: none; } }
.hp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hp-cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.hp-cat:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.hp-cat-i { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 4px; } .hp-cat-i svg { width: 24px; height: 24px; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hp-cat b { font-size: 15.5px; } .hp-cat small { color: var(--muted); font-size: 12.5px; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-pills.beta-tabs { display: inline-flex; border: 0; margin: 0; background: var(--surface-2); border-radius: 99px; padding: 4px; gap: 2px; }
.hp-pills.beta-tabs button { padding: 7px 18px; border-radius: 99px; border-bottom: 0; margin: 0; } .hp-pills.beta-tabs button b { font-size: 14px; font-weight: 600; color: var(--muted); } .hp-pills.beta-tabs button.on { background: var(--card); box-shadow: var(--shadow); } .hp-pills.beta-tabs button.on b { color: var(--text); font-weight: 800; }
.hp .ad-card { border-radius: 20px; transition: transform .15s, box-shadow .15s; } .hp .ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hp-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.hp-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.hp-step:hover { transform: translateY(-3px); border-color: var(--accent); } .hp-step b { font-size: 18px; } .hp-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; } .hp-step i { font-style: normal; color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-top: 4px; }
.hp-n { width: 38px; height: 38px; border-radius: 12px; background: var(--gold-grad); color: #15110A; display: grid; place-items: center; font-weight: 900; }
@media (max-width: 860px) { .hp-hero { grid-template-columns: 1fr; } .hp-hero-art { display: none; } .hp-stats > div { flex: 1; } }

/* ===== v1.23.2: كروت الإعلانات (إعلانات لك + كل القوائم) ===== */
.ad-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 18px 16px; }
.ad-card { border-radius: 20px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 1px 2px rgba(60,45,10,.05); display: flex; flex-direction: column; }
.ad-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -16px rgba(60,45,10,.35); border-color: var(--accent); }
.ad-link { border-radius: 20px; }
.ad-img { border-radius: 0; aspect-ratio: 4 / 3.1; }
.ad-img img { transition: transform .5s ease; }
.ad-card:hover .ad-img img { transform: scale(1.05); }
.ad-img::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; z-index: 1; }
.ad-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.ad-tag { position: static; border-radius: 99px; padding: 3px 10px; font-size: 11px; }
.ad-tag-new { background: #16a34a; color: #fff; }
.ad-card .fav { right: 10px; left: auto; top: 8px; width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
html[dir=rtl] .ad-card .fav { left: 10px; right: auto; }
html[dir=rtl] .ad-tags { right: 10px; left: auto; }
.ad-locchip { position: absolute; bottom: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 600; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
html[dir=rtl] .ad-locchip { right: 10px; left: auto; }
.ad-body { padding: 12px 14px 14px; gap: 6px; flex: 1; }
.ad-price span { font-size: 20px; font-weight: 900; }
.ad-price em { background: var(--accent-soft); color: var(--accent-ink); padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.ad-title { font-size: 14.5px; font-weight: 600; line-height: 1.55; -webkit-line-clamp: 2; min-height: 2.9em; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border); }
.ad-foot .ad-meta { font-size: 12px; font-weight: 700; color: var(--text); background: var(--surface-2); padding: 2px 9px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.ad-foot .ad-time { font-size: 12px; color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.hp .hp-h h2 { font-size: 24px; }
@media (max-width: 760px) {
    .ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
    .ad-card { border-radius: 16px; } .ad-link { border-radius: 16px; }
    .ad-body { padding: 10px 10px 12px; } .ad-price span { font-size: 16.5px; } .ad-title { font-size: 13px; min-height: 2.9em; }
    .ad-foot .ad-meta { max-width: 55%; font-size: 11px; } .ad-locchip { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .ad-card, .ad-img img { transition: none; } .ad-card:hover { transform: none; } }

/* ===== v1.24: تفاصيل الإعلان ===== */
.dt2-main > .dt2-head, .dt2-main > .dt2-title, .dt2-main > .dt2-sub { background: var(--card); border-inline: 1px solid var(--border); padding-inline: 20px; margin-inline: 0; }
.dt2-main > .dt2-head { border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; margin-top: 14px; padding-top: 16px; }
.dt2-main > .dt2-title { margin: 0; padding-top: 4px; padding-bottom: 6px; font-weight: 700; }
.dt2-main > .dt2-sub { border-bottom: 1px solid var(--border); border-radius: 0 0 18px 18px; padding-bottom: 16px; margin-bottom: 14px; }
.dt2-price { color: var(--accent-ink); letter-spacing: -.6px; }
.gal-big, .gal-th { border-radius: 18px; }
.specs { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }
.spec b { color: var(--accent-ink); }
.dt2-h { font-size: 17px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; } .dt2-h::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--gold-grad, var(--accent)); }
.dtab { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 6px 18px; gap: 0 28px; }
.dtab-r { background: transparent; border-radius: 0; border-bottom: 1px solid var(--border); }
.dtab-r span { padding: 11px 0; font-size: 13.5px; } .dtab-r b { background: transparent; margin: 0; padding: 11px 0; font-weight: 700; font-size: 14px; }
.dt-desc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.seller2 { border-radius: 20px; box-shadow: var(--shadow); }
.dt2-cta { border-radius: 14px; box-shadow: 0 8px 22px rgba(201,169,97,.35); }
.dt2-safe { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; font-size: 13px; }
.dt2-safe b { display: block; margin-bottom: 6px; color: var(--accent-ink); } .dt2-safe ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; color: var(--muted); }
.dt2-mbar { display: none; }
@media (max-width: 860px) {
    .dt2 { grid-template-columns: minmax(0, 1fr); } .dt2-side { position: static; }
    .dtab { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr 1fr; } .spec:nth-child(3) { border-inline-start: 0; } .spec:nth-child(n+3) { border-top: 1px solid var(--border); }
    .dt2-mbar { display: flex; position: fixed; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); left: 10px; right: 10px; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 8px 8px 8px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
    .dt2-mbar small { display: block; color: var(--muted); font-size: 11px; } .dt2-mbar b { font-size: 17px; font-weight: 900; color: var(--accent-ink); }
    .dt2-mbar .btn { padding: 11px 26px; border-radius: 14px; }
}
.dt2-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; } .dt2-price em { margin-inline-start: 0; }
