/* W1 fc-footer: a stronger sitewide footer over the rd footer (layout/footer-rd.php, unchanged markup). CSS only: every link, form, image and
   region rule of the rd footer stays. What it adds: a curved top cap and a green-to-black background with a faint dot pattern, heading
   underlines, a dot-to-bar link marker, the trust facts as one strip, the socials as one row, a calmer panel hierarchy.
   Logical properties only; transform and opacity motion on the rd curve; reduced motion has its own block. */

/* 1. Background: curved cap, green-to-black gradient, faint dot pattern ------------------------------------------------- */
.nx-fc-footer .nxf-rd{border-top:0;
  background:radial-gradient(120% 70% at 50% 0%,rgba(69,248,130,.10),rgba(69,248,130,0) 62%),
    linear-gradient(180deg,var(--fc-ink-top) 0%,var(--fc-ink-mid) 46%,var(--fc-ink-end) 100%)}
.nx-fc-footer .nxf-rd::before{inset:auto 0 100%;height:var(--fc-cap);opacity:1;pointer-events:none;
  background:linear-gradient(180deg,rgba(69,248,130,.06),var(--fc-ink-top) 90%);
  border-top:1px solid var(--fc-line-strong);border-radius:50% 50% 0 0/100% 100% 0 0;
  box-shadow:0 -14px 36px -18px rgba(69,248,130,.45)}
.nx-fc-footer .nxf-rd::after{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;
  background-image:radial-gradient(var(--fc-dot) 1px,rgba(69,248,130,0) 1.4px);background-size:22px 22px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,0) 92%);mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 45%,rgba(0,0,0,0) 92%)}

/* 2. Headings: one size, a short green underline (games head and every link group) ------------------------------------- */
.nx-fc-footer .nxf-rd .nxf-games-h,.nx-fc-footer .nxf-rd .nxf-col .nxf-h{position:relative;padding-bottom:10px}
.nx-fc-footer .nxf-rd .nxf-games-h::after,.nx-fc-footer .nxf-rd .nxf-col .nxf-h::after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:28px;height:2px;border-radius:2px;
  background:var(--nx-signal,#45F882);box-shadow:0 0 12px rgba(69,248,130,.55)}
.nx-fc-footer .nxf-rd .nxf-legal .nxf-h{padding-bottom:0}
.nx-fc-footer .nxf-rd .nxf-legal .nxf-h::after{content:none}

/* 3. Brand stage: socials as one labelled row, a lighter newsletter card -------------------------------------------- */
.nx-fc-footer .nxf-rd .nxf-social{gap:4px;padding:4px;border:1px solid var(--fc-line);border-radius:16px;background:rgba(0,0,0,.42);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.nx-fc-footer .nxf-rd .nxf-social a{border-color:transparent;background:transparent;color:#C4CFC8}
.nx-fc-footer .nxf-rd .nxf-social a:hover{border-color:var(--fc-line-strong);background:var(--fc-tint-strong);color:#45F882}
.nx-fc-footer .nxf-rd .nxf-social a:focus-visible{outline:2px solid #6BFF9C;outline-offset:2px}
.nx-fc-footer .nxf-rd .nxf-news{position:relative;border-color:var(--fc-line-strong);
  background:linear-gradient(180deg,rgba(69,248,130,.07),rgba(8,16,11,.82) 42%);box-shadow:0 24px 64px rgba(0,0,0,.5),0 0 56px rgba(69,248,130,.10),inset 0 1px 0 rgba(69,248,130,.22)}

/* 4. Trust facts: one strip with hairline dividers ---------------------------------------------------------------- */
.nx-fc-footer .nxf-rd .nxf-trust{gap:0;overflow:hidden;border:1px solid var(--fc-line);border-radius:16px;background:var(--fc-glass)}
.nx-fc-footer .nxf-rd .nxf-trust li,.nx-fc-footer .nxf-rd .nxf-trust li+li{border:0;border-radius:0;background:transparent;padding:16px 20px}
.nx-fc-footer .nxf-rd .nxf-trust li+li{border-inline-start:1px solid var(--fc-line)}

/* 5. Link groups: one panel with a lit top edge; dot-to-bar marker on desktop links (not Legal; phone names stay on one line) --------------------- */
.nx-fc-footer .nxf-rd .nxf-cols{border-color:var(--fc-line);background:linear-gradient(180deg,rgba(69,248,130,.06),rgba(69,248,130,.012) 60%);
  box-shadow:inset 0 1px 0 rgba(69,248,130,.18)}
.nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a{display:inline-flex;align-items:center;gap:8px}
.nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a::before{content:"";flex:none;width:12px;height:4px;border-radius:999px;background:var(--nx-signal,#45F882);opacity:.45;
  transform:scaleX(.34);transform-origin:left center;transition:transform var(--fc-move) var(--fc-ease),opacity var(--fc-fade) var(--fc-ease)}
.nx-fc-footer:lang(ar) .nxf-rd .nxf-col:not(.nxf-legal) li>a::before{transform-origin:right center}
.nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a:hover::before,.nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a:focus-visible::before{opacity:1;transform:none}
.nx-fc-footer .nxf-rd .nxf-col li>a::after{content:none}
.nx-fc-footer .nxf-rd .nxf-legal :is(a,button):hover{color:#F2F7F4}

/* 6. Checkout methods and the ownership line: a softer frame, a lit divider ------------------------------------------ */
.nx-fc-footer .nxf-rd .nxf-pay{border-color:var(--fc-line);background:var(--fc-tint)}
.nx-fc-footer .nxf-rd .nxf-bottom{border-top:0;background:linear-gradient(90deg,rgba(69,248,130,0),rgba(69,248,130,.32),rgba(69,248,130,0)) top/100% 1px no-repeat}

/* Phone: the strip stacks; accordions keep the rd behaviour; the underline sits only on open groups --------------------- */
@media (max-width:767px){
  .nx-fc-footer .nxf-rd .nxf-trust li,.nx-fc-footer .nxf-rd .nxf-trust li+li{padding:12px 16px}
  .nx-fc-footer .nxf-rd .nxf-trust li+li{border-inline-start:0;border-top:1px solid var(--fc-line)}
  .nx-fc-footer .nxf-rd .nxf-col .nxf-h{padding-bottom:0}
  .nx-fc-footer .nxf-rd .nxf-col .nxf-h::after{content:none}
  .nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a{display:flex;gap:0}
  .nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a::before{content:none}
  .nx-fc-footer .nxf-rd .nxf-social{width:max-content;max-width:100%}
  .nx-fc-footer .nxf-rd .nxf-cols{background:linear-gradient(180deg,rgba(69,248,130,.05),rgba(69,248,130,0) 70%)}
}

/* Reduced motion: the marker changes by opacity only. */
@media (prefers-reduced-motion:reduce){
  .nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a::before{transition:opacity var(--fc-fade) var(--fc-ease)}
  .nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a:hover::before,.nx-fc-footer .nxf-rd .nxf-col:not(.nxf-legal) li>a:focus-visible::before{transform:scaleX(.34)}
}
