/* Forever Rewarded (Salam Legacy) page styles, scoped under .salam-legacy (output by [salam_forever_rewarded]). Brand fonts come from salam-fonts.css. */
/* ============================================================
   SALAM LEGACY — Design System
   Brand: Salam Charity  |  Vibe: charity:water × Apple
   ============================================================ */
/* ------------------------------------------------------------
   BRAND FONT — URW DIN
   When you have the licensed URW DIN woff2 files, drop them next
   to this file and uncomment. The stack below already prefers
   'URW DIN' if it's installed or loaded.
------------------------------------------------------------- */
/*
@font-face { font-family:'URW DIN'; src:url('URWDIN-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'URW DIN'; src:url('URWDIN-Medium.woff2') format('woff2');  font-weight:500 600; font-display:swap; }
@font-face { font-family:'URW DIN'; src:url('URWDIN-Bold.woff2') format('woff2');    font-weight:700 800; font-display:swap; }
*/
.salam-legacy{--yellow: #FFD100;
  --yellow-soft: #FFDD40;
  --yellow-deep: #E6B800;
  --font: "URW DIN", "D-DIN", "Bahnschrift", "DIN Alternate", "DIN 2014", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;}
/* ---------- DARK THEME (default) — "their light is still here" ---------- */
.salam-legacy[data-theme="dark"]{--bg: #08080A;
  --bg-elevated: #121214;
  --bg-card: rgba(255,255,255,0.045);
  --bg-card-hover: rgba(255,255,255,0.08);
  --bg-input: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text: #F5F5F7;
  --text-2: #A8A8B0;
  --text-3: #6E6E76;
  --glow-opacity: 0.14;
  --glow-opacity-strong: 0.22;
  --card-shadow: 0 20px 60px rgba(0,0,0,0.5);
  --summary-bg: rgba(18,18,22,0.82);
  --nav-bg: rgba(8,8,10,0.72);
  --logo-fill: #FFD100;
  --logo-smile: #08080A;
  --btn-primary-text: #0A0A0A;
  --tick: #FFD100;}
/* ---------- LIGHT THEME — charity:water airy ---------- */
.salam-legacy[data-theme="light"]{--bg: #FBFAF7;
  --bg-elevated: #FFFFFF;
  --bg-card: rgba(255,255,255,0.9);
  --bg-card-hover: #FFFFFF;
  --bg-input: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.2);
  --text: #1D1D1F;
  --text-2: #55555C;
  --text-3: #90909A;
  --glow-opacity: 0.20;
  --glow-opacity-strong: 0.30;
  --card-shadow: 0 16px 50px rgba(29,29,31,0.09);
  --summary-bg: rgba(255,255,255,0.85);
  --nav-bg: rgba(251,250,247,0.75);
  --logo-fill: #FFD100;
  --logo-smile: #1D1D1F;
  --btn-primary-text: #1D1D1F;
  --tick: #C79B00;}
.salam-legacy *{margin: 0; padding: 0; box-sizing: border-box;}
html{scroll-behavior: smooth;}
.salam-legacy{font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
  min-height: 100vh;}
/* ============ BACKDROP — full-bleed scene per legacy ============ */
.salam-legacy[data-theme="dark"]{--bd-filter: brightness(0.52) saturate(1.08);
  --veil: linear-gradient(180deg,
      rgba(8,8,10,0.22) 0%,
      rgba(8,8,10,0.60) 32%,
      rgba(8,8,10,0.86) 60%,
      #08080A 90%);}
.salam-legacy[data-theme="light"]{--bd-filter: saturate(1.04);
  --veil: linear-gradient(180deg,
      rgba(251,250,247,0.14) 0%,
      rgba(251,250,247,0.58) 32%,
      rgba(251,250,247,0.86) 60%,
      #FBFAF7 90%);}
.salam-legacy #backdrop{position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;}
.salam-legacy .bd-layer{position: absolute; inset: -3.5%;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  transition: opacity 1.5s var(--ease), filter 0.6s;
  filter: var(--bd-filter);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.05);
  will-change: transform, opacity;}
.salam-legacy .bd-layer.show{opacity: 1;}
.salam-legacy .bd-veil{position: absolute; inset: 0;
  background: var(--veil);
  transition: background 0.6s var(--ease);}
/* ============ THE LIGHT — mouse-following glow ============ */
.salam-legacy #light-layer{position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%),
      rgba(255, 209, 0, var(--glow-opacity)), transparent 65%),
    radial-gradient(1200px circle at var(--mx, 50%) var(--my, 30%),
      rgba(255, 209, 0, calc(var(--glow-opacity) * 0.35)), transparent 70%);
  transition: opacity 1.2s var(--ease);}
.salam-legacy #light-layer.strong{background:
    radial-gradient(700px circle at var(--mx, 50%) var(--my, 30%),
      rgba(255, 209, 0, var(--glow-opacity-strong)), transparent 65%),
    radial-gradient(1400px circle at var(--mx, 50%) var(--my, 30%),
      rgba(255, 209, 0, calc(var(--glow-opacity-strong) * 0.35)), transparent 70%);}
/* soft drifting light specks */
.salam-legacy .speck{position: absolute;
  bottom: -12px;
  border-radius: 50%;
  background: var(--yellow);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: sl-rise linear infinite;}
@keyframes sl-rise{0%   { transform: translateY(0) translateX(0); opacity: 0; }
  12%  { opacity: var(--speck-o, 0.35); }
  85%  { opacity: var(--speck-o, 0.35); }
  100% { transform: translateY(-108vh) translateX(var(--drift, 30px)); opacity: 0; }}
/* ============ NAV ============ */
.salam-legacy nav{position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.05);
  transition: background 0.6s var(--ease);}
.salam-legacy .nav-brand{display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none;}
.salam-legacy .logo-slot{display: flex; align-items: center;}
.salam-legacy .logo-slot svg, .salam-legacy .logo-slot img{width: 36px; height: 36px; display: block;}
.salam-legacy .nav-brand .brand-name{font-weight: 700; font-size: 17px; letter-spacing: -0.01em;}
.salam-legacy .nav-links{display: flex; align-items: center; gap: 34px; margin-right: auto; margin-left: 26px;}
.salam-legacy .nav-links a{font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.25s;}
.salam-legacy .nav-links a:hover{color: var(--text);}
.salam-legacy .nav-right{display: flex; align-items: center; gap: 12px; flex: none;}
.salam-legacy .nav-give{font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--yellow);
  color: #111;
  cursor: pointer;
  transition: all 0.3s var(--ease);}
.salam-legacy .nav-give:hover{background: var(--yellow-soft); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,209,0,0.4);}
.salam-legacy #theme-toggle{display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);}
.salam-legacy #theme-toggle:hover{border-color: var(--border-strong); color: var(--text);}
/* ============ PROGRESS ============ */
.salam-legacy #progress{position: sticky;
  top: 68px; left: 0; right: 0;
  z-index: 99;
  height: 2px;
  background: transparent;}
.salam-legacy #progress-fill{height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow));
  border-radius: 0 2px 2px 0;
  transition: width 0.8s var(--ease);
  box-shadow: 0 0 12px rgba(255,209,0,0.5);}
/* ============ LAYOUT ============ */
.salam-legacy #app{position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;}
.salam-legacy .with-summary{display: block; max-width: 860px; margin: 0 auto;}
.salam-legacy .summary-slot{display: none;}
/* ============ STEPS / SECTIONS ============ */
.salam-legacy .step{display: none;
  min-height: 100vh;
  padding: 130px 0 170px;
  animation: none;
  text-align: center;
  position: relative;}
.salam-legacy .step.active{display: block;}
.salam-legacy #step-0.active{display: flex; flex-direction: column; justify-content: center;}
/* hero mark + expanding water rings */
.salam-legacy .hero-visual{position: relative; width: 116px; height: 116px; margin: 0 auto 36px;}
.salam-legacy .hero-visual .mark{position: relative; z-index: 2; width: 100%; height: 100%;
  filter: drop-shadow(0 14px 44px rgba(255,209,0,0.45));
  animation: sl-heroFloat 6s ease-in-out infinite;}
@keyframes sl-heroFloat{0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); }}
.salam-legacy .ring{position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,209,0,0.55);
  animation: sl-ringExpand 4.2s cubic-bezier(0.2,0.6,0.35,1) infinite;
  pointer-events: none;}
.salam-legacy .ring:nth-child(2){animation-delay: 1.4s;}
.salam-legacy .ring:nth-child(3){animation-delay: 2.8s;}
@keyframes sl-ringExpand{0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.1); opacity: 0; }}
.salam-legacy #step-0::before{content: "";
  position: absolute;
  top: 4%; left: 50%; transform: translateX(-50%);
  width: min(980px, 96vw); height: 560px;
  background: radial-gradient(closest-side, rgba(255,209,0,0.17), transparent 72%);
  animation: sl-breathe 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;}
@keyframes sl-breathe{0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.07); }}
/* trust strip — charity:water style proof row */
.salam-legacy .trust{display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 38px;
  margin: 60px auto 0;}
.salam-legacy .trust div{display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); letter-spacing: 0.03em;}
.salam-legacy .trust .t-dot{width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex: none; box-shadow: 0 0 10px rgba(255,209,0,0.6);}
.salam-legacy .trust b{color: var(--text);}
.salam-legacy .step.entering{animation: sl-stepIn 0.9s var(--ease) both;}
@keyframes sl-stepIn{from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }}
.salam-legacy .step.leaving{animation: sl-stepOut 0.4s var(--ease) both;}
@keyframes sl-stepOut{from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-24px); }}
.salam-legacy .step-label{display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;}
.salam-legacy .step-label .dot{width: 7px; height: 7px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255,209,0,0.7);}
.salam-legacy h1, .salam-legacy h2{letter-spacing: -0.035em; line-height: 1.06; font-weight: 800;}
.salam-legacy h1{font-size: clamp(38px, 6.4vw, 76px);}
.salam-legacy h2{font-size: clamp(30px, 4.6vw, 54px);}
.salam-legacy .subtext{font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 620px;
  margin: 20px auto 0;
  font-weight: 450;}
/* the blank in the hero */
.salam-legacy .blank{display: inline-block;
  min-width: 5.2ch;
  border-bottom: 4px solid var(--yellow);
  color: var(--yellow);
  padding: 0 6px;
  transition: all 0.4s var(--ease);
  white-space: nowrap;}
.salam-legacy .blank.filled{animation: sl-fillGlow 0.7s var(--ease);}
@keyframes sl-fillGlow{0% { opacity: 0; transform: translateY(10px); text-shadow: 0 0 30px rgba(255,209,0,0.9); }
  100% { opacity: 1; transform: translateY(0); text-shadow: 0 0 0 rgba(255,209,0,0); }}
/* ============ CHIPS (relation picker) ============ */
.salam-legacy .chips{display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 44px auto 0;
  max-width: 720px;}
.salam-legacy .chip{font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  backdrop-filter: blur(8px);}
.salam-legacy .chip:hover{border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,209,0,0.15);}
.salam-legacy .chip.selected{background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  box-shadow: 0 10px 40px rgba(255,209,0,0.35);}
/* hadith footnote on hero */
.salam-legacy .hadith{margin: 64px auto 0;
  max-width: 620px;
  padding: 30px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  position: relative;}
.salam-legacy .hadith::before{content: "";
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 3px; border-radius: 3px;
  background: var(--yellow);}
.salam-legacy .hadith p{font-size: 15px; line-height: 1.7; color: var(--text-2); font-style: italic;}
.salam-legacy .hadith cite{display: block; margin-top: 10px; font-size: 12.5px; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600;}
.salam-legacy .hadith .arabic{font-family: var(--font-arabic); font-size: 21px; font-style: normal; color: var(--text); margin-bottom: 10px; line-height: 1.9;}
/* ============ CARDS (legacy + tiers) ============ */
.salam-legacy .cards{display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
  margin-top: 44px;}
.salam-legacy .card{position: relative;
  text-align: center;
  font-family: var(--font);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.4s var(--ease);
  backdrop-filter: blur(10px);
  overflow: hidden;}
.salam-legacy .card::after{content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--cx, 50%) var(--cy, 0%), rgba(255,209,0,0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;}
.salam-legacy .card:hover::after{opacity: 1;}
.salam-legacy .card:hover{transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);}
.salam-legacy .card.selected{border-color: var(--yellow);
  box-shadow: 0 0 0 1.5px var(--yellow), 0 18px 50px rgba(255,209,0,0.16);}
.salam-legacy .card.selected .card-check{opacity: 1; transform: scale(1);}
.salam-legacy .card-check{position: absolute;
  top: 20px; right: 20px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  opacity: 0; transform: scale(0.5);
  transition: all 0.35s var(--ease);}
.salam-legacy .card-icon{font-size: 30px; margin-bottom: 16px; display: block; filter: grayscale(0.1);}
.salam-legacy .card h3{font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;}
.salam-legacy .card .card-line{font-size: 14.5px; line-height: 1.55; color: var(--text-2); font-weight: 450;}
.salam-legacy .card .card-meta{margin-top: 16px; font-size: 12px; color: var(--text-3); font-weight: 600; letter-spacing: 0.04em;}
/* tier cards */
.salam-legacy .tier-price{font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px;}
.salam-legacy .tier-price .per{font-size: 13px; color: var(--text-3); font-weight: 600;}
.salam-legacy .tier-badge{display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #111;
  background: var(--yellow);
  border-radius: 100px;
  padding: 4px 11px;
  margin-bottom: 14px;}
.salam-legacy .tier-meta-row{display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 7px; font-size: 13px; color: var(--text-2);}
.salam-legacy .tier-meta-row svg{width: 14px; height: 14px; flex: none; opacity: 0.7;}
/* "what did they love" strip */
.salam-legacy .love-strip{margin-top: 56px;}
.salam-legacy .love-strip .strip-q{font-size: 15px; font-weight: 650; color: var(--text-2); margin-bottom: 14px;}
.salam-legacy .love-tags{display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;}
.salam-legacy .love-tag{font-family: var(--font);
  font-size: 13.5px; font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);}
.salam-legacy .love-tag:hover{border-color: var(--yellow); color: var(--text); border-style: solid;}
/* custom amount */
.salam-legacy .custom-amount{margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;}
.salam-legacy .custom-amount label{font-size: 14px; font-weight: 600; color: var(--text-2);}
.salam-legacy .amount-input-wrap{position: relative;}
.salam-legacy .amount-input-wrap .cur{position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--text-2); font-size: 16px;}
.salam-legacy #custom-amount-input{width: 170px;
  padding: 14px 16px 14px 36px;
  font-family: var(--font);
  font-size: 16px; font-weight: 700;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: all 0.3s;}
.salam-legacy #custom-amount-input:focus{outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,209,0,0.15);}
/* ============ FORMS ============ */
.salam-legacy .form-grid{margin: 44px auto 0; display: grid; gap: 22px; max-width: 560px;}
.salam-legacy .field label{display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 9px; color: var(--text-2); letter-spacing: 0.01em;}
.salam-legacy .field{text-align: center;}
.salam-legacy .field input[type="text"], .salam-legacy .field input[type="email"]{text-align: center;}
.salam-legacy .field label .opt{color: var(--text-3); font-weight: 500;}
.salam-legacy .field input[type="text"], .salam-legacy .field input[type="email"], .salam-legacy .field textarea{width: 100%;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: all 0.3s var(--ease);
  resize: vertical;}
.salam-legacy .field input:focus, .salam-legacy .field textarea:focus{outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255,209,0,0.14);
  background: var(--bg-elevated);}
.salam-legacy .field .hint{font-size: 12.5px; color: var(--text-3); margin-top: 7px;}
/* photo upload */
.salam-legacy .photo-drop{display: flex; align-items: center; gap: 18px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
  padding: 18px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s var(--ease);}
.salam-legacy .photo-drop:hover{border-color: var(--yellow); background: var(--bg-card);}
.salam-legacy .photo-preview{width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex: none;
  border: 2px solid var(--border);
  transition: all 0.4s var(--ease);}
.salam-legacy .photo-preview img{width: 100%; height: 100%; object-fit: cover;}
.salam-legacy .photo-preview.has-photo{border-color: var(--yellow); box-shadow: 0 0 24px rgba(255,209,0,0.35);}
.salam-legacy .photo-drop .pd-text{font-size: 14px; color: var(--text-2); font-weight: 550;}
.salam-legacy .photo-drop .pd-text b{color: var(--text);}
/* checkbox */
.salam-legacy .check-row{display: flex; gap: 13px; align-items: flex-start; cursor: pointer; text-align: left; max-width: 480px; margin: 0 auto;}
.salam-legacy .check-row input{display: none;}
.salam-legacy .check-box{width: 22px; height: 22px; flex: none;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
  margin-top: 1px;
  font-size: 13px; font-weight: 800; color: #111;}
.salam-legacy .check-row input:checked + .check-box{background: var(--yellow); border-color: var(--yellow);}
.salam-legacy .check-row .check-text{font-size: 14px; line-height: 1.55; color: var(--text-2);}
/* ============ BUTTONS ============ */
.salam-legacy .btn-row{display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; flex-wrap: wrap;}
.salam-legacy .btn{font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 17px 36px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  letter-spacing: -0.01em;}
.salam-legacy .btn-primary{background: var(--yellow);
  color: var(--btn-primary-text);
  box-shadow: 0 10px 34px rgba(255,209,0,0.3);}
.salam-legacy .btn-primary:hover{transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255,209,0,0.45); background: var(--yellow-soft);}
.salam-legacy .btn-primary:active{transform: translateY(0);}
.salam-legacy .btn-primary:disabled{opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none;}
.salam-legacy .btn-ghost{background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);}
.salam-legacy .btn-ghost:hover{color: var(--text); border-color: var(--border-strong);}
/* ============ LEGACY BAR (Apple buy-bar) + SUMMARY SHEET ============ */
.salam-legacy #legacy-bar{position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(160%);
  z-index: 96;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px 13px 24px;
  border-radius: 100px;
  background: var(--summary-bg);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.6s var(--ease), box-shadow 0.3s;
  max-width: calc(100vw - 32px);
  white-space: nowrap;}
.salam-legacy.bar-visible #legacy-bar{transform: translateX(-50%) translateY(0);}
.salam-legacy #legacy-bar:hover{box-shadow: 0 18px 50px rgba(255,209,0,0.22);}
.salam-legacy #legacy-bar.pulse{animation: sl-barPulse 0.6s var(--ease);}
@keyframes sl-barPulse{0% { box-shadow: 0 0 0 0 rgba(255,209,0,0.45); }
  100% { box-shadow: 0 0 0 16px rgba(255,209,0,0); }}
.salam-legacy #bar-mini{font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis;}
.salam-legacy #bar-amt{font-size: 16px; font-weight: 800; color: var(--text);}
.salam-legacy .bar-cta{font-size: 13px; font-weight: 700;
  background: var(--yellow); color: #111;
  padding: 9px 16px; border-radius: 100px;
  flex: none;}
.salam-legacy #legacy-sheet{position: fixed; inset: 0;
  z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);}
.salam-legacy #legacy-sheet.open{opacity: 1; pointer-events: auto;}
.salam-legacy .sheet-card{width: 100%; max-width: 420px;
  max-height: 84vh; overflow-y: auto;
  transform: translateY(26px);
  transition: transform 0.45s var(--ease);}
.salam-legacy #legacy-sheet.open .sheet-card{transform: translateY(0);}
.salam-legacy .sheet-close{display: block;
  margin: 14px auto 0;
  background: transparent; border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--font); font-size: 14px; font-weight: 650;
  cursor: pointer; padding: 8px 16px;}
.salam-legacy #summary{background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--card-shadow);
  text-align: left;}
.salam-legacy #summary .sum-title{font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;}
.salam-legacy .sum-photo-row{display: flex; align-items: center; gap: 14px; margin-bottom: 18px;}
.salam-legacy #sum-photo{width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-input);
  display: none;
  overflow: hidden;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 20px rgba(255,209,0,0.3);}
.salam-legacy #sum-photo img{width: 100%; height: 100%; object-fit: cover;}
.salam-legacy .sum-row{display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  gap: 14px;}
.salam-legacy .sum-row:last-of-type{border-bottom: none;}
.salam-legacy .sum-row .k{color: var(--text-3); font-weight: 550; flex: none;}
.salam-legacy .sum-row .v{font-weight: 650; text-align: right; color: var(--text); transition: all 0.3s;}
.salam-legacy .sum-row .v.empty{color: var(--text-3); font-weight: 450; font-style: italic;}
.salam-legacy .sum-total{margin-top: 14px;
  padding-top: 18px;
  border-top: 1.5px solid var(--border-strong);
  display: flex; justify-content: space-between; align-items: baseline;}
.salam-legacy .sum-total .k{font-size: 15px; font-weight: 700;}
.salam-legacy .sum-total .v{font-size: 28px; font-weight: 800; letter-spacing: -0.03em;}
.salam-legacy .sum-note{margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--text-3);}
/* ============ CHECKOUT (Apple Pay style) ============ */
.salam-legacy .pay-sheet{max-width: 560px;
  margin: 44px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px);}
.salam-legacy .pay-methods{display: grid; gap: 12px; margin-top: 8px;}
.salam-legacy .pay-btn{display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  padding: 17px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 16.5px; font-weight: 650;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;}
.salam-legacy .pay-apple{background: var(--text); color: var(--bg);}
.salam-legacy .pay-apple:hover{transform: translateY(-1.5px);}
.salam-legacy .pay-card{background: var(--yellow); color: #111;}
.salam-legacy .pay-card:hover{transform: translateY(-1.5px); box-shadow: 0 10px 30px rgba(255,209,0,0.35);}
.salam-legacy .pay-secure{display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 12px; color: var(--text-3); font-weight: 550;}
/* ============ TRACKER DASHBOARD ============ */
.salam-legacy .tracker-hero{text-align: center; max-width: 680px; margin: 0 auto;}
.salam-legacy .tracker-hero .big-check{width: 84px; height: 84px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 12px rgba(255,209,0,0.12), 0 0 80px rgba(255,209,0,0.45);
  animation: sl-checkPop 0.8s var(--ease) both 0.3s;}
@keyframes sl-checkPop{0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }}
.salam-legacy .big-check svg{width: 38px; height: 38px;}
.salam-legacy .track-stages{max-width: 760px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;}
.salam-legacy .track-line{position: absolute;
  top: 17px; left: 10%; right: 10%;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  z-index: 0;}
.salam-legacy .track-line-fill{height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow));
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(255,209,0,0.6);
  transition: width 1.4s var(--ease);}
.salam-legacy .stage{position: relative; z-index: 1; text-align: center;}
.salam-legacy .stage-dot{width: 36px; height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: var(--text-3);
  transition: all 0.6s var(--ease);}
.salam-legacy .stage.done .stage-dot, .salam-legacy .stage.current .stage-dot{background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
  box-shadow: 0 0 22px rgba(255,209,0,0.5);}
.salam-legacy .stage.current .stage-dot{animation: sl-dotPulse 2.2s ease-in-out infinite;}
@keyframes sl-dotPulse{0%, 100% { box-shadow: 0 0 0 0 rgba(255,209,0,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(255,209,0,0); }}
.salam-legacy .stage-name{margin-top: 12px; font-size: 12px; font-weight: 650; color: var(--text-2); line-height: 1.35; padding: 0 6px;}
.salam-legacy .stage.done .stage-name, .salam-legacy .stage.current .stage-name{color: var(--text);}
@media (max-width: 640px){
  .salam-legacy .stage-name{font-size: 10px;}
}
/* rewards feed */
.salam-legacy .rewards-feed{max-width: 620px;
  margin: 70px auto 0;}
.salam-legacy .rewards-feed .feed-title{display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;}
.salam-legacy .live-dot{width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
  animation: sl-liveBlink 1.6s ease-in-out infinite;}
@keyframes sl-liveBlink{0%,100% { opacity: 1; } 50% { opacity: 0.25; }}
.salam-legacy .feed-item{display: flex; gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  animation: sl-feedIn 0.7s var(--ease) both;
  backdrop-filter: blur(8px);}
@keyframes sl-feedIn{from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }}
.salam-legacy .feed-item .fi-icon{width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  background: rgba(255,209,0,0.13);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;}
.salam-legacy .feed-item .fi-text{font-size: 14.5px; line-height: 1.5; font-weight: 550;}
.salam-legacy .feed-item .fi-time{font-size: 12px; color: var(--text-3); margin-top: 3px; font-weight: 500;}
/* dua card on dashboard */
.salam-legacy .dua-card{max-width: 620px;
  margin: 56px auto 0;
  text-align: center;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,209,0,0.07), transparent 60%);}
.salam-legacy .dua-card .arabic{font-family: var(--font-arabic); font-size: 26px; line-height: 2; margin-bottom: 14px;}
.salam-legacy .dua-card p{font-size: 15px; color: var(--text-2); line-height: 1.6; font-style: italic;}
/* ============ FOOTER ============ */
.salam-legacy footer{position: relative; z-index: 1;
  margin-top: 40px;
  padding: 44px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.8;}
.salam-legacy footer .f-logo{display: flex; justify-content: center; margin-bottom: 14px;}
.salam-legacy footer .f-logo svg{width: 42px; height: 42px;}
/* ============ MOBILE ============ */
@media (max-width: 640px){
  .salam-legacy nav{height: 58px; padding: 0 14px; gap: 10px;}
  .salam-legacy .nav-links{display: none;}
  .salam-legacy .logo-slot svg, .salam-legacy .logo-slot img{width: 30px; height: 30px;}
  .salam-legacy .nav-brand .brand-name{font-size: 14.5px;}
  .salam-legacy .nav-give{padding: 9px 16px; font-size: 11.5px;}
  .salam-legacy #progress{top: 58px;}
  .salam-legacy #theme-toggle{padding: 7px 10px; font-size: 11px;}
  .salam-legacy #theme-toggle #theme-word{display: none;}
  .salam-legacy .step{padding: 104px 0 170px;}
  .salam-legacy h1{font-size: clamp(34px, 10.5vw, 46px);}
  .salam-legacy h2{font-size: clamp(27px, 8vw, 38px);}
  .salam-legacy .subtext{font-size: 15.5px;}
  .salam-legacy .hero-visual{width: 88px; height: 88px; margin-bottom: 28px;}
  .salam-legacy #step-0::before{height: 380px;}
  .salam-legacy .trust{gap: 10px 22px; margin-top: 44px;}
  .salam-legacy .trust div{font-size: 12px;}
  .salam-legacy .chips{gap: 9px;}
  .salam-legacy .chip{padding: 12px 18px; font-size: 14px;}
  .salam-legacy .cards{grid-template-columns: 1fr; gap: 13px; margin-top: 34px;}
  .salam-legacy .card{padding: 24px 20px;}
  .salam-legacy .btn-row{flex-direction: column-reverse; gap: 12px; margin-top: 38px;}
  .salam-legacy .btn{width: 100%; padding: 17px 20px;}
  .salam-legacy .btn-ghost{border: none;}
  .salam-legacy .hadith{padding: 24px 20px; margin-top: 48px;}
  .salam-legacy .hadith .arabic{font-size: 18px;}
  .salam-legacy .custom-amount{flex-direction: column; gap: 10px;}
  .salam-legacy #custom-amount-input{width: 200px;}
  .salam-legacy .track-stages{margin-top: 48px;}
  .salam-legacy .stage-dot{width: 30px; height: 30px; font-size: 12px;}
  .salam-legacy .stage-name{font-size: 9.5px; padding: 0 3px; margin-top: 9px;}
  .salam-legacy .track-line{top: 14px;}
  .salam-legacy .pay-sheet{padding: 22px 18px;}
  .salam-legacy .feed-item{padding: 15px 16px;}
  .salam-legacy .dua-card{padding: 28px 20px;}
  .salam-legacy .dua-card .arabic{font-size: 21px;}
  .salam-legacy #legacy-bar{left: 14px; right: 14px;
    transform: translateY(160%);
    justify-content: space-between;
    padding: 11px 12px 11px 18px;
    bottom: max(14px, env(safe-area-inset-bottom));}
  .salam-legacy.bar-visible #legacy-bar{transform: translateY(0);}
  .salam-legacy #bar-mini{font-size: 13px;}
  .salam-legacy #legacy-sheet{align-items: flex-end; padding: 12px;}
}
/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .salam-legacy *, .salam-legacy *::before, .salam-legacy *::after{animation-duration: 0.001s !important; transition-duration: 0.001s !important;}
}
/* ============ WORDPRESS INTEGRATION ============ */
.salam-legacy{position:relative;overflow:hidden;text-align:left;line-height:1.4;width:100%}
.salam-legacy #app{position:relative;z-index:2}
.salam-legacy button,.salam-legacy input,.salam-legacy textarea{font:inherit;letter-spacing:inherit;text-transform:none;box-shadow:none}
.salam-legacy a,.salam-legacy a:hover{text-decoration:none;border-bottom:none;box-shadow:none}
.salam-legacy h1,.salam-legacy h2,.salam-legacy h3,.salam-legacy p{margin:0;text-transform:none}
.salam-legacy h1,.salam-legacy h2,.salam-legacy h3{font-family:var(--font)}
.salam-legacy img{border:none;box-shadow:none}
.salam-legacy.no-nav #app{padding-top:40px}
.admin-bar .salam-legacy nav{top:32px}
@media(max-width:782px){.admin-bar .salam-legacy nav{top:46px}}
