/*
 * Partners ads (إعلانات الشركاء / ZAM Ads) — storefront shell for the ZAM Ads store
 * (partnerads.zid.store, Vitrin theme). Paired with zad-store.js. Applies to ALL pages:
 *   - hides the theme's own header and footer, and the app script's home strip (#zads-cta-strip)
 *   - the shell's header: inside the hero card on home, white and sticky on every other page
 *   - the Zid Partners footer
 * Design system shared with the Zid Private Themes shell (prefix zad-).
 */

/* Hide the theme header/footer everywhere (the shell brings its own) and the app script's home
   strip (the landing has its own CTAs). Headers/footers inside <main> are left alone. */
header:not(.zad-header):not(main header):not(#main header),
footer:not(.zad-footer):not(main footer):not(#main footer),
body > .header, #header, #footer:not(.zad-footer),
#zads-cta-strip { display: none !important; }
/* Home = landing: no theme product grid. */
body[data-template="home"] #main > section.section-products { display: none !important; }
body[data-template="home"] #main { padding-top: 0 !important; margin-top: 0 !important; }

/* smooth scroll — home only */
html:has(body[data-template="home"]) { scroll-behavior: smooth; }

.zad-landing {
  --zad-ink: #1F0433; --zad-plum: #3B1C54; --zad-lav: #A974FF; --zad-lav-50: #F1EAFF;
  --zad-lav-200: #D9C2FF; --zad-surface: #F5F4F6; --zad-line: #E7E3EC; --zad-muted: #6B6475;
  --zad-amber-bg: #FFF7E6; --zad-amber-ink: #7A4B00; --zad-radius: 20px; --zad-wrap: 1180px;
  direction: rtl; text-align: right; color: var(--zad-ink); font-family: inherit; line-height: 1.7;
  font-variant-numeric: lining-nums;
}
.zad-landing *, .zad-landing *::before, .zad-landing *::after { box-sizing: border-box; }
.zad-landing h1, .zad-landing h2, .zad-landing h3, .zad-landing p { margin: 0; }
.zad-wrap { max-width: var(--zad-wrap); margin: 0 auto; padding: 0 20px; }
.zad-section { padding: 72px 0; scroll-margin-top: 96px; }
.zad-section--tint { background: var(--zad-surface); }
.zad-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--zad-plum); background: var(--zad-lav-50); border-radius: 999px; padding: 4px 12px; }
.zad-h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.35; margin-top: 12px; }
.zad-lead { color: var(--zad-muted); font-size: 16px; margin-top: 10px; max-width: 620px; }
.zad-head { margin-bottom: 36px; }

/* scroll reveal — class added by JS only, so content stays visible without JS */
.zad-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.zad-reveal.is-in { opacity: 1; transform: none; }

/* ---- buttons ---- */
.zad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.zad-btn:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 3px; }
.zad-btn--primary { background: var(--zad-lav); color: #fff; box-shadow: 0 8px 24px rgba(169,116,255,.35); }
.zad-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(169,116,255,.45); }
.zad-btn--light { background: #fff; color: var(--zad-ink); }

.zad-btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.zad-note { font-size: 13px; margin-top: 12px; min-height: 1em; }
.zad-note[hidden] { display: none; }

/* ---- header (inside the hero card) ---- */
.zad-header { display: flex; align-items: center; gap: 44px; padding: 26px clamp(22px, 5vw, 88px); }
.zad-header__brand { display: inline-flex; align-items: center; text-decoration: none; }
.zad-header__brand img { display: block; height: 24px; width: auto; }
.zad-logo--dark { display: none !important; }

/* stuck state: fixed, white, dark content */
.zad-header { transition: background-color .2s ease, box-shadow .2s ease; }
.zad-header.is-stuck {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #fff; padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--zad-line), 0 8px 24px rgba(31,4,51,.08);
  animation: zad-drop .25s ease;
}
@keyframes zad-drop { from { transform: translateY(-100%); } to { transform: none; } }
.zad-header.is-stuck .zad-logo--light, .zad-header.zad-header--page .zad-logo--light { display: none !important; }
.zad-header.is-stuck .zad-logo--dark, .zad-header.zad-header--page .zad-logo--dark { display: block !important; }
.zad-header.is-stuck .zad-header__nav a, .zad-header.zad-header--page .zad-header__nav a { color: var(--zad-ink); opacity: 1; }
.zad-header.is-stuck .zad-header__nav a:hover, .zad-header.zad-header--page .zad-header__nav a:hover { color: var(--zad-lav); }
.zad-header.is-stuck .zad-pill--outline, .zad-header.zad-header--page .zad-pill--outline { color: var(--zad-ink); box-shadow: inset 0 0 0 1px var(--zad-ink); }
.zad-header.is-stuck .zad-pill--outline:hover, .zad-header.zad-header--page .zad-pill--outline:hover { background: var(--zad-surface); }
.zad-header.is-stuck .zad-pill--light, .zad-header.zad-header--page .zad-pill--light { background: var(--zad-ink); color: #fff; }
.zad-header.is-stuck .zad-pill--light:hover, .zad-header.zad-header--page .zad-pill--light:hover { background: var(--zad-plum); }
.zad-header__nav { display: flex; align-items: center; gap: 32px; }
.zad-header__nav a { color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; opacity: .92; }
.zad-header__nav a:hover { opacity: 1; color: #D9C2FF; }
.zad-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.zad-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
button.zad-pill { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.zad-pill[aria-busy="true"] { opacity: .65; cursor: progress; }

.zad-pill--outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.zad-pill--outline:hover { box-shadow: inset 0 0 0 1px #fff; }
.zad-pill--light { background: #fff; color: var(--zad-ink); }
.zad-pill--light:hover { background: #F1EAFF; }
.zad-header a:focus-visible, .zad-header button:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 3px; border-radius: 999px; }

/* ---- hero ---- */
.zad-hero { padding: 20px; background: #fff; }
.zad-hero__card { background: #22052F; color: #fff; border-radius: 28px; min-height: 820px; display: flex; flex-direction: column; overflow: hidden; }
.zad-hero__grid { flex: 1; width: 100%; padding: 48px clamp(24px, 6vw, 110px) 88px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.zad-hero__eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: #D9C2FF; background: rgba(255,255,255,.1); border-radius: 999px; padding: 6px 14px; }
.zad-hero h1 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; line-height: 1.3; margin-top: 22px; color: #fff; }
.zad-hero__sub { font-size: clamp(16px, 1.35vw, 20px); color: rgba(255,255,255,.78); margin-top: 20px; max-width: 640px; line-height: 1.8; }
.zad-hero__ctas { margin-top: 30px; }
.zad-btn--hero { min-height: 48px; padding: 12px 22px; font-size: 16px; box-shadow: none; }
.zad-btn--hero svg { width: 16px; height: 16px; }
.zad-hero .zad-note { color: #FFD9D9; }

/* illustration: a storefront being designed, on orbits */
.zad-orbit { position: relative; width: 100%; max-width: 480px; aspect-ratio: 460 / 300; justify-self: center; container-type: inline-size; }
.zad-orbit__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.zad-win {
  position: absolute; top: 50%; left: 50%; width: 56%; transform: translate(-50%, -50%) rotate(-8deg);
  background: #fff; border-radius: 3.2cqw; container-type: inline-size;
  box-shadow: inset 0 0 0 3px #D7BBFF, 2.6cqw 2.6cqw 0 #6A2BD1, 2.6cqw 2.6cqw 0 2px #3B0F7A, 0 30px 60px rgba(0,0,0,.45);
}
.zad-win__bar { display: flex; gap: 2cqw; align-items: center; height: 9cqw; padding: 0 5cqw; background: #F1EAFF; border-radius: 5.5cqw 5.5cqw 0 0; direction: ltr; }
.zad-win__bar i { width: 2.8cqw; height: 2.8cqw; border-radius: 50%; background: #C9A2FF; }
.zad-win__body { display: flex; flex-direction: column; gap: 4cqw; padding: 5cqw; }
.zad-win__nav { display: flex; align-items: center; gap: 3cqw; }
.zad-win__nav b { width: 16cqw; height: 4cqw; border-radius: 2cqw; background: #22052F; margin-inline-end: auto; }
.zad-win__nav span { width: 9cqw; height: 2.4cqw; border-radius: 2cqw; background: #E7E3EC; }
.zad-win__hero { position: relative; height: 34cqw; border-radius: 3cqw; background: linear-gradient(135deg, #D7BBFF 0%, #A974FF 55%, #7B3BE6 100%); outline: 2px dashed #FF8A2B; outline-offset: 1.6cqw; }
.zad-win__l1, .zad-win__l2, .zad-win__btn { position: absolute; right: 7cqw; border-radius: 2cqw; }
.zad-win__l1 { top: 8cqw; width: 42cqw; height: 4.4cqw; background: rgba(255,255,255,.95); }
.zad-win__l2 { top: 15cqw; width: 30cqw; height: 3cqw; background: rgba(255,255,255,.7); }
.zad-win__btn { top: 22cqw; width: 20cqw; height: 6cqw; border-radius: 4cqw; background: #22052F; }
.zad-win__h { position: absolute; width: 3cqw; height: 3cqw; background: #fff; border: 2px solid #FF8A2B; border-radius: 1px; }
 
 
.zad-win__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.zad-win__grid span { height: 17cqw; border-radius: 2.4cqw; background: #F1EAFF; box-shadow: inset 0 -5cqw 0 #fff, inset 0 0 0 1px #E7E3EC; }

  
.zad-orbit__dot { position: absolute; width: 9%; aspect-ratio: 1; min-width: 32px; border-radius: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); }
.zad-orbit__dot svg { width: 52%; height: 52%; }

/* ---- benefits ---- */
.zad-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.zad-bcard { background: #fff; border: 1px solid var(--zad-line); border-radius: var(--zad-radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.zad-bcard:hover { transform: translateY(-3px); border-color: #E2D2FF; box-shadow: 0 16px 40px rgba(31,4,51,.08); }
.zad-bcard__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--zad-lav-50); display: grid; place-items: center; }
.zad-bcard__icon svg { width: 24px; height: 24px; stroke: var(--zad-lav); }
.zad-bcard h3 { font-size: 17px; font-weight: 700; margin-top: 16px; }
.zad-bcard p { font-size: 14.5px; color: var(--zad-muted); margin-top: 6px; }

/* ---- showcase ---- */

/* ---- rights band ---- */
.zad-rights { background: radial-gradient(600px 260px at 90% 0%, rgba(169,116,255,.35), transparent 60%), var(--zad-ink); color: #fff; border-radius: 28px; padding: 40px; }
.zad-rights .zad-eyebrow { background: rgba(255,255,255,.12); color: #fff; }
.zad-rights h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 12px; }
.zad-rights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.zad-right { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 20px; }
.zad-right b { display: block; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--zad-lav-200); }
.zad-rights__lead { margin-top: 10px; font-size: 15px; opacity: .88; max-width: 62ch; }
.zad-right span { display: block; font-size: 14px; opacity: .88; margin-top: 8px; }

/* ---- steps ---- */
.zad-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.zad-step { background: #fff; border: 1px solid var(--zad-line); border-radius: var(--zad-radius); padding: 24px; }
.zad-step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--zad-lav-50); color: var(--zad-plum); font-weight: 700; font-size: 17px; }
.zad-step h3 { font-size: 17px; font-weight: 700; margin-top: 14px; }
.zad-step p { font-size: 14.5px; color: var(--zad-muted); margin-top: 6px; }

/* ---- clarity cards ---- */

/* ---- compare ---- */

/* ---- why certified / why via Zid + comparison table ---- */

/* ---- excellence ratio ---- */

/* ---- agencies ---- */

/* ---- pricing ---- */

/* ---- faq ---- */
.zad-faq { display: grid; gap: 12px; }
.zad-faq details { background: #fff; border: 1px solid var(--zad-line); border-radius: 16px; padding: 0 20px; }
.zad-faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zad-faq summary::-webkit-details-marker { display: none; }
.zad-faq summary::after { content: "+"; font-size: 22px; color: var(--zad-lav); transition: transform .2s ease; }
.zad-faq details[open] summary::after { transform: rotate(45deg); }
.zad-faq summary:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 2px; border-radius: 8px; }
.zad-faq details p { color: var(--zad-muted); font-size: 15px; padding-bottom: 18px; }

/* ---- closing band ---- */
.zad-band { background: var(--zad-ink); color: #fff; border-radius: 28px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.zad-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.zad-band p { opacity: .85; margin-top: 6px; }
.zad-band .zad-note { color: #FFD9D9; }

/* ---- Zid footer ---- */
.zad-footer { background: var(--zad-ink); color: #fff; padding: 48px 0 32px; }
.zad-footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 16px; margin-top: 36px; }
.zad-footer h2 { font-size: 13px; font-weight: 600; opacity: .5; margin: 0 0 12px; }
.zad-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.zad-footer a { color: #fff; text-decoration: none; font-size: 14px; transition: opacity .15s ease; }
.zad-footer a:hover { opacity: .7; }
.zad-footer a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

.zad-footer__logo svg { height: 32px; width: auto; display: block; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  
  .zad-hero__grid { grid-template-columns: 1fr; }
  .zad-hero__card { min-height: 0; }
  .zad-hero__grid { padding-top: 40px; }
  .zad-orbit { max-width: 380px; margin-top: 24px; }
  .zad-header__nav { display: none; }
  .zad-steps, .zad-benefits, .zad-rights__grid { grid-template-columns: repeat(2, 1fr); }
  
  .zad-footer__cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .zad-section { padding: 52px 0; }
  .zad-hero { padding: 12px; }
  .zad-hero__card { border-radius: 22px; }
  .zad-header { padding: 18px 18px; gap: 12px; }
  .zad-header__brand img { height: 18px; }
  .zad-hero__grid { padding: 28px 22px 48px; }
  .zad-hide-sm { display: none; }
  .zad-steps, .zad-benefits { grid-template-columns: 1fr; }
  
  .zad-band, .zad-rights { padding: 28px; }
  
  .zad-right b { font-size: 18px; }
  .zad-hero__ctas .zad-btn, .zad-band .zad-btn { width: 100%; }
  .zad-orbit { max-width: 300px; }
  .zad-footer__cols { grid-template-columns: repeat(2, 1fr); }
  
  
  
  
  
  
  
  
  
  
  
  
}
@media (prefers-reduced-motion: reduce) {
  html:has(body[data-template="home"]) { scroll-behavior: auto; }
  .zad-header.is-stuck { animation: none; }
  .zad-btn, .zad-bcard, .zad-faq summary::after, .zad-reveal { transition: none; }
  .zad-reveal { opacity: 1; transform: none; }
}

/* ================= ZAM Ads additions ================= */

/* hero art: sponsored chip + mini report */
.zad-orbit__tag { position: absolute; top: 9%; left: 15%; padding: .35em .8em; border-radius: 1.2em; background: #fff; color: var(--zad-ink); font-weight: 800; font-size: max(12px, 3.8cqw); box-shadow: 0 10px 24px rgba(0,0,0,.3); transform: rotate(-6deg); white-space: nowrap; }
.zad-orbit__tag::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: #FF8A2B; margin-inline-end: .4em; vertical-align: middle; }
.zad-orbit__chart { position: absolute; bottom: 6%; right: 13%; display: flex; align-items: flex-end; gap: 1.2cqw; height: 11cqw; padding: 1.8cqw 2.4cqw; border-radius: 2.4cqw; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); transform: rotate(4deg); }
.zad-orbit__chart i { width: 2.4cqw; border-radius: 1cqw; background: var(--zad-lav); }
.zad-orbit__chart i:nth-child(1) { height: 35%; opacity: .5; } .zad-orbit__chart i:nth-child(2) { height: 55%; opacity: .7; }
.zad-orbit__chart i:nth-child(3) { height: 75%; } .zad-orbit__chart i:nth-child(4) { height: 100%; background: #FF8A2B; }
.zad-win__hero--ad { outline: 2px solid #FF8A2B; outline-offset: 1.6cqw; }
.zad-win__adtag { position: absolute; top: 3cqw; left: 3cqw; padding: .6cqw 2cqw; border-radius: 3cqw; background: #FF8A2B; color: #fff; font-size: 3cqw; font-weight: 800; line-height: 1.5; }
.zad-win__appicon { position: absolute; top: 11cqw; left: 7cqw; width: 14cqw; height: 14cqw; border-radius: 3.6cqw; background: #fff; box-shadow: 0 1cqw 3cqw rgba(0,0,0,.2); }
.zad-win__grid--apps span { box-shadow: inset 0 0 0 1px #E7E3EC; background: #fff; position: relative; }
.zad-win__grid--apps span::before { content: ""; position: absolute; top: 2.4cqw; right: 2.4cqw; width: 6cqw; height: 6cqw; border-radius: 1.8cqw; background: #F1EAFF; }
.zad-win__grid--apps span::after { content: ""; position: absolute; bottom: 2.6cqw; right: 2.4cqw; width: 60%; height: 1.8cqw; border-radius: 1cqw; background: #E7E3EC; }
.zad-orbit__dot--mega { top: 62%; left: 9%; background: #8EE07F; color: #1E4A16; }
.zad-orbit__dot--mail { top: 30%; left: 90%; background: #FF8A2B; color: #fff; }
.zad-orbit__dot--play { top: 90%; left: 30%; background: #6FDCDC; color: #0E4747; }

/* promise strip */

/* channels */
.zad-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.zad-channel { background: #fff; border: 1px solid var(--zad-line); border-radius: 18px; padding: 18px; }
.zad-channel > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--zad-lav-50); color: var(--zad-lav); }
.zad-channel svg { width: 20px; height: 20px; }
.zad-channel h3 { font-size: 15.5px; font-weight: 700; margin-top: 12px; }
.zad-channel p { font-size: 13.5px; color: var(--zad-muted); margin-top: 4px; }

/* eligibility confirmation */

/* packages */
.zad-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.zad-plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--zad-line); border-radius: 24px; padding: 26px 22px; }
.zad-plan--hl { border: 2px solid var(--zad-lav); box-shadow: 0 20px 50px rgba(169,116,255,.18); }
.zad-plan__chip { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--zad-lav-50); color: var(--zad-plum); }
.zad-plan__chip--soon { background: var(--zad-surface); color: var(--zad-muted); }
.zad-plan h3 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.zad-plan__for { font-size: 14px; color: var(--zad-muted); margin-top: 4px; min-height: 3.4em; }
.zad-plan__price { font-size: 34px; font-weight: 800; line-height: 1.2; margin-top: 14px; }
.zad-plan__price small { font-size: 15px; font-weight: 600; }
.zad-plan__per { font-size: 13px; color: var(--zad-muted); }
.zad-plan ul { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 9px; font-size: 14.5px; flex: 1; align-content: start; }
.zad-plan li { display: flex; gap: 8px; align-items: flex-start; }
.zad-plan li::before { content: "✓"; color: var(--zad-lav); font-weight: 800; flex: none; }
.zad-plan li.zad-plan__inc { font-weight: 700; }
.zad-plan li.zad-plan__inc::before { content: "+"; }
.zad-plan .zad-btn { width: 100%; }
.zad-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.zad-btn--muted { background: var(--zad-surface); color: var(--zad-muted); }
.zad-plan .zad-note { color: #B42318; }
.zad-plans__foot { font-size: 13.5px; color: var(--zad-muted); margin-top: 16px; }

/* eligibility list */
.zad-elig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: el; padding: 0; margin: 0; }
.zad-elig li { list-style: none; background: #fff; border: 1px solid var(--zad-line); border-radius: 18px; padding: 20px; counter-increment: el; }
.zad-elig li::before { content: counter(el); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--zad-ink); color: #fff; font-weight: 800; }
.zad-elig h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.zad-elig p { font-size: 14px; color: var(--zad-muted); margin-top: 4px; }

@media (max-width: 1100px) { .zad-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .zad-elig { grid-template-columns: repeat(2, 1fr); } .zad-channels { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .zad-plans, .zad-elig { grid-template-columns: 1fr; } .zad-channels { grid-template-columns: 1fr; gap: 10px; } .zad-channel { padding: 14px; } }

/* ---- language / LTR ---- */
.zad-landing[dir="ltr"] { direction: ltr; text-align: left; }
.zad-landing[dir="ltr"] .zad-btn svg { transform: scaleX(-1); }
.zad-lang { gap: 6px; }
.zad-lang svg { width: 15px; height: 15px; }

/* ---- partners footer ---- */
.zad-footer__logo { display: block; height: 24px; width: auto; }

.zad-footer__base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; opacity: .85; }

@media (max-width: 640px) {
  .zad-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .zad-lang { padding: 0; width: 40px; justify-content: center; }
  
  .zad-header__brand img { height: 16px; }
  .zad-pill--light { padding: 0 14px; }
  .zad-header__actions { gap: 6px; }
}

/* ---- requirements gate (before payment) ---- */
.zad-noscroll { overflow: hidden; }
.zad-gate { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.zad-gate__backdrop { position: absolute; inset: 0; background: rgba(20,4,34,.6); backdrop-filter: blur(3px); }
.zad-gate__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(10,0,25,.45); animation: zad-pop .2s ease; }
@keyframes zad-pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.zad-gate__box h2 { font-size: 21px; font-weight: 800; margin-top: 12px; }
.zad-gate__lead { font-size: 14.5px; color: var(--zad-muted); margin-top: 6px; }
.zad-gate__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.zad-gate__list label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--zad-line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.zad-gate__list label:has(input:checked) { border-color: var(--zad-lav); background: var(--zad-lav-50); }
.zad-gate__list input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--zad-lav); flex: none; cursor: pointer; }
.zad-gate__list b { display: block; font-size: 15px; }
.zad-gate__list span span { display: block; font-size: 14px; color: var(--zad-muted); margin-top: 2px; }
.zad-gate__list em { display: inline-block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--zad-lav); margin-top: 6px; }
.zad-gate__actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.zad-gate__actions .zad-btn--primary { flex: 1; }
.zad-gate input:focus-visible, .zad-gate button:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .zad-gate__box { animation: none; } }

/* ---- round language button (EN / ع) ---- */
.zad-langbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color .15s ease; }
.zad-langbtn:hover { background: rgba(255,255,255,.26); }
.zad-langbtn:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 2px; }
.zad-header.is-stuck .zad-langbtn, .zad-header.zad-header--page .zad-langbtn { background: #F1F0F3; color: var(--zad-ink); }
.zad-header.is-stuck .zad-langbtn:hover, .zad-header.zad-header--page .zad-langbtn:hover { background: #E7E3EC; }

/* ---- mobile menu ---- */
.zad-burger { display: none; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); cursor: pointer; }
.zad-burger svg { width: 20px; height: 20px; }
.zad-burger path { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.zad-burger.is-open .zad-burger__l1 { transform: translateY(5px) rotate(45deg); }
.zad-burger.is-open .zad-burger__l2 { opacity: 0; }
.zad-burger.is-open .zad-burger__l3 { transform: translateY(-5px) rotate(-45deg); }
.zad-burger:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 2px; }
.zad-header.is-stuck .zad-burger, .zad-header.zad-header--page .zad-burger { color: var(--zad-ink); box-shadow: inset 0 0 0 1px var(--zad-ink); }
.zad-header:not(.is-stuck) { position: relative; }

/* page header (every page except home): white and sticky; same white state as the stuck header */
.zad-pagehead { position: sticky; top: 0; z-index: 1000; background: #fff; }
.zad-header.zad-header--page { padding: 14px clamp(16px, 4vw, 64px); background: #fff; box-shadow: 0 1px 0 var(--zad-line); }
@media (max-width: 640px) { .zad-header.zad-header--page { padding: 12px 16px; } }
.zad-menu { position: absolute; top: calc(100% + 4px); inset-inline: 12px; z-index: 1001; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 50px rgba(10,0,25,.3); }
.zad-menu[hidden] { display: none; }
.zad-menu > a { display: block; width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; background: none; color: var(--zad-ink); font: inherit; font-size: 15.5px; font-weight: 600; text-align: start; text-decoration: none; cursor: pointer; }
.zad-menu > a:hover, .zad-menu > a:focus-visible { background: var(--zad-lav-50); outline: none; }
.zad-menu .zad-note { margin: 0 14px 8px; color: #B42318; }
@media (max-width: 960px) { .zad-burger { display: inline-grid; } }
@media (min-width: 961px) { .zad-menu { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .zad-burger path { transition: none; } }

.zad-menu > a.zad-menu__cta { margin-top: 6px; background: var(--zad-ink); color: #fff; text-align: center; border-radius: 999px; }
.zad-menu > a.zad-menu__cta:hover, .zad-menu > a.zad-menu__cta:focus-visible { background: var(--zad-plum); }

/* ---- eligibility: collapsible cards ---- */
.zad-elig { grid-template-columns: repeat(3, 1fr); align-items: start; }
.zad-elig li { padding: 0; }
.zad-elig li::before { content: none; }
.zad-elig details { padding: 20px; }
.zad-elig summary { list-style: none; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.zad-elig summary::-webkit-details-marker { display: none; }
.zad-elig summary::after { content: "+"; margin-inline-start: auto; font-size: 22px; line-height: 1; color: var(--zad-lav); transition: transform .2s ease; }
.zad-elig details[open] summary::after { transform: rotate(45deg); }
.zad-elig summary:focus-visible { outline: 3px solid var(--zad-lav); outline-offset: 4px; border-radius: 10px; }
.zad-elig__n { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--zad-ink); color: #fff; font-weight: 800; }
.zad-elig__t b { display: block; font-size: 16px; }
.zad-elig__t span { display: block; font-size: 14px; color: var(--zad-muted); margin-top: 4px; }
.zad-elig__more { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--zad-line); font-size: 14.5px; }
.zad-elig__more p { color: var(--zad-muted); }
.zad-elig__more dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; }
.zad-elig__more dt { font-weight: 700; color: var(--zad-plum); }
.zad-elig__more dd { margin: 0; color: var(--zad-muted); }
.zad-elig__more b { color: var(--zad-ink); }
.zad-elig__link { display: inline-flex; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--zad-ink); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.zad-elig__link:hover { background: var(--zad-plum); }
@media (max-width: 960px) { .zad-elig { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .zad-elig summary::after { transition: none; } }

/* ---- signed-in header: hidden pieces stay hidden (pills are inline-flex) + the logout button in the menu ---- */
.zad-landing [hidden] { display: none !important; }
button.zad-pill { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.zad-menu > button { display: block; width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; background: none; color: var(--zad-ink); font: inherit; font-size: 15.5px; font-weight: 600; text-align: start; cursor: pointer; }
.zad-menu > button:hover, .zad-menu > button:focus-visible { background: var(--zad-lav-50); outline: none; }

/* ---- /pages/manage: the app's portal fills the page under the header ----
   No breadcrumb or page title, no theme container: the frame spans the page; the sign-in card
   (before the frame opens) stays a centred card. */
html.zad-manage-page #main > section:first-child,
html.zad-manage-page #main .theme-container > h1 { display: none !important; }
html.zad-manage-page #main > section { padding: 0 !important; }
html.zad-manage-page #main .theme-container { max-width: none !important; padding: 0 !important; }
html.zad-manage-page #main .prose { max-width: none !important; margin: 0 !important; }
#zads-manage iframe { border-radius: 0 !important; min-height: calc(100vh - 70px) !important; }
#zads-manage > div { max-width: 560px; margin: 56px auto !important; }
@media (max-width: 640px) { #zads-manage > div { margin: 24px 16px !important; } }