/* Hero — merchant photo + iOS-style notifications (vertical list) */
body.home-page .hero-landing--merchant {
  position: relative;
  z-index: 10;
  min-height: min(100dvh, 900px);
  padding: calc(var(--home-nav-offset, 72px) + 1.25rem) clamp(1rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  background: #0a080c;
}

body.home-page .hero-landing--merchant #canvas3d {
  display: none !important;
}

body.home-page .hero-merchant-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.home-page .hero-merchant-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

body.home-page .hero-merchant-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.55) 0%, rgba(8, 6, 10, 0.12) 42%, rgba(8, 6, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 6, 10, 0.72) 0%, transparent 24%, transparent 76%, rgba(8, 6, 10, 0.72) 100%);
}

body.home-page .hero-notifications-layout {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-top: clamp(0.5rem, 4vh, 2rem);
  min-height: clamp(320px, 54vh, 560px);
}

body.home-page .hero-notif-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(100%, 320px);
  justify-self: center;
}

body.home-page .hero-notif-stack--left {
  justify-self: end;
}

body.home-page .hero-notif-stack--right {
  justify-self: start;
}

body.home-page .hero-notif-center {
  min-height: 1px;
}

/* iOS notification card — one per row */
body.home-page .ios-notif {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-14px);
  animation: heroNotifDrop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.home-page .hero-notif-stack--left .ios-notif {
  animation-name: heroNotifDropLeft;
}

body.home-page .hero-notif-stack--right .ios-notif {
  animation-name: heroNotifDropRight;
}

body.home-page .ios-notif:nth-child(1) { animation-delay: 0.12s; }
body.home-page .ios-notif:nth-child(2) { animation-delay: 0.28s; }
body.home-page .ios-notif:nth-child(3) { animation-delay: 0.44s; }

body.home-page .ios-notif__inner {
  border-radius: 17px;
  padding: 11px 13px 12px;
  background: rgba(28, 28, 30, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

body.home-page .ios-notif__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

body.home-page .ios-notif__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

body.home-page .ios-notif__app {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

body.home-page .ios-notif__time {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
}

body.home-page .ios-notif__title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 2px;
}

body.home-page .ios-notif__text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

body.home-page .hero-merchant-caption {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  padding-top: clamp(0.5rem, 2vh, 1.25rem);
}

body.home-page .hero-merchant-caption .hero-title--split {
  font-size: clamp(2rem, 5vw, 3.35rem);
  margin-bottom: 0.65rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

body.home-page .hero-merchant-caption .hero-sub {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

body.home-page .hero-merchant-caption .hero-cta {
  display: none;
}

body.home-page .hero-notif-mobile {
  display: none !important;
}

@keyframes heroNotifDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroNotifDropLeft {
  from {
    opacity: 0;
    transform: translate(-18px, -14px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes heroNotifDropRight {
  from {
    opacity: 0;
    transform: translate(18px, -14px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (max-width: 1100px) {
  body.home-page .hero-notifications-layout {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 2fr) minmax(0, 1fr);
  }
}

/* جوال: صورة كاملة مثل الديسكتوب + النص بنفس مكانه */
@media (max-width: 899px) {
  body.home-page .hero-landing--merchant {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: min(100dvh, 820px);
    padding: calc(var(--home-nav-offset, 64px) + 0.75rem) clamp(1rem, 4vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
    overflow: hidden;
    background: #0a080c;
  }

  body.home-page .hero-merchant-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: auto;
    aspect-ratio: unset;
    height: auto;
    overflow: hidden;
    background: #0a080c;
    display: block;
  }

  body.home-page .hero-merchant-bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center 28%;
  }

  body.home-page .hero-merchant-vignette {
    display: block;
    background:
      linear-gradient(180deg, rgba(8, 6, 10, 0.55) 0%, rgba(8, 6, 10, 0.12) 42%, rgba(8, 6, 10, 0.82) 100%),
      linear-gradient(90deg, rgba(8, 6, 10, 0.72) 0%, transparent 24%, transparent 76%, rgba(8, 6, 10, 0.72) 100%);
  }

  body.home-page .hero-notifications-layout {
    display: none !important;
  }

  body.home-page .hero-merchant-caption {
    position: relative;
    z-index: 3;
    align-self: stretch;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    margin-top: 0;
    padding: clamp(0.5rem, 2vh, 1.25rem) 0 0;
    background: transparent;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.home-page .hero-landing.hero-landing--merchant {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
    min-height: min(100dvh, 780px) !important;
    padding: calc(var(--home-nav-offset, 64px) + 0.5rem) 1rem clamp(1.25rem, 4vw, 2rem) !important;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .ios-notif {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
