/* الدعوة الأخيرة — بطاقة كحلية بقطع هوية آفاق */

.nx-final {
  --nx-navy: #163A7A;
  position: relative;
  direction: rtl;
  padding: 1.2rem 0 3rem;
  font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
  background: #fff;
}

.nx-final-inner {
  position: relative;
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.nx-final-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 320px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f5bb0 0%, #163a7a 52%, #102c5e 100%);
  box-shadow: 0 24px 55px rgb(16 44 94 / .22);
}

.nx-final-art {
  position: absolute;
  top: 0;
  left: 0;
  width: min(560px, 50%);
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.nx-final-copy {
  width: 100%;
  padding: 3rem 3.4rem 3rem 50%;
  color: #fff;
  text-align: right;
}

.nx-final-kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: #bcd6f3;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.nx-final-kicker span {
  width: 1.8rem;
  height: 1.5px;
  background: #f5a322;
}

.nx-final-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.nx-final-title-a,
.nx-final-title-b {
  display: block;
  color: #fff;
  font-size: clamp(1.7rem, 2.45vw, 2.2rem);
}

.nx-final-lead {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0.7rem 0 0;
  max-width: 28rem;
  color: rgb(255 255 255 / .9);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
}
.nx-final-lead span { display: block; }

.nx-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.nx-final-go,
.nx-final-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.nx-final-go {
  gap: 0.6rem;
  padding: 0.2rem 1.25rem 0.2rem 0.35rem;
  background: #fff;
  color: var(--nx-navy);
  box-shadow: 0 12px 26px rgb(8 24 56 / .28);
}
.nx-final-go:hover {
  color: var(--nx-navy);
  transform: translateY(-3px);
}
.nx-final-go i {
  position: relative;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #f5a322;
}
.nx-final-go i::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-35%, -50%) rotate(45deg);
}
.nx-final-ghost {
  padding: 0 1.35rem;
  border: 1.5px solid rgb(255 255 255 / .38);
  color: #fff;
}
.nx-final-ghost:hover {
  color: #fff;
  background: rgb(255 255 255 / .08);
  transform: translateY(-3px);
}

.nx-final-tail {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 104px;
  height: 78px;
  filter: drop-shadow(0 10px 16px rgb(22 58 122 / .26));
  pointer-events: none;
  transition: transform 0.3s ease;
}
.nx-final-inner:hover .nx-final-tail { transform: translateY(-3px); }

@media (max-width: 900px) {
  .nx-final-copy { padding: 2.4rem 2.1rem 2.4rem 42%; }
  .nx-final-lead span { white-space: normal; }
}

/* جوال: القطع فوق والنص تحت، والزخرفة لا تغطي الأزرار */
@media (max-width: 700px) {
  .nx-final { padding: 0.4rem 0 2.4rem; }
  .nx-final-inner { width: calc(100% - 1.5rem); }
  .nx-final-card {
    display: block;
    min-height: 0;
  }
  .nx-final-art {
    position: relative;
    display: block;
    width: 100%;
    height: 4.4rem;
    margin-bottom: -0.85rem;
    -webkit-mask-image: linear-gradient(#000 28%, transparent);
    mask-image: linear-gradient(#000 28%, transparent);
  }
  .nx-final-copy {
    padding: 0 1.2rem 1.45rem;
    text-align: center;
  }
  .nx-final-kicker {
    justify-content: center;
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
  }
  .nx-final-title-a,
  .nx-final-title-b {
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1.45;
  }
  .nx-final-lead {
    align-items: center;
    max-width: none;
    margin-top: 0.7rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.6;
    gap: 0.1rem;
  }
  .nx-final-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.15rem;
    padding: 0;
  }
  .nx-final-go,
  .nx-final-ghost {
    width: auto;
    min-height: 2.35rem;
    font-size: 0.9rem;
  }
  .nx-final-go {
    justify-content: center;
    gap: 0.4rem;
    padding: 0.12rem 0.8rem 0.12rem 0.18rem;
  }
  .nx-final-go i { width: 1.65rem; height: 1.65rem; }
  .nx-final-ghost { padding: 0 0.85rem; }
  .nx-final-tail {
    right: -10px;
    bottom: -22px;
    width: 52px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-final-go,
  .nx-final-ghost { transition: none; }
}
