/* =============================================================
   AJK Welfare — Fundraising
   Complete visual redesign (matches Figma "Desktop - 15/17/18/16/20")
   The application logic is untouched: every id, handler and class
   the JavaScript writes is still present and styled here.
   ============================================================= */

/* -------------------------------------------------------------
   1. Tokens
   ------------------------------------------------------------- */
:root{
  --brand:#0071e3;
  --brand-hover:#0062c4;
  --navy:#0a1f33;
  --navy-2:#122b40;
  --ink:#1d1d1f;
  --muted:#6e6e73;
  --soft:#f5f5f7;
  --soft-2:#fafafb;
  --footer:#fafafb;
  --line:#e8e8ed;
  --line-strong:#dcdce2;

  --radius-sm:10px;
  --radius-md:14px;
  --radius-lg:20px;
  --radius-xl:24px;

  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --shadow-md:0 10px 28px rgba(10,31,51,.08);
  --shadow-lg:0 24px 48px rgba(10,31,51,.14);

  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-display:'Inter Tight','Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --transition-fast:.18s ease;

  --page:1308px;
  --head:118px;

  /* legacy names still referenced by inline styles in the scripts */
  --text-main:var(--ink);
  --text-muted:var(--muted);
  --text-color:var(--ink);
  --primary-color:var(--brand);
  --primary-light:#eaf2ff;
  --bg-color:#fff;
  --border-color:var(--line);
  --danger-color:#d93b3b;
  --error-color:#c62828;
  --success-color:#1a9c53;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg-color);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* -------------------------------------------------------------
   2. Layout helpers
   ------------------------------------------------------------- */
.page-container,
.fr-container{
  width:min(var(--page),100%);
  margin-inline:auto;
}
.page-container{padding:0 0 96px}
.page-container > .page-header{margin-top:20px}

.desktop-only{display:initial}
.mobile-only{display:none!important}

/* -------------------------------------------------------------
   3. Buttons, pills, chips
   ------------------------------------------------------------- */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-create,
.btn-login,
.btn-danger,
.btn-approve,
.btn-decline,
.btn-card-action,
.btn-cta-white{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid transparent;
  border-radius:999px;
  font-family:var(--font);
  font-weight:600;
  font-size:15px;
  line-height:20px;
  cursor:pointer;
  white-space:nowrap;
  transition:background var(--transition-fast),color var(--transition-fast),
             border-color var(--transition-fast),box-shadow var(--transition-fast),
             transform var(--transition-fast);
}
.btn-primary,
.btn-create{
  min-height:46px;
  padding:12px 24px;
  background:var(--brand);
  color:#fff;
  box-shadow:0 1px 2px rgba(0,113,227,.2);
}
.btn-primary:hover,
.btn-create:hover{background:var(--brand-hover);transform:translateY(-1px);box-shadow:0 10px 22px rgba(0,113,227,.24)}
.btn-primary:active,
.btn-create:active{transform:none}

.btn-secondary{
  min-height:44px;
  padding:11px 22px;
  background:#fff;
  color:var(--ink);
  border-color:var(--line-strong);
}
.btn-secondary:hover{border-color:#c4ccd6;background:#fbfbfd}

.btn-outline{
  min-height:44px;
  padding:11px 22px;
  background:transparent;
  color:var(--ink);
  border-color:var(--line-strong);
}
.btn-outline:hover{background:var(--ink);color:#fff;border-color:var(--ink)}

.btn-login{
  min-height:54px;
  padding:0 19px;
  background:#fff;
  color:var(--ink);
  border-color:var(--line-strong);
  font-size:16px;
}
.btn-login:hover{border-color:var(--ink)}

.btn-danger{
  min-height:44px;
  padding:11px 20px;
  background:#fff;
  color:var(--danger-color);
  border-color:#f0c9c9;
}
.btn-danger:hover{background:#fdf1f1}

.btn-approve,
.btn-decline{
  min-height:38px;
  padding:8px 16px;
  font-size:13px;
  border-radius:999px;
}
.btn-approve{background:#e9f8ef;color:#137a3f;border-color:#bfe9d0}
.btn-approve:hover{background:#d6f2e1}
.btn-decline{background:#fdf0f0;color:#bd3232;border-color:#f3cccc}
.btn-decline:hover{background:#fbe3e3}

.btn-cta-white{
  min-height:44px;
  padding:11px 20px;
  background:rgba(255,255,255,.16);
  color:#fff;
  border-color:rgba(255,255,255,.28);
  backdrop-filter:blur(10px);
}
.btn-cta-white:hover{background:#fff;color:var(--ink);border-color:#fff}

.chip,
.badge-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:30px;
  padding:0 13px;
  border-radius:999px;
  background:var(--primary-light);
  color:var(--brand);
  font-size:11px;
  line-height:1;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.badge-pill{background:#fdf3e3;color:#b45309}
.badge-pill ion-icon{font-size:13px}

/* -------------------------------------------------------------
   4. Header
   ------------------------------------------------------------- */
header{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(255,255,255,.9);
  -webkit-backdrop-filter:saturate(180%) blur(16px);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid transparent;
  transition:border-color .25s,box-shadow .25s;
}
header.is-scrolled{border-bottom-color:rgba(0,0,0,.07);box-shadow:0 8px 26px rgba(10,31,51,.05)}

.navbar{
  width:min(var(--page),100%);
  margin-inline:auto;
  height:var(--head);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo-container{display:flex;align-items:center;flex:none}
.logo-img{width:166px;height:auto}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:36px;
  margin-inline:auto;
}
.nav-link{
  position:relative;
  font-size:16px;
  line-height:22px;
  font-weight:500;
  color:var(--ink);
  letter-spacing:-.01em;
  padding:6px 0;
  transition:color var(--transition-fast);
}
.nav-link:hover{color:var(--brand)}
.nav-link.active{color:var(--brand)}
.nav-link.active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-2px;
  height:2px;
  border-radius:2px;
  background:var(--brand);
}
.nav-links .btn-create{margin-left:6px}
.nav-links .profile-pill{margin-left:4px}

.header-actions{display:flex;align-items:center;gap:10px;flex:none}
.auth-slot{display:flex;align-items:center;gap:10px}

.profile-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:0 18px 0 6px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  transition:border-color var(--transition-fast),box-shadow var(--transition-fast);
}
.profile-pill:hover{border-color:#c4ccd6;box-shadow:var(--shadow-sm)}
.profile-avatar{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,#e7eefb,#d7e5fb);
  color:var(--brand);
  font-size:17px;
  font-weight:700;
  overflow:hidden;
  flex:none;
}
.profile-avatar ion-icon{font-size:20px}
.profile-avatar img{width:100%;height:100%;object-fit:cover}

/* Mobile app bar (kept for the page scripts / detail screens) */
.mobile-app-bar{
  display:none;
  align-items:center;
  gap:12px;
  height:56px;
  padding:0 18px;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:88;
}
.mobile-app-bar-back{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:14px;
  font-weight:500;
  color:var(--ink);
  cursor:pointer;
}
.mobile-app-bar-back ion-icon{font-size:20px}
.mobile-app-bar-title{
  flex:1;
  text-align:center;
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* -------------------------------------------------------------
   5. Page headings + category chips
   ------------------------------------------------------------- */
.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  margin-top:13px;
}
.page-title h1{
  font-family:var(--font-display);
  font-size:60px;
  line-height:1;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink);
}
.page-title p{
  margin-top:12px;
  font-size:17px;
  line-height:26px;
  color:var(--muted);
}
.page-actions{display:flex;align-items:center;gap:12px}

.category-section{margin-top:19px}
.category-title-wrap{display:none}
.category-chips{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}
.explore-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-top:19px;
}
.explore-toolbar .category-section{margin-top:0;min-width:0;flex:0 1 auto}
.explore-toolbar .search-box{max-width:300px;flex:none}
.category-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:42px;
  padding:0 21px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  font-size:16px;
  line-height:1;
  font-weight:510;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition:background var(--transition-fast),color var(--transition-fast),border-color var(--transition-fast);
}
.category-chip:hover{border-color:#c4ccd6}
.category-chip.active{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
}
.category-chip .chip-count{
  font-size:12px;
  font-weight:600;
  opacity:.65;
}

/* Count pill injected by markup next to "All Campaigns" */
.chip-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:9px;
  background:rgba(255,255,255,.22);
  font-size:11px;
  font-weight:700;
}

/* -------------------------------------------------------------
   6. Search
   ------------------------------------------------------------- */
.search-filter-container{display:flex;flex-direction:column;gap:18px;margin-top:28px}
.search-box{position:relative;max-width:420px}
.search-icon{
  position:absolute;
  left:16px;top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  display:flex;
  pointer-events:none;
}
.search-icon ion-icon{font-size:19px}
.search-input{
  width:100%;
  height:48px;
  padding:0 18px 0 46px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  font-family:var(--font);
  font-size:15px;
  color:var(--ink);
  outline:none;
  transition:border-color var(--transition-fast),box-shadow var(--transition-fast);
}
.search-input::placeholder{color:#a1a1a6}
.search-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,113,227,.14)}

/* -------------------------------------------------------------
   7. Campaign cards (rendered by the app scripts)
   ------------------------------------------------------------- */
.campaign-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:26px;
}
.campaign-card{
  position:relative;
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 24px 30px rgba(10,31,51,.06);
  transition:transform var(--transition-fast),box-shadow var(--transition-fast),border-color var(--transition-fast);
}
.campaign-card:hover{
  transform:translateY(-3px);
  border-color:#dfe5ec;
  box-shadow:0 24px 44px rgba(10,31,51,.12);
}
.campaign-card-img{
  width:100%;
  aspect-ratio:426/276;
  height:auto;
  object-fit:cover;
  background:#eaeef3;
}
.campaign-card-content{
  display:flex;
  flex-direction:column;
  padding:24px 26px;
}
.campaign-card-content::before{
  content:"Fundraiser";
  display:block;
  margin-bottom:10px;
  font-size:12px;
  line-height:16px;
  font-weight:510;
  letter-spacing:0;
  color:var(--brand);
}
.campaign-card-title{
  font-family:var(--font-display);
  font-size:25px;
  line-height:31px;
  font-weight:600;
  letter-spacing:-.008em;
  color:var(--ink);
  margin-bottom:10px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.campaign-card-stats{display:flex;flex-direction:column}
.campaign-card-amount{
  order:2;
  position:relative;
  margin-top:16px;
  padding-right:46px;
  font-size:13px;
  line-height:17px;
  font-weight:510;
  color:var(--ink);
}
.campaign-card-amount span{font-weight:510;color:var(--ink)}
.card-percent{
  position:absolute;
  right:0;
  top:0;
  font-size:13px;
  line-height:17px;
  font-weight:600;
  color:var(--brand);
}
.campaign-card .progress-bar-container{order:1;margin:0}
.campaign-card .btn-card-action{order:3;margin-top:10px}
.campaign-card .campaign-card-action-row{order:3;margin-top:10px}

.progress-bar-container{
  width:100%;
  height:8px;
  border-radius:4px;
  background:#e9edf3;
  overflow:hidden;
}
.progress-bar-fill{
  height:100%;
  min-width:0;
  border-radius:4px;
  background:var(--brand);
  transition:width .6s cubic-bezier(.22,.68,.18,1);
}

.btn-card-action{
  width:100%;
  min-height:46px;
  padding:12px 24px;
  border:1px solid var(--brand);
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:17px;
  line-height:22px;
  font-weight:510;
  cursor:pointer;
}
.btn-card-action:hover{background:var(--brand-hover)}
.btn-card-action.btn-secondary{
  background:#fff;
  color:var(--ink);
  border-color:var(--line-strong);
}

.campaign-card-action-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  border-top:1px solid var(--line);
  font-size:14px;
  font-weight:600;
  color:var(--brand);
}

/* "Create New Campaign" tile (dashboard only) */
#campaigns-container::after{
  content:"Create New Campaign";
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:492px;
  padding:261px 24px 0;
  border:1px solid #f0f0f2;
  border-radius:24px;
  background-color:#fbfbfc;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h3.6a2 2 0 0 1 1.5.7l1 1.3H19a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center 208px;
  background-size:36px 36px;
  color:var(--muted);
  font-size:17px;
  line-height:31px;
  font-weight:400;
  text-align:center;
  pointer-events:none;
}
#campaigns-container[style*="display: none"]::after{display:none}

/* -------------------------------------------------------------
   8. Empty state, spinner, toast
   ------------------------------------------------------------- */
.empty-state{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:72px 24px;
  text-align:center;
}
.empty-icon-wrap{
  width:76px;height:76px;
  display:grid;place-items:center;
  margin-bottom:14px;
  border-radius:50%;
  background:var(--soft);
  color:#9aa0a6;
}
.empty-icon-wrap ion-icon{font-size:34px}
.empty-state h3{
  font-family:var(--font-display);
  font-size:24px;
  line-height:30px;
  font-weight:600;
  color:var(--ink);
}
.empty-state p{max-width:380px;font-size:15px;line-height:23px;color:var(--muted)}
.empty-state .btn-primary{margin-top:16px}

.spinner{
  display:inline-block;
  width:22px;height:22px;
  border:2px solid rgba(10,31,51,.16);
  border-top-color:var(--ink);
  border-radius:50%;
  animation:fr-spin .7s linear infinite;
  vertical-align:middle;
}
.spinner-dark{border-color:rgba(10,31,51,.16);border-top-color:var(--ink)}
.spinner:only-child{display:inline-block}
.btn-primary .spinner,
.btn-danger .spinner{border-color:rgba(255,255,255,.4);border-top-color:#fff}
@keyframes fr-spin{to{transform:rotate(360deg)}}

.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:2000;
  transform:translate(-50%,16px);
  max-width:calc(100% - 32px);
  padding:13px 20px;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font-size:14px;
  font-weight:500;
  line-height:20px;
  box-shadow:0 16px 40px rgba(10,31,51,.28);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s,transform .22s;
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast-error{background:#b3261e}
.toast-success{background:#116b3a}

/* -------------------------------------------------------------
   9. Forms
   ------------------------------------------------------------- */
.form-group{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.form-label{
  font-size:12px;
  line-height:16px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
}
.form-helper{font-size:12.5px;line-height:18px;color:var(--muted)}
.form-control{
  width:100%;
  min-height:52px;
  padding:13px 16px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  font-size:15px;
  line-height:22px;
  outline:none;
  transition:border-color var(--transition-fast),box-shadow var(--transition-fast);
}
.form-control::placeholder{color:#a1a1a6}
.form-control:hover{border-color:#c9ccd3}
.form-control:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,113,227,.14)}
select.form-control{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5l6-6' stroke='%236e6e73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  padding-right:42px;
}
.form-textarea{min-height:150px;resize:vertical;line-height:24px}
.form-control-icon-wrap{position:relative;display:flex;align-items:center}
.form-control-icon{
  position:absolute;
  left:16px;
  display:flex;
  align-items:center;
  color:#8a8a8f;
  font-size:18px;
  pointer-events:none;
}
.form-control-icon-wrap .form-control{padding-left:46px}
.form-char-count{align-self:flex-end;font-size:12px;color:var(--muted)}
.form-footer-buttons{display:flex;justify-content:flex-end;gap:12px;margin-top:8px;flex-wrap:wrap}

/* Image upload */
.image-upload-zone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:32px 20px;
  border:1.5px dashed var(--line-strong);
  border-radius:var(--radius-md);
  background:var(--soft-2);
  text-align:center;
  cursor:pointer;
  transition:border-color var(--transition-fast),background var(--transition-fast);
}
.image-upload-zone:hover{border-color:var(--brand);background:#f6faff}
.upload-icon{display:flex;color:#9aa0a6;font-size:30px;margin-bottom:4px}
.upload-text-main{font-size:14px;font-weight:600;color:var(--ink)}
.upload-text-sub{font-size:12px;color:var(--muted)}
.upload-preview-container{display:none;position:relative;margin-top:4px}
.upload-preview-img{
  width:100%;
  max-height:240px;
  object-fit:cover;
  border-radius:var(--radius-md);
  border:1px solid var(--line);
}
.upload-preview-remove{
  position:absolute;
  top:10px;right:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#c62828;
  box-shadow:var(--shadow-sm);
  cursor:pointer;
}
.upload-preview-remove ion-icon{font-size:17px}

/* -------------------------------------------------------------
   10. Landing page
   ------------------------------------------------------------- */
.landing-main{padding-bottom:0;overflow:hidden}

.fr-hero{
  position:relative;
  background:#fff;
  padding:0 0 64px;
  isolation:isolate;
}
.fr-hero::before{
  content:"";
  position:absolute;
  inset:0 0 0 auto;
  width:min(69%,996px);
  background:
    repeating-linear-gradient(90deg,#ececf1 0 1px,transparent 1px 47.4px),
    repeating-linear-gradient(0deg,#ececf1 0 1px,transparent 1px 48.6px);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 44%);
  mask-image:linear-gradient(90deg,transparent,#000 44%);
  opacity:.85;
  z-index:-2;
}
.fr-hero::after{
  content:"";
  position:absolute;
  right:-90px;top:-180px;
  width:560px;height:700px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 40%,rgba(0,113,227,.10),rgba(0,113,227,0) 62%);
  z-index:-1;
}
.hero-split{
  display:grid;
  grid-template-columns:minmax(0,620px) minmax(0,624px);
  justify-content:space-between;
  align-items:start;
  gap:0;
  padding-top:72px;
}
.hero-copy{padding-top:10px}
.hero-copy h1{
  margin-top:20px;
  font-family:var(--font-display);
  font-size:80px;
  line-height:84px;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink);
}
.hero-copy > p{
  margin-top:20px;
  max-width:540px;
  font-size:21px;
  line-height:32px;
  color:var(--muted);
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.hero-actions .btn-primary{min-height:46px;padding:12px 24px;font-size:17px;font-weight:510}
.hero-actions .btn-outline{
  min-height:49px;
  padding:12px 24px;
  border-width:1.5px;
  border-color:var(--brand);
  color:var(--brand);
  font-size:17px;
  font-weight:510;
}
.hero-actions .btn-outline:hover{background:var(--brand);border-color:var(--brand);color:#fff}
.hero-proof{display:flex;align-items:center;gap:14px;margin-top:20px}
.hero-avatars{display:flex}
.hero-avatars img{
  width:36px;height:36px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #f5f5f7;
  margin-left:-10px;
  box-shadow:0 2px 6px rgba(10,31,51,.12);
}
.hero-avatars img:first-child{margin-left:0}
.hero-proof span{font-size:13px;line-height:18px;color:var(--muted)}

.hero-visual{position:relative;width:624px;max-width:100%;margin-top:-35px;min-height:560px}
.hero-visual::before{
  content:"";
  position:absolute;
  right:44px;bottom:0;
  width:430px;height:430px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,#eef3fa,#f7f9fc 60%,rgba(255,255,255,0));
  z-index:-1;
}

.demo-card{
  width:520px;
  max-width:calc(100% - 84px);
  margin-left:84px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 24px 60px rgba(10,31,51,.16);
}
.demo-card-media{position:relative;aspect-ratio:520/276;overflow:hidden;background:#dde6ef}
.demo-card-media img{width:100%;height:100%;object-fit:cover}
.demo-card-body{padding:24px 26px}
.demo-card-by{font-size:12px;line-height:24px;font-weight:510;color:var(--brand)}
.demo-card-title{
  margin-top:10px;
  font-family:var(--font-display);
  font-size:25px;
  line-height:31px;
  font-weight:600;
  letter-spacing:-.008em;
  color:var(--ink);
}
.demo-card .progress-bar-container{margin:10px 0 0}
.demo-card-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
  font-size:13px;
  line-height:17px;
  font-weight:510;
  color:var(--ink);
}
.demo-card-meta span{font-weight:510;color:var(--ink)}
.demo-card-meta b{font-weight:600;color:var(--brand)}
.demo-card .btn-card-action{margin-top:10px}

.float-tag{
  position:absolute;
  left:-34px;
  top:1px;
  width:180px;
  display:flex;
  flex-direction:column;
  gap:1px;
  padding:14px 18px;
  border-radius:14px;
  background:var(--navy);
  color:#fff;
  box-shadow:0 18px 34px rgba(10,31,51,.28);
  z-index:2;
}
.float-tag strong{font-size:12px;line-height:18px;font-weight:510}
.float-tag span{font-size:13px;line-height:18px;color:rgba(255,255,255,.72)}

/* Section headers */
.section{padding:104px 0}
.section-soft{background:#f2f2f4}
.section-head{max-width:760px;margin-inline:auto;text-align:center}
.section-head .eyebrow,
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  line-height:16px;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--brand);
}
.eyebrow::before{
  content:"";
  width:5px;height:5px;
  border-radius:50%;
  background:var(--brand);
  flex:none;
}
.section-title{
  margin-top:14px;
  font-family:var(--font-display);
  font-size:56px;
  line-height:1.07;
  font-weight:600;
  letter-spacing:-.028em;
  color:var(--ink);
}
.section-sub{
  margin:18px auto 0;
  max-width:620px;
  font-size:18px;
  line-height:28px;
  color:var(--muted);
}

.steps-grid,
.why-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin-top:48px;
}
.step-card{
  min-height:300px;
  padding:34px 34px 40px;
  border-radius:20px;
  background:var(--soft);
}
.step-num{
  display:grid;
  place-items:center;
  width:36px;height:36px;
  border-radius:50%;
  background:#fff;
  color:var(--brand);
  font-family:var(--font-display);
  font-size:12px;
  font-weight:600;
  box-shadow:0 1px 2px rgba(16,24,40,.06);
}
.step-card h3{
  margin-top:50px;
  font-family:var(--font-display);
  font-size:22px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--ink);
}
.step-card p{margin-top:9px;font-size:16px;line-height:24px;color:var(--muted)}

.why-grid{margin-top:44px;gap:16px}
.why-card{
  min-height:220px;
  padding:30px 28px 34px;
  border-radius:20px;
  background:#fff;
}
.why-icon{
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border-radius:12px;
  background:var(--primary-light);
  color:var(--brand);
}
.why-icon svg{width:22px;height:22px}
.why-card h3{
  margin-top:22px;
  font-family:var(--font-display);
  font-size:20px;
  line-height:26px;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--ink);
}
.why-card p{margin-top:10px;font-size:16px;line-height:24px;color:var(--muted);max-width:300px}

.why-layout{display:grid;grid-template-columns:minmax(0,600px) minmax(0,580px);justify-content:space-between;gap:60px;align-items:start}
.why-layout .section-title{margin-top:14px;font-size:56px}
.why-layout > p{font-size:18px;line-height:28px;color:var(--muted);padding-top:8px;max-width:560px}

/* CTA band */
.cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  min-height:196px;
  padding:44px 48px;
  border-radius:24px;
  background:#102a3f;
  color:#fff;
}
.cta-band h2{
  font-family:var(--font-display);
  font-size:34px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:-.02em;
}
.cta-band p{margin-top:12px;max-width:640px;font-size:17px;line-height:26px;color:rgba(255,255,255,.72)}
.cta-band .btn-primary{
  min-height:46px;
  padding:12px 24px;
  font-size:17px;
  font-weight:510;
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.26);
  flex:none;
}
.cta-band .btn-primary:hover{background:#fff;color:var(--ink);border-color:#fff}

/* Footer — mirrors the main AJK Welfare site footer */
.site-footer{
  background:var(--footer);
  padding-top:32px;
  overflow:hidden;
  position:relative;
}
.site-footer .footer-inner{
  width:min(var(--page),100%);
  margin-inline:auto;
  padding-left:36px;
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:335px 335px 335px 1fr;
  align-items:start;
}
.site-footer .footer-brand img{width:143px;height:43px}
.site-footer .footer-about p{
  margin-top:16px;
  width:259px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
}
.site-footer .footer-col{padding-top:24px;min-width:0}
.site-footer .footer-col h3{
  font-size:16px;
  line-height:22px;
  font-weight:700;
  color:var(--brand);
  letter-spacing:-.005em;
}
.site-footer .footer-socials h3{font-weight:400;color:var(--ink)}
.site-footer .contact-list{
  margin:26px 0 0;
  display:flex;
  flex-direction:column;
  gap:23px;
}
.site-footer .contact-list li{
  display:flex;
  align-items:center;
  gap:16px;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
}
.site-footer .contact-list img{width:24px;height:24px;flex:none}
.site-footer .contact-list a{transition:color .2s}
.site-footer .contact-list a:hover{color:var(--brand)}
.site-footer .social-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:26px;
}
.site-footer .social-row a{
  display:block;
  width:40px;height:40px;
  border-radius:50%;
  transition:transform .28s ease;
}
.site-footer .social-row a:hover{transform:translateY(-3px)}
.site-footer .social-row img{width:40px;height:40px}
.site-footer .social-tik{
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--brand);
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1;
  letter-spacing:.2px;
}
.site-footer .footer-app .play-badge{display:inline-block;margin-top:5px}
.site-footer .play-badge img{width:234px;height:70px;border-radius:9px}
.site-footer .footer-gallery{
  margin-top:38px;
  height:218px;
  overflow:hidden;
  position:relative;
}
.site-footer .footer-gallery-track{
  position:relative;
  left:-29px;
  display:flex;
  align-items:flex-start;
  gap:30px;
  width:max-content;
}
.site-footer .fg{
  width:157px;
  height:189px;
  flex:none;
  object-fit:cover;
  border-radius:19px;
  transform:translateY(var(--fy,0));
}
.site-footer .fg:nth-child(3n){height:198px}
.site-footer .fg-1{--fy:69px}
.site-footer .fg-2{--fy:16px}
.site-footer .fg-3{--fy:109px}
.site-footer .fg-4{--fy:55px}
.site-footer .fg-5{--fy:87px}
.site-footer .fg-6{--fy:10px}
.site-footer .fg-7{--fy:84px}
.site-footer .fg-8{--fy:72px}
.site-footer .fg-9{--fy:93px}

/* -------------------------------------------------------------
   11. Auth
   ------------------------------------------------------------- */
.auth-page{background:#fbfbfd}
.auth-page::before{
  content:"";
  position:fixed;
  inset:126px 0 0 auto;
  width:62%;
  background:
    repeating-linear-gradient(90deg,#eeeef2 0 1px,transparent 1px 47.4px),
    repeating-linear-gradient(0deg,#eeeef2 0 1px,transparent 1px 48.6px);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 55%);
  mask-image:linear-gradient(90deg,transparent,#000 55%);
  pointer-events:none;
  z-index:0;
}
.auth-page header{background:transparent;border-bottom:0}
.auth-container{
  position:relative;
  z-index:1;
  width:min(400px,calc(100% - 40px));
  margin:46px auto 96px;
  padding:38px 36px 32px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:0 34px 70px rgba(10,31,51,.12);
}
.auth-header{text-align:left;margin-bottom:26px}
.auth-logo-img{display:none}
.auth-header h2{
  font-family:var(--font-display);
  font-size:26px;
  line-height:32px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
}
.auth-header p{margin-top:6px!important;font-size:14px!important;line-height:20px;color:var(--muted)}
.auth-toggle{display:none}
.auth-form{display:flex;flex-direction:column}
.auth-form .form-group{margin-bottom:14px}
.auth-form .form-control{min-height:44px;padding:11px 14px;font-size:14px;border-radius:10px}
.auth-form .form-control-icon{left:13px;font-size:16px}
.auth-form .form-control-icon-wrap .form-control{padding-left:38px}
.auth-submit-btn{
  width:100%;
  min-height:46px;
  margin-top:8px;
  border-radius:999px;
  font-size:15px;
  font-weight:600;
}
.auth-switch-text{
  margin-top:16px;
  text-align:center;
  font-size:13px;
  line-height:20px;
  color:var(--muted);
}
.auth-switch-link{color:var(--brand);font-weight:600;cursor:pointer}
.auth-switch-link:hover{text-decoration:underline}
.auth-fineprint{margin-top:18px;font-size:11px;line-height:17px;color:#a1a1a6;text-align:center}
.auth-fineprint a{color:#8a8a8f;text-decoration:underline}

/* register-only helper */
.auth-page .image-upload-zone{padding:18px 14px;background:#fff}
.auth-page .image-upload-zone .upload-text-main{font-size:12.5px}
.auth-page .image-upload-zone .upload-text-sub{font-size:11px}

/* -------------------------------------------------------------
   12. Create / edit campaign
   ------------------------------------------------------------- */
.form-card{
  width:min(680px,100%);
  margin:0 auto;
  padding:36px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  box-shadow:0 24px 50px rgba(10,31,51,.08);
}
.form-card .form-group{margin-bottom:20px}
.form-card .page-title{text-align:center}
.form-card .form-footer-buttons{border-top:1px solid var(--line);padding-top:22px;margin-top:26px}

/* -------------------------------------------------------------
   13. Campaign detail
   ------------------------------------------------------------- */
.detail-page .page-container{padding-bottom:96px}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  padding:26px 0 0;
  font-size:13px;
  line-height:20px;
  color:var(--muted);
}
.breadcrumb a{display:inline-flex;align-items:center;gap:6px;transition:color var(--transition-fast)}
.breadcrumb a:hover{color:var(--ink)}
.breadcrumb ion-icon{font-size:15px}
.breadcrumb .sep{color:#c4c4c8}
.breadcrumb b{color:var(--ink);font-weight:500}

.detail-head{padding:22px 0 26px}
.detail-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  line-height:16px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--brand);
}
.detail-head h1{
  margin-top:10px;
  font-family:var(--font-display);
  font-size:56px;
  line-height:1.07;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink);
}
.detail-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:16px;
  font-size:13px;
  color:var(--muted);
}
.meta-person{display:inline-flex;align-items:center;gap:8px;font-weight:500;color:var(--ink)}
.avatar-chip{
  display:grid;place-items:center;
  width:28px;height:28px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.meta-dot{width:4px;height:4px;border-radius:50%;background:#c4c4c8}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:26px;
  padding:0 12px;
  border-radius:999px;
  background:var(--primary-light);
  color:var(--brand);
  font-size:12px;
  font-weight:600;
}
.share-link{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  margin-right:-12px;
  border:0;
  background:none;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  color:var(--brand);
  cursor:pointer;
  transition:background var(--transition-fast),color var(--transition-fast);
}
.share-link:hover{background:var(--primary-light)}
.share-link ion-icon{font-size:17px}

.detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 424px;
  gap:48px;
  align-items:start;
}
.cover-image-container{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:#eaeef3;
  box-shadow:var(--shadow-sm);
}
.cover-image{width:100%;aspect-ratio:836/444;object-fit:cover}

/* story / donors tabs */
.detail-tabs{
  display:flex;
  gap:30px;
  margin-top:26px;
  border-bottom:1px solid var(--line);
}
.detail-tab{
  position:relative;
  padding:12px 0 14px;
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  background:none;
  border:0;
  cursor:pointer;
}
.detail-tab.active{color:var(--ink);font-weight:600}
.detail-tab.active::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;
  height:2px;
  background:var(--ink);
  border-radius:2px;
}
.detail-panel{padding-top:30px}
.detail-panel[hidden]{display:none}

.campaign-detail-card{display:none}
.campaign-badges-row{display:none}
.campaign-title-detail{display:none}
.campaign-desc-detail{
  font-size:17px;
  line-height:30px;
  color:#3a3a3d;
  white-space:pre-line;
}
.campaign-desc-detail p{margin-bottom:20px}
.campaign-desc-detail p:last-child{margin-bottom:0}

.article-lead{
  font-family:var(--font-display);
  font-size:28px;
  line-height:36px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
  margin-bottom:18px;
}

.donations-card{
  margin-top:26px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
}
.card-title-bar{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.card-title-bar h3{
  font-family:var(--font-display);
  font-size:20px;
  line-height:26px;
  font-weight:600;
  color:var(--ink);
}
.card-subtitle{font-size:13px;color:var(--muted)}

.donors-list{display:flex;flex-direction:column}
.donor-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}
.donor-item:last-child{border-bottom:0;padding-bottom:0}
.donor-left{display:flex;align-items:center;gap:12px;min-width:0}
.donor-avatar{
  display:grid;place-items:center;
  width:38px;height:38px;
  border-radius:50%;
  color:#fff;
  font-size:14px;
  font-weight:700;
  flex:none;
}
.donor-info{min-width:0}
.donor-info h4{font-size:14px;line-height:19px;font-weight:600;color:var(--ink)}
.donor-info span{font-size:12px;line-height:17px;color:var(--muted)}
.donor-amount{font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap}

/* right column */
.detail-right{position:sticky;top:calc(var(--head) + 20px);display:flex;flex-direction:column;gap:20px}
.donation-widget{
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:0 18px 40px rgba(10,31,51,.08);
}
.widget-raised{
  font-family:var(--font-display);
  font-size:41px;
  line-height:1;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink);
}
.widget-goal{margin-top:6px;font-size:13px;line-height:19px;color:var(--muted)}
.widget-donors-count{margin-top:10px;font-size:12px;line-height:17px;color:var(--muted)}

.amount-selector-wrap{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.amount-selector-label{
  font-size:13px!important;
  font-weight:600!important;
  letter-spacing:0;
  text-transform:none;
  color:var(--ink)!important;
  margin-bottom:10px!important;
}
.amount-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.amount-chip{
  height:46px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:border-color var(--transition-fast),color var(--transition-fast),background var(--transition-fast);
}
.amount-chip:hover{border-color:var(--brand);color:var(--brand)}
.amount-chip.active{
  border-color:var(--brand);
  color:var(--brand);
  background:#f2f8ff;
  box-shadow:0 0 0 1px var(--brand) inset;
}

.custom-amount-input-wrap{
  position:relative;
  display:flex;
  align-items:center;
  margin-top:10px;
}
.custom-amount-symbol{
  position:absolute;
  left:14px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  pointer-events:none;
}
.custom-amount-input{
  width:100%;
  height:52px;
  padding:0 52px 0 30px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  font-size:14px;
  outline:none;
  appearance:textfield;
  transition:border-color var(--transition-fast),box-shadow var(--transition-fast);
}
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button{appearance:none;margin:0}
.custom-amount-input::placeholder{color:#a1a1a6}
.custom-amount-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(0,113,227,.13)}
.custom-amount-input-wrap::after{
  content:"GBP";
  position:absolute;
  right:14px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  color:#a1a1a6;
  pointer-events:none;
}

.donation-widget-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.btn-donate-widget{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  min-height:50px;
  padding:13px 20px;
  border:0;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:background var(--transition-fast),box-shadow var(--transition-fast),transform var(--transition-fast);
}
.btn-donate-widget:hover{background:var(--brand-hover);box-shadow:0 12px 26px rgba(0,113,227,.26);transform:translateY(-1px)}
.btn-donate-widget ion-icon{font-size:19px}
.btn-share-widget{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:42px;
  padding:10px 18px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
}
.btn-share-widget:hover{color:var(--ink);background:var(--soft)}
.btn-share-widget ion-icon{font-size:16px}
.widget-note{margin-top:12px;text-align:center;font-size:11px;line-height:16px;color:#a1a1a6}

.organizer-card{
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--soft-2);
}
.organizer-head{display:flex;align-items:center;gap:12px}
.organizer-avatar{
  display:grid;place-items:center;
  width:42px;height:42px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-size:15px;
  font-weight:700;
  flex:none;
}
.organizer-head strong{display:block;font-size:14px;line-height:19px;font-weight:600;color:var(--ink)}
.organizer-head span{font-size:12px;line-height:17px;color:var(--muted)}
.organizer-card p{margin-top:12px;font-size:13px;line-height:21px;color:var(--muted)}
.organizer-contact{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:12px;
  font-size:13px;
  font-weight:500;
  color:var(--ink);
}
.organizer-contact:hover{color:var(--brand)}

/* mobile-only detail stats */
.mobile-detail-stats{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
}

/* -------------------------------------------------------------
   14. Modals
   ------------------------------------------------------------- */
.modal-overlay{
  position:fixed;
  inset:0;
  z-index:1500;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(10,25,40,.45);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  transition:opacity .22s,visibility .22s;
}
.modal-overlay.active{opacity:1;visibility:visible}
.modal-box{
  width:100%;
  max-width:520px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  padding:0;
  background:#fff;
  border-radius:var(--radius-xl);
  box-shadow:0 40px 90px rgba(10,25,40,.34);
  transform:translateY(14px) scale(.985);
  transition:transform .22s;
}
.modal-overlay.active .modal-box{transform:none}
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:24px 26px 0;
}
.modal-header h3{
  font-family:var(--font-display);
  font-size:23px;
  line-height:30px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
}
.modal-close-btn{
  display:grid;
  place-items:center;
  width:34px;height:34px;
  flex:none;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:var(--muted);
  font-size:19px;
  line-height:1;
  cursor:pointer;
  transition:border-color var(--transition-fast),color var(--transition-fast);
}
.modal-close-btn:hover{border-color:var(--line-strong);color:var(--ink)}
.modal-body{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px 26px;
}
.modal-footer{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:16px 26px 24px;
  border-top:1px solid var(--line);
  background:#fff;
}
.modal-footer .btn-primary,
.modal-footer .btn-secondary{min-height:44px}

/* donation modal extras */
.donation-summary{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:var(--radius-md);
  background:#f4f8fe;
}
.donation-summary img{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.donation-summary strong{display:block;font-size:14px;line-height:19px;font-weight:600;color:var(--ink)}
.donation-summary span{font-size:12px;line-height:17px;color:var(--muted)}
.donation-total{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:600;color:var(--ink)}
.donation-total span{font-weight:400;color:var(--muted)}
.modal-note{font-size:12px;line-height:18px;color:var(--muted)}
.flag-option{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.flag-option input{width:18px;height:18px;margin-top:2px;accent-color:var(--brand);cursor:pointer}
.flag-option span{display:block;font-size:13px;line-height:19px;font-weight:600;color:var(--ink)}
.flag-option small{display:block;margin-top:2px;font-size:12px;line-height:17px;font-weight:400;color:var(--muted)}
.phone-input-group{display:flex;gap:8px}
.country-code-select{
  width:118px;
  padding:0 10px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  background:#fff;
  font-size:13px;
  color:var(--ink);
  outline:none;
}
.share-options-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.share-option{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:14px 8px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
  font-size:12px;
  font-weight:500;
  color:var(--ink);
  cursor:pointer;
  transition:border-color var(--transition-fast),transform var(--transition-fast);
}
.share-option:hover{border-color:var(--brand);transform:translateY(-1px)}
.share-option ion-icon{font-size:22px;color:var(--brand)}
.share-link-input-wrap{display:flex;gap:8px}
.share-link-input-wrap .form-control{flex:1;min-width:0;height:44px;font-size:13px}
.share-link-input-wrap .btn-secondary{min-height:44px;flex:none}

/* -------------------------------------------------------------
   15. Fundraiser guide
   ------------------------------------------------------------- */
.guide-container{width:min(920px,calc(100% - 132px));margin-inline:auto;padding:64px 0 96px}
.guide-hero{text-align:center;max-width:720px;margin-inline:auto}
.guide-hero-icon{
  display:grid;place-items:center;
  width:64px;height:64px;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--primary-light);
  color:var(--brand);
}
.guide-hero-icon ion-icon{font-size:28px}
.guide-hero h1{
  font-family:var(--font-display);
  font-size:46px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:-.03em;
  color:var(--ink);
}
.guide-hero p{margin-top:14px;font-size:17px;line-height:27px;color:var(--muted)}

.guide-steps-wrap{display:flex;flex-direction:column;gap:14px;margin-top:46px}
.guide-step-card{
  display:flex;
  gap:20px;
  padding:26px 28px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
  transition:border-color var(--transition-fast),box-shadow var(--transition-fast);
}
.guide-step-card.step-in-review{border-color:#f2d9a4;background:#fffdf7}
.guide-step-badge{
  display:grid;
  place-items:center;
  width:38px;height:38px;
  flex:none;
  border-radius:50%;
  background:var(--soft);
  color:var(--muted);
  font-family:var(--font-display);
  font-size:14px;
  font-weight:700;
}
.guide-step-badge.step-1,.guide-step-badge.step-2,.guide-step-badge.step-3{background:var(--primary-light);color:var(--brand)}
.guide-step-body{flex:1;min-width:0}
.guide-step-header{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.guide-step-icon{display:flex;color:var(--brand);font-size:20px}
.guide-step-title{
  font-family:var(--font-display);
  font-size:19px;
  line-height:26px;
  font-weight:600;
  letter-spacing:-.01em;
  color:var(--ink);
}
.guide-step-text{margin-top:10px;font-size:15px;line-height:24px;color:var(--muted)}
.status-badge-pill{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.status-badge-pill.completed{background:#e9f8ef;color:#137a3f}
.status-badge-pill.review{background:#fdf3e3;color:#b45309}

.guide-cta-card{
  margin-top:34px;
  padding:40px;
  border-radius:var(--radius-xl);
  background:var(--navy);
  color:#fff;
  text-align:center;
}
.guide-cta-card h3{
  font-family:var(--font-display);
  font-size:30px;
  line-height:38px;
  font-weight:600;
  letter-spacing:-.02em;
}
.guide-cta-card p{margin-top:10px;font-size:15px;line-height:24px;color:rgba(255,255,255,.72)}
.guide-cta-actions{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:24px}
.guide-cta-actions .btn-primary{background:#fff;color:var(--ink)}
.guide-cta-actions .btn-primary:hover{background:#e9eef4;box-shadow:none}
.guide-login-link{font-size:13px;color:rgba(255,255,255,.72)}
.guide-login-link a{color:#fff;font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* -------------------------------------------------------------
   16. Under review
   ------------------------------------------------------------- */
.review-wrap{
  width:min(600px,calc(100% - 40px));
  margin:64px auto 96px;
  text-align:center;
}
.review-icon{
  display:grid;place-items:center;
  width:96px;height:96px;
  margin:0 auto 24px;
  border-radius:50%;
  background:#fdf3e3;
  color:#d97706;
  box-shadow:0 16px 30px rgba(245,158,11,.18);
}
.review-icon ion-icon{font-size:46px}
.review-wrap h1{
  font-family:var(--font-display);
  font-size:34px;
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
}
.review-wrap > p{margin:14px auto 0;max-width:520px;font-size:15px;line-height:25px;color:var(--muted)}
.review-card{
  margin-top:28px;
  padding:26px;
  border:1px solid #f3dfae;
  border-radius:var(--radius-lg);
  background:#fff;
  box-shadow:0 18px 40px rgba(245,158,11,.10);
}
.status-pill-warn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:28px;
  padding:0 14px;
  border-radius:999px;
  background:#fdf3e3;
  border:1px solid #f7dda4;
  color:#b45309;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.09em;
}
.status-pill-warn i{width:7px;height:7px;border-radius:50%;background:#d97706}
.review-card p{margin-top:14px;font-size:13.5px;line-height:23px;color:#4b5563}
.review-divider{height:1px;margin:18px 0;background:#eef1f5}
.review-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12.5px;
  color:var(--muted);
}
.review-meta ion-icon{font-size:16px;color:#9aa3ad}
.review-actions{display:flex;flex-direction:column;gap:10px;margin-top:26px}
.review-actions .btn-primary,
.review-actions .btn-outline{width:100%;min-height:48px}

/* -------------------------------------------------------------
   17. Gift Aid
   ------------------------------------------------------------- */
.gift-wrap{
  width:min(520px,calc(100% - 40px));
  margin:64px auto 96px;
  padding:36px 30px;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  background:#fff;
  box-shadow:0 30px 60px rgba(10,31,51,.10);
  text-align:center;
}
.gift-icon{
  display:grid;place-items:center;
  width:84px;height:84px;
  margin:0 auto 20px;
  border-radius:50%;
  background:#eefaf2;
  color:#16a34a;
}
.gift-icon ion-icon{font-size:44px}
.gift-wrap h2{
  font-family:var(--font-display);
  font-size:27px;
  line-height:34px;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
}
.gift-wrap > p{margin-top:8px;font-size:15px;line-height:23px;color:var(--muted)}
.gift-card{
  margin-top:26px;
  padding:22px;
  border:1px solid #c6ecd3;
  border-radius:var(--radius-lg);
  background:#f2fcf5;
  text-align:left;
}
.gift-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.gift-card-head ion-icon{font-size:23px;color:#15803d}
.gift-card-head span{font-size:16px;font-weight:700;color:#14532d}
.gift-card p{font-size:13px;line-height:21px;color:#374151}
.gift-card p + p{margin-top:10px}
.gift-cta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  margin-top:18px;
  padding:13px 18px;
  border-radius:999px;
  background:#16a34a;
  color:#fff;
  font-size:14px;
  font-weight:600;
  transition:background var(--transition-fast);
}
.gift-cta:hover{background:#128a3f}
.gift-wrap .btn-secondary{width:100%;margin-top:20px;min-height:48px}

/* -------------------------------------------------------------
   18. Mobile tabs + FAB + app bar
   ------------------------------------------------------------- */
.mobile-tabs{
  display:none;
  gap:6px;
  padding:10px 16px;
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:87;
}
.mobile-tab{
  flex:1;
  text-align:center;
  padding:9px 12px;
  border-radius:999px;
  background:var(--soft);
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.mobile-tab.active{background:var(--navy);color:#fff}

.mobile-fab{
  position:fixed;
  left:16px;right:16px;bottom:18px;
  z-index:95;
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:52px;
  border:0;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:15px;
  font-weight:600;
  box-shadow:0 18px 34px rgba(0,113,227,.34);
}

/* -------------------------------------------------------------
   19. Admin
   ------------------------------------------------------------- */
.admin-header{
  background:var(--navy);
  color:#fff;
  position:static;
  border:0;
}
.admin-header .header-container{
  width:min(var(--page),calc(100% - 44px));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:72px;
}
.logo-area{display:flex;align-items:center;gap:12px;cursor:pointer;background:#fff;border-radius:999px;padding:7px 16px}
.logo-area .logo-img{width:92px;height:auto}
.logo-text{font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.admin-header .btn-secondary{background:transparent;border-color:rgba(255,255,255,.3);color:#fff}
.admin-header .btn-secondary:hover{background:#fff;color:var(--ink);border-color:#fff}

.admin-nav{display:flex;gap:8px;margin-top:8px}
.admin-tab{
  padding:10px 18px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line-strong);
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
  transition:all var(--transition-fast);
}
.admin-tab.active{background:var(--navy);border-color:var(--navy);color:#fff}

.request-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  padding:24px;
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:#fff;
}
.request-info{flex:1;min-width:260px}
.request-info h3{font-family:var(--font-display);font-size:19px;line-height:26px;color:var(--ink)}
.request-meta-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px 20px;
  margin-top:14px;
}
.meta-item{font-size:11px;line-height:16px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.meta-item strong{display:block;margin-top:3px;font-size:13.5px;line-height:19px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink);word-break:break-word}
.id-photo-preview{
  width:140px;height:100px;
  object-fit:cover;
  border-radius:var(--radius-sm);
  border:1px solid var(--line);
  cursor:zoom-in;
}
.request-actions{display:flex;flex-direction:column;gap:8px}
.campaign-row,
.campaign-admin-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:#fff;
}
.campaign-row-info{min-width:0}
.campaign-row-title{font-size:15px;font-weight:600;color:var(--ink)}
.campaign-row-meta{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;color:var(--muted);margin-top:6px}
.campaign-row-meta strong{color:var(--ink);font-weight:600}
.btn-delete-campaign{background:#fff;color:var(--danger-color);border:1px solid #f0c9c9;min-height:38px;padding:8px 16px;font-size:13px}
.btn-delete-campaign:hover{background:#fdf1f1}

.lightbox-modal{
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:rgba(6,16,26,.82);
}
.lightbox-modal.active{display:flex}
.lightbox-content{max-width:min(880px,100%);max-height:86vh;border-radius:12px;background:#fff}
.lightbox-close{
  position:absolute;
  top:22px;right:26px;
  color:#fff;
  font-size:32px;
  line-height:1;
  cursor:pointer;
}

/* -------------------------------------------------------------
   20. Responsive
   ------------------------------------------------------------- */
@media (max-width:1180px){
  :root{--page:calc(100% - 88px)}
  .hero-copy h1{font-size:clamp(46px,6.4vw,66px)}
  .hero-split{grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:36px}
  .detail-layout{grid-template-columns:minmax(0,1fr) 340px;gap:28px}
  .fr-footer-inner{grid-template-columns:1.2fr 1fr 1fr;gap:36px}
  .fr-footer-note{grid-column:1/-1}
}

@media (max-width:1024px){
  :root{--head:104px}
  .navbar{height:var(--head)}
  .logo-img{width:150px}
  .nav-links{gap:26px}
  .campaign-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps-grid,.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .why-layout{grid-template-columns:1fr;gap:20px}
  .detail-layout{grid-template-columns:1fr}
  .detail-right{position:static;order:-1}
}

@media (max-width:860px){
  :root{--head:84px;--page:calc(100% - 48px)}
  .desktop-only{display:none!important}
  .mobile-only{display:block!important}
  .mobile-app-bar.mobile-only{display:flex!important}
  .mobile-tabs.mobile-only{display:flex!important}
  .campaign-card-action-row.mobile-only{display:flex!important}
  .navbar{height:var(--head)}
  .nav-links{display:none}
  .logo-img{width:136px}
  .fr-hero{padding-bottom:44px}
  .hero-split{grid-template-columns:1fr;padding-top:44px;gap:36px}
  .hero-copy h1{font-size:clamp(40px,9vw,56px)}
  .hero-copy > p{font-size:18px;line-height:28px}
  .hero-actions{gap:10px;margin-top:28px}
  .hero-proof{margin-top:26px}
  .hero-visual{margin-top:8px}
  .demo-card{width:100%;margin-left:0}
  .float-tag{left:12px;top:-14px}
  .section{padding:64px 0}
  .section-title{font-size:clamp(32px,6vw,42px)}
  .section-sub{font-size:15px;line-height:24px}
  .steps-grid,.why-grid{grid-template-columns:1fr;gap:14px;margin-top:32px}
  .step-card{padding:26px 24px}
  .cta-band{flex-direction:column;align-items:flex-start;padding:32px 26px;border-radius:20px}
  .cta-band h2{font-size:30px}
  .fr-footer{margin-top:64px}
  .fr-footer-inner{grid-template-columns:1fr;gap:32px;padding:40px 0 32px}
  .fr-footer-bottom div{flex-direction:column;align-items:flex-start;gap:6px}
  .campaign-grid{grid-template-columns:1fr;gap:18px}
  .campaign-card-img{aspect-ratio:16/9}
  #campaigns-container::after{min-height:230px;padding-top:118px;background-position:center 66px}
  .campaign-card .btn-card-action{display:none}
  .campaign-card .campaign-card-action-row{display:flex}
  .page-title h1{font-size:clamp(34px,7vw,44px)}
  .page-container{padding-bottom:64px}
  .mobile-fab{display:none}
  .mobile-fab.mobile-only{display:none!important}
  .mobile-fab.mobile-only[style*="display: flex"]{display:flex!important}
  .mobile-app-bar{display:flex}
  .mobile-tabs{display:flex}
  .category-section[aria-hidden="true"]{display:none}
  .auth-container{margin-top:28px;padding:28px 22px 26px}
  .auth-page::before{display:none}
  .form-card{padding:24px 20px}
  .detail-head h1{font-size:32px}
  .cover-image{aspect-ratio:16/10}
  .breadcrumb{padding-top:18px}
  .share-link{margin-left:0;width:100%;justify-content:flex-start;padding-top:4px}
  .details-card,.donations-card{padding:22px 20px}
  .modal-box{max-width:100%}
  .modal-header,.modal-body,.modal-footer{padding-left:20px;padding-right:20px}
  .guide-container{width:calc(100% - 40px);padding:40px 0 64px}
  .guide-hero h1{font-size:32px}
  .guide-step-card{flex-direction:column;gap:14px;padding:22px 20px}
  .guide-cta-card{padding:28px 22px}
  .review-wrap,.gift-wrap{margin-top:36px}
  .review-wrap h1{font-size:28px}
  .request-card{flex-direction:column}
  .admin-header .header-container{min-height:64px}
}

@media (max-width:560px){
  :root{--page:calc(100% - 36px)}
  .logo-img{width:124px}
  .explore-toolbar{flex-direction:column;align-items:stretch;gap:14px}
  .explore-toolbar .category-section{width:100%;overflow:hidden}
  .explore-toolbar .search-box{max-width:none;width:100%}
  .category-chips{gap:8px;flex-wrap:nowrap;overflow-x:auto;padding-right:24px;padding-bottom:4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .category-chips::-webkit-scrollbar{display:none}
  .category-chip{height:38px;padding:0 16px;font-size:13px}
  .search-box{max-width:none}
  .btn-login,.btn-create{min-height:44px;padding:0 16px;font-size:14px}
  .profile-pill{min-height:44px;padding:0 14px 0 4px;font-size:14px}
  .profile-avatar{width:34px;height:34px;font-size:14px}
  .detail-meta{gap:10px}
  .amount-chips{gap:6px}
  .share-options-grid{grid-template-columns:repeat(2,1fr)}
  .review-icon{width:80px;height:80px}
  .review-icon ion-icon{font-size:38px}
  .gift-wrap{padding:28px 20px}
}

/* Footer responsive — mirrors the main site's footer breakpoints */
@media (max-width:1240px){
  .site-footer .footer-inner{width:calc(100% - 88px);padding-left:0}
  .site-footer .footer-grid{grid-template-columns:1.15fr 1fr 1fr 1fr}
}
@media (max-width:1100px){
  .site-footer .footer-grid{grid-template-columns:1.2fr 1fr 1fr;gap:0}
  .site-footer .footer-app{grid-column:1/-1;padding-top:36px}
}
@media (max-width:860px){
  .site-footer .footer-inner{width:calc(100% - 48px)}
  .site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:8px 24px}
  .site-footer .footer-col{padding-top:8px}
  .site-footer .footer-about p{width:min(290px,100%);margin-bottom:20px}
  .site-footer .footer-brand img{width:150px}
  .site-footer .footer-app{grid-column:auto;padding-top:8px}
  .site-footer .play-badge img{width:200px;height:60px}
  .site-footer .footer-gallery{margin-top:44px;height:180px}
  .site-footer .footer-gallery-track{gap:18px}
  .site-footer .fg{width:128px;height:160px}
  .site-footer .fg:nth-child(3n){height:168px}
}
@media (max-width:560px){
  .site-footer .footer-inner{width:calc(100% - 40px)}
  .site-footer .footer-grid{grid-template-columns:1fr;gap:0}
  .site-footer .footer-col{padding-top:20px}
  .site-footer .footer-about p{margin-bottom:8px}
  .site-footer .footer-gallery{margin-top:36px;height:150px}
  .site-footer .fg{width:108px;height:140px}
  .site-footer .fg:nth-child(3n){height:150px}
  .site-footer .play-badge img{width:234px;height:70px}
}

@media (prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important}
  .campaign-card,.btn-primary,.btn-create,.btn-donate-widget,.demo-card{transition:none!important}
  .spinner{animation-duration:1.4s}
}

/* -------------------------------------------------------------
   Campaigns intro (visible copy for search + GEO)
   ------------------------------------------------------------- */
.explore-intro{
  max-width:70ch;
  margin:18px 0 4px;
  font-size:15.5px;
  line-height:1.7;
  color:var(--muted);
}
.explore-intro a{color:var(--brand);font-weight:500;text-decoration:underline;text-underline-offset:2px}

/* -------------------------------------------------------------
   Fundraiser guide extras
   ------------------------------------------------------------- */
.guide-extra{
  max-width:820px;
  margin:44px auto 0;
  padding:0 24px;
}
.guide-extra h2{
  margin:0 0 14px;
  font-family:var(--font-display);
  font-size:clamp(24px,3.4vw,32px);
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--ink);
}
.guide-extra p{
  margin:0 0 14px;
  font-size:15.5px;
  line-height:1.7;
  color:var(--muted);
}
.guide-extra ul{
  margin:0 0 16px;
  padding-left:20px;
}
.guide-extra li{
  margin:0 0 8px;
  font-size:15.5px;
  line-height:1.65;
  color:var(--muted);
}
.guide-extra strong{color:var(--ink)}
.guide-extra a{color:var(--brand);font-weight:500;text-decoration:underline;text-underline-offset:2px}

@media (max-width:640px){
  .explore-intro{font-size:14.5px;margin-top:14px}
  .guide-extra{padding:0 20px}
  .guide-extra p,.guide-extra li{font-size:14.5px}
}
