/* ==========================================================================
   My Barakah – mobile-first styles
   ========================================================================== */

:root {
  --blue: #175AA0;        /* Primary blue */
  --navy: #0F3F73;        /* Dark navy */
  --bg: #F2F7FC;          /* Light blue background */
  --text: #4B4F58;        /* Body text */
  --heading: #000000;     /* Headings */
  --white: #FFFFFF;
  --footer: #171717;      /* Footer black */

  --blue-50: #E8F1FA;
  --border: #D9E5F1;
  --border-strong: #BCD0E6;
  --muted: #6B7280;
  --danger: #B42318;

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 63, 115, .06);
  --shadow: 0 1px 2px rgba(15, 63, 115, .05), 0 10px 28px rgba(15, 63, 115, .08);
  --shadow-lg: 0 2px 4px rgba(15, 63, 115, .05), 0 18px 44px rgba(15, 63, 115, .14);

  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--heading); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #7FB2E5; outline-offset: 2px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 12px;
  font-size: 17px; font-weight: 500; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-lg { width: 100%; min-height: 58px; font-size: 19px; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; padding: 10px 16px;
  border: 0; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
}
.topbar .more { display: none; font-weight: 400; opacity: .92; }
.topbar .icon { width: 16px; height: 16px; }
.topbar:hover .more { text-decoration: underline; }
@media (min-width: 600px) { .topbar .more { display: inline; } }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.header-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.header-secure .icon { width: 18px; height: 18px; }

/* Logo (HTML version – swap for the hi-res file when supplied) */
.logo { display: inline-flex; flex-direction: column; color: var(--navy); text-decoration: none; line-height: 1; }
.logo-img { height: 52px; width: auto; }
.logo-row { display: flex; align-items: center; gap: 7px; }
.logo-my { font-size: 25px; font-weight: 800; letter-spacing: .01em; }
.logo-icons { width: 88px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logo-name { margin-top: 3px; font-size: 25px; font-weight: 800; letter-spacing: .045em; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #dfe9f3; }
.hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px;
  background: linear-gradient(to bottom, rgba(242, 247, 252, 0), var(--bg));
  pointer-events: none;
}
@media (min-width: 960px) {
  .hero img { aspect-ratio: auto; height: 470px; object-position: center 40%; }
  .hero::after { height: 120px; }
}

/* ---------- Page layout ---------- */
.layout { display: grid; gap: 28px; padding: 20px 0 48px; }
.content { min-width: 0; }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 32px 56px; align-items: start; padding-top: 36px; }
  .hadith { grid-column: 1; grid-row: 1; }
  .donate { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; margin-top: -190px; }
  .content { grid-column: 1; grid-row: 2; }
}

/* ---------- Hadith box ---------- */
.hadith h1 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.hadith h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), #4F95DA); }
.hadith-card {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0; padding: 24px 20px 22px;
  background: radial-gradient(130% 120% at 0% 0%, #2470BF 0%, var(--blue) 38%, var(--navy) 100%);
  border-radius: var(--radius-lg); box-shadow: 0 14px 36px rgba(15, 63, 115, .28);
  color: #fff;
}
.hadith-card::before {   /* geometric pattern */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(../img/pattern.svg) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
          mask-image: radial-gradient(circle at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
}
.hadith-card::after {    /* large decorative star */
  content: ""; position: absolute; right: -38px; bottom: -38px; width: 150px; height: 150px; z-index: -1;
  background: url(../img/pattern.svg) center / 150px 150px no-repeat; opacity: .9;
}
.hadith-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #BFDAF5; }
.hadith-label::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: #7FB2E5; }
.hadith-card blockquote { position: relative; margin: 0; padding-left: 32px; font-size: 19px; font-style: italic; font-weight: 400; line-height: 1.55; color: #fff; }
.hadith-card blockquote::before {
  content: "\201C"; position: absolute; left: -2px; top: -10px;
  font-size: 54px; font-style: normal; font-weight: 700; line-height: 1; color: #7FB2E5;
}
.hadith-card blockquote p { margin: 0; }
.hadith-card figcaption { margin: 14px 0 0 32px; font-size: 14px; font-weight: 500; color: #CFE2F7; }
@media (min-width: 960px) {
  .hadith h1 { font-size: 42px; margin-bottom: 20px; }
  .hadith-card { padding: 28px 28px 24px; }
  .hadith-card blockquote { font-size: 20px; }
}

/* ---------- Donation box ---------- */
.donate { scroll-margin-top: 12px; }
.donate-card {
  position: relative; overflow: hidden;
  padding: 26px 20px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
}
.donate-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--blue) 50%, #4F95DA); }
.donate-card .donate-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.donate-card h2 { font-size: 27px; margin-bottom: 4px; }
.pill { flex: none; padding: 5px 12px; background: var(--blue-50); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); }
.donate-sub { margin-bottom: 18px; font-size: 15px; color: var(--muted); }
.amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; }
.amount { position: relative; display: block; }
.amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount span {
  display: flex; align-items: center; justify-content: center; min-height: 66px;
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 26px; font-weight: 600; color: var(--heading); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.amount span { position: relative; }
.amount:hover span { border-color: var(--border-strong); transform: translateY(-1px); }
.amount input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--navy); box-shadow: 0 6px 16px rgba(23, 90, 160, .16); }
.amount input:checked + span::after {   /* tick badge */
  content: ""; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: pop .25s ease-out;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.amount input:focus-visible + span { outline: 3px solid #7FB2E5; outline-offset: 2px; }

.fund { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 10px; background: var(--bg); border-radius: var(--radius); }
.fund img { width: 66px; height: 66px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.fund strong { display: block; font-size: 18px; font-weight: 500; color: var(--heading); }
.fund span { display: block; font-size: 14px; line-height: 1.4; }

.giftaid-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; font-size: 14px; line-height: 1.45; }
.giftaid-hint .icon { width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }
.giftaid-hint strong { color: var(--navy); }

.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 10px; font-size: 13px; color: var(--muted); text-align: center; }
.secure .icon { width: 15px; height: 15px; }
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pay-badge {
  display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  font-size: 11.5px; font-weight: 700; color: #1A1F36; letter-spacing: .01em;
}
.pay-badge .visa { color: #1A1F71; font-style: italic; font-weight: 800; font-size: 13px; }
.pay-badge .amex { color: #fff; background: #1F72CD; border-radius: 3px; padding: 1px 4px; font-size: 10px; }
.pay-badge .pp-a { color: #003087; font-style: italic; }
.pay-badge .pp-b { color: #0079C1; font-style: italic; margin-left: -3px; }
.mc { display: inline-flex; }
.mc i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.mc i:first-child { background: #EB001B; }
.mc i:last-child { background: #F79E1B; margin-left: -5px; mix-blend-mode: multiply; }

@media (min-width: 960px) {
  .donate-card { padding: 28px 26px 22px; }
  .donate-card h2 { font-size: 30px; }
}

/* ---------- Content sections ---------- */
.block { padding: 32px 0 0; margin-top: 32px; border-top: 1px solid var(--border); }
.block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.block h2 { font-size: 26px; }
.block p a { font-weight: 500; }
.block-lead h2 { font-size: 32px; font-weight: 700; }
.block-lead .lead { font-size: 18px; }
.rule::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; background: var(--blue); border-radius: 3px; }
@media (min-width: 960px) {
  .block h2 { font-size: 30px; }
  .block-lead h2 { font-size: 40px; }
}

/* Share */
.share { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.share h3 { margin-bottom: 12px; font-size: 17px; font-weight: 500; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 46px; height: 46px; padding: 0 16px;
  background: #fff; border: 1px solid var(--border-strong); border-radius: 999px;
  color: var(--navy); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.share-btn:hover { border-color: var(--blue); background: var(--blue-50); }
.share-btn.is-icon { width: 46px; padding: 0; }
.share-btn .icon { width: 19px; height: 19px; }

/* Four essentials */
.essentials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.essential { padding: 22px 14px 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.essential:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.essential .icon {
  box-sizing: content-box; width: 28px; height: 28px; margin: 0 auto 12px; padding: 14px;
  color: var(--blue); stroke-width: 1.7; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff, var(--blue-50) 70%); box-shadow: inset 0 0 0 1px #D2E3F5;
}
.essential h3 { margin-bottom: 6px; font-size: 17px; }
.essential p { margin: 0; font-size: 14px; line-height: 1.5; }
@media (min-width: 720px) { .essentials { grid-template-columns: repeat(4, 1fr); } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 40px; padding: 34px 22px 32px;
  background: radial-gradient(120% 140% at 50% 0%, #2470BF 0%, var(--blue) 30%, var(--navy) 85%);
  color: #DCE7F4; border-radius: var(--radius-xl); text-align: center; box-shadow: 0 16px 40px rgba(15, 63, 115, .28);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/pattern.svg) center / 64px 64px; -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { margin-bottom: 20px; }
.cta-band .btn { background: #fff; color: var(--navy); min-width: 220px; font-weight: 600; }
.cta-band .btn:hover { background: var(--blue-50); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 28px; background: var(--footer); color: #C4C8CE; font-size: 15px; line-height: 1.6; }
.site-footer .logo { color: #fff; margin-bottom: 20px; }
.site-footer p { margin: 0 0 8px; }
.site-footer strong { color: #fff; font-weight: 500; }
.footer-grid { display: grid; gap: 8px; }
.bank { margin: 22px 0 0; border: 1px solid #2E2E2E; border-radius: 12px; }
.bank summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff; font-weight: 500; cursor: pointer; list-style: none;
}
.bank summary::-webkit-details-marker { display: none; }
.bank summary .icon { transition: transform .2s; }
.bank[open] summary .icon { transform: rotate(180deg); }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 0 16px 16px; }
.bank dt { color: #9AA0A8; }
.bank dd { margin: 0; color: #fff; }
.bank dd.tbc { color: #E0B85A; font-style: italic; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #2E2E2E; font-size: 13px; }
.linklike { padding: 0; background: none; border: 0; color: #C4C8CE; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.linklike:hover { color: #fff; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
  .bank { margin-top: 0; }
}

/* ---------- Dialog ---------- */
.modal { width: 100%; max-width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text); }
.modal::backdrop { background: rgba(10, 25, 45, .55); }
.modal-body { position: relative; padding: 28px 22px 22px; }
.modal-body h2 { font-size: 24px; padding-right: 36px; }
.modal-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--navy); }

/* ==========================================================================
   Checkout
   ========================================================================== */
.checkout { padding: 20px 0 56px; }
.ck-wrap { max-width: 1040px; margin: 0 auto; }
.ck-narrow { max-width: 640px; margin: 0 auto; }
.demo-banner { margin: 0 0 16px; padding: 10px 14px; background: #FFF7E0; border: 1px solid #F0D27A; border-radius: 12px; color: #6B4E00; font-size: 14px; line-height: 1.45; }

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 auto 20px; padding: 0; max-width: 640px; list-style: none; }
.stepper li { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.stepper li::before { content: ""; flex-basis: 100%; height: 5px; margin-bottom: 8px; background: #D4E2F0; border-radius: 5px; }
.stepper .is-current, .stepper .is-done { color: var(--heading); }
.stepper .is-current::before, .stepper .is-done::before { background: var(--blue); }
.stepper .is-current { font-weight: 600; }
.step-num { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 600; }
.is-current .step-num { border-style: dashed; color: var(--blue); }
.is-done .step-num { background: var(--blue); border-color: var(--blue); color: #fff; font-size: 0; }
.is-done .step-num::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }

.ck-card { padding: 22px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.ck-card h1 { font-size: 26px; margin-bottom: 6px; }
.ck-card .sub { margin-bottom: 18px; font-size: 15px; }
.ck-card .sub strong { color: var(--heading); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px; padding: 6px 0; border: 0; background: none; color: var(--navy); font-size: 15px; font-weight: 500; }
.back-link .icon { width: 18px; height: 18px; }
@media (min-width: 720px) { .ck-card { padding: 30px 32px; } .ck-card h1 { font-size: 30px; } }

.basket-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--radius); }
.basket-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.basket-item .name { font-weight: 500; color: var(--heading); line-height: 1.3; }
.basket-item .desc { font-size: 14px; line-height: 1.4; }
.basket-item .price { margin-left: auto; font-size: 18px; font-weight: 600; color: var(--heading); }
.change-amount { margin: 16px 0 0; padding: 0; border: 0; }
.change-amount legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--heading); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid var(--border); border-radius: 12px; font-weight: 600; color: var(--heading); cursor: pointer; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid #7FB2E5; outline-offset: 2px; }
.line-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; color: var(--heading); }
.line-row strong { font-size: 20px; font-weight: 600; }
.note { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

/* Gift Aid step */
.ga-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.giftaid-logo { flex: none; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 26px; font-weight: 700; color: #1E2733; letter-spacing: -.02em; line-height: 1; }
.ga-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 4px 0 16px; padding: 18px 12px; background: var(--blue-50); border-radius: 16px; text-align: center; }
.ga-compare .label { display: block; font-size: 13px; color: var(--muted); }
.ga-compare .value { display: block; font-size: 30px; font-weight: 600; color: var(--heading); line-height: 1.15; }
.ga-compare .with .value { color: var(--blue); }
.ga-compare .plus { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #fff; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--navy); }
.ga-arrow { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; border-radius: 50%; color: var(--blue); }
.ga-arrow .icon { width: 18px; height: 18px; }
.check-card { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s; }
.check-card:hover { border-color: var(--border-strong); }
.check-card:has(input:checked) { border-color: var(--blue); background: #F7FBFF; }
.check-card input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.check-card strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 500; color: var(--heading); line-height: 1.4; }
.check-card small { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }
.info-box { margin: 0 0 20px; padding: 14px 16px; background: var(--bg); border-radius: var(--radius); font-size: 14px; }
.info-box h2 { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.info-box ul { margin: 0; padding-left: 18px; }
.info-box li { margin: 2px 0; }

/* Payment step */
.step3-grid { display: grid; gap: 16px; }
.step3-grid > .summary { order: 2; }   /* mobile: payment options first, summary underneath */
.summary { padding: 18px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.summary h2 { font-size: 20px; margin-bottom: 12px; }
.summary .basket-item { margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.summary-row.muted { color: var(--muted); font-size: 14px; }
.summary-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 18px; font-weight: 600; color: var(--heading); }
@media (min-width: 960px) {
  .step3-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
  .step3-grid > .summary { order: 0; }
  .summary { position: sticky; top: 24px; padding: 24px; background: var(--blue-50); border-color: transparent; }
  .summary h2 { font-size: 24px; }
  .summary .basket-item { background: #fff; }
}

.fee-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 16px; border: 2px solid var(--blue); border-radius: var(--radius); background: #F7FBFF; cursor: pointer; font-weight: 500; color: var(--heading); }
.fee-toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: none; }
.fee-toggle .amt { margin-left: auto; font-weight: 600; white-space: nowrap; }
.express { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.express-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border: 0; border-radius: 12px; background: #000; color: #fff; font-size: 16px; font-weight: 600; }
.express-btn:hover { background: #222; }
.express-btn .g { font-weight: 700; background: linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.methods { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 16px; background: #fff; border: 2px solid var(--border-strong); border-radius: var(--radius); color: var(--heading); font-size: 17px; font-weight: 500; text-align: left; transition: border-color .15s; }
.method:hover { border-color: var(--blue); }
.method > .icon { color: var(--navy); }
.method-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; flex: 1; min-width: 0; }
.method .marks { display: inline-flex; align-items: center; gap: 5px; }
.method .pay-badge { height: 22px; padding: 0 6px; }
@media (min-width: 480px) {
  .method-text { flex-direction: row; align-items: center; justify-content: space-between; padding: 0; }
}
.method .pp { font-style: italic; font-weight: 800; font-size: 18px; }
.method .pp b { color: #003087; }
.method .pp i { color: #0079C1; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.secure-line .icon { width: 15px; height: 15px; }

/* Details form */
.group { margin: 0 0 22px; padding: 0 0 22px; border: 0; border-bottom: 1px solid var(--border); }
.group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.group legend { margin-bottom: 4px; padding: 0; font-size: 18px; font-weight: 600; color: var(--heading); }
.group .help-top { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--heading); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px;
  font: inherit; font-size: 17px; color: var(--heading);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9AA3AE; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 90, 160, .18); }
.field input:user-invalid { border-color: var(--danger); }
.field .help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 .field { margin-bottom: 0; }
.prefs { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 10px; }
.pref { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--border-strong); border-radius: 999px; font-size: 15px; cursor: pointer; }
.pref:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--navy); }
.pref input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.giftaid-note { display: flex; gap: 8px; margin: 0 0 14px; padding: 10px 12px; background: var(--blue-50); border-radius: 10px; font-size: 14px; color: var(--navy); }
.form-error { margin: 0 0 14px; padding: 10px 12px; background: #FDECEC; border-radius: 10px; color: var(--danger); font-size: 14px; }
.terms { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.processing { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(242, 247, 252, .92); }
.processing[hidden] { display: none; }
.processing-box { text-align: center; color: var(--navy); font-weight: 500; }
.spinner { width: 44px; height: 44px; margin: 0 auto 14px; border: 4px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Thank-you page
   ========================================================================== */
.ty { padding: 24px 0 56px; }
.ty-wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 20px; }
.ty-card { padding: 30px 20px 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); text-align: center; box-shadow: var(--shadow); }
.ty-check { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; background: var(--blue-50); border-radius: 50%; color: var(--blue); }
.ty-check .icon { width: 34px; height: 34px; stroke-width: 2.5; }
.ty-card h1 { font-size: 30px; font-weight: 700; }
.ty-card .lead { font-size: 18px; color: var(--heading); }
.ty-card .ref { display: inline-block; margin: 4px 0 14px; padding: 4px 12px; background: var(--bg); border-radius: 999px; font-size: 14px; }
.ty-card .small { margin: 0; font-size: 14px; color: var(--muted); }

.monthly { display: grid; gap: 18px; padding: 24px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.monthly h2 { font-size: 26px; font-weight: 700; }
.monthly h2 u { text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.monthly-side { display: grid; gap: 12px; padding: 12px; background: var(--blue-50); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .monthly-side { padding: 16px; } }
.monthly-side .hadith-card { box-shadow: none; padding: 18px 16px; }
.monthly-side .hadith-card blockquote { font-size: 16px; }
.monthly-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.monthly-option { display: flex; flex-direction: column; align-items: center; padding: 16px 8px 12px; background: #fff; border-radius: 16px; text-align: center; }
.monthly-option .price { font-size: 34px; font-weight: 700; color: var(--blue); line-height: 1; }
.monthly-option .per { margin: 4px 0 12px; font-size: 14px; }
.monthly-option .btn { width: 100%; min-height: 44px; font-size: 14.5px; padding: 0 8px; white-space: nowrap; }
.dd-note { margin: 0; padding: 10px 12px; background: #FFF7E0; border-radius: 10px; color: #6B4E00; font-size: 14px; }
.dd-note[hidden] { display: none; }
.monthly-skip { width: 100%; }
@media (min-width: 900px) {
  .monthly { grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px; align-items: center; }
  .monthly h2 { font-size: 34px; }
}
.ty-share { padding: 22px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.ty-share .share { margin: 0; padding: 0; border: 0; }
.ty-share p { margin-bottom: 14px; }

/* ==========================================================================
   Premium layer – badges, stats, callouts, sticky bar, motion
   ========================================================================== */

/* Hero badge */
.hero-badge {
  position: absolute; left: var(--gutter); bottom: 22px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; box-shadow: 0 6px 18px rgba(15, 63, 115, .18);
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.hero-badge .icon { width: 17px; height: 17px; color: var(--blue); }
@media (min-width: 960px) { .hero-badge { left: max(var(--gutter), calc((100% - 1180px) / 2 + var(--gutter))); bottom: 140px; font-size: 15px; } }

/* Donation box extras */
.amount span { transition: border-color .15s, background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.donate .btn-lg { position: relative; overflow: hidden; background: linear-gradient(180deg, #1D66B3, var(--blue)); box-shadow: 0 8px 20px rgba(23, 90, 160, .35); }
.donate .btn-lg:hover { background: linear-gradient(180deg, var(--blue), var(--navy)); }
.donate .btn-lg::after {   /* soft shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); animation: shine 4.5s ease-in-out 1.2s infinite;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.donate .btn-lg .icon { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.16); } 45% { transform: scale(.96); } }

.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 14px; padding: 12px 6px; list-style: none; background: var(--bg); border-radius: var(--radius); }
.trust-row li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--navy); text-align: center; }
.trust-row .icon { width: 20px; height: 20px; color: var(--blue); }

/* Eyebrow labels */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }

/* Stats strip */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.stats li {
  position: relative; overflow: hidden; padding: 16px 14px;
  background: #fff url(../img/pattern-light.svg) right -20px top -20px / 64px 64px no-repeat;
  border: 1px solid var(--border); border-radius: 16px;
}
.stats strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--navy); letter-spacing: -.01em; }
.stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* Vision card */
.vision-card {
  position: relative; overflow: hidden; padding: 26px 22px 24px;
  background: #fff url(../img/pattern-light.svg) 0 0 / 64px 64px;
  border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: var(--radius-lg);
}
.vision-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #fff 45%, rgba(255, 255, 255, .6)); }
.vision-card > * { position: relative; }
.vision-text { font-size: 21px; font-weight: 500; line-height: 1.45; color: var(--heading); }
.vision-card p:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .vision-text { font-size: 24px; } }

/* Callouts (Qur'an references) */
.callout { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 1em; padding: 16px 16px 2px; background: var(--blue-50); border-radius: var(--radius); }
.callout .icon { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--blue); }
.callout p { color: #2F3742; }

/* CTA extras */
.cta-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); color: #fff; }
.cta-icon .icon { width: 24px; height: 24px; }

/* Mobile sticky donate bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15, 63, 115, .12);
  transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
}
.sticky-bar.is-visible { transform: none; visibility: visible; }
.sticky-amount { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left; line-height: 1.2; }
.sticky-label { font-size: 12px; color: var(--muted); }
.sticky-value { font-size: 20px; font-weight: 700; color: var(--heading); }
.sticky-value u { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--blue); text-underline-offset: 3px; }
.sticky-bar .btn { flex: 1; min-height: 50px; font-weight: 600; box-shadow: 0 6px 16px rgba(23, 90, 160, .3); }
@media (max-width: 959px) { body:has(.sticky-bar) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 960px) { .sticky-bar { display: none; } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Thank-you celebration */
.ty-card { position: relative; overflow: hidden; }
.ty-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; background: url(../img/pattern-light.svg) center / 64px 64px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.ty-card > * { position: relative; }
.ty-check { box-shadow: 0 0 0 0 rgba(23, 90, 160, .35); animation: ring 1.8s ease-out .3s 2; }
.ty-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s ease-out .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(23, 90, 160, .35); } 100% { box-shadow: 0 0 0 22px rgba(23, 90, 160, 0); } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: fall 2.6s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x, 0), 340px, 0) rotate(var(--r, 360deg)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ty-check path { stroke-dashoffset: 0; }
}
