/* 2026-11-21g «الموزعين»: the reseller's panel, his public link page, the platform's reseller page */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: start; }
.pp-plan:has(input:checked) { border-color: var(--primary, #d4461c); box-shadow: 0 0 0 1px var(--primary, #d4461c) inset; }
.pf-qr { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 10px; }
.pf-qr img, .pf-qr svg, .pf-qr table { width: 100%; height: 100%; }
.pp-landing { background: var(--bg, #f6f7f9); min-height: 100vh; }
.pp-land-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.pp-land-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.pp-land-wrap { padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 28px; }
.pp-land-bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.pp-land-brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.pp-land-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; font-weight: 800;
  background: var(--primary, #d4461c); color: #fff; flex: none; }
.pp-land-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 8px 6px; }
.pp-land-hero h1 { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.3; }
.pp-land-hero h1 em { font-style: normal; color: var(--primary, #d4461c); }
.pp-land-hero p { margin: 0; max-width: 620px; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.pp-land-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--primary-soft, #fde9e2); color: var(--primary, #d4461c); }
.pp-land-cta { justify-content: center; }
.pp-land-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.pp-feat { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pp-feat b { display: block; } .pp-feat small { color: var(--muted); font-size: 12.5px; }
.pp-land-prices { display: flex; flex-direction: column; gap: 10px; }
.pp-land-prices > h2 { margin: 0; text-align: center; font-size: 1.5rem; }
.pp-land-prices > p { margin: 0 0 6px; text-align: center; }
.pp-land-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; }

/* 2026-11-21i the price editors (his own /partner/settings and the platform's reseller page) */
.pe-tools { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.pe-groups { display: flex; flex-direction: column; }
.pe-group { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pe-group-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.pe-group-h b { font-size: 1rem; }
.pe-group-h small { color: var(--muted); }
.pe-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 10px; }
.pe-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) repeat(2, minmax(64px, .8fr)) minmax(96px, 1fr) minmax(70px, .8fr);
  gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pe-row.bad { border-color: var(--bad); background: var(--bad-soft, #fdecec); }
.pe-name b { display: block; } .pe-name small { color: var(--muted); font-size: 11.5px; }
.pe-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pe-cell > small { color: var(--muted); font-size: 11px; }
.pe-cell .input { height: 36px; padding: 0 8px; }
.pe-gain b { color: var(--ok); } .pe-row.bad .pe-gain b { color: var(--bad); }
.pe-row label { font-size: 12px; }
@media (max-width: 560px) {
  .pe-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pe-name { grid-column: 1 / -1; }
}
.pp-grid > [data-price-editor] { grid-column: 1 / -1; }
/* the activate window: plans in the branch groups */
.pa-group { display: flex; flex-direction: column; gap: 6px; }
.pa-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.pa-plan { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "r t" "r p" "r q"; column-gap: 10px; row-gap: 2px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pa-plan input { grid-area: r; align-self: center; }
.pa-t { grid-area: t; display: flex; flex-direction: column; } .pa-t small { color: var(--muted); font-size: 11.5px; }
.pa-p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; } .pa-p small { color: var(--muted); }
details.pe-group > summary { cursor: pointer; list-style: none; } details.pe-group > summary::before { content: "+ "; color: var(--muted); } details.pe-group[open] > summary::before { content: "- "; } details.pe-group:not([open]) > summary { margin-bottom: 0; }
