/* ============================================================
   Relivora — Relief Beyond Borders  |  Design System v2
   Plain CSS, no build step. Modern green/teal trust theme.
   ============================================================ */

:root {
  /* Brand */
  --green-600: #0c9c57;
  --green-500: #16b364;
  --green-400: #36cc7f;
  --green-50:  #e7f8ef;
  /* Brand accents retargeted to a Palestine-inspired green/teal palette */
  --blue-700:  #0a6b3c;
  --blue-600:  #0a8a4a;
  --blue-500:  #1aa55c;
  --blue-50:   #e8f6ee;

  /* Palestine flag accents */
  --pal-red:   #ce1126;
  --pal-green: #047a3d;

  /* Neutrals */
  --ink-900: #0b1220;
  --ink-700: #283549;
  --ink-500: #5b6678;
  --ink-400: #8893a4;
  --line:    #eaedf2;
  --line-2:  #e1e6ee;
  --bg:      #ffffff;
  --bg-soft: #f7f9fc;

  /* Radii */
  --radius:   14px;
  --radius-lg:20px;
  --radius-xl:26px;

  /* Layered, soft shadows for real depth */
  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 4px 6px -1px rgba(16,24,40,.07), 0 2px 4px -2px rgba(16,24,40,.05);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,.12), 0 4px 8px -4px rgba(16,24,40,.06);
  --shadow-xl: 0 24px 48px -12px rgba(16,24,40,.18), 0 8px 16px -8px rgba(16,24,40,.08);
  --shadow-brand: 0 10px 24px -6px rgba(10,138,74,.34);

  --grad: linear-gradient(135deg, var(--green-500) 0%, #0a8a4a 100%);
  --grad-vivid: linear-gradient(135deg, #1fc16e 0%, #0a9a52 55%, #057a3d 100%);
  --grad-soft: linear-gradient(160deg, #eafaf1 0%, #e9f7ef 55%, #f7f9fc 100%);

  --max: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { line-height: 1.18; margin: 0 0 .4em; letter-spacing: -.022em; font-weight: 800; }
h1 { letter-spacing: -.032em; }
p { margin: 0 0 1em; color: var(--ink-700); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-500); }
.center { text-align: center; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer; overflow: hidden;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-vivid); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 16px 30px -8px rgba(10,138,74,.5); transform: translateY(-2px); }
/* sheen sweep */
.btn-primary::after {
  content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn-primary:hover::after { left: 140%; }
.btn-dark { background: var(--blue-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-dark:hover { background: #085730; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(234,237,242,.9);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-vivid);
  display: grid; place-items: center; color: #fff; font-size: 19px; box-shadow: var(--shadow-brand);
}
.brand-logo { height: 54px; width: auto; display: block; }
.brand-mark { width: 34px; height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; font-weight: 600; color: var(--ink-700); font-size: 15px; padding: 4px 0; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-2px; height:2px; width:0; background:var(--grad-vivid); border-radius:2px; transition: width .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--blue-700); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink-700); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-soft); padding: 86px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content:""; position:absolute; left:-160px; bottom:-180px; width:420px; height:420px;
  background: radial-gradient(circle, rgba(22,179,100,.16), transparent 70%); border-radius:50%;
}
.hero::after {
  content:""; position:absolute; right:-140px; top:-140px; width:480px; height:480px;
  background: radial-gradient(circle, rgba(47,134,235,.18), transparent 70%); border-radius:50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 54px; margin-bottom: .25em; }
.hero h1 .accent { background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 19px; color: var(--ink-700); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; }
.hero-stats .num { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.hero-stats .lbl { font-size: 13px; color: var(--ink-500); }
.hero-card {
  position: relative; background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl);
  overflow: hidden; transform: rotate(.5deg); transition: transform .4s var(--ease);
}
.hero-card:hover { transform: rotate(0) translateY(-4px); }
.hero-card .ph { height: 230px; }
.hero-card .body { padding: 22px; }
.pill { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; padding:6px 13px; border-radius:999px; background:#fff; color:var(--green-600); box-shadow: var(--shadow-xs); border:1px solid var(--line); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 660px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: 36px; }
.section-head p { font-size: 17.5px; }
.eyebrow { display:inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 800; color: var(--blue-600); margin-bottom: 10px; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Campaign card (uniform, aligned) ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.card .thumb { display:block; aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.card .thumb .imgwrap, .card .thumb .imgwrap img { width:100%; height:100%; }
.card .thumb .imgwrap img { transition: transform .55s var(--ease); }
.card:hover .thumb .imgwrap img { transform: scale(1.06); }
.card .thumb .cat-badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  color: var(--ink-900); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display:inline-flex; align-items:center; gap:5px;
}
.card .content { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 {
  font-size: 18px; margin-bottom: 6px; min-height: 2.36em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card h3 a:hover { color: var(--blue-700); }
.card .desc {
  font-size: 14px; color: var(--ink-500); margin-bottom: 14px; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .organizer { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-500); margin-bottom:14px; }
/* Campaign-detail organiser: avatar + text on one line (avatar is display:grid = block by default) */
.detail-head .organizer { display:flex; align-items:center; gap:8px; color:var(--ink-700); font-size:14.5px; }
.detail-head .organizer .org-text { flex:1; min-width:0; }
.detail-title { font-size:34px; line-height:1.12; }
.card .spacer { flex: 1; }
.card .meta-row { display: flex; justify-content: space-between; align-items:baseline; font-size: 13px; margin-bottom: 8px; }
.card .meta-row b { font-size: 16px; color: var(--ink-900); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-vivid); color:#fff; display:grid; place-items:center; font-size:11px; font-weight:800; flex:none; }

/* ---------- Progress bar ---------- */
.progress { height: 8px; background: #eef1f6; border-radius: 999px; overflow: hidden; margin: 6px 0 10px; }
.progress > span { display:block; height:100%; background: var(--grad-vivid); border-radius:999px; box-shadow: 0 1px 4px rgba(10,138,74,.4); transition: width 1s var(--ease); }

/* ---------- Image fallback ---------- */
.imgwrap { background: var(--grad-soft); position: relative; overflow: hidden; }
.imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgwrap.fallback::after {
  content: attr(data-emoji); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 56px; background: var(--grad-soft);
}

/* ---------- Categories ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 22px; }
.cat-tile {
  position: relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px 20px;
  text-align:center; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .3s; overflow:hidden;
}
.cat-tile::before { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--grad-vivid); transform:scaleX(0); transform-origin:left; transition: transform .3s var(--ease); }
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-tile:hover::before { transform: scaleX(1); }
.cat-tile[data-cat="palestine"]::before { background: var(--pal-red); transform: scaleX(1); }
.cat-tile .ico { font-size: 36px; margin-bottom: 12px; display:inline-block; transition: transform .3s var(--ease); }
.cat-tile:hover .ico { transform: scale(1.12) rotate(-4deg); }
.cat-tile h4 { font-size: 17px; margin: 0 0 4px; }
.cat-tile span { font-size: 13px; color: var(--ink-500); }

/* ---------- Feature / trust ---------- */
.feature { display:flex; gap:16px; align-items:flex-start; }
.feature .fico {
  width:50px; height:50px; border-radius:14px; background:var(--green-50); color:var(--green-600);
  display:grid; place-items:center; font-size:24px; flex:none; box-shadow: var(--shadow-xs);
}
.feature h4 { font-size:18px; margin-bottom:4px; }
.feature p { font-size:14.5px; margin:0; }

.trust-band { background: radial-gradient(120% 120% at 80% 0%, #16263f 0%, var(--ink-900) 55%); color: #fff; }
.trust-band h2 { color:#fff; }
.trust-band .section-head p { color:#aeb9c8; }
.trust-band .feature p { color: #aeb9c8; }
.trust-band .fico { background: rgba(255,255,255,.07); color: #6ee7a8; box-shadow:none; border:1px solid rgba(255,255,255,.08); }
.trust-band .eyebrow { color: #6ee7a8; }

/* ---------- Interior page header ---------- */
.page-head { background: var(--grad-soft); padding: 60px 0; position:relative; overflow:hidden; }
.page-head::after { content:""; position:absolute; right:-120px; top:-120px; width:360px; height:360px; background:radial-gradient(circle, rgba(47,134,235,.16), transparent 70%); border-radius:50%; }
.page-head h1 { font-size: 42px; position:relative; }
.page-head p { position:relative; }
.crumbs { font-size: 13px; color: var(--ink-500); margin-bottom: 12px; }
.crumbs a:hover { color: var(--blue-700); }
.detail-section .crumbs { margin-bottom: 18px; }

/* ---------- Filters ---------- */
.toolbar { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between; margin-bottom: 32px; }
.chips { display:flex; gap:10px; flex-wrap:wrap; }
.chip {
  border:1px solid var(--line-2); background:#fff; border-radius:999px; padding:9px 17px;
  font-size:14px; font-weight:600; cursor:pointer; color:var(--ink-700); transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--blue-500); color:var(--blue-700); transform: translateY(-1px); }
.chip.active { background: var(--ink-900); color:#fff; border-color: var(--ink-900); box-shadow: var(--shadow-md); }
.select { border:1px solid var(--line-2); border-radius:999px; padding:10px 17px; font-size:14px; font-weight:600; background:#fff; cursor:pointer; color:var(--ink-700); }

/* ---------- Campaign detail ---------- */
.detail-grid {
  display:grid; grid-template-columns: 1.6fr 1fr; column-gap: 44px; row-gap: 0;
  grid-template-areas: "head donate" "body donate"; align-items: start;
}
.detail-head { grid-area: head; }
.detail-body { grid-area: body; }
.detail-grid > aside { grid-area: donate; }
.banner { aspect-ratio: 16/9; border-radius: var(--radius-xl); overflow:hidden; box-shadow: var(--shadow-lg); margin-bottom: 26px; }
.story h3 { font-size: 22px; margin-top: 30px; }
.story p { font-size: 15.5px; }
.story-gallery { display:grid; grid-template-columns: repeat(2,1fr); gap:14px; margin:20px 0 8px; }
.story-gallery .imgwrap { aspect-ratio: 4/3; border-radius:16px; box-shadow: var(--shadow-sm); }
.update-item { border-left:3px solid var(--green-500); padding:4px 0 4px 16px; margin-bottom: 20px; }
.update-item .date { font-size:12.5px; color:var(--ink-500); font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.share-row { display:flex; gap:10px; margin-top: 8px; }
.share-row a { width:44px; height:44px; border-radius:50%; background:var(--bg-soft); border:1px solid var(--line); display:grid; place-items:center; font-size:18px; transition:.18s var(--ease); }
.share-row a:hover { background:var(--blue-50); border-color:var(--blue-500); transform: translateY(-3px); color:var(--blue-700); }

.donate-box {
  position: sticky; top: 92px; background:#fff; border:1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 26px;
}
.donate-box .raised { font-size: 32px; font-weight: 900; letter-spacing:-.03em; }
.donate-box .of { font-size: 14px; color: var(--ink-500); }
.stat-inline { display:flex; gap: 26px; margin: 16px 0 20px; }
.stat-inline .n { font-size: 19px; font-weight: 800; } .stat-inline .l { font-size:12.5px; color:var(--ink-500); }
.toggle-row { display:flex; gap:6px; background:var(--bg-soft); padding:5px; border-radius:999px; margin-bottom:16px; border:1px solid var(--line); }
.toggle-row button { flex:1; border:0; background:none; padding:10px; border-radius:999px; font-weight:700; font-size:14px; cursor:pointer; color:var(--ink-500); transition:.2s; }
.toggle-row button.active { background:#fff; color:var(--ink-900); box-shadow: var(--shadow-sm); }
.amount-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:10px; margin-bottom:14px; }
.amount-grid button { border:1px solid var(--line-2); background:#fff; border-radius:11px; padding:13px; font-weight:700; cursor:pointer; transition:.18s var(--ease); }
.amount-grid button:hover { border-color: var(--green-500); transform: translateY(-1px); }
.amount-grid button.active { border-color: var(--green-500); background: var(--green-50); color: var(--green-600); box-shadow: 0 0 0 3px rgba(22,179,100,.12); }
.donate-share { margin-top:18px; padding-top:18px; border-top:1px solid var(--line); text-align:center; }
.donate-share-label { display:block; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-500); margin-bottom:10px; }
.donate-share .share-row { justify-content:center; }
/* Compact donate card CTA (campaign detail) + dedicated donate page header */
.donate-cta { display:flex; gap:10px; margin-top:4px; }
.donate-cta .btn { flex:1; justify-content:center; }
.donate-head { display:flex; align-items:center; gap:14px; }
.donate-head-thumb { flex:none; width:56px; height:56px; border-radius:14px; background:var(--bg-soft) center/cover no-repeat; display:grid; place-items:center; font-size:26px; border:1px solid var(--line); }
/* Image upload previews (site-wide) */
.file-preview { margin-top:10px; }
.file-preview img { max-height:170px; max-width:100%; border-radius:12px; border:1px solid var(--line-2); box-shadow:var(--shadow-xs); display:block; object-fit:cover; }
.upload #coverPreview { max-height:230px; max-width:100%; border-radius:14px; margin:0 auto 12px; display:block; box-shadow:var(--shadow-sm); }
/* Professional share popup */
.share-modal { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(11,18,32,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.share-modal[hidden] { display:none; }
.share-sheet { background:#fff; width:100%; max-width:430px; border-radius:24px; padding:24px; box-shadow:var(--shadow-xl); max-height:90vh; overflow:auto; animation:shareIn .2s var(--ease); }
@keyframes shareIn { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
.share-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.share-sheet-head h3 { margin:0; font-size:22px; }
.share-close { flex:none; width:38px; height:38px; border-radius:50%; border:0; background:var(--bg-soft); font-size:16px; cursor:pointer; color:var(--ink-700); transition:.16s var(--ease); }
.share-close:hover { background:var(--line); }
.share-options { display:flex; flex-direction:column; gap:11px; }
.share-opt { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:14px; border-radius:999px; border:0; font-weight:700; font-size:15px; cursor:pointer; color:#fff; font-family:inherit; text-decoration:none; transition:transform .15s var(--ease), filter .2s; }
.share-opt:hover { transform:translateY(-2px); filter:brightness(.95); }
.share-opt .ico { font-weight:900; font-style:normal; }
.share-opt svg { width:19px; height:19px; flex:none; display:block; }
.sh-fb { background:#1877f2; } .sh-x { background:#000; } .sh-wa { background:#25d366; }
.sh-tg { background:#229ed9; } .sh-in { background:#0a66c2; } .sh-mail { background:#5b6678; }
.sh-copy { background:var(--green-600); }
.sh-more { background:#fff; color:var(--ink-900); border:1px solid var(--line-2); }
.sh-more:hover { filter:none; border-color:var(--blue-500); color:var(--blue-700); }
/* Tip — thin draggable slider */
.tip-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.tip-label { display:inline-flex; align-items:center; gap:7px; font-size:13.5px; font-weight:700; }
.tip-fee { font-size:11px; font-weight:700; color:var(--green-600); background:var(--green-50); padding:2px 9px; border-radius:999px; }
.tip-val { font-size:13.5px; font-weight:800; color:var(--ink-900); white-space:nowrap; }
.tip-range { -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px;
  background:linear-gradient(90deg, var(--green-500) 33%, var(--line-2) 33%); outline:none; cursor:pointer; margin:2px 0 0; }
.tip-range::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
  background:var(--green-500); border:3px solid #fff; box-shadow:var(--shadow-md); cursor:pointer; }
.tip-range::-moz-range-thumb { width:22px; height:22px; border-radius:50%; background:var(--green-500); border:3px solid #fff; box-shadow:var(--shadow-md); cursor:pointer; }

/* ---------- Forms ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 38px; max-width: 720px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display:block; font-weight:700; font-size:14px; margin-bottom:7px; }
.field .hint { font-size:12.5px; color:var(--ink-500); font-weight:500; margin-left:6px; }
.input, .textarea, select.input {
  width:100%; border:1px solid var(--line-2); border-radius:11px; padding:13px 15px; font-size:15px;
  font-family:inherit; color:var(--ink-900); background:#fff; transition: border .18s, box-shadow .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:focus, .textarea:focus, select.input:focus { outline:none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-50); }
.textarea { min-height: 140px; resize: vertical; }
.input-prefix { position:relative; }
.input-prefix > span { position:absolute; left:15px; top:50%; transform:translateY(-50%); color:var(--ink-500); font-weight:700; pointer-events:none; }
.input-prefix .input { padding-left: 30px; }
.upload {
  display:block; border:2px dashed var(--line-2); border-radius:16px; padding:36px; text-align:center; cursor:pointer;
  color:var(--ink-500); transition:.18s var(--ease); background: var(--bg-soft);
}
.upload:hover { border-color: var(--blue-500); color: var(--blue-700); background:#fff; }
.upload .ico { font-size: 40px; margin-bottom: 8px; }
.story-thumbs { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.story-thumbs .thumb-item { position:relative; }
.story-thumbs img { width:88px; height:88px; object-fit:cover; border-radius:12px; border:1px solid var(--line-2); box-shadow: var(--shadow-xs); display:block; }
.story-thumbs .thumb-x { position:absolute; top:-7px; right:-7px; width:22px; height:22px; border-radius:50%; border:0; background:var(--ink-900); color:#fff; font-size:15px; line-height:1; cursor:pointer; box-shadow:var(--shadow-sm); display:grid; place-items:center; padding:0; }
.story-thumbs .thumb-x:hover { background:var(--pal-red); }
.notice {
  display:flex; gap:12px; align-items:flex-start; background: var(--blue-50); border:1px solid #cfead9;
  border-radius:14px; padding:15px 17px; font-size:14px; color: var(--blue-700); margin: 18px 0;
}
.notice .ico { font-size:20px; line-height:1.2; }

/* ---------- Dashboard ---------- */
.dash-stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; margin-bottom: 34px; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .ico { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:21px; margin-bottom:14px; }
.stat-card .big { font-size: 30px; font-weight: 900; letter-spacing:-.03em; }
.stat-card .lbl { font-size:13.5px; color: var(--ink-500); }
.stat-card .delta { font-size:12.5px; font-weight:700; color: var(--green-600); margin-top:4px; }
.table { width:100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.table th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-500); padding:14px 18px; background:var(--bg-soft); border-bottom:1px solid var(--line); }
.table td { padding:15px 18px; border-bottom:1px solid var(--line); font-size:14.5px; vertical-align:middle; }
.table tr:last-child td { border-bottom:0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-soft); }
.tag { font-size:12px; font-weight:700; padding:5px 11px; border-radius:999px; white-space:nowrap; }
.tag.live { background:var(--green-50); color:var(--green-600); }
.tag.review, .tag.reported { background:#fff4e0; color:#b87503; }
.tag.hidden { background:#fdeaea; color:#c0392b; }
.tag.ended { background:#eef0f3; color:var(--ink-500); }

/* ---------- Checkout ---------- */
.checkout-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items:start; }
.pay-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px; }
.summary { background: var(--bg-soft); border:1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; }
.summary .line { display:flex; justify-content:space-between; padding:11px 0; font-size:15px; border-bottom:1px dashed var(--line-2); }
.summary .line.total { border-bottom:0; font-size:21px; font-weight:900; padding-top:16px; letter-spacing:-.02em; }
.card-row { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.secured-strip { display:flex; align-items:center; gap:8px; justify-content:center; font-size:13px; color:var(--ink-500); margin-top:18px; }
.stripe-badge { display:inline-flex; align-items:center; gap:6px; font-weight:800; color:#635bff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left:50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink-900); color:#fff; padding: 14px 22px; border-radius: 14px; font-weight:600; font-size:15px;
  box-shadow: var(--shadow-xl); opacity:0; pointer-events:none; transition: all .35s var(--ease); z-index: 300; display:flex; gap:10px; align-items:center;
}
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }
.toast span { color:#6ee7a8; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: #aeb9c8; padding: 66px 0 32px; }
.footer .brand { color:#fff; margin-bottom: 16px; }
.footer .brand .logo { box-shadow:none; }
.footer-grid { display:grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 38px; margin-bottom: 40px; }
.footer h5 { color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.footer ul { list-style:none; padding:0; margin:0; }
.footer li { margin-bottom: 11px; font-size:14.5px; }
.footer a { transition: color .15s; }
.footer a:hover { color:#fff; }
.footer .socials { display:flex; gap:12px; margin-top:18px; }
.footer .socials a { width:40px; height:40px; border-radius:11px; background:rgba(255,255,255,.06); display:grid; place-items:center; font-size:17px; transition:.18s var(--ease); }
.footer .socials a:hover { background:rgba(255,255,255,.16); transform: translateY(-2px); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13.5px; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon { background: linear-gradient(90deg,#0b1220,#16263f); color:#fff; text-align:center; font-size:13px; padding:8px 12px; font-weight:600; }
.demo-ribbon b { color:#6ee7a8; }

/* ---------- Success modal ---------- */
.modal-overlay { position:fixed; inset:0; background:rgba(11,18,32,.6); backdrop-filter: blur(4px); z-index:200; display:grid; place-items:center; padding:20px; animation: fade .3s var(--ease); }
.modal-box { background:#fff; border-radius:var(--radius-xl); max-width:430px; width:100%; padding:42px 34px; text-align:center; box-shadow:var(--shadow-xl); animation: pop .4s var(--ease); }
@keyframes fade { from {opacity:0;} }
@keyframes pop { from {opacity:0; transform: translateY(16px) scale(.96);} }

/* Campaign detail page wrapper (top/bottom padding tuned per breakpoint) */
.detail-section { padding: 36px 0 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
  /* On mobile/tablet the donate box rises directly under the title, story follows */
  .detail-grid { grid-template-areas: "head" "donate" "body"; row-gap: 10px; }
  .detail-section { padding: 16px 0 48px; }
  .hero h1 { font-size: 42px; }
  .grid-4, .dash-stats, .cat-tiles { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Surface Donate + Share at the TOP of the box (right under the organiser), amount below */
  .donate-box { position: static; padding: 9px 18px 18px; display: flex; flex-direction: column; }
  .donate-box .donate-cta { order: -1; margin: 0 0 16px; }
  section { padding: 64px 0; }
}

/* ---------- Sticky mobile action bar (Donate + Share) ---------- */
.mobile-action-bar { display: none; }
.mobile-donate-spacer { display: none; }
#donate, #supporters { scroll-margin-top: 88px; }
@media (max-width: 1000px) {
  .mobile-action-bar {
    display: block;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: 0 10px 34px rgba(11,18,32,.20); padding: 12px 14px;
    transition: transform .32s var(--ease), opacity .25s var(--ease);
  }
  /* Hidden until the inline Donate/Share buttons scroll out of view (GoFundMe-style) */
  .mobile-action-bar.is-hidden { transform: translateY(170%); opacity: 0; pointer-events: none; }
  .mab-top { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
  .mab-ring {
    --p: 0; flex: none; width: 46px; height: 46px; border-radius: 50%; position: relative;
    background: conic-gradient(var(--green-500) calc(var(--p) * 1%), var(--line) 0);
    display: grid; place-items: center;
  }
  .mab-ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
  .mab-ring span { position: relative; font-size: 11.5px; font-weight: 800; color: var(--ink-900); }
  .mab-meta { min-width: 0; line-height: 1.3; }
  .mab-amt { font-size: 13.5px; color: var(--ink-500); }
  .mab-amt b { color: var(--ink-900); font-size: 17px; font-weight: 900; }
  .mab-sub { display: block; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mab-btns { display: flex; gap: 10px; }
  .mab-btns .btn { flex: 1; justify-content: center; padding: 13px; }
  .mobile-donate-spacer { display: block; height: 130px; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; font-size: 23px; }
  .nav-inner { height: 60px; }
  .nav-actions { gap: 7px; }
  .user-menu { display: none; }   /* avatar hidden on mobile — all account links live in the hamburger */
  .brand { flex-shrink: 0; }
  .brand-logo { height: 36px; }
  /* Search collapses to a compact icon on mobile (no border/label) */
  .nav-search-btn { gap: 0; padding: 6px; border-color: transparent; border-radius: 11px; }
  .nav-search-btn .nss-label { display: none; }
  .nav-search-btn svg { width: 19px; height: 19px; }
  /* Keep "Start a Campaign" in the top bar — shrunk so logo + search + CTA + menu all fit */
  .nav-actions .btn-primary { font-size: 12px; padding: 8px 11px; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items:flex-start; position: absolute; top: 60px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line); padding: 18px 24px; gap: 18px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open a::after { display:none; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 34px; }
  .detail-title { font-size: 24px; }
  .detail-section .crumbs { margin-bottom: 10px; }
  .hero-stats { gap: 22px; }
  .hero-card { transform:none; }
  .grid-2, .grid-3, .grid-4, .dash-stats, .cat-tiles, .footer-grid, .card-row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 36px; }
  .section-head h2, .page-head h1 { font-size: 28px; }
  .form-card, .pay-card, .summary { padding: 24px; }
  .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  /* Responsive table → stacked cards (no horizontal scroll / clipped columns) */
  .table.responsive { border:0; background:none; }
  .table.responsive thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .table.responsive tbody, .table.responsive tr, .table.responsive td { display:block; width:100%; }
  .table.responsive tr { background:#fff; border:1px solid var(--line); border-radius:14px; padding:6px 16px; margin-bottom:14px; box-shadow:var(--shadow-xs); }
  .table.responsive tr:hover { background:#fff; }
  .table.responsive td { border:0; border-bottom:1px solid var(--line); padding:11px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:right; }
  .table.responsive tr td:last-child { border-bottom:0; }
  .table.responsive td::before { content:attr(data-label); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-500); text-align:left; flex:none; }
  .footer-bottom { justify-content:flex-start; }
  section { padding: 56px 0; }
}

/* ---------- Full-screen hero (Relivora, Chuffed-style) ---------- */
.hero-full {
  position: relative; min-height: 60vh; display: flex; align-items: center;
  color: #fff; background-size: cover; background-position: center; padding: 64px 0;
}
.hero-full::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,18,32,.45) 0%, rgba(11,18,32,.76) 100%);
}
.hero-full .container { position: relative; z-index: 1; }
.hero-eyebrow { display:inline-block; text-transform:uppercase; letter-spacing:.18em; font-size:13px; font-weight:800; color:#6ee7a8; margin-bottom:16px; }
.hero-full h1 { color:#fff; font-size: clamp(32px, 4.6vw, 56px); max-width: 16ch; margin-bottom:.3em; }
.hero-full p.lead { color: rgba(255,255,255,.92); font-size: 19px; max-width: 600px; }
.hero-full p.lead b { color:#fff; }
.hero-full .hero-cta { display:flex; gap:14px; flex-wrap:wrap; margin-top: 30px; }
.hero-full .hero-stats { display:flex; gap:44px; margin-top: 46px; flex-wrap:wrap; }
.hero-full .hero-stats .num { font-size: 30px; font-weight: 900; letter-spacing:-.03em; color:#fff; }
.hero-full .hero-stats .lbl { font-size: 13px; color: rgba(255,255,255,.7); }
@media (max-width: 680px) {
  .hero-full { min-height: 66vh; padding: 52px 0; }
  .hero-full .hero-stats { gap: 26px; }
}

/* ---------- Create-campaign wizard ---------- */
.wizard-steps { list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0 0 24px; justify-content:center; }
.wizard-steps li { display:flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700; color:var(--ink-400); padding:4px 8px; }
.wizard-steps li .dot { width:26px; height:26px; border-radius:50%; display:grid; place-items:center; background:#eef1f6; color:var(--ink-500); font-size:12.5px; transition:.2s; }
.wizard-steps li.active { color:var(--blue-700); }
.wizard-steps li.active .dot { background:var(--grad-vivid); color:#fff; box-shadow:var(--shadow-brand); }
.wizard-steps li.done .dot { background:var(--green-50); color:var(--green-600); }
.wizard-panel h3 { font-size:22px; margin-bottom:18px; }
.bene-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.bene-card { border:1px solid var(--line-2); border-radius:14px; padding:24px 16px; text-align:center; cursor:pointer; transition:.18s var(--ease); display:flex; flex-direction:column; gap:8px; align-items:center; }
.bene-card:hover { border-color:var(--blue-500); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.bene-card .ico { font-size:30px; }
.bene-card input { position:absolute; opacity:0; }
.bene-card:has(input:checked) { border-color:var(--green-500); background:var(--green-50); box-shadow:0 0 0 3px rgba(22,179,100,.14); }

/* ---------- Flash message ---------- */
.flash { background:var(--green-50); border:1px solid #b8e6cd; color:var(--green-600); border-radius:14px; padding:14px 18px; display:flex; gap:10px; align-items:center; font-weight:600; margin-bottom:22px; }

@media (max-width: 680px) {
  .bene-grid { grid-template-columns:1fr; }
}

/* ---------- Hero banner (contained, rounded, Chuffed-style) ---------- */
.hero-wrap { padding: 26px 0 6px; }
.hero-banner {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 460px;
  background-size: cover; background-position: center; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.hero-banner::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(11,18,32,.82) 0%, rgba(11,18,32,.5) 46%, rgba(11,18,32,.14) 100%);
}
.hero-banner-inner { position: relative; z-index:1; padding: 52px 48px; max-width: 640px; color:#fff; }
.hero-banner-inner h1 { color:#fff; font-size: clamp(30px, 4vw, 50px); margin-bottom:.35em; }
.hero-banner-inner p { color: rgba(255,255,255,.92); font-size: 17.5px; max-width: 540px; }
.hero-banner-inner p b { color:#fff; }
.hero-banner-inner .hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-top: 22px; }
.hero-banner-inner .btn-ghost { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.hero-banner-inner .btn-ghost:hover { background: rgba(255,255,255,.24); color:#fff; }
@media (max-width:680px){
  .hero-banner { min-height: 430px; border-radius:18px; }
  .hero-banner-inner { padding: 30px 22px; }
}

/* ---------- Featured movements (image category tiles) ---------- */
.movements { display:grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap:14px; }
.movement {
  position:relative; height: 104px; border-radius:16px; overflow:hidden;
  display:grid; place-items:center; background-size:cover; background-position:center;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .3s; isolation:isolate;
}
.movement::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,18,32,.22), rgba(11,18,32,.64)); z-index:-1; }
.movement span { color:#fff; font-weight:800; text-transform:uppercase; letter-spacing:.04em; font-size:14px; text-align:center; padding:0 10px; text-shadow:0 1px 6px rgba(0,0,0,.55); }
.movement:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.movement-all { background: var(--grad-vivid); }
.movement.is-active { outline: 3px solid var(--green-500); outline-offset: 2px; transform: translateY(-2px); }
.movement.is-active::after { content:"✓"; position:absolute; top:6px; right:8px; color:#fff; font-weight:900; font-size:13px; text-shadow:0 1px 4px rgba(0,0,0,.6); }
.movement[data-cat="palestine"]::before { background: linear-gradient(180deg, rgba(206,17,38,.4), rgba(4,122,61,.72)); }
@media (max-width:680px){ .movements { grid-template-columns: repeat(2, 1fr); gap:10px; } .movement { height: 92px; } }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--grad-vivid); padding: 56px 0; }
.cta-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.cta-strip h2 { color:#fff; font-size:30px; margin:0; }
.cta-strip p { color: rgba(255,255,255,.92); margin:6px 0 0; }
.cta-strip .btn-primary { background:#fff; color: var(--green-600); box-shadow: var(--shadow-md); }
.cta-strip .btn-primary::after { display:none; }
.cta-strip .btn-primary:hover { background:#fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Wizard stepper (numbered circles + connecting line) ---------- */
.wizard-steps { position: relative; align-items:flex-start; gap:0; }
.wizard-steps li { flex:1; flex-direction:column; gap:8px; text-align:center; position:relative; min-width:0; padding:0; }
.wizard-steps li .lbl { order:-1; font-size:11.5px; }
.wizard-steps li .dot { position:relative; z-index:1; width:34px; height:34px; font-size:14px; border:2px solid #eef1f6; background:#fff; color:var(--ink-400); }
.wizard-steps li.active .dot { border-color: transparent; }
.wizard-steps li:not(:last-child)::after {
  content:""; position:absolute; top:33px; left:50%; width:100%; height:2px; background:#eef1f6; z-index:0;
}
.wizard-steps li.done::after { background: var(--green-400); }

/* bigger beneficiary cards */
.bene-card { padding: 30px 18px; border-width:2px; border-radius:16px; }
.bene-card .ico { font-size:34px; }
.bene-card b { font-size:16px; }

/* wizard info tiles + inline error */
.wizard-info { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:30px; }
.wizard-info .tile { background:var(--bg-soft); border:1px solid var(--line); border-radius:14px; padding:18px; text-align:center; }
.wizard-info .tile .ico { font-size:22px; color:var(--blue-600); }
.wizard-info .tile p { font-size:12.5px; margin:8px 0 0; color:var(--ink-500); }
.wizard-error { background:#fdeaea; border:1px solid #f5c2c2; color:#c0392b; border-radius:12px; padding:11px 15px; font-size:14px; font-weight:600; margin-bottom:16px; display:none; }
.wizard-error.show { display:block; }
.wizard-actions { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:28px; }
@media (max-width:680px){
  .wizard-info { grid-template-columns:1fr 1fr; }
  .cta-inner { justify-content:center; text-align:center; }
  .wizard-steps li .lbl { display:none; }
}

/* ---------- Fix: let grid/flex items with aspect-ratio media shrink ----------
   Without min-width:0, an aspect-ratio box (banner/card thumb) balloons to the
   loaded image's intrinsic size and breaks the layout. */
.detail-grid > *, .grid > *, .cat-tiles > *, .movements > * { min-width: 0; }
.card, .card .thumb { min-width: 0; }
.banner { width: 100%; max-width: 100%; }
/* Wrap long unbroken strings (pasted links/tokens) so they never overflow */
.story p, .story h3, .card h3, .card .desc, h1, h2, h3, .donate-box { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Supporters (Top + Recent donations) ---------- */
.supporters { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.supporter-head { font-weight:800; font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-500); margin-bottom:10px; }
.supporter-row { display:flex; align-items:center; gap:11px; padding:10px 0; border-bottom:1px solid var(--line); }
.supporter-row:last-child { border-bottom:0; }
.supporter-row .avatar { flex:none; }
.supporter-row .s-meta { display:flex; flex-direction:column; line-height:1.25; flex:1; min-width:0; }
.supporter-row .s-meta b { font-size:14px; }
.supporter-row .s-meta span { font-size:12px; }
.supporter-row .s-amt { font-weight:800; color:var(--green-600); white-space:nowrap; }
@media (max-width:680px){ .supporters { grid-template-columns:1fr; gap:20px; } }
/* Donations section header — count + total collected */
.sup-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:30px; margin-bottom:8px; }
.sup-head h3 { margin:0; display:inline-flex; align-items:center; gap:9px; }
.sup-count { font-size:13px; font-weight:800; color:var(--ink-500); background:var(--bg-soft); border:1px solid var(--line); padding:3px 11px; border-radius:999px; }
.sup-collected { font-size:14px; font-weight:800; color:var(--green-600); }
/* Tabbed Recent / Top donations — one list at a time keeps the page short */
.sup-tabs { display:inline-flex; gap:6px; background:var(--bg-soft); padding:5px; border-radius:999px; margin:6px 0 16px; border:1px solid var(--line); }
.sup-tabs button { border:0; background:none; padding:9px 20px; border-radius:999px; font-weight:700; font-size:14px; cursor:pointer; color:var(--ink-500); transition:.2s; white-space:nowrap; }
.sup-tabs button.active { background:#fff; color:var(--ink-900); box-shadow: var(--shadow-sm); }
.sup-tabs .t-count { font-size:12px; color:var(--ink-400); font-weight:800; margin-left:3px; }
.sup-tabs button.active .t-count { color:var(--green-600); }
.supporter-panel[hidden] { display:none; }

/* ---------- Admin portal ---------- */
.admin-nav { display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin:4px 0 28px; overflow-x:auto; }
.admin-nav a { padding:12px 16px; font-weight:700; font-size:14.5px; color:var(--ink-500); border-bottom:3px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.admin-nav a:hover { color:var(--ink-900); }
.admin-nav a.active { color:var(--green-600); border-bottom-color:var(--green-500); }
.adm-badge { display:inline-block; min-width:18px; text-align:center; padding:1px 6px; border-radius:999px; background:#c0392b; color:#fff; font-size:11px; font-weight:800; margin-left:5px; vertical-align:middle; }
.adm-toolbar { display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:20px; }
.adm-toolbar-right { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.adm-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.adm-search { position:relative; display:flex; }
.adm-search .adm-search-ico { position:absolute; left:15px; top:50%; transform:translateY(-50%); font-size:14px; opacity:.5; pointer-events:none; }
.adm-search input { min-width:230px; padding-left:38px; border-radius:999px; }
.adm-inline { display:inline; }
.adm-export { white-space:nowrap; }
/* Sortable table headers */
.th-sort { padding:0 !important; }
.th-sort a { display:flex; align-items:center; gap:6px; padding:14px 18px; color:inherit; transition:color .15s, background .15s; }
.th-sort a:hover { color:var(--ink-900); background:rgba(11,18,32,.03); }
.th-sort.is-sorted { color:var(--green-600); }
.th-arrow { font-size:10px; opacity:.55; }
.th-sort.is-sorted .th-arrow { opacity:1; }
.table thead th { user-select:none; }
.select.is-active { border-color:var(--green-500); color:var(--green-600); background:var(--green-50); }
.pager { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.pager-btn { padding:9px 16px; border:1px solid var(--line-2); border-radius:999px; font-weight:700; font-size:14px; background:#fff; color:var(--ink-900); }
.pager-btn:hover { border-color:var(--green-500); }
.pager-btn.is-disabled { opacity:.45; pointer-events:none; }
.pager-info { font-size:13.5px; color:var(--ink-500); }
.tag.draft, .tag.ended { background:var(--bg-soft); color:var(--ink-500); }
.tag.hidden { background:#fdeaea; color:#c0392b; }
.tag.reported { background:#fff4e0; color:#b87503; }
.tag.admin { background:#f3eaff; color:#7c3aed; }
.cat-flag { height:12px; width:auto; border-radius:2px; vertical-align:-1px; display:inline-block; box-shadow:0 0 0 1px rgba(0,0,0,.08); }
/* Category picker (create wizard) */
.cat-pick { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; }
.cat-pick-item { display:flex; align-items:center; gap:10px; border:1px solid var(--line-2); border-radius:12px; padding:13px 15px; cursor:pointer; font-weight:700; font-size:14.5px; transition:.15s var(--ease); }
.cat-pick-item input { position:absolute; opacity:0; pointer-events:none; }
.cat-pick-item:hover { border-color:var(--green-500); }
.cat-pick-item.is-active { border-color:var(--green-500); background:var(--green-50); color:var(--green-600); box-shadow:0 0 0 3px rgba(22,179,100,.12); }
.cat-pick-ico { display:inline-flex; align-items:center; font-size:18px; }
.cat-pick-ico .cat-flag { height:16px; }
.cat-admin-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; align-items:start; }
.cat-admin-grid .movement { cursor:default; }
.cat-admin-grid .movement:hover { transform:none; }
@media (max-width:760px){ .cat-admin-grid { grid-template-columns:1fr; } }

/* ---------- Footer brand + newsletter ---------- */
.footer-brand .footer-tagline { color:#6ee7a8; font-weight:700; letter-spacing:.14em; font-size:11.5px; text-transform:uppercase; margin:8px 0 14px 58px; }
.footer-brand p { max-width: 330px; }
.footer-news { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1); padding:22px 0; margin-bottom:22px; }
.footer-news-text b { color:#fff; font-size:18px; display:block; }
.footer-news-text span { font-size:14px; }
.footer-news-form { display:flex; gap:10px; flex:1; max-width:430px; min-width:260px; }
.footer-news-form input { flex:1; min-width:0; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:#fff; border-radius:999px; padding:12px 18px; font-size:14px; font-family:inherit; }
.footer-news-form input::placeholder { color:rgba(255,255,255,.5); }
.footer-news-form input:focus { outline:none; border-color:var(--green-400); box-shadow:0 0 0 3px rgba(22,179,100,.18); }
.footer-news-ok { color:#6ee7a8; font-weight:700; font-size:14px; margin-bottom:20px; }
@media (max-width:1000px){ .footer-brand { grid-column:1 / -1; } }
@media (max-width:680px){ .footer-news { flex-direction:column; align-items:flex-start; } .footer-news-form { max-width:none; width:100%; } .footer-brand .footer-tagline { margin-left:58px; } }

/* ---------- Legal / prose pages ---------- */
.legal { max-width:760px; }
.legal h3 { font-size:19px; margin:26px 0 8px; }
.legal p { font-size:15.5px; color:var(--ink-700); }
.legal em { color:var(--ink-500); }

/* ---------- Wizard: Stripe panel + Quill + rich story ---------- */
.stripe-panel { background:var(--bg-soft); border:1px solid var(--line); border-radius:16px; padding:28px; text-align:center; }
.stripe-logo { font-size:36px; font-weight:900; color:#635bff; letter-spacing:-.04em; margin-bottom:8px; }
.stripe-panel p { font-size:14px; max-width:520px; margin:0 auto; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color:var(--line-2); }
.ql-toolbar.ql-snow { border-radius:11px 11px 0 0; background:var(--bg-soft); }
.ql-container.ql-snow { border-radius:0 0 11px 11px; font-family:inherit; font-size:15px; }
.ql-editor { min-height:240px; }
.story-body { font-size:15.5px; color:var(--ink-700); }
.story-body p { margin:0 0 1em; }
.story-body h2, .story-body h3 { color:var(--ink-900); margin:20px 0 8px; }
.story-body img { max-width:100%; height:auto; border-radius:12px; margin:12px 0; }
.story-body a { color:var(--blue-700); text-decoration:underline; }
.story-body ul, .story-body ol { margin:0 0 1em 1.4em; }
.story-body blockquote { border-left:3px solid var(--green-500); margin:0 0 1em; padding:4px 0 4px 16px; color:var(--ink-700); }

/* ---------- Tabs (profile) ---------- */
.tabs { display:flex; gap:6px; border-bottom:1px solid var(--line); margin-bottom:26px; }
.tabs .tab { background:none; border:0; border-bottom:3px solid transparent; padding:12px 16px; font-weight:700; font-size:15px; color:var(--ink-500); cursor:pointer; margin-bottom:-1px; }
.tabs .tab:hover { color:var(--ink-900); }
.tabs .tab.active { color:var(--blue-700); border-bottom-color:var(--green-500); }

/* ---------- Dashboard welcome + payout banner ---------- */
.dash-welcome { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.payout-banner { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:var(--blue-50); border:1px solid #cfead9; border-radius:16px; padding:18px 22px; }
.payout-banner.is-on { background:var(--green-50); border-color:#b8e6cd; }
.payout-banner b { display:block; font-size:15.5px; color:var(--ink-900); }
.payout-banner span { font-size:13.5px; color:var(--ink-500); }

/* ---------- Report disclosure ---------- */
.report-box summary { cursor:pointer; font-weight:700; color:var(--ink-500); font-size:14px; list-style:none; }
.report-box summary:hover { color:var(--pal-red); }
.report-box[open] summary { color:var(--ink-900); margin-bottom:4px; }

/* ---------- Dashboard row actions ---------- */
.row-act { display:inline-block; background:none; border:0; cursor:pointer; font-family:inherit; font-weight:700; font-size:13.5px; color:var(--ink-700); padding:2px 7px; }
.row-act:hover { color:var(--blue-700); }
.row-act-danger:hover { color:var(--pal-red); }

/* Icon-only row actions (Edit / View / Pause / Delete …) */
.row-actions { display:inline-flex; gap:4px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.row-act.ico-act { font-size:16px; line-height:1; padding:8px; border-radius:9px; text-decoration:none; transition:background .15s ease; }
.row-act.ico-act:hover { background:var(--blue-50); }
.row-act.ico-act.row-act-danger:hover { background:#fef2f2; }

/* ---------- Nav search (Chuffed-style) ---------- */
.nav-search-btn { display:inline-flex; align-items:center; gap:26px; border:1px solid var(--line-2); background:#fff; cursor:pointer; border-radius:999px; padding:9px 16px; color:var(--ink-500); font-family:inherit; transition:.15s var(--ease); }
.nav-search-btn:hover { border-color:var(--green-500); color:var(--green-600); }
.nav-search-btn .nss-label { font-size:14.5px; font-weight:600; }
.nav-search-btn svg { width:18px; height:18px; }
.nav-search { background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow-sm); }
.nav-search-inner { padding:16px 0 18px; }
.nav-search-form { display:flex; align-items:center; gap:10px; border:2px solid var(--line-2); border-radius:14px; padding:11px 15px; background:#fff; }
.nav-search-form:focus-within { border-color:var(--green-500); box-shadow:0 0 0 4px rgba(22,179,100,.10); }
.nav-search-ico { font-size:16px; opacity:.65; }
.nav-search-form input { flex:1; min-width:0; border:0; outline:0; font-size:16px; font-family:inherit; background:none; color:var(--ink-900); }
.nav-search-close { border:0; background:none; cursor:pointer; font-size:15px; color:var(--ink-500); padding:4px 6px; line-height:1; }
.nav-search-close:hover { color:var(--ink-900); }
.nav-search-results { margin-top:14px; }
.ns-label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-500); margin-bottom:10px; }
.ns-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.ns-card { display:flex; gap:12px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:12px; text-decoration:none; color:inherit; transition:.15s var(--ease); }
.ns-card:hover { border-color:var(--green-500); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.ns-thumb { width:52px; height:52px; border-radius:10px; flex:none; background-size:cover; background-position:center; background-color:var(--bg-soft); display:flex; align-items:center; justify-content:center; }
.ns-thumb.fallback::before { content:attr(data-emoji); font-size:22px; }
.ns-meta { display:flex; flex-direction:column; min-width:0; }
.ns-title { font-weight:700; font-size:14.5px; color:var(--ink-900); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ns-sub { font-size:12.5px; color:var(--ink-500); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ns-raised { font-size:13px; font-weight:800; color:var(--green-600); margin-top:2px; }
.ns-seeall { display:inline-block; margin-top:16px; font-weight:700; font-size:14px; color:var(--blue-700); text-decoration:none; border:1px solid var(--line-2); border-radius:999px; padding:10px 20px; }
.ns-seeall:hover { background:var(--bg-soft); }
.ns-empty { color:var(--ink-500); font-size:14px; padding:8px 0; }

/* ---------- Mobile-only nav account links (inside hamburger) ---------- */
.nav-mobile-only { display: none; }
@media (max-width: 680px) {
  .nav-links.open .nav-mobile-only { display: block; border-top: 1px solid var(--line); padding-top: 14px; }
}

/* ---------- Avatar images + user menu ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.avatar-edit { display: flex; align-items: center; gap: 14px; }
.user-menu { position: relative; display: flex; align-items: center; }
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-2);
  background: var(--grad-vivid); color: #fff; font-weight: 800; font-size: 15px;
  cursor: pointer; display: grid; place-items: center; overflow: hidden; padding: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-dropdown {
  position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 190px; padding: 8px; display: none; z-index: 60;
}
.user-dropdown.open { display: block; }
.user-dropdown-head { font-size: 12.5px; font-weight: 800; color: var(--ink-500); padding: 6px 14px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-dropdown a { display: block; padding: 10px 14px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-700); }
.user-dropdown a:hover { background: var(--bg-soft); color: var(--blue-700); }
@media (max-width: 680px) { .user-menu { display: none; } }

/* ---------- Confirm modal ---------- */
.modal-overlay[hidden] { display: none; } /* the class sets display:grid, which would override the hidden attribute */
.modal-icon { font-size: 46px; line-height: 1; margin-bottom: 10px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }
.btn-danger { background: var(--pal-red); color: #fff; box-shadow: 0 8px 20px -6px rgba(206,17,38,.5); }
.btn-danger::after { display: none; }
.btn-danger:hover { background: #b00e20; color: #fff; transform: translateY(-2px); }

/* ---------- Footer text readability (light on dark) ---------- */
.footer p { color: #b4bfce; }
.footer-brand p { color: #b4bfce; max-width: 330px; }
.footer-brand .footer-tagline { color: #6ee7a8; }

/* ---------- About page ---------- */
.about-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; text-align: center; }
.about-stats .num { font-size: 38px; font-weight: 900; letter-spacing: -.03em; background: var(--grad-vivid); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-stats .lbl { font-size: 12.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.about-row > * { min-width: 0; }
.about-row .about-img { position: relative; aspect-ratio: 4/3; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-row .about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-row h2 { font-size: 28px; margin-bottom: 10px; }
.about-row .about-text p { font-size: 16px; }
/* Alternation comes from DOM order: normal rows are image→text; .reverse rows are text→image */
@media (max-width: 768px) {
  .about-row { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
}
