:root {
    --bg:        #080808;
    --bg2:       #0a0d18;
    --surface:   #111111;
    --surface2:  #181818;
    --border:    #1e1e1e;
    --border2:   #2a2a2a;
    --text:      #F0ECE0;
    --text2:     #7A9A9E;
    --text3:     #3A5858;
    --gold:      #2BECE8;
    --gold-soft: rgba(43, 236, 232, 0.5);
    --gold-dim:  rgba(43, 236, 232, 0.12);
    --gold-glow: rgba(43, 236, 232, 0.08);
    /* Slimmed font stack: Tajawal does sans + naskh-ish duty; Amiri Quran only for sacred text */
    --sans:   'Tajawal', -apple-system, system-ui, sans-serif;
    --naskh:  'Tajawal', -apple-system, system-ui, sans-serif; /* was Amiri — dropped to save a font file */
    --quran:  'Amiri Quran', serif;
    --kufi:   'Tajawal', -apple-system, system-ui, sans-serif; /* was Reem Kufi — dropped */
  }
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    background: var(--bg); color: var(--text);
    font-family: var(--sans); font-weight: 300;
    font-size: 16px; line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  button, input { font-family: inherit; }

  /* ── Mobile responsiveness baseline ── */
  /* Kill the 300ms tap delay + double-tap zoom on interactive elements */
  a, button, .marquee-tile, .cust-toggle, .cust-plan, .faq-item summary,
  .phone, input[type="checkbox"], .marquee-arrow {
    touch-action: manipulation;
  }
  /* Inputs at 16px+ so iOS Safari never zooms on focus */
  input, textarea, select { font-size: 16px; }

  [data-lang="ar"] { display: revert; }
  [data-lang="en"] { display: none; }
  html[dir="ltr"] [data-lang="ar"] { display: none; }
  html[dir="ltr"] [data-lang="en"] { display: revert; }

  /* ═══════════════════════════════════════════════════════ */
  /* ATMOSPHERE — soft radial wash only (star pattern dropped */
  /* for perf — it was repainting on every scroll/resize)    */
  /* ═══════════════════════════════════════════════════════ */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 50% 0%, rgba(43, 236, 232, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 50% 100%, rgba(43, 236, 232, 0.03) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
  }
  main { position: relative; z-index: 1; }

  /* ═══════════════════════════════════════════════════════ */
  /* NAV — sticky, minimal                                   */
  /* ═══════════════════════════════════════════════════════ */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(20px);
    background: rgba(8, 8, 8, 0.7);
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.08);
    padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .nav .logo img { height: 64px; width: auto; }
  @media (max-width: 600px) { .nav .logo img { height: 54px; width: auto; } }

  /* ── Theme bar (mobile only) — FIXED (not sticky) under the nav so
        iOS Safari can't push it off-screen when the on-screen keyboard
        appears on input focus. The dot inherits --ph-accent (set
        globally by applyThemeGlobally), so it recolours instantly. ── */
  .theme-bar {
    display: none;
    position: fixed;
    left: 0; right: 0;
    /* Below the sticky nav (nav ≈ 78px tall on mobile). */
    top: 78px;
    z-index: 49;
    align-items: center; justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: saturate(140%) blur(16px);
    -webkit-backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.16);
    font-size: 15px;
    color: var(--text2);
    text-align: center;
  }
  /* Reserves the height the fixed bar would have occupied, so the hero +
     everything below it isn't slid up under the bar. */
  .theme-bar-spacer { display: none; height: 48px; }
  @media (max-width: 699px) {
    .theme-bar { display: flex; }
    .theme-bar-spacer { display: block; }
  }
  .theme-bar .dot {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ph-accent, var(--gold));
    box-shadow: 0 0 12px var(--ph-accent, var(--gold));
    flex-shrink: 0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
  }
  .theme-bar .lbl {
    color: var(--text3);
    font-size: 13px;
  }
  .theme-bar .name {
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
  }
  .nav-right { display: flex; gap: 14px; align-items: center; }
  .nav-link {
    font-size: 13px; color: var(--text2);
    transition: color 0.2s;
    padding: 8px 4px;
  }
  .nav-link:hover { color: var(--gold); }
  @media (max-width: 600px) { .nav-link.hide-sm { display: none; } }
  .lang-toggle {
    background: transparent; border: 0.5px solid var(--border2);
    border-radius: 50px; padding: 7px 12px;
    color: var(--text2); font-size: 12px; cursor: pointer;
    display: flex; gap: 6px; align-items: baseline;
    min-height: 36px;
  }
  .lang-toggle .sep { color: var(--text3); }
  html[lang="en"] .lang-toggle .ar-mark, html[lang="ar"] .lang-toggle .en-mark { color: var(--text3); }
  html[lang="en"] .lang-toggle .en-mark, html[lang="ar"] .lang-toggle .ar-mark { color: var(--text); }

  /* ═══════════════════════════════════════════════════════ */
  /* GEOMETRIC ORNAMENT                                       */
  /* ═══════════════════════════════════════════════════════ */
  .ornament {
    display: flex; justify-content: center; align-items: center; gap: 16px;
    margin: 24px 0;
    color: var(--gold);
    opacity: 0.6;
  }
  .ornament .line {
    width: clamp(40px, 12vw, 100px);
    height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
  }
  .ornament .star {
    width: 16px; height: 16px;
    display: inline-block;
  }
  .ornament .star svg { width: 100%; height: 100%; }

  /* ═══════════════════════════════════════════════════════ */
  /* HERO — visuals high, two-column on desktop              */
  /* ═══════════════════════════════════════════════════════ */
  .hero {
    padding: 40px 24px 56px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    text-align: center;
    position: relative;
    max-width: 1100px; margin: 0 auto;
  }
  @media (min-width: 960px) {
    .hero { padding: 48px 40px 56px; }
    .hero .subtitle { margin: 0 auto 8px; }
    .hero .meta { margin-top: 16px; }
  }
  /* Desktop phones — slightly larger, contained */
  @media (min-width: 960px) {
    .phone-fan { height: 470px; }
    .phone-fan .phone.center { width: 210px; }
    .phone-fan .phone.behind-left,
    .phone-fan .phone.behind-right { width: 164px; top: 44px; }
    .phone-fan .phone.behind-left  { transform: translateX(calc(-50% - 100px)) rotate(-8deg); }
    .phone-fan .phone.behind-right { transform: translateX(calc(-50% + 100px)) rotate(8deg); }
  }

  /* ── Theme marquee placed inside the hero ── */
  .hero-marquee {
    width: 100%;
    max-width: 760px;
    margin: 18px auto 26px;
  }
  .hero-marquee-note {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 13px;
    margin-bottom: 14px; letter-spacing: 0.02em;
  }
  html[dir="ltr"] .hero-marquee-note { font-family: var(--sans); font-weight: 300; }
  .hero-marquee-note .tap-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(43,236,232,0.15);
    animation: tapPulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes tapPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(43,236,232,0.10); }
    50%     { box-shadow: 0 0 0 6px rgba(43,236,232,0.22); }
  }

  /* The phone wrapper — soft glow only (no heavy SVG illuminated border) */
  .hero-phone-wrap {
    margin: 24px auto 28px;
    padding: 16px 0;
    position: relative;
    display: block;
    width: 100%;
    max-width: 480px;
  }
  .hero-phone-wrap::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, var(--gold-glow), transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
  }

  /* ── 3-PHONE FAN ── */
  .phone-fan {
    position: relative;
    width: 100%;
    height: 460px;
    margin: 0 auto;
    z-index: 1;
  }
  .phone-fan .phone {
    position: absolute;
    top: 0;
    background: #1a1a1a; padding: 6px;
    border-radius: 36px; border: 1px solid #222;
    overflow: hidden;
    transition: background 0.5s ease, border-color 0.5s ease, transform 0.4s ease;
    will-change: transform;
  }
  /* ── Code-drawn side screens (home + tasbeeh) — recolor via theme vars ──
     Body text is a fixed light tone; only accents use --ph-accent, so every
     theme recolours the highlights exactly like the real app. */
  .app-home, .app-tasbeeh {
    padding: 0; gap: 0;
    font-family: var(--sans);
    color: rgba(240,236,224,0.82);
  }
  .ah-status {
    display: flex; justify-content: space-between;
    padding: 8px 14px 6px; font-size: 8px;
    color: rgba(240,236,224,0.5); flex-shrink: 0;
  }
  .ah-muted { color: rgba(240,236,224,0.5); }
  .ah-muted.xs, .xs { font-size: 8px; }
  .ah-accent { color: var(--ph-accent, var(--gold)); font-weight: 600; }
  .ah-accent-lg { color: var(--ph-accent, var(--gold)); font-weight: 700; font-size: 20px; line-height: 1.1; }

  .ah-card {
    margin: 0 10px 8px;
    background: rgba(255,255,255,0.05);
    border: 0.5px solid var(--ph-accent-faint, rgba(43,236,232,0.15));
    border-radius: 12px;
    padding: 10px 12px;
    flex-shrink: 0;
  }
  .ah-prayer { text-align: center; }
  .ah-time { font-size: 11px; color: rgba(240,236,224,0.85); margin-top: 1px; }
  .ah-prayerrow {
    display: flex; justify-content: space-between; gap: 3px;
    margin-top: 8px; font-size: 6.5px; color: rgba(240,236,224,0.45);
  }
  .ah-prayerrow .on {
    color: var(--ph-accent, var(--gold));
    background: var(--ph-accent-faint, rgba(43,236,232,0.18));
    border-radius: 4px; padding: 2px 3px;
  }
  .ah-ded {
    text-align: center; font-size: 9px; margin: 2px 10px 8px;
    color: rgba(240,236,224,0.7);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 0;
  }
  .ah-read { display: flex; align-items: center; gap: 8px; text-align: right; }
  .ah-play {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    background: var(--ph-accent, var(--gold)); color: var(--ph-bg, #111);
    display: flex; align-items: center; justify-content: center; font-size: 8px;
  }
  .ah-read-txt { flex: 1; }
  .ah-share {
    margin: 0 10px 10px; padding: 9px;
    background: var(--ph-accent, var(--gold)); color: var(--ph-bg, #111);
    border-radius: 10px; text-align: center;
    font-size: 10px; font-weight: 600; flex-shrink: 0;
  }
  .ah-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    margin: 0 10px; flex-shrink: 0;
  }
  .ah-grid span {
    background: rgba(255,255,255,0.05);
    border: 0.5px solid var(--ph-accent-faint, rgba(43,236,232,0.12));
    border-radius: 9px; padding: 9px 4px;
    text-align: center; font-size: 7.5px;
    color: rgba(240,236,224,0.75);
  }

  /* Tasbeeh screen */
  .app-tasbeeh { align-items: center; }
  .at-title {
    text-align: center; font-size: 13px; font-weight: 600;
    color: var(--ph-accent, var(--gold)); margin: 6px 0 14px; flex-shrink: 0;
  }
  .at-pill {
    align-self: center;
    background: rgba(255,255,255,0.06);
    border: 0.5px solid var(--ph-accent-faint, rgba(43,236,232,0.2));
    border-radius: 50px; padding: 5px 14px; font-size: 9px;
    color: rgba(240,236,224,0.85); margin-bottom: 18px; flex-shrink: 0;
  }
  .at-counter {
    flex: 1; display: flex; align-items: center; justify-content: center;
    width: 100%;
  }
  .at-ring {
    width: 92px; height: 92px; border-radius: 50%;
    border: 2px solid var(--ph-accent, var(--gold));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 22px var(--ph-glow, rgba(43,236,232,0.3)),
                inset 0 0 16px var(--ph-glow, rgba(43,236,232,0.15));
  }
  .at-ring span {
    font-size: 30px; font-weight: 700;
    color: var(--ph-accent, var(--gold));
  }
  .at-presets {
    display: flex; gap: 8px; justify-content: center;
    margin: 16px 0 10px; flex-shrink: 0;
  }
  .at-presets span {
    font-size: 9px; padding: 4px 9px; border-radius: 50px;
    border: 0.5px solid var(--ph-accent-faint, rgba(43,236,232,0.25));
    color: rgba(240,236,224,0.6);
  }
  .at-presets .on {
    background: var(--ph-accent, var(--gold)); color: var(--ph-bg, #111);
    border-color: var(--ph-accent, var(--gold));
  }
  .phone-fan .phone.center {
    left: 50%;
    width: 230px;
    z-index: 3;
    transform: translateX(-50%);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.05) inset,
      0 40px 80px -20px rgba(0,0,0,0.7),
      0 0 60px -10px var(--gold-glow);
  }
  .phone-fan .phone.behind-left,
  .phone-fan .phone.behind-right {
    width: 180px;
    z-index: 2;
    opacity: 0.78;
    box-shadow:
      0 30px 60px -20px rgba(0,0,0,0.6),
      0 0 40px -10px rgba(43,236,232,0.08);
  }
  .phone-fan .phone.behind-left {
    left: 50%;
    top: 38px;
    transform: translateX(calc(-50% - 110px)) rotate(-9deg);
  }
  .phone-fan .phone.behind-right {
    left: 50%;
    top: 38px;
    transform: translateX(calc(-50% + 110px)) rotate(9deg);
  }
  .phone-fan .phone.behind-left:hover,
  .phone-fan .phone.behind-right:hover {
    opacity: 0.95;
  }
  /* Side phones invite a tap on mobile */
  .phone-fan .phone.behind-left,
  .phone-fan .phone.behind-right { cursor: pointer; }

  /* Gentle floating — uses the `translate` property so it never clobbers
     the `transform` used for fan positioning/rotation */
  .phone-fan .phone.center      { animation: floaty 6s ease-in-out infinite; }
  .phone-fan .phone.behind-left { animation: floaty 7s ease-in-out infinite 0.4s; }
  .phone-fan .phone.behind-right{ animation: floaty 6.5s ease-in-out infinite 0.8s; }
  @keyframes floaty {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -9px; }
  }

  /* Mobile: tighter fan, smaller phones */
  @media (max-width: 600px) {
    .phone-fan { height: 430px; }
    .phone-fan .phone.center { width: 188px; }
    .phone-fan .phone.behind-left,
    .phone-fan .phone.behind-right { width: 146px; top: 40px; }
    .phone-fan .phone.behind-left  { transform: translateX(calc(-50% - 82px)) rotate(-9deg); }
    .phone-fan .phone.behind-right { transform: translateX(calc(-50% + 82px)) rotate(9deg); }
  }

  /* (Mock reader/tasbeeh screens removed — side phones now use real screenshots) */
  .hero .bismillah {
    font-family: var(--quran); font-size: clamp(2.4rem, 5vw, 3.4rem);
    color: var(--gold); margin-bottom: 32px;
    opacity: 0.9;
    text-shadow: 0 0 40px rgba(43, 236, 232, 0.25);
    animation: glowPulse 4s ease-in-out infinite;
  }
  @keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 40px rgba(43, 236, 232, 0.25); }
    50% { text-shadow: 0 0 60px rgba(43, 236, 232, 0.4); }
  }
  .hero .ornament-block {
    margin-bottom: 40px;
  }
  .hero h1 {
    font-family: var(--kufi); font-weight: 700;
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 640px;
    letter-spacing: -0.01em;
  }
  .hero h1 .accent {
    color: var(--gold);
    text-shadow: 0 0 50px rgba(43, 236, 232, 0.4);
  }
  html[dir="ltr"] .hero h1 {
    font-family: var(--sans); font-weight: 200;
    line-height: 1.1;
    font-style: italic;
    letter-spacing: -0.02em;
  }
  .hero .subtitle {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 540px; margin: 0 auto 56px;
    line-height: 1.9;
  }
  html[dir="ltr"] .hero .subtitle { font-family: var(--sans); font-weight: 300; }
  .hero .cta {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 19px 44px;
    border: none;
    border-radius: 16px;
    color: #052321;
    font-family: var(--sans); font-size: 1.08rem; font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 58px;
    /* Glowing accent gradient with a slow sheen sweep */
    background: linear-gradient(110deg,
      var(--gold) 0%, #6af6f2 45%, var(--gold) 70%);
    background-size: 220% 100%;
    box-shadow: 0 12px 34px rgba(43,236,232,0.30),
                inset 0 1px 0 rgba(255,255,255,0.45);
    animation: ctaGlow 3s ease-in-out infinite, ctaSheen 5.5s linear infinite;
    transition: transform 0.22s ease, box-shadow 0.3s ease;
  }
  .hero .cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 48px rgba(43,236,232,0.50),
                inset 0 1px 0 rgba(255,255,255,0.55);
  }
  .hero .cta:active { transform: translateY(0) scale(0.99); }
  .hero .cta .cta-arrow {
    width: 18px; height: 18px; flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  html[dir="rtl"] .hero .cta .cta-arrow { transform: scaleX(-1); }
  .hero .cta:hover .cta-arrow { transform: translateX(3px); }
  html[dir="rtl"] .hero .cta:hover .cta-arrow { transform: scaleX(-1) translateX(3px); }
  @keyframes ctaGlow {
    0%,100% { box-shadow: 0 12px 30px rgba(43,236,232,0.25), inset 0 1px 0 rgba(255,255,255,0.45); }
    50%     { box-shadow: 0 14px 44px rgba(43,236,232,0.48), inset 0 1px 0 rgba(255,255,255,0.55); }
  }
  @keyframes ctaSheen {
    0%   { background-position: 220% 0; }
    100% { background-position: -220% 0; }
  }
  .hero .meta {
    margin-top: 32px;
    font-size: 12px; color: var(--text3);
    letter-spacing: 0.06em;
  }

  /* ═══════════════════════════════════════════════════════ */
  /* SECTION — reveal on scroll                              */
  /* ═══════════════════════════════════════════════════════ */
  .reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  /* ═══════════════════════════════════════════════════════ */
  /* THE NAME — illuminated frame                            */
  /* ═══════════════════════════════════════════════════════ */
  .name-section {
    padding: 100px 24px;
    text-align: center;
    position: relative;
  }
  .name-section .eyebrow {
    font-family: var(--naskh); font-style: italic;
    color: var(--gold); font-size: 14px;
    margin-bottom: 20px; opacity: 0.85;
  }
  html[dir="ltr"] .name-section .eyebrow { font-family: var(--sans); font-weight: 400; }
  .name-section h2 {
    font-family: var(--kufi); font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: var(--text); line-height: 1.4;
    margin-bottom: 24px; max-width: 700px;
    margin-left: auto; margin-right: auto;
  }
  html[dir="ltr"] .name-section h2 {
    font-family: var(--sans); font-weight: 200;
    line-height: 1.2; font-style: italic;
  }
  .name-section h2 .accent { color: var(--gold); }
  .name-section .desc {
    font-family: var(--naskh); color: var(--text2);
    font-size: 1.05rem; line-height: 1.95;
    max-width: 560px; margin: 0 auto 60px;
  }
  html[dir="ltr"] .name-section .desc { font-family: var(--sans); font-weight: 300; font-style: italic; }

  /* Illuminated frame around the phone */
  .frame {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    padding: 60px 30px 50px;
  }
  .frame svg.border-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
  }
  .frame .border-path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.5;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.6;
  }
  .frame.visible .border-path {
    animation: drawBorder 2.5s ease forwards;
  }
  @keyframes drawBorder {
    to { stroke-dashoffset: 0; }
  }
  .frame .corner-star {
    fill: var(--gold);
    opacity: 0;
    transition: opacity 0.6s ease 2s;
  }
  .frame.visible .corner-star { opacity: 0.8; }

  .frame .phone {
    width: 280px; margin: 0 auto;
    background: #1a1a1a; padding: 6px;
    border-radius: 40px; border: 1px solid #222;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.05) inset,
      0 40px 100px -30px rgba(43, 236, 232, 0.25),
      0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .frame .phone img { width: 100%; border-radius: 34px; }

  /* ═══════════════════════════════════════════════════════ */
  /* PALETTE — themes as long swatch strips                  */
  /* ═══════════════════════════════════════════════════════ */
  .palette-section {
    padding: 100px 24px;
    text-align: center;
  }
  .palette-section .eyebrow {
    font-family: var(--naskh); font-style: italic;
    color: var(--gold); font-size: 14px;
    margin-bottom: 20px; opacity: 0.85;
  }
  html[dir="ltr"] .palette-section .eyebrow { font-family: var(--sans); font-weight: 400; }
  .palette-section h2 {
    font-family: var(--kufi); font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: var(--text); line-height: 1.4;
    margin-bottom: 16px;
  }
  html[dir="ltr"] .palette-section h2 {
    font-family: var(--sans); font-weight: 200; font-style: italic; line-height: 1.2;
  }
  .palette-section h2 .accent { color: var(--gold); }
  .palette-section .desc {
    font-family: var(--naskh); color: var(--text2);
    font-size: 1rem; line-height: 1.85;
    max-width: 540px; margin: 0 auto 56px;
  }
  html[dir="ltr"] .palette-section .desc { font-family: var(--sans); font-style: italic; font-weight: 300; }

  /* The swatch strip — full-width horizontal museum row */
  .swatch-strip {
    display: flex; height: 280px;
    max-width: 1200px; margin: 0 auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(43, 236, 232, 0.15);
  }
  .swatch {
    flex: 1; height: 100%;
    position: relative;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
    display: flex; align-items: flex-end;
    padding: 16px 8px;
  }
  .swatch:hover { flex: 3; }
  .swatch .label {
    color: var(--text); font-size: 11px;
    opacity: 0; transition: opacity 0.4s ease 0.2s;
    writing-mode: vertical-rl;
    text-align: center; width: 100%;
    font-family: var(--naskh);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }
  html[dir="ltr"] .swatch .label { font-family: var(--sans); font-weight: 400; }
  .swatch:hover .label { opacity: 1; }

  .palette-section .count {
    margin-top: 32px;
    font-size: 13px; color: var(--text3);
    letter-spacing: 0.04em;
  }
  .palette-section .count span { color: var(--gold); }

  /* ═══════════════════════════════════════════════════════ */
  /* THE VERSE — full-bleed deep meditation                  */
  /* ═══════════════════════════════════════════════════════ */
  .verse-section {
    padding: 140px 24px;
    text-align: center;
    position: relative;
    background:
      radial-gradient(ellipse at center, rgba(43, 236, 232, 0.05) 0%, transparent 60%),
      var(--bg);
    border-top: 0.5px solid rgba(43, 236, 232, 0.08);
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.08);
  }
  .verse-section::before, .verse-section::after {
    content: '';
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 60%; height: 0.5px;
    background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  }
  .verse-section::before { top: 0; }
  .verse-section::after { bottom: 0; }

  .verse-section .verse {
    font-family: var(--quran);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: var(--gold);
    line-height: 2.2;
    max-width: 800px; margin: 0 auto;
    direction: rtl;
    text-shadow: 0 0 60px rgba(43, 236, 232, 0.25);
  }
  .verse-section .verse-en {
    font-family: var(--sans); font-style: italic; font-weight: 300;
    color: var(--text2); font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8; max-width: 540px;
    margin: 40px auto 24px;
  }
  .verse-section .source {
    font-family: var(--naskh); font-style: italic;
    color: var(--text3); font-size: 13px;
    margin-top: 28px;
    letter-spacing: 0.04em;
  }
  html[dir="ltr"] .verse-section .source { font-family: var(--sans); }

  /* ═══════════════════════════════════════════════════════ */
  /* PRICE — museum object label                             */
  /* ═══════════════════════════════════════════════════════ */
  .price-section {
    padding: 120px 24px;
    text-align: center;
  }
  .price-section .eyebrow {
    font-size: 11px; color: var(--text3);
    letter-spacing: 0.32em;
    margin-bottom: 24px;
  }
  .price-section .price {
    font-family: var(--kufi); font-weight: 400;
    font-size: clamp(4rem, 9vw, 6rem);
    color: var(--text); line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .price-section .price .cur {
    font-family: var(--naskh);
    font-size: 0.32em; color: var(--text2);
    vertical-align: super; font-weight: 400;
    margin: 0 12px;
  }
  html[dir="ltr"] .price-section .price .cur { font-family: var(--sans); }
  .price-section .note {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 1rem;
    margin-bottom: 56px;
  }
  html[dir="ltr"] .price-section .note { font-family: var(--sans); font-weight: 300; }
  .price-section .renew {
    margin-top: 18px;
    font-size: 13px; color: var(--text3);
    letter-spacing: 0.02em;
  }
  .price-section .cta {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 18px 36px;
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 0;
    color: #0a0a0a;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
    box-shadow: 0 0 40px rgba(43, 236, 232, 0.15);
  }
  .price-section .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(43, 236, 232, 0.35);
  }
  html[dir="rtl"] .price-section .cta svg { transform: scaleX(-1); }

  /* ═══════════════════════════════════════════════════════ */
  /* CLOSING — small benediction                             */
  /* ═══════════════════════════════════════════════════════ */
  .closing {
    padding: 80px 24px;
    text-align: center;
  }
  .closing .ar {
    font-family: var(--quran); font-size: 1.6rem;
    color: var(--gold); opacity: 0.85;
    margin-bottom: 14px;
  }
  .closing .en {
    font-family: var(--sans); font-style: italic; font-weight: 300;
    color: var(--text3); font-size: 14px;
  }

  /* ═══════════════════════════════════════════════════════ */
  /* FOOTER                                                  */
  /* ═══════════════════════════════════════════════════════ */
  footer {
    padding: 36px 24px;
    border-top: 0.5px solid rgba(43, 236, 232, 0.08);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 14px;
    max-width: 1200px; margin: 0 auto;
  }
  footer .logo img { height: 48px; width: auto; }
  footer .copy {
    font-size: 12px; color: var(--text3);
    letter-spacing: 0.04em;
  }

  /* ═══════════════════════════════════════════════════════ */
  /* PREVIEW BADGE                                           */
  /* ═══════════════════════════════════════════════════════ */
  .preview-badge {
    position: fixed; bottom: 24px; left: 24px; z-index: 100;
    background: var(--surface); color: var(--text2);
    border: 0.5px solid var(--gold);
    font-size: 11px; padding: 10px 14px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.04em;
  }
  html[dir="ltr"] .preview-badge { left: auto; right: 24px; }
  .preview-badge strong { color: var(--gold); }
  .preview-badge a { color: var(--gold); border-bottom: 0.5px solid var(--gold); margin: 0 6px; }

  @media (max-width: 600px) {
    .swatch-strip { height: 220px; }
    .swatch:hover { flex: 2; }
    .price-section, .name-section, .palette-section, .verse-section { padding: 80px 20px; }
    .hero { padding: 40px 20px 60px; min-height: 80vh; }
    .frame { padding: 50px 20px 40px; }
    .frame .phone { width: 240px; }
  }

  /* ═══════════════════════════════════════════════════════ */
  /* TRUST STRIP — quiet, museum-tone proof bar              */
  /* ═══════════════════════════════════════════════════════ */
  /* ── Features strip (the app's features) ── */
  .features-strip {
    padding: 40px 24px;
    border-top: 0.5px solid rgba(43, 236, 232, 0.08);
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.08);
    background: rgba(43, 236, 232, 0.02);
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
    max-width: 820px; margin: 0 auto;
  }
  .feat {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px;
  }
  .feat-ic {
    width: 46px; height: 46px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    background: var(--gold-dim);
    border: 0.5px solid rgba(43, 236, 232, 0.18);
  }
  .feat-ic svg { width: 22px; height: 22px; display: block; }
  .feat-lbl {
    font-family: var(--sans); font-weight: 500;
    font-size: 13px; color: var(--text2);
    line-height: 1.4; max-width: 130px;
  }
  @media (max-width: 600px) {
    .features-strip { padding: 32px 18px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
    .feat-lbl { font-size: 12px; }
  }

  /* ═══════════════════════════════════════════════════════ */
  /* INTERACTIVE PHONE inside the illuminated frame          */
  /* ═══════════════════════════════════════════════════════ */
  .frame .phone {
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    transition: background 0.5s ease;
  }
  .phone-screen {
    width: 100%;
    border-radius: 34px;
    background: var(--ph-bg, #0a0a0a);
    color: var(--ph-accent, var(--gold));
    padding: 14px 0 14px;
    transition: background 0.5s ease, color 0.5s ease;
    /* True iPhone screen proportions (≈ 9 : 19.5) so it never looks squat */
    aspect-ratio: 9 / 19.5;
    display: flex; flex-direction: column;
    overflow: hidden; /* nothing escapes the screen */
    position: relative; /* containing block for the dynamic island */
  }
  /* (Dynamic Island removed entirely — no notch/dot on any phone.) */
  .phone-bismillah {
    font-family: var(--quran);
    text-align: center; font-size: 13px;
    line-height: 1.6;
    color: var(--ph-accent, var(--gold));
    margin: 8px 0;
    margin-top: auto; /* with .phone-tabs margin-top:auto, centers the content block */
    width: 100%;
    padding: 0 14px;
  }
  .phone-divider {
    width: 32px; height: 1px;
    background: var(--ph-accent-faint, rgba(43,236,232,0.45));
    margin: 6px auto;
  }
  .phone-tagline {
    text-align: center;
    font-family: var(--naskh);
    font-size: 10px;
    color: var(--ph-accent-soft, rgba(43,236,232,0.80));
    padding: 0 14px; margin-top: 4px;
  }
  .phone-ded-label {
    text-align: center;
    font-family: var(--naskh);
    font-size: 11px;
    color: var(--ph-accent-soft, rgba(43,236,232,0.80));
    margin-top: 22px;
  }
  .phone-name {
    text-align: center;
    font-family: var(--kufi);
    font-size: 22px; font-weight: 500;
    color: var(--ph-accent, var(--gold));
    margin-top: 8px; padding: 0 14px;
    min-height: 34px;
    letter-spacing: 0.3px;
    transition: opacity 0.4s ease;
    text-shadow: 0 0 24px var(--ph-glow, rgba(43,236,232,0.30));
    word-wrap: break-word;
  }
  .phone-name.empty { opacity: 0.4; text-shadow: none; font-weight: 400; }
  .phone-dua {
    text-align: center;
    font-family: var(--naskh);
    font-size: 11px;
    color: var(--ph-accent-soft, rgba(43,236,232,0.78));
    padding: 14px 16px 4px; line-height: 1.7;
    margin-top: auto;
  }
  .phone-tabs {
    display: flex; justify-content: space-around; align-items: center;
    padding: 11px 12px 5px;
    margin-top: auto; /* pin nav to bottom of the tall screen */
    border-top: 0.5px solid var(--ph-accent-faint, rgba(43,236,232,0.18));
  }
  .phone-tab {
    width: 17px; height: 17px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ph-accent, var(--gold));
    opacity: 0.38;
    transition: opacity 0.4s ease;
    border-radius: 0; background: none; /* reset old dot styling */
  }
  .phone-tab svg { width: 100%; height: 100%; display: block; }
  .phone-tab.active { opacity: 1; }
  .phone-tab.active svg { stroke-width: 2; }

  /* ── Name input below the frame ── */
  .name-customizer {
    max-width: 380px; margin: 28px auto 0;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
  }
  .name-customizer .hint {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 12px;
    letter-spacing: 0.04em;
  }
  html[dir="ltr"] .name-customizer .hint { font-family: var(--sans); font-weight: 300; }
  .name-customizer input {
    width: 100%; max-width: 320px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--sans); font-size: 16px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, transform 0.18s ease;
    min-height: 48px;
  }
  .name-customizer input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(43, 236, 232, 0.03);
    box-shadow: 0 0 0 4px rgba(43, 236, 232, 0.12),
                0 8px 24px -10px rgba(43, 236, 232, 0.30);
    transform: translateY(-1px);
  }
  .name-customizer input.filled { border-color: rgba(43, 236, 232, 0.45); }
  .name-customizer input::placeholder { color: var(--text3); }
  /* Hint pulses gently to invite the first interaction */
  .name-customizer .hint { animation: hintPulse 2.6s ease-in-out infinite; }
  @keyframes hintPulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

  /* Phone name flashes when your typing lands — makes the link feel live */
  @keyframes namePop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
  }
  .phone-name.just-typed { animation: namePop 0.35s ease; }

  .theme-chips {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    max-width: 320px;
  }
  .theme-chip {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer; padding: 0;
    background: transparent;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
  }
  .theme-chip .dot {
    width: 18px; height: 18px; border-radius: 50%;
    display: block; margin: 3px auto;
    box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.15);
  }
  .theme-chip:hover { transform: scale(1.1); }
  .theme-chip.active { border-color: var(--gold); }
  .theme-chips .lbl {
    font-family: var(--naskh); font-style: italic;
    font-size: 11px; color: var(--text3);
    align-self: center; padding-inline-end: 8px;
  }
  html[dir="ltr"] .theme-chips .lbl { font-family: var(--sans); font-weight: 300; }

  /* ═══════════════════════════════════════════════════════ */
  /* FAQ — museum-tone disclosure                            */
  /* ═══════════════════════════════════════════════════════ */
  .faq-section {
    padding: 100px 24px;
    max-width: 720px; margin: 0 auto;
  }
  .faq-section h2 {
    font-family: var(--kufi); font-weight: 500;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--text); text-align: center;
    margin-bottom: 12px;
  }
  html[dir="ltr"] .faq-section h2 {
    font-family: var(--sans); font-weight: 200; font-style: italic;
  }
  .faq-section .eyebrow {
    font-family: var(--naskh); font-style: italic;
    color: var(--gold); font-size: 14px; opacity: 0.85;
    text-align: center; margin-bottom: 16px;
  }
  html[dir="ltr"] .faq-section .eyebrow { font-family: var(--sans); font-weight: 400; }
  .faq-list { margin-top: 48px; }
  .faq-item {
    border-bottom: 0.5px solid var(--border);
    padding: 22px 4px;
    cursor: pointer;
  }
  /* Subtle highlight for the open-by-default item — note: NO horizontal
     padding change, so its "+" stays aligned with every other item. */
  .faq-item.is-price {
    background: var(--gold-dim);
    border-radius: 8px;
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.20);
  }
  .faq-item summary {
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    font-family: var(--sans); font-weight: 500;
    font-size: 15px; color: var(--text);
    cursor: pointer;
    min-height: 24px;
  }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item .icon {
    color: var(--gold);
    font-size: 22px; font-weight: 300; line-height: 1;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    transform-origin: center center;
    transition: transform 0.3s ease;
    margin-inline-start: 14px; flex-shrink: 0;
  }
  .faq-item[open] .icon { transform: rotate(45deg); }
  .faq-item .ans {
    margin-top: 14px;
    font-family: var(--naskh);
    font-size: 14px; color: var(--text2);
    line-height: 1.95;
  }
  html[dir="ltr"] .faq-item .ans { font-family: var(--sans); font-weight: 300; }
  .faq-item .ans b { color: var(--text); font-weight: 600; }

  /* ═══════════════════════════════════════════════════════ */
  /* STICKY CTA — only on mobile, after hero                 */
  /* ═══════════════════════════════════════════════════════ */
  .sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: saturate(140%) blur(20px);
    border-top: 0.5px solid rgba(43, 236, 232, 0.12);
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  }
  .sticky-cta.visible { transform: translateY(0); }
  .sticky-cta a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 17px 20px;
    background: var(--gold);
    color: #0a0a0a;
    font-family: var(--sans); font-weight: 700; font-size: 1.2rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    min-height: 56px;
  }
  @media (min-width: 700px) {
    .sticky-cta { display: none; }
  }

  /* ═══════════════════════════════════════════════════════ */
  /* PRE-CHECKOUT CONFIRMATION OVERLAY                       */
  /* Full-screen review screen shown when the buyer hits     */
  /* "Gift now". Verifies theme + recipient name + dedication*/
  /* + total. Only "Confirm & pay" advances to Stripe.       */
  /* ═══════════════════════════════════════════════════════ */
  .cust-confirm-overlay {
    position: fixed; inset: 0; z-index: 200;
    display: none;
    align-items: stretch; justify-content: center;
  }
  .cust-confirm-overlay.visible { display: flex; }
  .cust-confirm-backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 8, 8, 0.82);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    animation: confirmFadeIn 0.25s ease;
  }
  .cust-confirm-scroll {
    position: relative;
    width: 100%; max-width: 540px;
    margin: auto;
    padding: 16px;
    max-height: 100dvh;
    display: flex; flex-direction: column;
  }
  /* Card is a flex column: the content area scrolls, the action buttons
     below stay pinned at the bottom edge so the buyer can ALWAYS see
     (and reach) Confirm & Pay no matter how short their viewport is. */
  .cust-confirm-card {
    background: var(--surface);
    border: 0.5px solid var(--border2);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7),
                0 0 60px -20px rgba(43,236,232,0.18);
    animation: confirmSlideUp 0.32s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex; flex-direction: column;
    max-height: 100%;
    overflow: hidden;
  }
  .cust-confirm-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px 22px 6px;
    min-height: 0;
  }
  @keyframes confirmFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes confirmSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

  .cust-confirm-close {
    position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
    background: transparent; border: none;
    color: var(--text3); cursor: pointer; padding: 6px;
    border-radius: 8px; line-height: 0;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
  }
  .cust-confirm-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }
  .cust-confirm-phone {
    display: flex; justify-content: center;
    margin-bottom: 16px;
  }
  .cust-confirm-phone .mini-phone {
    width: 150px; padding: 4px;
    background: #1a1a1a;
    border-radius: 24px; border: 1px solid #222;
    box-shadow: 0 14px 28px -12px rgba(43,236,232,0.18);
    overflow: hidden;
  }
  .cust-confirm-phone .phone-screen {
    padding: 18px 8px;
  }
  .cust-confirm-phone .phone-name {
    font-size: 1.1rem; line-height: 1.25;
  }
  /* Reuse the existing phone-screen / phone-name / etc styles from the
     customizer side-phone — they pick up the theme via the global
     --ph-bg / --ph-accent vars, so the snapshot phone is themed in sync. */
  .cust-confirm-summary {
    list-style: none;
    border: 0.5px solid var(--border2);
    border-radius: 12px;
    background: var(--bg);
    padding: 2px 14px;
    margin-bottom: 12px;
  }
  .cust-confirm-summary .row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 0.5px solid var(--border);
    font-size: 13px;
  }
  .cust-confirm-summary .row:last-child { border-bottom: none; }
  .cust-confirm-summary .row .label { color: var(--text3); }
  .cust-confirm-summary .row .val {
    color: var(--text); font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    text-align: end;
  }
  .cust-confirm-summary .row.recipient .val.recipient-name {
    color: var(--gold); font-weight: 600;
    font-size: 1.1rem;
    max-width: 60%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .cust-confirm-summary .row.total {
    border-top: 0.5px solid rgba(43,236,232,0.20);
    margin-top: 4px; padding-top: 14px;
  }
  .cust-confirm-summary .row.total .label { color: var(--text); font-weight: 500; }
  .cust-confirm-summary .row.total .val { color: var(--gold); font-weight: 600; font-size: 1.15rem; }
  .cust-confirm-summary .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ph-accent, var(--gold));
    box-shadow: 0 0 10px var(--ph-accent, var(--gold));
    flex-shrink: 0;
  }
  .cust-confirm-guarantee {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 10px;
    font-size: 12px; color: #D4AF37; font-weight: 500;
  }
  .cust-confirm-guarantee svg { flex-shrink: 0; }
  /* Pinned action bar — stays visible at the bottom of the card always. */
  .cust-confirm-actions {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    flex-shrink: 0;
    padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
    border-top: 0.5px solid var(--border);
    background: var(--surface);
  }
  .cust-confirm-actions button {
    padding: 16px 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem; font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter 0.15s, background 0.15s, opacity 0.15s;
  }
  .cust-confirm-back {
    background: transparent;
    color: var(--text);
    border: 0.5px solid var(--border2) !important;
  }
  .cust-confirm-back:hover { background: rgba(255,255,255,0.05); }
  .cust-confirm-pay {
    background: var(--gold);
    color: #0a0a0a;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-height: 56px;
  }
  .cust-confirm-pay:hover { filter: brightness(1.05); }
  .cust-confirm-pay:disabled { opacity: 0.7; cursor: wait; }
  body.confirm-open { overflow: hidden; }

  /* ═══════════════════════════════════════════════════════ */
  /* FOOTER DISCLAIMER                                       */
  /* ═══════════════════════════════════════════════════════ */
  .footer-disclaimer {
    max-width: 720px; margin: 24px auto 0;
    padding: 16px 20px;
    border: 0.5px dashed rgba(43, 236, 232, 0.18);
    border-radius: 6px;
    font-family: var(--naskh); font-style: italic;
    font-size: 11px; color: var(--text3);
    line-height: 1.8; text-align: center;
  }
  html[dir="ltr"] .footer-disclaimer { font-family: var(--sans); font-weight: 300; }
  .footer-disclaimer b { color: var(--text2); font-weight: 500; font-style: normal; }

  /* ── App store badges ── */
  .stores {
    text-align: center;
    padding: 8px 24px 40px;
  }
  .stores-title {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 14px;
    margin-bottom: 16px;
  }
  html[dir="ltr"] .stores-title { font-family: var(--sans); font-weight: 400; }
  .stores-badges {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; flex-wrap: wrap;
  }
  .stores-badges a {
    display: inline-flex; align-items: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.92;
  }
  .stores-badges a:hover { transform: translateY(-2px); opacity: 1; }
  .stores-badges img { display: block; }
  /* Official badges have different built-in padding; Apple a touch taller
     so the two read as balanced (same approach as the original site). */
  .badge-apple  { height: 54px; width: auto; }
  .badge-google { height: 46px; width: auto; }
  .stores-note {
    max-width: 460px; margin: 18px auto 0;
    font-family: var(--naskh); font-style: italic;
    font-size: 11.5px; color: var(--text3);
    line-height: 1.7;
  }
  html[dir="ltr"] .stores-note { font-family: var(--sans); font-weight: 300; }

  /* ═══════════════════════════════════════════════════════ */
  /* FULL CUSTOMIZER — merged from redesign-customizer.html  */
  /* ═══════════════════════════════════════════════════════ */
  .cust-wrap {
    padding: 80px 24px;
    max-width: 1100px; margin: 0 auto;
    position: relative;
  }
  .cust-wrap .eyebrow {
    font-family: var(--naskh); font-style: italic;
    color: var(--gold); font-size: 14px; opacity: 0.85;
    text-align: center; margin-bottom: 16px;
  }
  html[dir="ltr"] .cust-wrap .eyebrow { font-family: var(--sans); font-weight: 400; }
  .cust-wrap h2 {
    font-family: var(--kufi); font-weight: 500;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: var(--text); text-align: center;
    line-height: 1.35; margin-bottom: 12px;
  }
  html[dir="ltr"] .cust-wrap h2 {
    font-family: var(--sans); font-weight: 200; font-style: italic;
  }
  .cust-wrap h2 .accent { color: var(--gold); }
  .cust-wrap .lede {
    font-family: var(--naskh); color: var(--text2);
    font-size: 15px; line-height: 1.85;
    max-width: 540px; margin: 0 auto 48px;
    text-align: center;
  }
  html[dir="ltr"] .cust-wrap .lede { font-family: var(--sans); font-weight: 300; }

  .cust-grid {
    display: grid; gap: 16px;
    grid-template-columns: 1fr;
  }
  /* Form fills the available width and flexes continuously as the window
     resizes (no fixed cap, so it never feels "stuck"). */
  .cust-form { width: 100%; min-width: 0; }

  @media (min-width: 800px) {
    .cust-grid {
      grid-template-columns: minmax(0, 1fr) clamp(240px, 26vw, 300px);
      gap: clamp(24px, 4vw, 52px);
      align-items: start;
    }
    .cust-side { position: sticky; top: 100px; }
  }

  /* Sticky preview column (shown from 800px up — mobile uses the
     pre-checkout confirmation overlay instead). */
  .cust-side { display: none; }
  @media (min-width: 800px) {
    .cust-side {
      display: flex; flex-direction: column; align-items: center; gap: 16px;
    }
  }
  .cust-side .mini-phone {
    width: 240px;
    background: #1a1a1a; padding: 6px;
    border-radius: 36px; border: 1px solid #222;
    box-shadow: 0 30px 60px -20px rgba(43, 236, 232, 0.20);
    overflow: hidden; /* clip the wide bismillah glyph */
  }
  .cust-side .mini-caption {
    font-family: var(--naskh); font-style: italic;
    font-size: 12px; color: var(--text3);
    text-align: center;
  }
  html[dir="ltr"] .cust-side .mini-caption { font-family: var(--sans); font-weight: 300; }
  .cust-side .mini-caption b { color: var(--gold); font-style: normal; font-weight: 500; }

  .cust-card {
    background: var(--surface);
    border: 0.5px solid var(--border2);
    border-radius: 14px;
    padding: 24px 20px;
    margin-bottom: 14px;
  }
  .cust-label {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
    font-family: var(--sans);
    color: var(--text); font-size: 15px; font-weight: 500;
  }
  .cust-label .num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--gold-dim); color: var(--gold);
    font-size: 12px; font-weight: 600;
  }
  .cust-help {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 13px;
    margin-bottom: 16px; line-height: 1.7;
  }
  html[dir="ltr"] .cust-help { font-family: var(--sans); font-weight: 300; }

  /* Theme picker (horizontal scroll) */
  .cust-theme-group { margin-bottom: 18px; }
  .cust-theme-group .heading {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 13px;
    margin-bottom: 10px; padding: 0 4px;
  }
  html[dir="ltr"] .cust-theme-group .heading { font-family: var(--sans); font-weight: 300; }
  .cust-theme-track {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: hidden;
    padding: 6px 4px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cust-theme-track::-webkit-scrollbar { height: 4px; }
  .cust-theme-track::-webkit-scrollbar-track { background: var(--border); border-radius: 4px; }
  .cust-theme-track::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
  .cust-theme-tile {
    flex: 0 0 84px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; min-height: 48px;
  }
  .cust-theme-tile .icon-wrap {
    width: 76px; height: 76px; border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
    background: var(--surface2);
  }
  .cust-theme-tile.selected .icon-wrap {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(43, 236, 232, 0.30);
  }
  .cust-theme-tile .icon-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cust-theme-tile .name {
    font-family: var(--naskh); font-style: italic;
    font-size: 11px; color: var(--text3);
    text-align: center; line-height: 1.3;
  }
  html[dir="ltr"] .cust-theme-tile .name { font-family: var(--sans); font-weight: 300; }
  .cust-theme-tile.selected .name { color: var(--gold); font-style: normal; }

  /* Toggle groups */
  .cust-toggle-group {
    display: grid; gap: 10px;
    grid-template-columns: 1fr 1fr;
  }
  .cust-toggle {
    background: var(--bg);
    border: 0.5px solid var(--border2);
    border-radius: 12px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    text-align: center;
  }
  .cust-toggle.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
  }
  .cust-toggle .t {
    color: var(--text); font-size: 15px; font-weight: 500;
    font-family: var(--sans);
  }
  .cust-toggle.selected .t { color: var(--gold); }
  .cust-toggle .s {
    color: var(--text2); font-size: 11px;
    font-family: var(--naskh); font-style: italic;
  }
  html[dir="ltr"] .cust-toggle .s { font-family: var(--sans); font-weight: 300; }

  /* "+ Add..." link rows that reveal an optional field on tap. */
  .cust-expand-row { margin: 4px 0 14px; }
  .cust-expand-btn {
    background: none; border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 6px 2px;
    font-size: 13px; font-weight: 500;
    font-family: inherit;
    text-align: start;
    display: inline-flex; align-items: center; gap: 4px;
    transition: opacity 0.15s;
  }
  .cust-expand-btn:hover { opacity: 0.8; }
  .cust-expand-btn:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
  }

  /* Fields */
  .cust-field { margin-bottom: 16px; position: relative; }
  .cust-field:last-child { margin-bottom: 0; }
  .cust-field label {
    display: block;
    color: #C8DADC; font-size: 13.5px;
    font-family: var(--sans);
    margin-bottom: 8px;
    transition: color 0.25s ease;
  }
  /* Label lights up gold while its field is focused */
  .cust-field.focused label { color: var(--gold); }
  .cust-field label .req { color: var(--gold); margin: 0 2px; }
  .cust-field label .opt { color: var(--text2); font-size: 11px; margin: 0 4px; }
  .cust-input, .cust-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border2);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, transform 0.18s ease;
    min-height: 48px;
    -webkit-appearance: none;
  }
  .cust-input:focus, .cust-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(43, 236, 232, 0.03);
    box-shadow: 0 0 0 4px rgba(43, 236, 232, 0.10),
                0 8px 24px -10px rgba(43, 236, 232, 0.30);
    transform: translateY(-1px);
  }
  .cust-input::placeholder, .cust-textarea::placeholder { color: #6E8C90; }
  .cust-textarea { min-height: 88px; resize: vertical; line-height: 1.6; }
  html[dir="rtl"] .cust-input, html[dir="rtl"] .cust-textarea { text-align: right; }

  /* Filled state — soft accent border once a field has content */
  .cust-field.filled .cust-input,
  .cust-field.filled .cust-textarea {
    border-color: rgba(43, 236, 232, 0.40);
  }
  /* Animated check badge that pops in when a field is filled */
  .cust-field .field-check {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.4);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
  }
  .cust-field .field-check svg { width: 11px; height: 11px; display: block; }
  .cust-field.filled .field-check { opacity: 1; transform: scale(1); }
  /* textarea check sits at the top-ish, not vertically centered */
  .cust-field.has-textarea .field-check { bottom: auto; top: 38px; }

  /* Plan chips */
  .cust-plan-track {
    display: flex; gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
  }
  .cust-plan-track::-webkit-scrollbar { height: 4px; }
  .cust-plan {
    flex: 0 0 130px;
    background: var(--bg);
    border: 0.5px solid var(--border2);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    position: relative;
  }
  .cust-plan.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
  }
  .cust-plan .yrs {
    color: var(--text); font-size: 15px; font-weight: 500;
    margin-bottom: 4px; font-family: var(--sans);
  }
  .cust-plan.selected .yrs { color: var(--gold); }
  .cust-plan .pr {
    color: var(--text3); font-size: 11px; line-height: 1.4;
    font-family: var(--naskh); font-style: italic;
  }
  html[dir="ltr"] .cust-plan .pr { font-family: var(--sans); font-weight: 300; }
  .cust-plan .save {
    display: inline-block; background: var(--gold);
    color: #0a0a0a; font-size: 9px; font-weight: 600;
    padding: 2px 6px; border-radius: 50px;
    margin-top: 4px;
    font-family: var(--sans); font-style: normal;
  }

  /* Summary */
  .cust-summary {
    background: var(--surface2);
    border: 0.5px solid var(--border2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
  }
  .cust-summary .row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    font-family: var(--sans);
  }
  /* Long lifetime label (e.g. "إهداء — مصحف مخصص يبقى للأبد") can compete
     with the price for space; pin the price column at intrinsic width so
     "١,٠٠٠ ر.س" never gets truncated, and let the label shrink/wrap. */
  .cust-summary .row > span:first-child {
    min-width: 0; overflow-wrap: anywhere; line-height: 1.5;
  }
  .cust-summary .row > span:last-child {
    flex-shrink: 0; white-space: nowrap;
  }
  .cust-summary .row.muted { color: var(--text2); }
  .cust-summary .row.total {
    border-top: 0.5px solid var(--border2);
    margin-top: 8px; padding-top: 14px;
    font-size: 17px; font-weight: 500;
  }
  .cust-summary .row.total .v {
    color: var(--gold); font-size: 22px;
    font-family: var(--kufi);
  }
  html[dir="ltr"] .cust-summary .row.total .v { font-family: var(--sans); font-weight: 600; }

  /* Terms */
  .cust-terms {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 16px 0 4px;
    color: var(--text2); font-size: 13px; line-height: 1.7;
    font-family: var(--sans);
  }
  .cust-terms input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
  }
  .cust-terms a { color: var(--gold); border-bottom: 0.5px solid var(--gold); }

  /* Final CTA inside customizer */
  .cust-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%;
    padding: 18px 24px;
    background: var(--gold);
    color: #0a0a0a;
    font-family: var(--sans); font-weight: 500;
    font-size: 1rem; letter-spacing: 0.04em;
    border: none; border-radius: 10px;
    cursor: pointer;
    min-height: 56px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 16px;
  }
  .cust-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(43, 236, 232, 0.30);
  }
  .cust-submit:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
  }
  html[dir="rtl"] .cust-submit svg { transform: scaleX(-1); }

  .cust-trust-line {
    text-align: center;
    padding: 18px 8px 8px;
    color: var(--text3); font-size: 12px;
    font-family: var(--naskh); font-style: italic;
  }
  html[dir="ltr"] .cust-trust-line { font-family: var(--sans); font-weight: 300; }
  .cust-trust-line span { color: var(--gold); }

  /* Accepted payment marks — shown right at the point of payment */
  .pay-row {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; flex-wrap: wrap;
    margin-top: 16px;
  }
  .pay-mark {
    width: 42px; height: 26px;
    border-radius: 5px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35), inset 0 0 0 0.5px rgba(255,255,255,0.12);
    flex-shrink: 0;
  }
  .pay-mark img { width: 100%; height: 100%; display: block; }

  /* The customizer's own sticky shouldn't show — we use the page's */

  /* ═══════════════════════════════════════════════════════ */
  /* AUTO-SCROLLING THEME MARQUEE — single selector          */
  /* ═══════════════════════════════════════════════════════ */
  .marquee-section {
    padding: 56px 0 44px;
    text-align: center;
    border-top: 0.5px solid rgba(43, 236, 232, 0.06);
    border-bottom: 0.5px solid rgba(43, 236, 232, 0.06);
    background: rgba(43, 236, 232, 0.015);
    overflow: hidden;
  }
  .marquee-section .eyebrow {
    font-family: var(--naskh); font-style: italic;
    color: var(--gold); font-size: 14px; opacity: 0.85;
    margin-bottom: 12px; padding: 0 24px;
  }
  html[dir="ltr"] .marquee-section .eyebrow { font-family: var(--sans); font-weight: 400; }
  .marquee-title {
    font-family: var(--kufi); font-weight: 500;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 12px;
    padding: 0 24px;
  }
  html[dir="ltr"] .marquee-title {
    font-family: var(--sans); font-weight: 200; font-style: italic;
  }
  .marquee-title .accent { color: var(--gold); }
  .marquee-sub {
    font-family: var(--naskh); font-style: italic;
    color: var(--text2); font-size: 13px;
    margin-bottom: 32px;
    padding: 0 24px;
  }
  html[dir="ltr"] .marquee-sub { font-family: var(--sans); font-weight: 300; }

  .marquee-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 4px;
  }
  /* Soft fade-out at both edges so it feels infinite */
  .marquee-fade-l, .marquee-fade-r {
    position: absolute; top: 0; bottom: 0; width: 80px;
    pointer-events: none; z-index: 2;
  }
  .marquee-fade-l {
    left: 0;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
  }
  .marquee-fade-r {
    right: 0;
    background: linear-gradient(-90deg, var(--bg) 0%, transparent 100%);
  }
  @media (max-width: 600px) {
    .marquee-fade-l, .marquee-fade-r { width: 40px; }
  }

  /* Inner scrollable layer — direction: ltr so scrollLeft behaves
     predictably across browsers regardless of page RTL */
  .marquee-scroll {
    direction: ltr;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: auto; /* arrow uses explicit smooth; auto-scroll wants instant */
    /* Fade the left/right edges into the page background so the buyer can
       see tiles "entering" and "leaving" — a strong visual cue that the
       rotator continues beyond the 3 tiles currently visible. */
    -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      black 8%,
      black 92%,
      transparent 100%);
            mask-image: linear-gradient(to right,
      transparent 0,
      black 8%,
      black 92%,
      transparent 100%);
  }
  .marquee-scroll::-webkit-scrollbar { display: none; }
  .marquee-track {
    display: flex; gap: 16px;
    width: max-content;
    padding: 8px 24px;
  }

  /* ── Navigation arrows ── */
  .marquee-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.85);
    border: 0.5px solid rgba(43, 236, 232, 0.30);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 3; /* above fades + tiles */
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    backdrop-filter: blur(8px);
    padding: 0;
  }
  .marquee-arrow:hover {
    background: rgba(43, 236, 232, 0.18);
    transform: translateY(-50%) scale(1.08);
  }
  .marquee-arrow:active { transform: translateY(-50%) scale(0.96); }
  .marquee-arrow svg { width: 18px; height: 18px; display: block; }
  .marquee-arrow.left  { left: 8px; }
  .marquee-arrow.right { right: 8px; }
  @media (max-width: 600px) {
    .marquee-arrow { width: 36px; height: 36px; }
    .marquee-arrow svg { width: 16px; height: 16px; }
  }

  .marquee-tile {
    flex: 0 0 96px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer;
    background: transparent; border: none; padding: 4px;
    font-family: inherit;
  }
  .marquee-tile .icon {
    width: 84px; height: 84px; border-radius: 20px;
    overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    background: var(--surface2);
  }
  .marquee-tile:hover .icon {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
  .marquee-tile.selected .icon {
    border-color: var(--gold);
    transform: scale(1.12);
    box-shadow: 0 14px 40px rgba(43, 236, 232, 0.30);
  }
  .marquee-tile .icon img {
    width: 100%; height: 100%; display: block; object-fit: cover;
  }
  .marquee-tile .lbl {
    font-family: var(--naskh); font-style: italic;
    font-size: 11px; color: var(--text3);
    text-align: center; line-height: 1.3;
    max-width: 96px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.2s;
  }
  html[dir="ltr"] .marquee-tile .lbl { font-family: var(--sans); font-weight: 300; }
  .marquee-tile.selected .lbl { color: var(--gold); font-style: normal; }

  /* ═══════════════════════════════════════════════════════ */
  /* ACCESSIBILITY — respect reduced-motion preference        */
  /* ═══════════════════════════════════════════════════════ */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    .phone-fan .phone { animation: none !important; translate: 0 0 !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
  }