﻿:root {
  --blue: #2E74B5;
  --navy: #102B49;
  --deep: #091D33;
  --gold: #D6AE55;
  --gold-light: #F6D98B;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #fff;
  color: var(--white);
  direction: rtl;
}
/* ===== التصميم الجديد الموحد ===== */

body {
  background:
    radial-gradient(circle at 85% 10%, rgba(46,116,181,.22), transparent 30%),
    radial-gradient(circle at 10% 55%, rgba(214,174,85,.08), transparent 30%),
    linear-gradient(180deg, #173B60 0%, #102B49 35%, #091D33 100%);
  background-attachment: fixed;
}

/* توحيد خلفية جميع أقسام الصفحة */
.hero,
.bottom-purchase {
  background: transparent;
}

/* استمرار الخلفية نفسها في محتوى الكتاب */
.landing-content {
  background: transparent;
  padding: 0;
}

/* إزالة الميلان من غلاف الكتاب */
.book-cover {
  transform: none !important;
  transition: transform .4s ease, box-shadow .4s ease;
}

/* تكبير الغلاف عند مرور الفأرة */
.book-stage:hover .book-cover {
  transform: scale(1.07) !important;
  box-shadow: 0 25px 55px rgba(0,0,0,.55);
}

/* تحسين تأثير الغلاف */
.book-stage {
  overflow: visible;
}

/* تحسين المساحة المحيطة بالمحتوى */
.landing-content img {
  margin: 0;
  padding: 0;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 65px 24px 75px;
  background:
    radial-gradient(circle at 15% 30%, rgba(46,116,181,.35), transparent 38%),
    linear-gradient(135deg, #173B60, #091D33 75%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(214,174,85,.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  top: -260px;
  right: -120px;
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -230px;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: auto;
}

.hero-copy {
  text-align: center;
  margin-bottom: 38px;
}

.hero-kicker {
  display: inline-block;
  color: var(--gold-light);
  border: 1px solid rgba(214,174,85,.45);
  border-radius: 30px;
  padding: 9px 20px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 16px;
  font-size: clamp(29px, 4.5vw, 48px);
  line-height: 1.5;
  font-weight: 800;
}

.hero h1 span {
  color: var(--gold-light);
}

.hero-description {
  max-width: 700px;
  margin: auto;
  color: #DCE8F4;
  font-size: 18px;
  line-height: 1.9;
}

.hero-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
  max-width: 850px;
  margin: auto;
}

.book-stage {
  width: min(38%, 290px);
  position: relative;
  flex-shrink: 0;
  perspective: 1000px;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  box-shadow: 18px 24px 45px rgba(0,0,0,.45);
  transform: rotate(-3deg);
  transition: transform .35s ease;
}

.book-stage:hover .book-cover {
  transform: rotate(0deg) translateY(-7px);
}

.purchase-panel {
  text-align: center;
  max-width: 390px;
}

.purchase-panel h2 {
  font-size: 27px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.purchase-panel p {
  color: #DCE8F4;
  line-height: 1.8;
  margin: 0 0 18px;
}

.price {
  color: var(--gold-light);
  font-size: 30px;
  font-weight: 800;
  margin: 15px 0 22px;
}

.buy-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 18px 30px;
  border: 0;
  border-radius: 50px;
  background: linear-gradient(110deg, #E8BD61, #FFE5A0, #C99636);
  background-size: 200% auto;
  color: #172B40;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 9px 28px rgba(214,174,85,.3);
  animation: button-glow 2.8s ease-in-out infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}

.buy-button:hover {
  transform: translateY(-4px) scale(1.025);
  background-position: right center;
  box-shadow: 0 13px 35px rgba(214,174,85,.5);
}

.buy-button:active {
  transform: scale(.98);
}

@keyframes button-glow {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(214,174,85,.25);
  }
  50% {
    box-shadow: 0 8px 34px rgba(255,213,115,.55);
  }
}

.purchase-note {
  display: block;
  color: #D5E1ED;
  font-size: 12px;
  margin-top: 14px;
}

.landing-content {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  line-height: 0;
}

.landing-content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

.bottom-purchase {
  padding: 55px 20px;
  text-align: center;
  background: linear-gradient(135deg, #173B60, #091D33);
}

.bottom-purchase h2 {
  font-size: clamp(23px, 4vw, 34px);
  margin: 0 0 14px;
}

.bottom-purchase p {
  color: #DCE8F4;
  margin: 0 0 22px;
  line-height: 1.8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 13, 25, .78);
  backdrop-filter: blur(5px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  position: relative;
  width: min(100%, 650px);
  height: min(88vh, 850px);
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0,0,0,.4);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #173B60;
  color: white;
  font-size: 25px;
  cursor: pointer;
}

.modal-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

body.modal-active {
  overflow: hidden;
}

@media (max-width: 700px) {
  .hero {
    padding: 42px 18px 48px;
  }

  .hero-copy {
    margin-bottom: 28px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-offer {
    flex-direction: column;
    gap: 27px;
  }

  .book-stage {
    width: min(58%, 230px);
  }

  .purchase-panel {
    width: 100%;
  }

  .purchase-panel h2 {
    font-size: 23px;
  }

  .buy-button {
    width: min(100%, 340px);
    min-width: 0;
    padding: 17px 20px;
    font-size: 18px;
  }

  .bottom-purchase {
    padding: 42px 18px;
  }

  .modal-overlay {
    padding: 8px;
  }

  .modal-box {
    width: 100%;
    height: 94vh;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================
   PROFESSIONAL CONTENT SECTIONS
   ========================================== */

main {
  position: relative;
  overflow: hidden;
}

.content-intro,
.learning-section,
.benefits-section,
.audience-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 75px 0;
  color: #FFFFFF;
  line-height: 1.8;
}

.content-intro {
  padding-top: 85px;
  padding-bottom: 55px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 18px;
  border: 1px solid rgba(214,174,85,.4);
  border-radius: 30px;
  color: #F6D98B;
  background: rgba(214,174,85,.08);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0 0 16px;
  color: #F6D98B;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.5;
}

.section-heading p,
.content-intro p {
  color: #DCE8F4;
  font-size: 16px;
  line-height: 2;
}

.content-intro .section-heading {
  max-width: 850px;
  padding: 35px 32px;
  border: 1px solid rgba(214,174,85,.2);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.075),
    rgba(255,255,255,.025)
  );
  box-shadow: 0 18px 45px rgba(0,0,0,.15);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.learning-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 245px;
  border: 1px solid rgba(214,174,85,.24);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.09),
    rgba(255,255,255,.035)
  );
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
  transition: transform .3s ease, border-color .3s ease,
              box-shadow .3s ease;
}

.learning-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #F6D98B, #B98732);
}

.learning-card:hover {
  transform: translateY(-7px);
  border-color: rgba(246,217,139,.7);
  box-shadow: 0 22px 45px rgba(0,0,0,.25);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(214,174,85,.13);
  font-size: 27px;
}

.card-number {
  position: absolute;
  top: 28px;
  left: 27px;
  color: rgba(246,217,139,.35);
  font-size: 28px;
  font-weight: 900;
}

.learning-card h3,
.benefit-item h3,
.audience-card h3 {
  margin: 0 0 10px;
  color: #F6D98B;
  font-size: 20px;
  line-height: 1.6;
}

.learning-card p,
.benefit-item p,
.audience-card p {
  margin: 0;
  color: #DCE8F4;
  font-size: 14px;
  line-height: 2;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  transition: background .3s ease, transform .3s ease;
}

.benefit-item:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}

.benefit-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(214,174,85,.14);
  font-size: 23px;
}

.benefit-item h3 {
  font-size: 17px;
  margin-bottom: 5px;
}

.budget-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 35px;
  padding: 30px;
  border: 1px solid rgba(246,217,139,.55);
  border-radius: 22px;
  background: linear-gradient(
    110deg,
    rgba(214,174,85,.18),
    rgba(214,174,85,.055)
  );
  box-shadow: 0 15px 40px rgba(0,0,0,.15);
}

.budget-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(246,217,139,.15);
  font-size: 30px;
}

.budget-label {
  color: #F6D98B;
  font-size: 14px;
  font-weight: 700;
}

.budget-highlight h3 {
  margin: 5px 0;
  color: #FFFFFF;
  font-size: 24px;
}

.budget-highlight p {
  margin: 0;
  color: #DCE8F4;
  font-size: 14px;
}

.budget-amount {
  flex-shrink: 0;
  color: #F6D98B;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 900;
  direction: ltr;
  white-space: nowrap;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience-card {
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(214,174,85,.22);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  transition: transform .3s ease, background .3s ease;
}

.audience-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.1);
}

.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  margin-bottom: 15px;
  border-radius: 20px;
  background: rgba(214,174,85,.13);
  font-size: 30px;
}

.reality-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 28px;
  padding: 23px;
  border: 1px solid rgba(46,116,181,.4);
  border-radius: 17px;
  background: rgba(46,116,181,.12);
}

.reality-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(46,116,181,.25);
  color: #B8D9F7;
  font-size: 22px;
  font-weight: 900;
}

.reality-note h3 {
  margin: 0 0 6px;
  color: #B8D9F7;
  font-size: 17px;
}

.reality-note p {
  margin: 0;
  color: #DCE8F4;
  font-size: 14px;
  line-height: 2;
}

/* توحيد الخلفية ومنع ظهور المساحات البيضاء */
.landing-content {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  line-height: normal;
}

.landing-content img {
  display: none;
}

.bottom-purchase {
  background: transparent;
  border-top: 1px solid rgba(214,174,85,.2);
}

/* تحسين العرض على الهواتف */
@media (max-width: 700px) {
  .content-intro,
  .learning-section,
  .benefits-section,
  .audience-section {
    width: calc(100% - 32px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .content-intro {
    padding-top: 55px;
    padding-bottom: 25px;
  }

  .content-intro .section-heading {
    padding: 25px 19px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p,
  .content-intro p {
    font-size: 14px;
  }

  .learning-grid,
  .benefits-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .learning-card {
    min-height: auto;
    padding: 25px;
  }

  .card-number {
    top: 23px;
    left: 22px;
  }

  .learning-card h3 {
    font-size: 18px;
  }

  .benefit-item {
    padding: 19px;
  }

  .budget-highlight {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 23px;
    gap: 15px;
  }

  .budget-highlight > div:nth-child(2) {
    flex: 1;
    min-width: 180px;
  }

  .budget-amount {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(246,217,139,.25);
    text-align: center;
  }

  .audience-card {
    padding: 25px;
  }

  .reality-note {
    padding: 18px;
  }
}


/* ==========================================
   CONTINUOUS PREMIUM AI BACKGROUND
   ========================================== */

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(46,116,181,.20), transparent 45%),
    radial-gradient(ellipse at 15% 55%, rgba(214,174,85,.07), transparent 35%),
    radial-gradient(ellipse at 85% 85%, rgba(46,116,181,.13), transparent 40%),
    linear-gradient(180deg, #102B49 0%, #0B2340 48%, #091D33 100%) !important;
  background-attachment: fixed;
}

/* AI brain artwork distributed behind the page */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    url("./images/ai-brain.png"),
    url("./images/ai-brain.png");
  background-size:
    620px auto,
    470px auto;
  background-position:
    right 4% top 280px,
    left 3% top 850px;
  background-repeat:
    repeat-y,
    repeat-y;
}

/* Keep all page content above the decorative background */
body > header,
body > main,
body > section,
body > footer {
  position: relative;
  z-index: 1;
}

/* Make the hero and content sections one continuous surface */
.hero,
main,
.content-intro,
.learning-section,
.benefits-section,
.audience-section,
.bottom-purchase {
  background: transparent !important;
}

/* Preserve the modal above everything */
#purchaseModal {
  z-index: 9999;
}


/* ==========================================
   TRANSPARENT AI BRAINS + GOLD ORBITAL RINGS
   ========================================== */

/* Remove the old repeated background images */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;

  background-image:
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png");

  background-size:
    290px auto,
    190px auto,
    240px auto,
    160px auto,
    210px auto;

  background-position:
    88% 250px,
    5% 780px,
    82% 1350px,
    8% 2050px,
    88% 2750px;

  background-repeat: no-repeat;
  opacity: 0.22;
}

/* Gold rings distributed vertically */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(ellipse, transparent 58%, rgba(214,174,85,.65) 58.4%, rgba(214,174,85,.16) 59%, transparent 60.2%),
    radial-gradient(ellipse, transparent 58%, rgba(214,174,85,.48) 58.4%, rgba(214,174,85,.12) 59%, transparent 60.2%),
    radial-gradient(ellipse, transparent 58%, rgba(214,174,85,.42) 58.4%, rgba(214,174,85,.10) 59%, transparent 60.2%);

  background-size:
    560px 330px,
    680px 390px,
    420px 260px;

  background-position:
    8% 180px,
    95% 650px,
    45% 1050px;

  background-repeat: repeat-y;
  opacity: .65;
}

/* Keep all content above decorations */
body > header,
body > main,
body > section,
body > footer {
  position: relative;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  body::before {
    background-size:
      190px auto,
      125px auto,
      160px auto,
      110px auto,
      140px auto;
    opacity: .16;
  }

  body::after {
    background-size:
      360px 230px,
      420px 270px,
      300px 200px;
    opacity: .48;
  }
}


/* ==========================================
   REFINED SCATTERED AI DECORATIONS
   ========================================== */

/* 9 transparent AI brains in varied sizes */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png");

  background-size:
    250px auto,
    125px auto,
    190px auto,
    105px auto,
    220px auto,
    145px auto,
    95px auto,
    175px auto,
    115px auto;

  background-position:
    -85px 300px,
    calc(100% - 105px) 620px,
    38% 1050px,
    -35px 1450px,
    calc(100% - 180px) 1800px,
    55% 2200px,
    calc(100% - 75px) 2550px,
    -65px 2900px,
    72% 3300px;

  background-repeat: no-repeat;
  opacity: .19;
}

/* Thin, circular and widely scattered gold rings */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.75) 63.7%, rgba(214,174,85,.75) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.55) 63.7%, rgba(214,174,85,.55) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.65) 63.7%, rgba(214,174,85,.65) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.48) 63.7%, rgba(214,174,85,.48) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.65) 63.7%, rgba(214,174,85,.65) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.48) 63.7%, rgba(214,174,85,.48) 64.2%, transparent 65%),
    radial-gradient(circle, transparent 63%, rgba(214,174,85,.58) 63.7%, rgba(214,174,85,.58) 64.2%, transparent 65%);

  background-size:
    300px 300px,
    190px 190px,
    240px 240px,
    160px 160px,
    340px 340px,
    210px 210px,
    270px 270px;

  background-position:
    -145px 180px,
    calc(100% - 65px) 720px,
    42% 1120px,
    -75px 1650px,
    calc(100% - 205px) 2050px,
    35% 2600px,
    -120px 3150px;

  background-repeat: no-repeat;
  opacity: .55;
}

/* Smaller decorations on phones */
@media (max-width: 700px) {
  body::before {
    background-size:
      155px auto,
      85px auto,
      125px auto,
      75px auto,
      145px auto,
      95px auto,
      70px auto,
      115px auto,
      80px auto;
    opacity: .16;
  }

  body::after {
    background-size:
      190px 190px,
      125px 125px,
      155px 155px,
      105px 105px,
      220px 220px,
      140px 140px,
      175px 175px;
    opacity: .48;
  }
}


/* ==========================================
   INLINE ORDER FORM - NEW PAGE LAYOUT
   ========================================== */

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin-bottom: 12px;
}

.hero-copy .price {
  display: block;
  margin: 10px auto 22px;
  font-size: 32px;
}

.hero-copy .buy-button {
  display: block;
  margin: 0 auto 18px;
}

.book-stage {
  width: min(300px, 75%);
  margin: 0 auto;
  flex-shrink: 0;
}

.inline-order-section {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 24px));
  margin: 12px auto 55px;
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid rgba(214, 174, 85, 0.55);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.inline-order-section h2 {
  color: #102B49;
  margin: 0 0 10px;
}

.inline-order-section p {
  color: #40546a;
  margin-bottom: 20px;
}

.inline-order-frame {
  display: block;
  width: 100%;
  height: 1200px;
  border: 0;
  background: #ffffff;
}

@media (max-width: 600px) {
  .hero {
    padding: 42px 12px 45px;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-copy {
    padding: 0 5px;
  }

  .hero-copy h1 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.5;
  }

  .hero-copy .price {
    font-size: 29px;
    margin: 8px auto 18px;
  }

  .book-stage {
    width: min(250px, 68%);
  }

  .inline-order-section {
    width: calc(100% - 20px);
    padding: 20px 10px;
    margin-top: 8px;
    border-radius: 14px;
  }

  .inline-order-frame {
    height: 1350px;
  }
}


/* ==========================================
   INLINE ORDER FORM - NEW PAGE LAYOUT
   ========================================== */

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin-bottom: 12px;
}

.hero-copy .price {
  display: block;
  margin: 10px auto 22px;
  font-size: 32px;
}

.hero-copy .buy-button {
  display: block;
  margin: 0 auto 18px;
}

.book-stage {
  width: min(300px, 75%);
  margin: 0 auto;
  flex-shrink: 0;
}

.inline-order-section {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 24px));
  margin: 12px auto 55px;
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid rgba(214, 174, 85, 0.55);
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.inline-order-section h2 {
  color: #102B49;
  margin: 0 0 10px;
}

.inline-order-section p {
  color: #40546a;
  margin-bottom: 20px;
}

.inline-order-frame {
  display: block;
  width: 100%;
  height: 1200px;
  border: 0;
  background: #ffffff;
}

@media (max-width: 600px) {
  .hero {
    padding: 42px 12px 45px;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-copy {
    padding: 0 5px;
  }

  .hero-copy h1 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.5;
  }

  .hero-copy .price {
    font-size: 29px;
    margin: 8px auto 18px;
  }

  .book-stage {
    width: min(250px, 68%);
  }

  .inline-order-section {
    width: calc(100% - 20px);
    padding: 20px 10px;
    margin-top: 8px;
    border-radius: 14px;
  }

  .inline-order-frame {
    height: 1350px;
  }
}


/* Reduce excessive empty space below the order form */
.inline-order-frame {
  height: 650px;
}

@media (max-width: 600px) {
  .inline-order-frame {
    height: 750px;
  }
}


/* Final iframe heights */
.inline-order-frame {
  height: 660px;
}

@media (max-width: 600px) {
  .inline-order-frame {
    height: 740px;
  }
}


/* Final iframe heights */
.inline-order-frame {
  height: 660px;
}

@media (max-width: 600px) {
  .inline-order-frame {
    height: 740px;
  }
}


/* Updated iframe heights */
.inline-order-frame {
  height: 670px;
}

@media (max-width: 600px) {
  .inline-order-frame {
    height: 720px;
  }
}


/* Narrower order form on desktop */
@media (min-width: 601px) {
  .inline-order-section {
    max-width: 620px;
  }
}


/* ==========================================
   DESKTOP: BOOK LEFT - ORDER FORM RIGHT
   ========================================== */

@media (min-width: 900px) {

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 28px;
    row-gap: 28px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    width: 100%;
  }

  .book-stage {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .book-stage img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
  }

  .inline-order-section {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
}


/* ==========================================
   FINAL TWO-COLUMN LAYOUT
   BOOK LEFT - FORM RIGHT
   ========================================== */

@media (min-width: 900px) {

  /* Keep the title and purchase area above */
  .hero-inner {
    display: block;
    width: min(1120px, 100%);
    margin: 0 auto;
  }

  .hero-copy {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 35px;
  }

  /* Shared container for book and form */
  .hero-order-layout {
    display: grid;
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    width: min(100%, 1000px);
    margin: 0 auto;
  }

  /* Book on the LEFT */
  .hero-order-layout .book-stage {
    grid-column: 1;
    grid-row: 1;
    direction: rtl;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-order-layout .book-cover {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 820px;
    object-fit: contain;
  }

  /* Form on the RIGHT */
  .hero-order-layout .inline-order-section {
    grid-column: 2;
    grid-row: 1;
    direction: rtl;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
  }
}

/* Mobile: book above form */
@media (max-width: 899px) {
  .hero-order-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
  }

  .hero-order-layout .book-stage {
    width: min(250px, 68%);
    margin: 0 auto;
  }

  .hero-order-layout .inline-order-section {
    width: calc(100% - 20px);
    max-width: 620px;
    margin: 0 auto 30px;
  }
}


/* Desktop form height only */
@media (min-width: 900px) {
  .inline-order-frame {
    height: 690px;
  }
}


/* Desktop form height */
@media (min-width: 900px) {
  .inline-order-frame {
    height: 700px;
  }
}


/* ==========================================
   INDEPENDENT EXTRA PAGE DECORATIONS
   ========================================== */

.extra-decorations {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    url("./images/ai-brain-transparent.png"),
    radial-gradient(circle, transparent 58%, rgba(214,174,85,.48) 59%, rgba(214,174,85,.48) 60%, transparent 61%),
    radial-gradient(circle, transparent 58%, rgba(214,174,85,.38) 59%, rgba(214,174,85,.38) 60%, transparent 61%),
    radial-gradient(circle, transparent 58%, rgba(214,174,85,.45) 59%, rgba(214,174,85,.45) 60%, transparent 61%),
    radial-gradient(circle, transparent 58%, rgba(214,174,85,.35) 59%, rgba(214,174,85,.35) 60%, transparent 61%),
    radial-gradient(circle, transparent 58%, rgba(214,174,85,.42) 59%, rgba(214,174,85,.42) 60%, transparent 61%);
  background-size:
    210px auto, 135px auto, 175px auto, 110px auto,
    230px auto, 145px auto, 190px auto, 120px auto,
    160px auto, 220px auto,
    145px 145px, 95px 95px, 180px 180px,
    115px 115px, 130px 130px;
  background-position:
    48% 1050px,
    5% 1550px,
    91% 2050px,
    42% 2600px,
    96% 3200px,
    12% 3800px,
    57% 4450px,
    2% 5100px,
    85% 5800px,
    35% 6500px,
    2% 1350px,
    94% 2350px,
    48% 3500px,
    97% 4900px,
    8% 6200px;
  background-repeat: no-repeat;
  opacity: .8;
}

/* Keep page content above the new decorative layer */
body {
  position: relative;
}

body > header,
body > main,
body > section,
body > footer {
  position: relative;
  z-index: 1;
}

/* Mobile decoration sizes */
@media (max-width: 700px) {
  .extra-decorations {
    background-size:
      125px auto, 85px auto, 105px auto, 70px auto,
      135px auto, 90px auto, 115px auto, 75px auto,
      95px auto, 130px auto,
      95px 95px, 65px 65px, 120px 120px,
      80px 80px, 90px 90px;
    opacity: .75;
  }
}


/* ==========================================
   PAYMENT SUCCESS MODAL
   ========================================== */

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.payment-modal.is-open {
  display: flex;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 37, .78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.payment-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  padding: 27px 25px 22px;
  background: #fff;
  border: 1px solid rgba(214,174,85,.55);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
  text-align: center;
  animation: paymentModalAppear .35s ease both;
}

@keyframes paymentModalAppear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.payment-modal-close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3f7;
  color: #526176;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.payment-modal-close:hover {
  background: #e2e8f0;
}

.payment-modal-success-icon {
  width: 53px;
  height: 53px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf7ef;
  color: #17643a;
  font-size: 29px;
  font-weight: bold;
}

.payment-modal-dialog h2 {
  margin: 0 0 7px;
  color: #2E74B5;
  font-size: 23px;
}

.payment-modal-description {
  margin: 0 0 15px;
  color: #68758a;
  font-size: 13px;
  line-height: 1.7;
}

.payment-modal-price {
  margin: 12px 0;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8f5ed;
  border: 1px solid #eadbb7;
  border-radius: 10px;
  color: #5b4a2c;
  font-size: 14px;
}

.payment-modal-price strong {
  color: #2E74B5;
  font-size: 23px;
}

.payment-modal-rip {
  margin: 12px 0;
  padding: 12px;
  background: #f4f6fa;
  border: 1px solid #dce2eb;
  border-radius: 10px;
}

.payment-modal-rip > strong {
  display: block;
  color: #24334d;
  font-size: 14px;
}

#modalRip {
  margin: 9px 0;
  padding: 10px 5px;
  background: #fff;
  border: 1px dashed #D6AE55;
  border-radius: 7px;
  direction: ltr;
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  user-select: all;
  overflow-wrap: anywhere;
}

#modalCopyButton {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: #D6AE55;
  color: #17243b;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#modalCopyButton:hover {
  background: #c49a40;
}

#modalCopyStatus {
  min-height: 17px;
  margin: 5px 0 0;
  color: #17643a;
  font-size: 12px;
}

.payment-modal-instructions {
  margin: 12px 0;
  padding: 11px 13px;
  background: #fff8e8;
  border-right: 3px solid #D6AE55;
  border-radius: 7px;
  color: #5b4a2c;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
}

.payment-modal-instructions strong {
  display: block;
  margin-bottom: 4px;
}

.payment-modal-instructions p {
  margin: 2px 0;
}

.payment-modal-whatsapp {
  display: block;
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: #168a50;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: .2s;
}

.payment-modal-whatsapp:hover {
  background: #116d3f;
  transform: translateY(-1px);
}

.payment-modal-order {
  margin-top: 11px;
  color: #68758a;
  font-size: 12px;
}

.payment-modal-order strong {
  direction: ltr;
  unicode-bidi: embed;
  color: #2E74B5;
}

@media (max-width: 480px) {
  .payment-modal {
    padding: 9px;
  }

  .payment-modal-dialog {
    padding: 23px 15px 15px;
    border-radius: 16px;
  }

  .payment-modal-dialog h2 {
    font-size: 20px;
  }

  .payment-modal-description {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .payment-modal-price {
    padding: 9px;
    font-size: 12px;
  }

  .payment-modal-price strong {
    font-size: 21px;
  }

  .payment-modal-rip {
    padding: 9px;
    margin: 9px 0;
  }

  #modalRip {
    font-size: 16px;
    padding: 8px 3px;
  }

  .payment-modal-instructions {
    padding: 8px 10px;
    margin: 9px 0;
    font-size: 11px;
    line-height: 1.55;
  }

  .payment-modal-whatsapp {
    padding: 11px;
    margin-top: 9px;
    font-size: 13px;
  }

  .payment-modal-order {
    margin-top: 8px;
  }
}

@media (max-height: 700px) {
  .payment-modal-dialog {
    padding-top: 15px;
    padding-bottom: 12px;
  }

  .payment-modal-success-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    font-size: 24px;
  }

  .payment-modal-dialog h2 {
    font-size: 19px;
  }

  .payment-modal-description {
    margin-bottom: 7px;
  }

  .payment-modal-price,
  .payment-modal-rip {
    margin: 7px 0;
  }

  .payment-modal-instructions {
    margin: 7px 0;
    padding: 7px 10px;
  }

  .payment-modal-whatsapp {
    margin-top: 7px;
    padding: 9px;
  }
}


/* FIX: PAYMENT RIP NUMBER VISIBILITY */
#modalRip {
  color: #102B49 !important;
}





/* DESKTOP FIX: WIDE COMPACT PAYMENT MODAL */
@media (min-width: 481px) {
  .payment-modal-dialog {
    width: min(750px, calc(100vw - 40px));
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    padding: 17px 25px 15px;
  }

  .payment-modal-success-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 7px;
    font-size: 25px;
  }

  .payment-modal-dialog h2 {
    font-size: 21px;
    margin-bottom: 5px;
  }

  .payment-modal-description {
    margin-bottom: 9px;
    font-size: 12px;
  }

  .payment-modal-price,
  .payment-modal-rip {
    margin: 8px 0;
  }

  .payment-modal-price {
    padding: 8px 12px;
  }

  .payment-modal-rip {
    padding: 9px 12px;
  }

  .payment-modal-instructions {
    margin: 8px 0;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.5;
  }

  .payment-deadline-notice {
    margin: 10px 0 !important;
    padding: 9px 13px !important;
    font-size: 12px;
    line-height: 1.55 !important;
  }

  .payment-modal-whatsapp {
    margin-top: 8px;
    padding: 10px;
  }

  .payment-modal-order {
    margin-top: 7px;
  }
}
