/* code-13: DramaRoll Pulse checkout, option A of the subscription page design options.
   One checkout card under the hero: 1. phone number, 2. payment method, 3. plan.
   Plan cards lay out by how many plans there are (1, 2 or 3 across; 3 become rows on phones).
   Loaded after webV2_2.css; the templates' own <style> blocks use ids, hence the html body prefix. */

html body .subscription-box {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 24px 22px 20px;
  border-radius: 26px;
  background: rgba(28, 25, 71, .92);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  counter-reset: drstep;
}
html body .subscription-box form { width: 100%; margin: 0; }
html body .subscription-box .form-group { display: flex; flex-direction: column; gap: 0; margin: 0; width: 100% !important; max-width: none !important; }
html body .subscription-box .form-group > *, html body .subscription-box .phone-field { width: 100% !important; max-width: none !important; }

/* numbered step labels */
html body .subscription-box .dr-lbl {
  display: block;
  margin: 18px 0 8px;
  padding: 0;
  color: #C7C6D5;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
}
html body .subscription-box .form-group > .dr-lbl:first-child { margin-top: 0; }
html body .subscription-box .dr-lbl::before { counter-increment: drstep; content: counter(drstep) ". "; color: #FF7BBF; font-weight: 700; }

/* payment method: white segmented pill */
html body .subscription-box .dr-method { margin: 0; }
html body .subscription-box .dr-method .tab-buttons {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
}
html body .subscription-box .dr-method .tab-buttons button {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #C7C6D5;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  white-space: nowrap;
}
html body .subscription-box .dr-method .tab-buttons button.active { background: #fff; color: #1C1947; }
html body .subscription-box .dr-method .tab-buttons button.NotActive:hover { background: rgba(255, 255, 255, .1); color: #fff; }
html body .subscription-box .dr-one {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-weight: 700;
  text-align: start;
}

/* card plans (label.plan-row) and wallet plans (.operator-packages > div > .card) as cards, laid out by count */
html body #wallet-card { margin: 0; }
html body #wallet-card .plan-list,
html body #walletForm .operator-packages:not([style*="display: none"]) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  margin: 0;
}
html body #wallet-card .plan-list:has(> :nth-child(2)),
html body #walletForm .operator-packages:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body #wallet-card .plan-list:has(> :nth-child(3)),
html body #walletForm .operator-packages:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }

html body #wallet-card .plan-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
  padding: 16px 18px;
  padding-inline-end: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}
html body #wallet-card .plan-row::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-start: auto;
  inset-inline-end: 14px;
  width: 22px;
  height: 22px;
  transform: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  background: transparent;
}
html body #wallet-card .plan-row .plan-name { color: #C7C6D5; font-size: 14px; font-weight: 600; text-align: start; }
html body #wallet-card .plan-row .plan-price { justify-content: flex-start; font-size: 22px; font-weight: 700; color: #fff; text-align: start; white-space: normal; line-height: 1.25; }
html body #wallet-card .plan-row.selected,
html body #wallet-card .plan-row:has(input:checked) {
  border: 2px solid #FF7BBF;
  background: rgba(229, 0, 126, .14);
  box-shadow: none;
}
html body #wallet-card .plan-row.selected::after,
html body #wallet-card .plan-row:has(input:checked)::after {
  border: 0;
  background: #E5007E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

html body #walletForm .operator-packages > div { display: block !important; position: relative; }
html body #walletForm .operator-packages .card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  min-height: 96px;
  height: 100%;
  padding: 16px 18px !important;
  padding-inline-end: 44px !important;
  border: 1px solid rgba(255, 255, 255, .3) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .07) !important;
  box-shadow: none !important;
}
html body #walletForm .operator-packages .card::before { display: none !important; }
html body #walletForm .operator-packages .card .duration { order: 1; width: auto !important; margin: 0 !important; color: #C7C6D5 !important; font-size: 14px !important; text-align: start !important; }
html body #walletForm .operator-packages .card .price { order: 2; width: auto !important; margin: 0 !important; color: #fff !important; font-size: 22px !important; font-weight: 700; text-align: start !important; white-space: normal; line-height: 1.25; }
html body #walletForm .operator-packages .provider-radio:checked + .card {
  border: 2px solid #FF7BBF !important;
  background: rgba(229, 0, 126, .14) !important;
}
html body #walletForm .operator-packages .card::after {
  content: "" !important;
  position: absolute;
  top: 14px !important;
  inset-inline-start: auto !important;
  inset-inline-end: 14px !important;
  left: auto;
  width: 22px !important;
  height: 22px !important;
  transform: none !important;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  background: transparent;
}
html body #walletForm .operator-packages .provider-radio:checked + .card::after {
  border: 0;
  background: #E5007E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* three plans across: smaller price so it stays on one line */
html body #wallet-card .plan-list:has(> :nth-child(3)) .plan-price,
html body #walletForm .operator-packages:has(> :nth-child(3)) .card .price { font-size: 18px !important; white-space: nowrap; }
html body #wallet-card .plan-list:has(> :nth-child(3)) .plan-row,
html body #walletForm .operator-packages:has(> :nth-child(3)) .card { padding-inline: 14px 38px !important; }

/* main button and voucher link */
html body .subscription-box .subscribe-btn,
html body #wallet-card .subscribe-btn {
  display: block;
  width: 100%;
  height: 52px;
  margin: 20px 0 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #E5007E, #2E3192);
  box-shadow: 0 10px 26px rgba(229, 0, 126, .32);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
html body .subscription-box .subscribe-btn:hover { filter: brightness(1.08); }
html body .subscription-box .subscribe-btn:disabled { opacity: .45; box-shadow: none; }
html body .subscription-box form > p a { color: #FF7BBF !important; font-weight: 700; text-decoration: none !important; }
html body .subscription-box form > p a:hover { text-decoration: underline !important; }
html body .subscription-box form > p { text-align: center; }

/* phones: three plans become rows (name left, price right) so prices stay readable */
@media (max-width: 575.98px) {
  html body .subscription-box { margin: 4px 0 0; padding: 20px 16px 16px; border-radius: 22px; }
  html body #wallet-card .plan-list:has(> :nth-child(3)),
  html body #walletForm .operator-packages:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); }
  html body #wallet-card .plan-list:has(> :nth-child(3)) .plan-row {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 12px 16px !important;
    padding-inline-end: 48px !important;
  }
  html body #wallet-card .plan-list:has(> :nth-child(3)) .plan-row::after,
  html body #walletForm .operator-packages:has(> :nth-child(3)) .card::after { top: 50% !important; margin-top: -11px; }
  html body #walletForm .operator-packages:has(> :nth-child(3)) .card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px;
    padding: 12px 16px !important;
    padding-inline-end: 48px !important;
  }
  html body #wallet-card .plan-list:has(> :nth-child(3)) .plan-price,
  html body #walletForm .operator-packages:has(> :nth-child(3)) .card .price { font-size: 22px !important; }
  html body .subscription-box .dr-method .tab-buttons button { font-size: 13.5px; padding: 10px 4px; }
}

/* ===== Whole page (option A): Pulse fonts, header, compact poster hero, steps, features, download, footer ===== */
@font-face { font-family: 'Manrope'; src: url(../fonts/Manrope-Variable.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Dubai'; src: url(../fonts/Dubai-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Dubai'; src: url(../fonts/Dubai-Medium.ttf) format('truetype'); font-weight: 500 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }
@font-face { font-family: 'Dubai'; src: url(../fonts/Dubai-Bold.ttf) format('truetype'); font-weight: 700 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E; }

html body { background: #27235D; color: #fff; font-family: Manrope, Dubai, system-ui, "Segoe UI", sans-serif; }
html body h1, html body h2, html body h3, html body p, html body button, html body input, html body select, html body a, html body label, html body span { font-family: inherit; }
html[lang="ar"] body { font-family: Dubai, Manrope, Tahoma, sans-serif; }
/* the old font (shofhaFont) is set on many elements by class and no longer loads, so everything inherits the body font */
html body * { font-family: inherit !important; }

/* header: logo, language chip, login as a ghost pill; over the hero on the first step */
html body .overlay, html body .overlay.active { padding: 0; min-height: 0; background: none; }
html body .overlay::before { display: none; }
html body:has(.fullscreen) .overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
html body .header-container { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-direction: row !important; flex-wrap: nowrap; justify-content: space-between !important; align-items: center; }
html body .header-container .LOGO { width: 140px; height: auto; display: block; }
html body .left-section { gap: 10px; align-items: center; }
html body .btn.btn-secondary.dropdown-toggle {
  height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 14px; font-weight: 600; box-shadow: none;
}
html body .btn.btn-secondary.dropdown-toggle:hover, html body .btn.btn-secondary.dropdown-toggle:focus { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
html body .btn.btn-secondary.dropdown-toggle .arrow img { width: 10px; height: auto; transform: rotate(-90deg); opacity: .8; }
html body .dropdown-menu.show { background: #2E2A6B !important; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 6px; box-shadow: 0 18px 40px rgba(4, 2, 20, .5); }
html body .dropdown-item { border: 0 !important; border-radius: 10px; padding: 8px 14px; color: #fff !important; font-size: 14px; font-weight: 600; }
html body .dropdown-item:hover, html body .dropdown-item:focus { background: rgba(229, 0, 126, .25); }
html body .login-btn {
  height: 38px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 999px; background: transparent; border: 1px solid rgba(255, 255, 255, .3);
  font-size: 14px; font-weight: 700;
}
html body .login-btn:hover { background: rgba(255, 255, 255, .08); }
html body .login-btn a { color: #fff; font-weight: 700; }

/* hero: the poster wall dimmed behind the title, fading into the page colour; the checkout card sits on the first screen */
html body .fullscreen {
  position: relative; min-height: 0; padding: 104px 16px 44px;
  background: linear-gradient(180deg, rgba(39, 35, 93, .55) 0%, rgba(39, 35, 93, .72) 40%, #27235D 82%), url(../images/background2.jpg) center top / cover no-repeat;
}
html body .fullscreen > .container { padding: 0; max-width: 1200px; }
html body .Main { position: static; transform: none; left: auto; top: auto; max-width: 720px; margin: 0 auto; padding: 0; text-align: center; }
html body .Main h1 { margin: 0; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #fff; }
html[lang="ar"] body .Main h1 { letter-spacing: 0; line-height: 1.35; }
html body .Main p { max-width: 46ch; margin: 10px auto 0; color: #C7C6D5; font-size: 17px; line-height: 1.6; font-weight: 500; }
html body .fullscreen .subscription-box { margin-top: 26px; }

/* phone number field inside the checkout card */
html body .subscription-box .phone-field {
  display: flex; align-items: center; gap: 0; height: 52px; padding: 0 6px;
  border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .3);
}
html body .subscription-box .phone-field:focus-within { border-color: #FF7BBF; }
html body .subscription-box .phone-field .country-code {
  flex: none; width: auto !important; height: 30px; padding: 0 12px; border: 0; border-inline-end: 1px solid rgba(255, 255, 255, .3) !important;
  background: transparent; color: #fff; font-size: 15px; font-weight: 600; direction: ltr; opacity: 1;
}
html body .subscription-box .phone-field input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: none; box-shadow: none;
  background: transparent !important; color: #fff !important; font-size: 16px !important; font-weight: 600;
}
html body .subscription-box .phone-field input::placeholder { color: #9795B1; font-weight: 500; }

/* shared section headings */
html body .steps h2, html body .download-section h2 {
  margin: 0 0 28px; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; font-weight: 800; color: #fff;
}
html body .frame_border, html body .frame_border2 { display: none; }

/* steps: four cards with gradient number circles */
html body .steps { padding: 56px 16px 0; text-align: center; }
html body .steps-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
html body .steps-container .step {
  width: auto; height: auto; margin: 0; padding: 20px; text-align: start;
  border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none;
}
html body .step .step-number {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 0 14px; border-radius: 50%;
  background: linear-gradient(100deg, #E5007E, #2E3192); color: #fff; font-size: 15px; line-height: 1; font-weight: 700;
}
html body .step .step-title { margin: 0 0 4px; font-size: 17px; line-height: 1.35; font-weight: 700; color: #fff; }
html body .step .step-description { margin: 0; font-size: 14px; line-height: 1.5; color: #C7C6D5; }

/* download */
html body .download-section { padding: 72px 16px 0; text-align: center; }
html body .download-buttons { gap: 12px; flex-wrap: wrap; }
html body .download-buttons img { height: 48px; width: auto; }

/* footer */
html body footer#footer { margin-top: 72px !important; padding-top: 36px; background: rgba(0, 0, 0, .28) !important; color: #C7C6D5; }
html body footer .social-icons { gap: 12px; margin-bottom: 18px; }
html body footer .icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
html body footer .icon:hover { background: rgba(255, 255, 255, .14); }
html body footer .icon img, html body footer .youtube img { width: 18px; height: 18px; top: 0; object-fit: contain; }
html body footer ul.FOTER { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
html body footer ul li { margin: 0 !important; font-size: 14px; line-height: 2 !important; }
html body footer a { color: #C7C6D5; font-weight: 600; text-decoration: none; }
html body footer a:hover { color: #FF7BBF; text-decoration: none; }
html body footer .copyrights.highlighted { margin-top: 20px; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .1); background: transparent !important; color: #9795B1; font-size: 13px; }

@media (max-width: 991.98px) {
  html body .steps-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  html body .header-container { padding: 12px 16px; }
  html body .header-container .LOGO { width: 112px; }
  html body .btn.btn-secondary.dropdown-toggle, html body .login-btn { height: 34px; padding: 0 12px; font-size: 13px; }
  html body .fullscreen { padding: 80px 16px 32px; }
  html body .Main p { font-size: 15px; }
  html body .steps-container { grid-template-columns: minmax(0, 1fr); }
  html body .steps, html body .download-section { margin-top: 0 !important; padding-top: 52px; }
  html body .left-section { position: static; top: auto; }
  html body .Main h1 { margin-top: 0 !important; font-size: 28px; }
  html body .fullscreen .subscription-box { margin-top: 22px !important; }
  html body #wallet-card .plan-list:not(:has(> :nth-child(3))) .plan-row .plan-price,
  html body #walletForm .operator-packages:not(:has(> :nth-child(3))) .card .price { font-size: 18px !important; }
  html body #wallet-card .plan-list:not(:has(> :nth-child(3))) .plan-row,
  html body #walletForm .operator-packages:not(:has(> :nth-child(3))) .card { padding-inline: 14px 40px !important; }
  html body footer ul.FOTER { gap: 0 16px; }
}
