:root {
  --esaad-green: #1a9d4b;
  --esaad-green-dark: #0d5c2e;
  --esaad-lime: #7ed321;
  --esaad-lime-btn: #8cd925;
  --esaad-gold: #c9a227;
  --esaad-platinum: #5b6b7a;
  --esaad-silver: #a8b4c0;
  --text-dark: #1a1f24;
  --text-muted: #5c6770;
  --bg-soft: #f4f6f5;
  --benefits-bg: #12151a;
  --radius-lg: 18px;
  --radius-card: 14px;
  --shadow-card: 0 12px 40px rgba(13, 92, 46, 0.12);
  --font: "Noto Kufi Arabic", system-ui, sans-serif;
  --bottom-nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #0a0c0e;
  color: var(--text-dark);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #fff;
  position: relative;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.35);
}

.main-scroll {
  padding-bottom: calc(var(--safe-bottom) + 16px);
}

/* —— Logo —— */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--esaad-green);
  line-height: 1.1;
}

.logo__ar {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__en {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  margin-top: 2px;
}

.logo__smile {
  width: 72px;
  height: 14px;
  color: var(--esaad-lime);
  margin-top: 2px;
}

.logo--compact .logo__ar {
  font-size: 1.05rem;
}

.logo--compact .logo__en {
  font-size: 0.72rem;
}

.logo--hero .logo__ar {
  font-size: 1.5rem;
}

.logo--hero .logo__en {
  font-size: 1rem;
}

.logo--hero .logo__smile {
  width: 88px;
}

/* —— Top bar —— */
.top-bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 12px 16px;
  z-index: 20;
}

.top-bar--overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  color: #fff;
  pointer-events: none;
}

.top-bar--overlay a {
  pointer-events: auto;
}

.top-bar--overlay .logo {
  color: #fff;
}

.top-bar--overlay .logo__smile {
  color: var(--esaad-lime);
}

.top-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--esaad-lime);
}

/* —— Dark hero stage —— */
.hero-stage {
  position: relative;
  padding: 72px 20px 36px;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, #1e4a32 0%, #0a1210 45%, #050608 100%);
  overflow: hidden;
}

.hero-stage__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 85%, rgba(26, 157, 75, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(126, 211, 33, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-stage__platform {
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.hero-badge {
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #e8f5ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 6px rgba(126, 211, 33, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-badge .logo {
  color: var(--esaad-green);
}

.hero-stage__tagline {
  margin: 0 auto;
  max-width: 320px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* —— Carousel —— */
.carousel {
  position: relative;
  margin-top: 0;
  background: #fff;
}

.carousel__track {
  position: relative;
  height: min(58vw, 280px);
  min-height: 240px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.carousel__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.carousel__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 28px;
  text-align: center;
  color: #fff;
}

.carousel__text {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.carousel__brand {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.carousel__ribbon {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn--lime {
  background: linear-gradient(180deg, var(--esaad-lime-btn) 0%, #6bb81a 100%);
  color: #0a2a12;
  box-shadow: 0 6px 20px rgba(126, 211, 33, 0.45);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 6px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #c8d4cb;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.carousel__dot.is-active {
  background: var(--esaad-green);
  transform: scale(1.15);
}

/* —— Card showcase —— */
.card-showcase {
  padding: 28px 18px 12px;
  background: #fff;
}

.card-showcase__visual {
  position: relative;
  min-height: 210px;
  margin-bottom: 20px;
  overflow: hidden;
  isolation: isolate;
}

.esaad-card {
  position: relative;
  z-index: 2;
  width: min(100%, 280px);
  aspect-ratio: 1.586;
  border-radius: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, #1faa52 0%, #0d7a38 55%, #0a5c2a 100%);
  color: #fff;
  box-shadow: var(--shadow-card);
  transform: rotate(-6deg) translateX(8px);
}

.esaad-card__chip {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e8c56a 0%, #c9a227 50%, #f5e6a8 100%);
  margin-bottom: 16px;
}

.esaad-card__logo .logo__ar {
  font-size: 1.1rem;
  color: #fff;
}

.esaad-card__logo .logo__en {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.esaad-card__name {
  margin: 14px 0 4px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.esaad-card__num {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.esaad-card__smile {
  position: absolute;
  bottom: 16px;
  left: 20px;
  width: 56px;
}

.collage {
  position: absolute;
  top: 8px;
  right: 0;
  width: 58%;
  height: 180px;
  z-index: 1;
}

.collage__tile {
  position: absolute;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.collage__tile--1 {
  width: 52%;
  height: 52%;
  top: 0;
  right: 0;
  background-image: url("/assets/images/esaad/collage-1.jpg");
}

.collage__tile--2 {
  width: 48%;
  height: 42%;
  top: 38%;
  right: 42%;
  background-image: url("/assets/images/esaad/collage-2.jpg");
}

.collage__tile--3 {
  width: 40%;
  height: 38%;
  bottom: 0;
  right: 8%;
  background-image: url("/assets/images/esaad/collage-3.jpg");
}

.collage__tile--4 {
  width: 36%;
  height: 32%;
  top: 12%;
  right: 48%;
  background-image: url("/assets/images/esaad/collage-4.jpg");
  opacity: 0.95;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--esaad-green-dark);
}

.flag-uae {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(to right, #00732f 25%, #fff 25%, #fff 50%, #000 50%, #000 75%, #ff0000 75%);
  flex-shrink: 0;
}

.headline {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

.subhead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--esaad-green-dark);
}

.body-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.body-text strong {
  color: var(--esaad-green);
}

/* —— Action buttons —— */
.actions {
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: block;
  text-align: center;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #2db55e 0%, var(--esaad-green-dark) 100%);
  box-shadow: 0 8px 24px rgba(26, 157, 75, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-btn:active {
  transform: scale(0.98);
}

/* —— Tiers —— */
.tiers {
  padding: 8px 16px 28px;
  background: var(--bg-soft);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
}

.tiers__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.tier {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #eef1f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.tier:active {
  background: #f0f7f2;
}

.tier:last-child {
  border-bottom: none;
}

.tier__medal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #f0f4f2, #c5d0c8);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tier--silver .tier__medal {
  background: radial-gradient(circle at 30% 30%, #eef1f4, var(--esaad-silver));
}

.tier--gold .tier__medal {
  background: radial-gradient(circle at 30% 30%, #fff4d0, var(--esaad-gold));
}

.tier--platinum .tier__medal {
  background: radial-gradient(circle at 30% 30%, #e8ecef, #7a8a99);
}

.tier__name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
}

.tier--silver .tier__name {
  color: #6b7a85;
}

.tier--gold .tier__name {
  color: #9a7b10;
}

.tier--platinum .tier__name {
  color: #4a5560;
}

.tier__desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tiers__footnote {
  margin: 16px 8px 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--esaad-green-dark);
}

/* —— Benefits —— */
.benefits {
  padding: 28px 16px 32px;
  background: var(--benefits-bg);
  color: #fff;
}

.benefits__flag-strip {
  height: 4px;
  margin: -28px -16px 24px;
  background: linear-gradient(to right, #00732f 25%, #fff 25%, #fff 50%, #000 50%, #000 75%, #ff0000 75%);
}

.benefits__title {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
}

.benefits__subtitle {
  margin: 6px 0 22px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--esaad-gold);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.benefit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card);
  padding: 16px 12px;
  text-align: center;
}

.benefit__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  color: var(--esaad-lime);
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.benefit p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.site-foot {
  padding: 20px 16px 12px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #fff;
}

/* —— Bottom nav —— */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background: #fff;
  border-top: 1px solid #e8ece9;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9aa5a0;
}

.bottom-nav__item svg {
  width: 24px;
  height: 24px;
}

.bottom-nav__item.is-active {
  color: var(--esaad-green);
}

@media (min-width: 481px) {
  body {
    padding: 24px 0;
    background: linear-gradient(160deg, #0a1210, #1a3d28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: none;
  }
}