/* ===== «بوابة الشركاء» (owner 2026-11-03) — the partners' portal (views/layouts/partner.ejs, views/partners/*), the public profile and directory
   (views/partner/*, front layout) and the sponsored cards in the store and the feed (views/partner/_ad_*). Logical properties only (LTR + RTL),
   no shadows needed for meaning, ASCII digits. ===== */
:root { --px-navy: #0a1a3a; --px-blue: #1f6feb; --px-ink: #10203c; --px-mute: #64748b; --px-line: #e3e9f2; --px-soft: #f4f7fb; --px-gold: #f5b301; --px-red: #d92d3a; }

/* ---------- auth shell + landing ---------- */
.px-body { background: #f1f4f9; color: var(--px-ink); min-height: 100vh; }
.px-auth { background: #0a1a3a radial-gradient(1200px 600px at 85% -10%, #1d4fd8 0, transparent 60%) no-repeat; }
.px-auth.px-wide { background: #0a1a3a radial-gradient(1200px 700px at 85% 0, #1d4fd8 0, transparent 60%) no-repeat; }
.px-auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(.8rem + var(--dx-sat, env(safe-area-inset-top, 0px))) 1.2rem .8rem; max-width: 1200px; margin: 0 auto; }
.px-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.px-logo img { height: 34px; width: auto; }
.px-logo span { color: #fff; font-weight: 800; letter-spacing: .02em; font-size: .95rem; padding: .15rem .55rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }
.px-auth-wrap { max-width: 520px; margin: 1.5rem auto 2rem; padding: 0 1rem; }
.px-auth-card { border: 0; border-radius: 20px; }
.px-auth-foot { text-align: center; color: rgba(255,255,255,.6); padding: 1rem 1rem 2rem; }
.px-auth-foot a { color: rgba(255,255,255,.8); }
.px-wide-main { max-width: 1200px; margin: 0 auto; padding: 0 1rem 2rem; }
.px-wide-main > .alert { margin-top: 1rem; }
.px-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 2rem; align-items: center; color: #fff; padding: 2.5rem 0 3rem; }
@media (max-width: 900px) { .px-hero { grid-template-columns: 1fr; padding-top: 1.2rem; } .px-hero-art { display: none; } }
.px-eyebrow { display: inline-flex; gap: .4rem; align-items: center; color: #ffd76a; font-weight: 700; font-size: .9rem; background: rgba(255,215,106,.12); border: 1px solid rgba(255,215,106,.35); padding: .25rem .7rem; border-radius: 999px; }
.px-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.15; margin: 1rem 0 .7rem; }
.px-hero .lead { color: rgba(255,255,255,.82); max-width: 40rem; }
.px-hero-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.px-hero-pills span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #e8eefc; border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; }
.px-mock { background: #fff; border-radius: 22px; padding: 0 0 1rem; overflow: hidden; max-width: 360px; margin-inline-start: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.px-mock-cover { height: 110px; background: linear-gradient(120deg, #1f6feb, #7c3aed); }
.px-mock-logo { width: 70px; height: 70px; border-radius: 16px; background: #fff; border: 4px solid #fff; margin: -36px 1rem .6rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #1f6feb; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.px-mock-l { height: 12px; background: #e7ecf4; border-radius: 6px; margin: .5rem 1rem; } .px-mock-l.w70 { width: 70%; } .px-mock-l.w40 { width: 40%; }
.px-mock-ad { margin: .9rem 1rem; height: 90px; border-radius: 12px; background: linear-gradient(120deg, #fff4d6, #ffe08a); position: relative; }
.px-mock-ad span { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; font-size: .7rem; font-weight: 800; background: #fff; border-radius: 6px; padding: .1rem .4rem; color: #8a6100; }
.px-mock-btns { display: flex; gap: .5rem; padding: 0 1rem; } .px-mock-btns i { flex: 1; text-align: center; padding: .55rem; border-radius: 10px; background: #eef4ff; color: #1f6feb; }
.px-sec { background: #fff; border-radius: 20px; padding: 1.6rem; margin-bottom: 1rem; }
.px-sec-t { font-size: 1.35rem; font-weight: 800; margin: 0 0 1rem; }
.px-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.px-feat { border: 1px solid var(--px-line); border-radius: 16px; padding: 1rem; }
.px-feat b { display: block; margin: .55rem 0 .25rem; } .px-feat p { color: var(--px-mute); margin: 0; font-size: .92rem; }
.px-feat-ic { width: 44px; height: 44px; border-radius: 12px; background: #eaf1ff; color: var(--px-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.px-where { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.px-where > div { background: var(--px-soft); border-radius: 16px; padding: 1rem; }
.px-where i { font-size: 1.6rem; color: var(--px-blue); } .px-where b { display: block; margin: .4rem 0 .2rem; } .px-where p { margin: 0; color: var(--px-mute); font-size: .92rem; }
.px-price { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; }
@media (max-width: 800px) { .px-price { grid-template-columns: 1fr; } }
.px-price-card { border: 2px solid var(--px-blue); border-radius: 18px; padding: 1.4rem; }
.px-price-h { font-weight: 800; color: var(--px-blue); }
.px-price-v { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin-top: .3rem; } .px-price-v small { font-size: 1rem; color: var(--px-mute); font-weight: 600; }
.px-price-sub { color: var(--px-mute); margin-bottom: .8rem; }
.px-price-card ul { list-style: none; padding: 0; margin: 0 0 1rem; } .px-price-card li { padding: .3rem 0; } .px-price-card li i { color: #16a34a; }
.px-steps ol { padding-inline-start: 1.2rem; } .px-steps li { margin-bottom: .6rem; } .px-steps li b { display: block; } .px-steps li span { color: var(--px-mute); font-size: .93rem; }
.px-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.px-type input, .px-place input, .px-chip-pick input { position: absolute; opacity: 0; pointer-events: none; }
.px-type span { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--px-line); border-radius: 12px; padding: .6rem .7rem; cursor: pointer; font-weight: 600; font-size: .92rem; background: #fff; }
.px-type input:checked + span { border-color: var(--px-blue); background: #eef4ff; color: var(--px-blue); box-shadow: 0 0 0 1px var(--px-blue) inset; }
.px-type input:focus-visible + span, .px-chip-pick input:focus-visible + span, .px-place input:focus-visible + span { outline: 3px solid #9ec5fe; }
.px-inapp-ic { width: 76px; height: 76px; border-radius: 50%; background: #eef4ff; color: var(--px-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }

/* ---------- portal ---------- */
.px-imp { background: #ffd43b; color: #3b2f00; text-align: center; padding: .45rem 1rem; font-weight: 700; font-size: .92rem; }
.px-top { background: var(--px-navy); color: #fff; position: sticky; top: 0; z-index: 1030; padding-top: var(--dx-sat, env(safe-area-inset-top, 0px)); }
.px-top-in { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; }
.px-co { align-items: center; gap: .5rem; } .px-co img { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; background: #fff; } .px-co b { font-size: .95rem; }
.px-tabs { max-width: 1200px; margin: 0 auto; display: flex; gap: .2rem; overflow-x: auto; padding: 0 .7rem; scrollbar-width: none; }
.px-tabs::-webkit-scrollbar { display: none; }
.px-tabs a { color: rgba(255,255,255,.78); text-decoration: none; padding: .6rem .8rem; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; font-size: .92rem; }
.px-tabs a:hover { color: #fff; } .px-tabs a.is-on { color: #fff; border-bottom-color: var(--px-gold); }
.px-banner { color: #fff; } .px-banner.is-red { background: var(--px-red); } .px-banner.is-amber { background: #fff3cd; color: #5c4300; } .px-banner.is-orange { background: #fd7e14; color: #fff; }
.px-banner-in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: .8rem 1rem; }
.px-banner-in > i { font-size: 1.6rem; }
.px-pay-btn { color: var(--px-red) !important; }
.px-main { max-width: 1200px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.px-foot { max-width: 1200px; margin: 0 auto; padding: 0 1rem 2rem; text-align: center; }
.px-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.px-h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .15rem; }
.px-card { background: #fff; border: 1px solid var(--px-line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.px-card-h { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: space-between; margin-bottom: .8rem; }
.px-status-h { margin-bottom: .4rem; }
.px-status-big { font-size: 2.4rem; font-weight: 800; line-height: 1.1; } .px-status-big small { font-size: 1rem; font-weight: 600; color: var(--px-mute); }
.px-status.is-expired { border-color: #f5b5bb; background: #fff6f7; } .px-status.is-suspended { border-color: #adb5bd; background: #f8f9fa; }
.px-badge-trial { background: #e7f1ff; color: #0b5ed7; } .px-badge-active { background: #d1f3df; color: #146c43; } .px-badge-expired { background: #f8d7da; color: #a61e2a; } .px-badge-suspended { background: #343a40; color: #fff; }
.px-kpi { background: #fff; border: 1px solid var(--px-line); border-radius: 16px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .1rem; height: 100%; }
.px-kpi i { color: var(--px-blue); font-size: 1.2rem; } .px-kpi b { font-size: 1.6rem; font-weight: 800; } .px-kpi span { color: var(--px-mute); font-size: .86rem; }
.px-check { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; font-size: .92rem; }
.px-check li { color: var(--px-mute); } .px-check li.is-ok { color: var(--px-ink); } .px-check li.is-ok i { color: #16a34a; }
.px-cover-edit { position: relative; }
.px-cover-prev { aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; background: linear-gradient(120deg, #dbe7ff, #efe3ff); display: flex; align-items: center; justify-content: center; color: var(--px-mute); }
.px-cover-prev img { width: 100%; height: 100%; object-fit: cover; }
.px-logo-prev { position: absolute; inset-block-end: -28px; inset-inline-start: 1rem; width: 84px; height: 84px; border-radius: 18px; background: #fff; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(15,23,40,.15); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 2rem; color: var(--px-mute); }
.px-logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.px-cover-edit + .row { margin-top: 2.4rem; }
.px-chips-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.px-chip-pick { position: relative; } .px-chip-pick span { display: inline-block; border: 1px solid var(--px-line); border-radius: 999px; padding: .3rem .75rem; font-size: .86rem; cursor: pointer; background: #fff; user-select: none; }
.px-chip-pick input:checked + span { background: var(--px-navy); color: #fff; border-color: var(--px-navy); }
.px-places { display: grid; gap: .5rem; } .px-place { position: relative; }
.px-place span { display: flex; flex-direction: column; border: 1px solid var(--px-line); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; }
.px-place span small { color: var(--px-mute); } .px-place input:checked + span { border-color: var(--px-blue); background: #eef4ff; box-shadow: 0 0 0 1px var(--px-blue) inset; }
.px-sticky-save { position: sticky; bottom: 0; background: rgba(241,244,249,.95); padding: .8rem 0 calc(.8rem + var(--dx-sab, env(safe-area-inset-bottom, 0px))); display: flex; gap: .5rem; align-items: center; z-index: 5; }
@media (max-width: 576px) { .px-sticky-save .btn-lg { flex: 1; } }
.px-sticky { position: sticky; top: 120px; }
.px-ad-list { display: grid; gap: .7rem; }
.px-ad-row { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--px-line); border-radius: 16px; padding: .7rem; }
.px-ad-thumb { flex: 0 0 150px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--px-soft); }
.px-ad-thumb.is-square { flex-basis: 64px; } .px-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.px-ad-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.px-ad-n { display: flex; gap: .9rem; flex-wrap: wrap; } .px-ad-a { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .px-ad-row { flex-wrap: wrap; } .px-ad-thumb { flex-basis: 100%; height: 110px; } .px-ad-a { width: 100%; justify-content: flex-start; } }
.px-empty-ic { width: 80px; height: 80px; border-radius: 50%; background: #eef4ff; color: var(--px-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 2.1rem; }
.px-paybox-v { font-size: 2.4rem; font-weight: 800; } .px-paybox-v small { font-size: 1rem; color: var(--px-mute); }
.px-result-ic { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #fff; }
.px-result-ic.is-ok { background: #16a34a; } .px-result-ic.is-bad { background: var(--px-red); } .px-result-ic.is-wait { background: #f59f00; }

/* ---------- sponsored cards (feed · store grid · ad preview) ---------- */
.px-spon { background: #fff; border: 1px solid var(--px-line); border-radius: 18px; overflow: hidden; position: relative; }
.px-spon-feed { border-color: #f1d98a; box-shadow: 0 0 0 3px rgba(245,179,1,.08); }
.px-spon-h { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem .5rem; }
.px-spon-h b, .px-spon-nm { display: block; font-weight: 700; color: var(--px-ink); line-height: 1.2; }
.px-spon-h small { display: block; color: #8a6100; font-weight: 600; font-size: .78rem; }
.px-spon-av { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; border: 1px solid var(--px-line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--px-mute); }
.px-spon-av img { width: 100%; height: 100%; object-fit: contain; }
.px-spon-img { display: block; background: var(--px-soft); position: relative; overflow: hidden; }
.px-spon-img.is-wide { aspect-ratio: 3 / 1; } .px-spon-img.is-square { aspect-ratio: 1 / 1; }
.px-spon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-spon-img > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--px-mute); font-size: .9rem; }
.px-spon-b { display: flex; flex-direction: column; gap: .25rem; padding: .7rem 1rem .9rem; color: inherit; text-decoration: none; }
.px-spon-b h3 { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--px-ink); } .px-spon-b p { margin: 0; color: var(--px-mute); font-size: .92rem; }
.px-spon-cta { align-self: flex-start; margin-top: .35rem; background: var(--px-navy); color: #fff; border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .88rem; }
.px-spon-feed:hover .px-spon-cta { background: var(--px-blue); }
.px-spon-grid { display: flex; flex-direction: column; border-color: #f1d98a; }
.px-spon-grid .px-spon-b { padding: .6rem .8rem .8rem; flex: 1; }
.px-spon-tag { align-self: flex-start; font-size: .72rem; font-weight: 800; color: #8a6100; background: #fff4d6; border: 1px solid #f1d98a; border-radius: 6px; padding: .05rem .4rem; }
.px-spon-t { font-weight: 700; color: var(--px-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; font-size: .93rem; }
.px-spon-btn { background: var(--px-navy); color: #fff !important; border-radius: 999px; font-weight: 700; }
.px-spon-btn:hover { background: var(--px-blue); }

/* ---------- store home carousel ---------- */
.px-car { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 1rem; background: #0a1a3a; }
.px-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.px-car-track::-webkit-scrollbar { display: none; }
.px-car-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; aspect-ratio: 3 / 1; min-height: 170px; max-height: 300px; width: 100%; display: block; color: #fff !important; text-decoration: none; }
.px-car-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-car-cap { position: absolute; inset-block-end: 0; inset-inline: 0; padding: 1.4rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(4,10,28,.82)); display: flex; flex-direction: column; gap: .2rem; }
.px-car .px-car-cap b, .px-car .px-car-cap small { color: #fff !important; }
.px-car-cap b { font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 800; } .px-car-cap small { opacity: .9; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.px-car-tag { font-size: .74rem; font-weight: 800; color: #ffd76a; }
.px-car-cta { align-self: flex-start; margin-top: .3rem; background: #ffd43b; color: #2a2000; border-radius: 999px; padding: .3rem .85rem; font-weight: 800; font-size: .86rem; }
.px-car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--px-navy); display: inline-flex; align-items: center; justify-content: center; }
.px-car-arrow.is-prev { inset-inline-start: .6rem; } .px-car-arrow.is-next { inset-inline-end: .6rem; }
@media (hover: none) { .px-car-arrow { display: none; } }
.px-car-dots { position: absolute; inset-block-start: .6rem; inset-inline-end: .8rem; display: flex; gap: .3rem; }
.px-car-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); }
.px-car-dots button.is-on { background: #fff; width: 20px; border-radius: 4px; }

/* ---------- public profile + directory ---------- */
.px-prof { background: #fff; border: 1px solid var(--px-line); border-radius: 18px; overflow: hidden; margin-bottom: 1rem; }
.px-prof-cover { aspect-ratio: 3.2 / 1; background: linear-gradient(120deg, #1f6feb, #6d28d9); }
.px-prof-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-prof-head { display: flex; gap: 1rem; align-items: flex-start; padding: 0 1.2rem; margin-top: -46px; flex-wrap: wrap; }
.px-prof-logo { width: 112px; height: 112px; border-radius: 22px; background: #fff; border: 5px solid #fff; box-shadow: 0 4px 16px rgba(15,23,40,.15); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: var(--px-blue); flex: 0 0 auto; }
.px-prof-logo img { width: 100%; height: 100%; object-fit: contain; }
.px-prof-id { flex: 1; min-width: 220px; padding: 54px 0 .3rem; }
@media (max-width: 560px) { .px-prof-id { padding-top: 0; flex-basis: 100%; } }
.px-prof-id h1 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .3rem; }
.px-prof-sub { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--px-mute); font-size: .9rem; }
.px-prof-type { font-weight: 700; color: var(--px-ink); } .px-prof-badge { color: #8a6100; font-weight: 700; }
.px-prof-tag { margin: .4rem 0 0; color: var(--px-ink); }
.px-prof-contact { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: 1rem 1.2rem 1.2rem; }
.px-prof-contact .btn { border-radius: 999px; font-weight: 700; padding-inline: 1rem; }
.px-c-call { background: var(--px-navy); color: #fff; } .px-c-call:hover { background: var(--px-blue); color: #fff; }
.px-c-wa { background: #25d366; color: #fff; } .px-c-wa:hover { background: #1fb457; color: #fff; }
.px-c-mail, .px-c-cat { background: #eef2f8; color: var(--px-ink); }
.px-prof-links a, .px-share { width: 40px; height: 40px; border-radius: 50%; background: #eef2f8; color: var(--px-navy); display: inline-flex; align-items: center; justify-content: center; border: 0; font-size: 1.1rem; }
.px-guest-contact { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: #f4f7fb; border: 1px dashed #c5d2e6; border-radius: 14px; padding: .7rem .9rem; flex: 1 1 380px; }
.px-guest-contact > i { font-size: 1.4rem; color: var(--px-blue); } .px-guest-contact > div { flex: 1 1 180px; } .px-guest-contact b { display: block; } .px-guest-contact small { color: var(--px-mute); }
.px-prof-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 860px) { .px-prof-grid { grid-template-columns: 1fr; } }
.px-box { background: #fff; border: 1px solid var(--px-line); border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.px-box h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 .7rem; }
.px-about { white-space: pre-line; line-height: 1.7; }
.px-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.px-tags span { background: var(--px-navy); color: #fff; border-radius: 8px; padding: .2rem .6rem; font-size: .84rem; font-weight: 600; }
.px-tags.is-soft span { background: #eef2f8; color: var(--px-ink); } .px-tags.is-mini span { background: #eef2f8; color: var(--px-ink); font-size: .74rem; padding: .1rem .45rem; }
.px-prof-ads { display: grid; gap: .8rem; } .px-prof-ad { border: 1px solid var(--px-line); border-radius: 14px; overflow: hidden; }
.px-prof-note { padding: 0 .3rem; }
.px-dir-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.px-dir-f { display: flex; flex-wrap: wrap; gap: .4rem; } .px-dir-f .form-control { max-width: 220px; } .px-dir-f .form-select { max-width: 190px; }
@media (max-width: 576px) { .px-dir-f .form-control, .px-dir-f .form-select { max-width: none; flex: 1 1 100%; } }
.px-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.px-dir-c { background: #fff; border: 1px solid var(--px-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; gap: .2rem; padding-bottom: .9rem; color: var(--px-ink); text-decoration: none; text-align: center; align-items: center; }
.px-dir-c:hover { border-color: #b9cdf0; }
.px-dir-cover { display: block; width: 100%; aspect-ratio: 3 / 1; background: linear-gradient(120deg, #dbe7ff, #efe3ff); }
.px-dir-cover img { width: 100%; height: 100%; object-fit: cover; }
.px-dir-logo { width: 68px; height: 68px; border-radius: 16px; background: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15,23,40,.14); margin-top: -34px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--px-blue); }
.px-dir-logo img { width: 100%; height: 100%; object-fit: contain; }
.px-dir-c b { padding: .3rem .8rem 0; } .px-dir-tag { font-size: .86rem; color: var(--px-mute); padding: 0 .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.px-dir-c .px-tags { justify-content: center; padding: .3rem .6rem 0; }

/* print: no shadows / transparency */
@media print { .px-spon, .px-card, .px-box { box-shadow: none !important; } .px-top, .px-tabs, .px-banner, .px-sticky-save { display: none !important; } }

/* ===== 2026-11-03: sign-in by e-mail switch · mandatory onboarding · contact numbers + addresses · image-only ads + the ad page ===== */
.px-by { display: flex; gap: .35rem; background: #eef2f8; border-radius: 12px; padding: .25rem; margin-bottom: 1rem; }
.px-by a { flex: 1; text-align: center; padding: .5rem .4rem; border-radius: 9px; font-weight: 700; color: var(--px-mute); text-decoration: none; font-size: .92rem; }
.px-by a.is-on { background: #fff; color: var(--px-ink); box-shadow: 0 1px 3px rgba(10,26,58,.12); }
.px-tabs-onb { justify-content: flex-start; } .px-tabs-onb span { padding: .55rem .9rem; color: #fff; font-weight: 700; opacity: .9; }
.px-onb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; padding: .7rem 1rem; margin: 0 0 1rem; background: #fff; border: 1px solid var(--px-line); border-radius: 14px; font-weight: 600; color: var(--px-mute); }
.px-onb-steps .is-done { color: #198754; } .px-onb-steps .is-on { color: var(--px-ink); }
.px-ph-list { display: flex; flex-direction: column; gap: .6rem; }
.px-ph-row { display: grid; grid-template-columns: minmax(0, 1fr) 11rem auto auto; gap: .5rem; align-items: center; padding: .55rem; border: 1px solid var(--px-line); border-radius: 12px; background: #fbfcfe; }
.px-ph-num { min-width: 0; }
.px-ph-wa { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 600; white-space: nowrap; color: #128c4b; cursor: pointer; }
.px-ph-wa .form-check-input { margin: 0; }
@media (max-width: 640px) { .px-ph-row { grid-template-columns: minmax(0, 1fr) auto auto; } .px-ph-num { grid-column: 1 / -1; } }
.px-addr-list { display: flex; flex-direction: column; gap: .9rem; }
.px-addr { border: 1px solid var(--px-line); border-radius: 14px; padding: .7rem; background: #fbfcfe; }
.px-addr.is-main { border-color: #8db4ff; box-shadow: 0 0 0 3px rgba(61,123,253,.10); background: #fff; }
.px-addr-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.px-addr-main { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; white-space: nowrap; }
.px-addr-main .form-check-input { margin: 0; }
.px-addr.is-main .px-addr-branch { display: none; }
.px-addr-label { flex: 1 1 12rem; max-width: 22rem; }
.px-addr-h .px-row-del { margin-inline-start: auto; }

/* image-only ad («إعلان ممول» tag) — feed card, store grid card, carousel slide, partner page grid */
.px-only { position: relative; display: block; overflow: hidden; border-radius: 16px; background: var(--px-soft, #eef2f8); }
.px-only img { display: block; width: 100%; height: 100%; object-fit: cover; }
.px-only.is-wide { aspect-ratio: 3 / 1; } .px-only.is-square { aspect-ratio: 1 / 1; }
.px-only.is-fill { height: 100%; min-height: 220px; }
.px-only:focus-visible { outline: 3px solid #3d7bfd; outline-offset: 2px; }
.px-only-tag { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 800; color: #5c4100; background: rgba(255,244,214,.94); border: 1px solid #f1d98a; border-radius: 6px; padding: .08rem .42rem; line-height: 1.4; pointer-events: none; }
.px-only-card { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible; }
.px-spon-feed.px-only-card .px-only { border: 1px solid #f1d98a; }
.px-spon-feed.px-only-card .px-only.is-square { aspect-ratio: 1 / 1; }
.px-spon-grid.px-only-card { display: block; height: 100%; }
.px-spon-grid.px-only-card .px-only { border: 1px solid #f1d98a; border-radius: 12px; }
.px-car-slide.px-only { border-radius: 0; background: #0a1a3a; }
.px-ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.px-ad-grid .px-only.is-wide { aspect-ratio: 2 / 1; }
@media (max-width: 520px) { .px-ad-grid { grid-template-columns: 1fr 1fr; } .px-ad-grid .px-only.is-wide { grid-column: 1 / -1; aspect-ratio: 3 / 1; } }
.px-pv-detail { border: 1px dashed var(--px-line); border-radius: 12px; padding: .7rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.px-pv-detail p { white-space: pre-line; color: var(--px-mute); font-size: .9rem; max-height: 9rem; overflow: hidden; }
.px-spec td, .px-spec th { white-space: nowrap; }

/* the ad page /partner/ad/:id */
.px-adp { background: #fff; border: 1px solid var(--px-line, #dde4ef); border-radius: 18px; overflow: hidden; margin-bottom: 1rem; }
.px-adp-img { position: relative; background: #0a1a3a; }
.px-adp-img img { display: block; width: 100%; max-height: 520px; object-fit: contain; margin: 0 auto; }
.px-adp-img.is-square img { max-height: 560px; width: auto; max-width: 100%; }
.px-adp-img .px-only-tag { inset-block-start: .7rem; inset-inline-start: .7rem; font-size: .78rem; }
.px-adp-body { padding: 1.1rem 1.25rem 1.25rem; }
.px-adp-body h1 { font-size: 1.45rem; font-weight: 800; margin: 0 0 .5rem; color: var(--px-ink, #0a1a3a); }
.px-adp-details { white-space: pre-line; line-height: 1.7; color: #334; overflow-wrap: anywhere; }
.px-phones { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-direction: column; gap: .4rem; }
.px-phones li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--px-line, #dde4ef); border-radius: 10px; }
.px-ph-l { font-size: .8rem; font-weight: 700; color: var(--px-mute, #6b7a90); min-width: 5.5rem; }
.px-addr-pub { padding: .55rem .65rem; border: 1px solid var(--px-line, #dde4ef); border-radius: 10px; margin-bottom: .5rem; }
.px-addr-pub.is-main { border-color: #8db4ff; }
.px-adv-c { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; }
.px-adv-c .px-dir-logo { margin: 0; flex: 0 0 64px; }
.px-only.is-fill { display: flex; align-items: center; }
.px-only.is-fill .px-only-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(1.1); transform: scale(1.2); opacity: .55; }
.px-only.is-fill .px-only-fg { position: relative; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
