:root {
  --brand: #6C4CF1;
  --sky: #35C6F4;
  --coral: #FF6B6B;
  --sunny: #FFD34E;
  --mint: #58D6B2;
  --navy: #18233A;
  --cream: #FFF9F1;
  --muted: #647085;
  --border: #e8e0f6;
  --secondary: #f3efff;
  --shadow-soft: 0 10px 30px -12px rgba(74, 46, 160, .25);
  --shadow-lift: 0 20px 45px -20px rgba(74, 46, 160, .35);
  --gradient-hero: radial-gradient(1200px 600px at 80% 10%, rgba(183, 154, 255, .55), transparent 60%), radial-gradient(900px 500px at 10% 30%, rgba(97, 211, 255, .45), transparent 60%), radial-gradient(700px 400px at 50% 90%, rgba(112, 224, 188, .38), transparent 60%);
  --gradient-brand: linear-gradient(135deg, #6C4CF1, #845EF7);
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body.jolly-site {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Tajawal", "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.jolly-site * {
  box-sizing: border-box;
}

.jolly-site a {
  color: inherit;
  text-decoration: none;
}

.jolly-site img,
.jolly-site svg {
  max-width: 100%;
}

.font-en {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-family: "Poppins", "Tajawal", system-ui, sans-serif;
}

.text-brand { color: var(--brand); }
.text-mint { color: var(--mint); }

.container-x {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-pad {
  padding-block: 5rem;
}

.card-soft {
  background: #fff;
  border-radius: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card-soft:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  border-radius: 999px;
  padding: .85rem 1.5rem;
  font-weight: 800;
  font-size: .95rem;
  border: 0;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-light:hover,
.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--border);
}

.btn-light {
  background: #fff;
  color: var(--brand);
}

.btn-outline-light {
  color: #fff;
  border: 2px solid rgba(255,255,255,.65);
}

.btn-small {
  min-height: 40px;
  padding: .65rem 1rem;
  font-size: .86rem;
}

.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.icon-sm { width: 1rem; height: 1rem; flex: 0 0 auto; }
.icon-lg { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; }

.section-heading {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section-heading span,
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.section-heading h2,
.faq-layout h2 {
  margin: .75rem 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 900;
}

.jolly-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.jolly-header.is-scrolled,
.jolly-header.is-open {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px -20px rgba(24,35,58,.3);
}

.jolly-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jolly-logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--navy);
}

.jolly-logo__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 1rem;
  background: var(--brand);
  box-shadow: var(--shadow-soft);
}

.jolly-logo__spark {
  width: 30px;
  height: 30px;
}

.jolly-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-weight: 900;
}

.jolly-logo__text span:last-child {
  margin-top: .16rem;
  color: var(--brand);
  font-size: .75rem;
}

.jolly-nav__list {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.jolly-nav__list a {
  display: block;
  border-radius: 999px;
  padding: .55rem .95rem;
  font-weight: 800;
  color: rgba(24,35,58,.8);
}

.jolly-nav__list a:hover,
.jolly-nav__list .current-menu-item > a {
  background: #fff;
  color: var(--brand);
}

.jolly-header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.login-link {
  font-size: .9rem;
  font-weight: 800;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.mobile-menu-toggle__close,
.is-open .mobile-menu-toggle__open {
  display: none;
}

.is-open .mobile-menu-toggle__close {
  display: block;
}

.mobile-drawer {
  position: fixed;
  inset: 72px 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24,35,58,.32);
}

.mobile-drawer__panel {
  position: absolute;
  inset-inline: 1rem;
  top: 1rem;
  border-radius: 1.75rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-lift);
  transform: translateY(-1rem);
  transition: transform .25s ease;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateY(0);
}

.mobile-drawer__links {
  display: grid;
  gap: .25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-drawer__links a {
  display: block;
  border-radius: 1rem;
  padding: .85rem 1rem;
  font-weight: 800;
}

.mobile-drawer__links a:hover {
  background: var(--secondary);
}

.mobile-drawer__actions {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}

body.jolly-menu-open {
  overflow: hidden;
}

.jolly-footer {
  position: relative;
  margin-top: 6rem;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.jolly-footer__orb {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  filter: blur(50px);
}

.jolly-footer__orb--one { top: -5rem; left: -5rem; background: rgba(108,76,241,.3); }
.jolly-footer__orb--two { right: -4rem; bottom: -6rem; background: rgba(53,198,244,.2); }

.jolly-footer__inner {
  position: relative;
  padding-block: 4rem 2rem;
}

.jolly-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
}

.jolly-footer h2 {
  margin: 0 0 1rem;
  font-size: .95rem;
  color: #fff;
}

.jolly-footer p,
.footer-links,
.footer-contact {
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  line-height: 1.8;
}

.jolly-footer__logo {
  width: fit-content;
  border-radius: 1rem;
  background: rgba(255,255,255,.1);
  padding: .75rem;
}

.jolly-footer__logo .jolly-logo__text span:first-child {
  color: #fff;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: .45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a:hover {
  color: var(--sunny);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.social-links a:hover {
  background: var(--brand);
}

.jolly-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
}

.jolly-footer__bottom p {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-size: .8rem;
}

:focus-visible {
  outline: 3px solid rgba(108,76,241,.45);
  outline-offset: 3px;
}

/* Compact production header */
.jolly-header {
  background: rgba(255, 249, 241, .96);
  border-bottom: 1px solid rgba(108, 76, 241, .1);
  box-shadow: 0 14px 34px -30px rgba(24, 35, 58, .45);
  backdrop-filter: blur(14px);
}

.jolly-header.is-scrolled,
.jolly-header.is-open {
  background: rgba(255, 249, 241, .98);
  box-shadow: 0 14px 34px -26px rgba(24, 35, 58, .42);
}

.jolly-policy-bar {
  border-bottom: 1px solid rgba(108, 76, 241, .12);
  background: linear-gradient(90deg, rgba(108, 76, 241, .08), rgba(53, 198, 244, .07));
}

.jolly-policy-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}

.jolly-policy-bar__label {
  color: rgba(24, 35, 58, .62);
  font-size: .75rem;
  font-weight: 900;
}

.jolly-policy-bar__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.jolly-policy-bar__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: #fff;
  padding: 0 .75rem;
  color: rgba(24, 35, 58, .82);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px -16px rgba(24, 35, 58, .35);
}

.jolly-policy-bar__links a:hover {
  color: var(--brand);
}

.jolly-header__inner {
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  gap: 1rem;
  overflow: visible;
}

.jolly-logo {
  flex: 0 0 auto;
  width: 190px;
  max-width: 190px;
  height: 56px;
  overflow: hidden;
}

.jolly-logo img,
.jolly-logo .custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

.jolly-logo__mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
}

.jolly-logo__spark {
  width: 26px;
  height: 26px;
}

.jolly-logo__text span:first-child {
  font-size: .9rem;
}

.jolly-logo__text span:last-child {
  font-size: .66rem;
}

.jolly-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.jolly-nav__list {
  justify-content: center;
  gap: .35rem;
}

.jolly-nav__list li {
  flex: 0 0 auto;
  width: 88px;
  max-width: 88px;
  height: 40px;
}

.jolly-nav__list a {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}

.jolly-header__actions {
  flex: 0 0 auto;
  gap: .5rem;
}

.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 38px;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.login-link:hover {
  background: var(--secondary);
  color: var(--brand);
}

.jolly-header__cta {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
  height: 46px;
  min-height: 46px;
  padding: 0 .85rem;
  font-size: .82rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.jolly-header__cta .icon-sm {
  width: .9rem;
  height: .9rem;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  min-width: 42px;
}

.mobile-drawer {
  inset: 108px 0 0;
}

.mobile-drawer__policy {
  display: grid;
  gap: .45rem;
  margin-top: .85rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
}

.mobile-drawer__policy a {
  display: block;
  border-radius: 1rem;
  background: var(--secondary);
  padding: .8rem 1rem;
  color: var(--brand);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .jolly-header__inner {
    height: 68px;
    min-height: 68px;
    max-height: 68px;
  }

  .jolly-logo {
    width: 170px;
    max-width: 170px;
  }

  .jolly-logo img,
  .jolly-logo .custom-logo {
    max-width: 160px !important;
    max-height: 46px !important;
  }

  .jolly-nav,
  .jolly-header__actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .mobile-drawer {
    inset: 102px 0 0;
  }
}

@media (max-width: 720px) {
  .jolly-policy-bar__inner {
    min-height: 32px;
    gap: .35rem;
    padding-block: .3rem;
  }

  .jolly-policy-bar__label {
    display: none;
  }

  .jolly-policy-bar__links a {
    min-height: 24px;
    padding-inline: .55rem;
    font-size: .72rem;
  }

  .jolly-header__inner {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
  }

  .jolly-logo {
    width: 138px;
    max-width: 138px;
    height: 46px;
  }

  .jolly-logo img,
  .jolly-logo .custom-logo {
    max-width: 132px !important;
    max-height: 38px !important;
  }

  .jolly-logo__text span:first-child {
    font-size: .82rem;
  }

  .jolly-logo__text span:last-child {
    font-size: .6rem;
  }

  .mobile-drawer {
    inset: 92px 0 0;
  }
}
