/* Deshi Drop — header bars, cart, account page, standard welcome popup.
   Everything here reuses the home-page tokens from style.css (white page, charcoal/black text,
   deshi green + red accents, Manrope headings, Inter body). */

html { overflow-anchor: none; }            /* header resizes smoothly without scroll-jump feedback */
[hidden] { display: none !important; }

/* ================= HEADER: logo bar + prayer bar + social bar + menu bar (all sticky together) ================= */
.site-hdr { padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.site-hdr .nav-row { transition: padding .3s ease; }
.nav-actions { display: flex; gap: 8px; }
.icon-btn { border: 0; color: var(--fm-charcoal); cursor: pointer; font: inherit; transition: background .2s ease, transform .15s ease; }
.icon-btn:hover { background: var(--fm-beige-dark); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:focus-visible, .add-btn:focus-visible, .tab-item:focus-visible { outline: 2px solid var(--fm-accent-dark); outline-offset: 2px; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: ddBump .45s cubic-bezier(.2,.9,.3,1.4); }
.tab-item .cart-count { top: -5px; inset-inline-end: 4px; }
button.tab-item { background: none; border: 0; padding: 0; font: inherit; font-size: 10px; font-weight: 600; cursor: pointer; }

/* Bar 1 — prayer countdown */
.pray-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 12px; min-width: 0; white-space: nowrap; color: #000;
  background: linear-gradient(90deg, var(--fm-accent-soft) 0%, #fff 50%, var(--fm-accent-soft) 100%);
  border-top: 1px solid var(--fm-border); border-bottom: 1px solid rgba(28,107,60,.28);
  transition: padding .3s ease;
}
.pb-ico { flex-shrink: 0; color: var(--fm-accent-dark); }
.dd-next-cap { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dd-next-name { font-size: 13px; font-weight: 800; }
.dd-next-time { font-family: 'Manrope', sans-serif; font-size: 17px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.2px; color: var(--fm-accent-dark); transition: font-size .3s ease; }
.pb-sep { color: var(--fm-accent-dark); opacity: .45; }
.dd-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 700; }
:lang(ar) .dd-next-cap { letter-spacing: 0; text-transform: none; }

/* Bar 2 — social media, centred */
.social-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease, opacity .3s ease; }
.social-wrap > div { overflow: hidden; min-height: 0; }
.social-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px;
  background: linear-gradient(90deg, var(--fm-accent-dark) 0%, var(--fm-accent) 50%, var(--fm-accent-dark) 100%);
  transition: padding .3s ease, gap .3s ease;
}
.social-bar a { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; transition: width .3s ease, height .3s ease, transform .2s ease; }
.social-bar a:hover { transform: scale(1.12); }
.social-bar a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.social-bar a svg { transition: transform .3s ease; }

/* scrolled: everything stays fixed, but condenses smoothly */
.site-hdr.scrolled .nav-row { padding-top: 3px; padding-bottom: 3px; }
.site-hdr.scrolled .pray-bar { padding-top: 3px; padding-bottom: 3px; }
.site-hdr.scrolled .dd-next-time { font-size: 15px; }
.site-hdr.scrolled .social-bar { padding-top: 3px; padding-bottom: 3px; gap: 10px; }
.site-hdr.scrolled .social-bar a { width: 27px; height: 27px; }
.site-hdr.scrolled .social-bar a svg { transform: scale(.85); }
.site-hdr .nav-links { transition: padding .3s ease; padding-top: 6px; }
.site-hdr:not(.scrolled) .nav-links { padding-top: 8px; }
/* phones: social bar tucks away while scrolling down, returns on scroll up */
@media (max-width: 759px) { .site-hdr.tuck .social-wrap { grid-template-rows: 0fr; opacity: 0; } }
@media (min-width: 760px) {
  .social-bar { gap: 16px; padding: 7px 12px; } .social-bar a { width: 38px; height: 38px; }
  .dd-next-name { font-size: 14px; } .dd-next-time { font-size: 19px; } .dd-date { font-size: 13px; } .pray-bar { gap: 12px; }
}
@media (max-width: 400px) { .dd-next-cap { display: none; } .pray-bar { gap: 6px; padding-inline: 8px; } .dd-date { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .site-hdr *, .site-hdr { transition: none !important; } }

/* ================= ADD BUTTON feedback ================= */
.add-btn.added { background: var(--fm-accent) !important; animation: ddBump .45s cubic-bezier(.2,.9,.3,1.4); }
.card:hover .add-btn { background: var(--fm-accent); }
@keyframes ddBump { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ================= TOAST ================= */
.shop-toast {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 400;
  transform: translateY(16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 28px);
  padding: 11px 14px 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
  color: #fff; background: var(--fm-charcoal); box-shadow: 0 12px 30px rgba(0,0,0,.25);
  transition: opacity .25s ease, transform .25s ease;
}
.shop-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.shop-toast span { line-height: 1.35; overflow-wrap: anywhere; }
.shop-toast button { flex-shrink: 0; border: 0; border-radius: 999px; padding: 6px 12px; font: 700 12px 'Inter', sans-serif; cursor: pointer; color: var(--fm-charcoal); background: #fff; }
@media (min-width: 760px) { .shop-toast { bottom: 28px; } }

/* ================= CART DRAWER ================= */
body.cart-open { overflow: hidden; }
.cart-scrim { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cart-scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.cart-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 310; width: min(420px, 100%);
  display: flex; flex-direction: column; color: var(--fm-charcoal);
  background: radial-gradient(circle at 0% 0%, rgba(28,107,60,.05), transparent 45%), var(--fm-white);
  border-inline-start: 1px solid var(--fm-border); box-shadow: -18px 0 40px rgba(0,0,0,.16);
  transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s .32s;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 18px 0 40px rgba(0,0,0,.16); }
.cart-drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, var(--fm-accent-soft) 0%, var(--fm-white) 70%, rgba(200,32,47,.06) 100%); border-bottom: 1px solid var(--fm-border); }
.cd-head h2 { flex: 1; margin: 0; font-size: 19px; }
.cd-head h2 small { font: 600 12.5px 'Inter', sans-serif; color: #000; opacity: .65; margin-inline-start: 6px; }
.cd-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--fm-beige); color: var(--fm-charcoal); font-size: 22px; line-height: 1; cursor: pointer; }
.cd-x:hover { background: var(--fm-beige-dark); }
.cd-body { flex: 1; overflow-y: auto; padding: 14px 16px; -webkit-overflow-scrolling: touch; }
.cd-foot { padding: 14px 16px 16px; border-top: 1px solid var(--fm-border); background: var(--fm-white); }
.cd-row { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.cd-row b { font: 800 20px 'Manrope', sans-serif; }
.cd-note { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.5; color: #000; opacity: .7; }
.cd-btn { display: flex; width: 100%; justify-content: center; align-items: center; gap: 8px; padding: 13px 16px; border: 0; border-radius: 999px; cursor: pointer; font: 700 14.5px 'Inter', sans-serif; color: #fff; background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dark) 100%); transition: transform .15s ease, box-shadow .2s ease; }
.cd-btn:hover { box-shadow: 0 8px 18px rgba(20,79,44,.28); }
.cd-btn:active { transform: scale(.98); }
.cd-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cd-btn.ghost { background: transparent; color: var(--fm-charcoal); border: 1.5px solid var(--fm-border); margin-top: 8px; }
.cd-link { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--fm-red-dark); font: 600 12.5px 'Inter', sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.cd-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ci { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--fm-border); border-radius: 16px; background: var(--fm-card); box-shadow: var(--shadow-soft); animation: ddRise .3s ease both; }
.ci-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--fm-beige); display: grid; place-items: center; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.ci-unit { font-size: 12px; opacity: .65; margin-top: 2px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--fm-border); border-radius: 999px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--fm-beige); color: var(--fm-charcoal); font-size: 17px; font-weight: 700; cursor: pointer; }
.qty button:hover { background: var(--fm-accent-soft); }
.qty output { min-width: 30px; text-align: center; font: 700 14px 'Manrope', sans-serif; }
.ci-total { font: 800 15px 'Manrope', sans-serif; }
.ci-rm { border: 0; background: none; padding: 0; margin-top: 6px; font: 600 12px 'Inter', sans-serif; color: var(--fm-red-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.cd-empty { text-align: center; padding: 56px 18px 20px; }
.cd-empty svg { color: var(--fm-accent); opacity: .85; }
.cd-empty h3 { margin: 14px 0 6px; font-size: 18px; }
.cd-empty p { margin: 0 auto 20px; max-width: 260px; font-size: 14px; line-height: 1.6; opacity: .7; }
.cd-empty .cd-btn { display: inline-flex; width: auto; padding-inline: 26px; }

.co-form { display: flex; flex-direction: column; gap: 12px; }
.co-sum { font-size: 13.5px; padding: 12px; border-radius: 14px; background: var(--fm-beige); }
.co-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.co-sum div:last-child { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--fm-border); font-weight: 800; }
.co-proto { font-size: 12px; line-height: 1.5; padding: 9px 12px; border-radius: 12px; background: var(--fm-accent-soft); color: #000; }
.cd-done { text-align: center; padding: 48px 12px 10px; }
.cd-done .tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--fm-accent), var(--fm-accent-dark)); animation: ddBump .6s cubic-bezier(.2,.9,.3,1.4) both; }
.cd-done h3 { margin: 0 0 6px; font-size: 20px; }
.cd-done p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; opacity: .75; }

/* ================= FORM FIELDS (cart checkout + account) ================= */
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > label, .fld > .lbl { font-size: 12.5px; font-weight: 700; }
.fld input[type="text"], .fld input[type="email"], .fld input[type="tel"], .fld input[type="password"], .fld textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--fm-border); border-radius: 14px; background: var(--fm-white);
  color: var(--fm-charcoal); font: 400 15px 'Inter', sans-serif; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.fld textarea { resize: vertical; min-height: 70px; }
.fld input:focus, .fld textarea:focus { border-color: var(--fm-accent); box-shadow: 0 0 0 3px rgba(28,107,60,.15); }
.fld.bad input, .fld.bad textarea { border-color: var(--fm-red); }
.f-err { min-height: 0; font-size: 12px; font-weight: 600; color: var(--fm-red-dark); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 64px !important; }
.pw-tog { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); border: 0; background: none; padding: 6px 8px; font: 700 12px 'Inter', sans-serif; color: var(--fm-accent-dark); cursor: pointer; }
.chk { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.chk input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--fm-accent); flex-shrink: 0; }

/* ================= ACCOUNT PAGE ================= */
.acct-page { min-height: 100vh; }
.acct-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: var(--fm-white); border-bottom: 1px solid var(--fm-border); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.acct-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; min-width: 96px; }
.acct-back:hover { color: var(--fm-accent-dark); }
.acct-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; }
.acct-brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.acct-top .icon-btn { min-width: 38px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.acct-main { max-width: 460px; margin: 0 auto; padding: 26px 16px 40px; outline: none; }
.acct-hero { text-align: center; margin-bottom: 18px; }
.acct-hero .eyebrow { margin-bottom: 6px; }
.acct-hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.8px; }
.acct-hero p { margin: 0 auto; max-width: 340px; font-size: 14.5px; line-height: 1.6; }
.acct-card { padding: 20px 18px 22px; border: 1px solid var(--fm-border); border-radius: 22px; background: var(--fm-card); box-shadow: var(--shadow-lift); animation: ddRise .4s ease both; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--fm-beige); }
.seg button { padding: 10px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--fm-charcoal); font: 700 14px 'Inter', sans-serif; cursor: pointer; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.seg button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--fm-accent), var(--fm-accent-dark)); box-shadow: 0 4px 12px rgba(20,79,44,.25); }
.acct-form { display: flex; flex-direction: column; gap: 14px; }
.form-msg { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.form-msg.err { background: rgba(200,32,47,.08); color: var(--fm-red-dark); border: 1px solid rgba(200,32,47,.25); }
.form-msg.ok { background: var(--fm-accent-soft); color: var(--fm-accent-dark); border: 1px solid rgba(28,107,60,.3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-btn { border: 0; background: none; padding: 0; font: 600 13px 'Inter', sans-serif; color: var(--fm-accent-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 12px; font-weight: 700; opacity: .7; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--fm-border); }
.social-login { display: grid; gap: 10px; }
.sl-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--fm-border); border-radius: 999px; background: var(--fm-white); color: var(--fm-charcoal); font: 600 14px 'Inter', sans-serif; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.sl-btn:hover { border-color: var(--fm-accent); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.sl-btn:active { transform: scale(.98); }
.sl-btn[disabled] { opacity: .55; cursor: wait; }
.sl-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.switch-line { margin: 18px 0 0; text-align: center; font-size: 13.5px; }

.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; color: #fff; font: 800 24px 'Manrope', sans-serif; background: linear-gradient(135deg, var(--fm-accent), var(--fm-red)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile h2 { margin: 0 0 2px; font-size: 20px; overflow-wrap: anywhere; }
.profile p { margin: 0; font-size: 13.5px; opacity: .75; overflow-wrap: anywhere; }
.badge { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--fm-accent-soft); color: var(--fm-accent-dark); }
.acct-sec { margin-top: 20px; }
.acct-sec h3 { margin: 0 0 10px; font-size: 16px; }
.orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order { border: 1px solid var(--fm-border); border-radius: 14px; background: var(--fm-white); }
.order summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 13.5px; }
.order summary::-webkit-details-marker { display: none; }
.order summary b { font-family: 'Manrope', sans-serif; }
.order summary small { display: block; font-size: 12px; opacity: .65; }
.order .o-tot { font: 800 15px 'Manrope', sans-serif; }
.order ul { list-style: none; margin: 0; padding: 0 14px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.order li { display: flex; justify-content: space-between; gap: 10px; }
.order .o-addr { padding: 0 14px 12px; font-size: 12.5px; opacity: .7; }
.empty-note { padding: 16px; text-align: center; font-size: 13.5px; border: 1px dashed var(--fm-border); border-radius: 14px; opacity: .8; }
.acct-actions { display: grid; gap: 10px; margin-top: 22px; }
.btn-out { display: flex; justify-content: center; padding: 12px; border-radius: 999px; border: 1.5px solid var(--fm-border); background: transparent; color: var(--fm-charcoal); font: 700 14px 'Inter', sans-serif; cursor: pointer; }
.btn-out:hover { border-color: var(--fm-red); color: var(--fm-red-dark); }
.demo-tag { margin-top: 14px; font-size: 12px; line-height: 1.5; padding: 9px 12px; border-radius: 12px; background: rgba(200,32,47,.07); color: #000; }

@keyframes ddRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ci, .acct-card, .cd-done .tick { animation: none; } .cart-drawer, .cart-scrim, .shop-toast { transition: none; } }

/* ================= WELCOME POPUP — standard layout + before/after text effects ================= */
.welcome-card { max-width: 480px; padding: 16px 20px 20px; font-weight: 500; color: #000; background: linear-gradient(160deg, #cfeadb 0%, #ffffff 46%); }
.wl-head { text-align: center; padding: 0; }
.wl-logo { display: block; width: 96px; height: 96px; margin: 0 auto 6px; background: #fff; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--fm-accent), 0 8px 20px rgba(20,79,44,.28); }
.welcome-card h2.fx-title { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; font-size: 19px; line-height: 1.15; }
@media (min-width: 420px) { .welcome-card h2.fx-title { font-size: 21px; } }
.fx-title b.g { color: var(--fm-accent); } .fx-title b.r { color: var(--fm-red); }
.wl-sub { margin: 2px 0 0; line-height: 1.2; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }

/* before/after pseudo-elements: lines that grow out from the title, diamonds on section headings */
.fx-title::before, .fx-title::after { content: ""; flex: 1 1 0; min-width: 0; max-width: 46px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--fm-accent)); }
.fx-title::after { background: linear-gradient(270deg, transparent, var(--fm-red)); }
.fx-title span { position: relative; text-align: center; flex: none; }
.wl-prayer h3.fx-h { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fx-h::before, .fx-h::after { content: ""; flex: 0 0 7px; height: 7px; background: var(--fm-accent); transform: rotate(45deg); border-radius: 1px; }
.fx-h::after { background: var(--fm-red); }
.welcome-card .verse { position: relative; margin: 14px 0 0; padding: 18px 14px 12px; background: rgba(255,255,255,.85); border: 1px solid rgba(28,107,60,.22); }
.verse .quran-ar { position: relative; font-weight: 400; margin-bottom: 8px; }
.verse .quran-ar::before { content: "\FD3F"; margin-inline-end: 8px; color: var(--fm-accent); }
.verse .quran-ar::after { content: "\FD3E"; margin-inline-start: 8px; color: var(--fm-red); }
.verse p { font-weight: 500; }
.verse figcaption { font-weight: 700; }
.verse figcaption::before { content: ""; display: block; width: 36px; height: 2px; margin: 0 auto 8px; border-radius: 2px; background: linear-gradient(90deg, var(--fm-accent), var(--fm-red)); }
.wl-prayer { background: rgba(255,255,255,.85); }
.wl-prayer-row .pn { font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .welcome-overlay:not([hidden]):not(.closing) .fx-title::before { animation: wlLine .8s .35s cubic-bezier(.2,.8,.2,1) both; transform-origin: right center; }
  .welcome-overlay:not([hidden]):not(.closing) .fx-title::after { animation: wlLine .8s .35s cubic-bezier(.2,.8,.2,1) both; transform-origin: left center; }
  .welcome-overlay:not([hidden]):not(.closing) .fx-title span { display: inline-block; animation: wlText .9s .3s cubic-bezier(.2,.8,.2,1) both; }
  .welcome-overlay:not([hidden]):not(.closing) .fx-h::before { animation: wlDiamond .6s .6s cubic-bezier(.2,.9,.3,1.4) both; }
  .welcome-overlay:not([hidden]):not(.closing) .fx-h::after { animation: wlDiamond .6s .7s cubic-bezier(.2,.9,.3,1.4) both; }
  .welcome-overlay:not([hidden]):not(.closing) .verse .quran-ar::before { animation: wlBracketL .7s .8s ease-out both; }
  .welcome-overlay:not([hidden]):not(.closing) .verse .quran-ar::after { animation: wlBracketR .7s .8s ease-out both; }
  .welcome-overlay:not([hidden]):not(.closing) .verse figcaption::before { animation: wlLineX .6s 1s ease-out both; }
  @keyframes wlLine { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes wlLineX { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes wlText { from { letter-spacing: .16em; opacity: 0; filter: blur(3px); } to { letter-spacing: 0; opacity: 1; filter: none; } }
  @keyframes wlDiamond { from { transform: rotate(45deg) scale(0); opacity: 0; } to { transform: rotate(45deg) scale(1); opacity: 1; } }
  @keyframes wlBracketL { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
  @keyframes wlBracketR { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
}

/* popup spacing: tight but even */
.welcome-card .wl-prayer { margin-top: 10px; }
.welcome-card .verse { margin-top: 10px; padding-top: 14px; }
.welcome-card .wl-cta { bottom: -20px; margin: 8px -20px -20px; padding: 12px 20px 20px; }
@media (max-width: 380px) { .wl-logo { width: 84px; height: 84px; } }

.pay-opt { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.pay-opt .po { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--fm-border); border-radius: 12px; cursor: pointer; font-weight: 600; }
.pay-opt .po input { width: auto; }
.o-pay { font-size: 12px; font-weight: 700; margin: 6px 0; color: var(--fm-accent-dark); }

/* ---- search suggestions ---- */
.sg-list { list-style: none; margin: 0; padding: 6px; }
.sg-dd { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 80; background: #fff; border: 1px solid var(--fm-beige-dark); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.16); max-height: 70vh; overflow: auto; min-width: 320px; }
.sg-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; }
.sg-row:hover { background: var(--fm-beige); }
.sg-img { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; background: var(--fm-beige); display: grid; place-items: center; }
.sg-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-name { font: 700 14px/1.25 'Inter', sans-serif; color: var(--fm-charcoal); }
.sg-cat { font: 500 12px/1 'Inter', sans-serif; color: var(--fm-muted); }
.sg-price { font: 600 13px/1.2 'Inter', sans-serif; white-space: nowrap; text-align: end; }
.sg-price b { color: var(--fm-accent-dark); font-weight: 800; font-size: 15px; } .sg-price s { color: var(--fm-muted); font-size: 11px; }
.sg-add { position: static !important; width: 34px; height: 34px; flex: none; }
.sg-head { padding: 8px 10px 4px; font: 800 11.5px/1 'Inter', sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--fm-muted); }
.sg-empty { padding: 22px 14px; text-align: center; color: var(--fm-muted); font: 500 14px/1.4 'Inter', sans-serif; }
.sg-ov { position: fixed; inset: 0; z-index: 400; background: #fff; display: flex; flex-direction: column; }
.sg-ov[hidden] { display: none; }
.sg-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; border-bottom: 1px solid var(--fm-beige-dark); }
.sg-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--fm-beige); border-radius: 999px; padding: 0 12px; height: 46px; }
.sg-in { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px 'Inter', 'Noto Sans Bengali', sans-serif; color: var(--fm-charcoal); -webkit-appearance: none; }
.sg-in::-webkit-search-cancel-button { display: none; }
.sg-clr { border: 0; background: rgba(0,0,0,.12); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; }
.sg-x { border: 0; background: none; font: 700 15px 'Inter', sans-serif; color: var(--fm-accent-dark); padding: 8px 4px; cursor: pointer; }
.sg-ov .sg-list { flex: 1; overflow: auto; padding: 8px 10px calc(16px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }
body.sg-open { overflow: hidden; }
.addr-sg { list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid var(--fm-beige-dark); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.14); max-height: 220px; overflow: auto; }
.addr-sg li { padding: 10px 12px; border-radius: 8px; font: 500 14px/1.3 'Inter', sans-serif; cursor: pointer; }
.addr-sg li:hover, .addr-sg li.on { background: var(--fm-beige); }
.addr-sg small { display: block; color: var(--fm-muted); font-size: 12px; }

.ci-free { margin: 6px 0; padding: 10px 12px; border-radius: 12px; background: #e8f5ec; color: #144f2c; font: 600 13.5px/1.3 'Inter', sans-serif; }
.ci-free b { display: inline-block; margin-inline-end: 6px; padding: 2px 8px; border-radius: 999px; background: #1c6b3c; color: #fff; font-size: 11px; letter-spacing: .5px; }
.ci-hint { margin: 6px 0; padding: 9px 12px; border-radius: 12px; background: #fff6dc; color: #6b4e00; font: 600 13px/1.3 'Inter', sans-serif; }

.free-note { font-style: normal; font-weight: 700; color: #1c6b3c; font-size: .92em; }
