/* Global Initiative hub. Navy and gold: deep navy stage, royal-blue glow, gold accents, Outfit headlines, Manrope text. */
:root {
  color-scheme: dark;
  --bg: #0b1630;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(255, 255, 255, 0.12);
  --fg: #f5f1e6;
  --muted: #aab4c8;
  --violet: #3a5fb0;
  --pink: #d4a64a;
  --pink-deep: #a77c2a;
  --gold: #e8c070;
  --gold-deep: #c8962f;
  --ok: #3ee07f;
  --bad: #ff8a9f;
  --display: "Outfit", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(58, 95, 176, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 10%, rgba(212, 166, 74, 0.25), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
main { flex: 1; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--gold); }
.gutter {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.inner { max-width: 1040px; margin: 0 auto; }

/* demo banner */
.demo-banner {
  background: rgba(232, 192, 112, 0.12); border-bottom: 1px solid rgba(232, 192, 112, 0.4);
  color: var(--gold); font-size: 13px; font-weight: 700; text-align: center; padding: 6px 16px;
}

/* ticker */
.ticker {
  background: linear-gradient(90deg, var(--pink-deep), var(--pink), var(--pink-deep));
  overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding-block: 8px;
}
.ticker__track { display: inline-flex; gap: 48px; padding-left: 48px; }
.ticker__track span::before { content: "\2726"; margin-right: 12px; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: slide 38s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* top bar */
.topbar { padding-block: 16px; }
.topbar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 22px; letter-spacing: -0.01em;  color: var(--fg); text-decoration: none; }
.brand small { font-family: var(--body); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.14em; margin-left: 8px; }
.bar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 99px; padding: 7px 14px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pill strong { font-weight: 800; }
.pill .id { color: var(--muted); }
.btn-ghost {
  color: var(--fg); text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 99px; padding: 7px 16px;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); }

/* app nav (members' pages) */
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 99px;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--panel); border: 1px solid var(--panel-line); }

/* headings */
h1, h2 { font-family: var(--display); font-weight: 800;  line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 6vw, 4.25rem); letter-spacing: 0.005em; }
h1 .line { display: block; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
.gold {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 35%, #ffe9a3 50%, var(--gold) 65%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline { color: transparent; -webkit-text-stroke: 2px rgba(244, 241, 234, 0.85); }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(212, 166, 74, 0.5); background: rgba(212, 166, 74, 0.1);
  border-radius: 99px; padding: 6px 14px;
}
.muted { color: var(--muted); }

/* hero */
.hero { padding-block: 40px 28px; text-align: center; }
.hero .inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero p { margin: 0; max-width: 36em; color: var(--muted); font-size: 1.12rem; }

/* video */
.video { padding-block: 8px 48px; }
.video .inner { max-width: 900px; display: flex; flex-direction: column; gap: 12px; }
.frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(58, 95, 176, 0.25), 0 30px 80px -20px rgba(58, 95, 176, 0.55), 0 10px 40px -10px rgba(212, 166, 74, 0.35);
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-decoration: none; color: var(--fg); text-align: center; padding: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(212, 166, 74, 0.35), transparent 55%),
    linear-gradient(135deg, #1a2d5c, #0b1630 70%);
}
.play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 0 0 10px rgba(212, 166, 74, 0.15), 0 0 40px rgba(212, 166, 74, 0.6);
}
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.poster span { font-family: var(--display);  font-size: clamp(1.1rem, 3.6vw, 1.9rem); line-height: 1.05; max-width: 22em; text-wrap: balance; }
.poster em { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; color: var(--gold); font-family: var(--body); }
.video p { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }

/* stats and cards */
.stats { padding-block: 0 56px; }
.stats .inner, .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 20px; text-align: center; min-width: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1;  }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .stats .inner { grid-template-columns: 1fr; }
  .stat-row { gap: 8px; }
  .stat-row .stat { padding: 14px 8px; }
  .stat-row .stat b { font-size: 1.5rem; }
  .stat-row .stat span { font-size: 12px; line-height: 1.3; display: block; margin-top: 6px; }
}
.section { padding-block: 24px 64px; }
.section .inner { display: flex; flex-direction: column; gap: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card .soon { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232, 192, 112, 0.4); border-radius: 99px; padding: 2px 10px; }

/* join band */
.cta-band {
  padding-block: 64px; text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(232, 192, 112, 0.22), transparent 60%),
    linear-gradient(90deg, rgba(58, 95, 176, 0.18), rgba(212, 166, 74, 0.14));
  border-block: 1px solid var(--panel-line);
}
.cta-band .inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 32em; }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--body); font-weight: 800; font-size: 17px; color: #1b1406;
  background: linear-gradient(135deg, #f3d48e, var(--pink) 50%, var(--pink-deep)); border: 0; border-radius: 13px;
  padding: 15px 28px; cursor: pointer; white-space: nowrap; text-align: center;
  box-shadow: 0 10px 30px -8px rgba(212, 166, 74, 0.6);
}
.btn:hover { filter: brightness(1.1); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn:focus-visible, .btn-ghost:focus-visible, input:focus-visible, .nav a:focus-visible, .poster:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .btn, .btn-ghost { transition: filter .15s, border-color .15s; } }

/* forms (join, log in) */
.auth { padding-block: 32px 64px; }
.auth-box {
  max-width: 480px; margin: 0 auto; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 22px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.auth-box h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.auth-box > p { margin: 0; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
input {
  font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input::placeholder { color: #7d768a; }
.error { color: var(--bad); font-size: 14px; margin: 0; }
.notice { color: var(--gold); font-size: 15px; margin: 0; }
.small-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* dashboard */
.dash { padding-block: 24px 64px; }
.dash .inner { display: flex; flex-direction: column; gap: 24px; }
.welcome h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.welcome p { margin: 8px 0 0; color: var(--muted); }
.linkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.linkrow input { flex: 1 1 260px; font-size: 14px; }
.status { font-size: 14px; color: var(--gold); min-height: 1.4em; margin: 0; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.people li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: rgba(0, 0, 0, 0.25); border-radius: 12px; font-weight: 700; }
.people li span { color: var(--muted); font-weight: 500; font-size: 14px; }
.loading { color: var(--muted); text-align: center; padding: 60px 16px; }

/* promotion pages: numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 20px; left: 22px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

/* promotion pages: personal invitation card */
.invite { padding-block: 28px 64px; }
.invite-card {
  max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 28px; padding: 36px 24px;
  box-shadow: 0 30px 80px -30px rgba(58, 95, 176, 0.6);
}
.invite-card .avatar {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 40px; color: #fff; 
  background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 0 0 8px rgba(212, 166, 74, 0.15);
}
.invite-card h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
.invite-card p { margin: 0; color: var(--muted); max-width: 30em; }
.invite-card .frame { margin-top: 4px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-weight: 700; font-size: 15px; }
.ticks li::before { content: "\2713"; color: var(--ok); margin-right: 8px; }

/* members' Promote section */
.promo-list { display: flex; flex-direction: column; gap: 16px; }
.promo-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
@media (max-width: 680px) { .promo-card { grid-template-columns: 1fr; } }
.thumb {
  aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--panel-line);
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(58, 95, 176, 0.55), transparent 70%), #07060b;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center;
}
.thumb::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--pink-deep), var(--pink)); }
.thumb b { font-family: var(--display); font-weight: 800;  font-size: 20px; line-height: 1; }
.thumb i { font-style: normal; font-size: 11px; color: var(--muted); }
.promo-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promo-body h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.promo-body p { margin: 0; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a { font-size: 13px; padding: 6px 14px; }
.share a.wa { border-color: rgba(62, 224, 127, 0.5); }

/* members' Training section */
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.progress-top .btn { white-space: normal; padding: 12px 22px; font-size: 15px; }
.bar { height: 12px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--panel-line); overflow: hidden; margin-top: 10px; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold)); }
.modules { display: flex; flex-direction: column; gap: 16px; }
.module-head { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
.module-head .kicker { grid-column: 1 / -1; }
.module-head .tally { align-self: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.lesson-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lesson-list a {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; text-decoration: none; color: var(--fg);
  padding: 12px 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid transparent; border-radius: 12px; font-weight: 700;
}
.lesson-list a:hover { border-color: var(--panel-line); }
.lesson-list .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--panel-line); display: grid; place-items: center; font-size: 13px; }
.lesson-list .done .tick { border-color: var(--ok); background: rgba(62, 224, 127, 0.15); color: var(--ok); }
.lesson-list .done .tick::after { content: "\2713"; }
.lesson-list .l-meta { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
@media (max-width: 480px) {
  .lesson-list a { grid-template-columns: 28px 1fr; }
  .lesson-list .l-meta { grid-column: 2; }
}
.lesson { max-width: 780px; }
.back { font-size: 14px; font-weight: 700; text-decoration: none; }
.lesson .welcome h1 { font-size: clamp(2rem, 6vw, 3rem); }
.lesson-body { gap: 0; font-size: 1.05rem; }
.lesson-body > * { margin: 0 0 14px; }
.lesson-body > :last-child { margin-bottom: 0; }
.lesson-body p, .lesson-body li { color: var(--fg); }
.lesson-body h3 { font-size: 1.15rem; margin-top: 10px; color: var(--gold); }
.lesson-body ul, .lesson-body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.lesson-body li::marker { color: var(--pink); }
.done-box { align-items: center; text-align: center; }
.done-box .btn { white-space: normal; }
.done-box .btn.is-done { background: rgba(62, 224, 127, 0.15); color: var(--ok); border: 1px solid var(--ok); box-shadow: none; }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pager a:only-child { margin-left: auto; }
.pager #next { margin-left: auto; }

/* members' Message board */
textarea, select {
  font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select option { background: #15121d; }
textarea:focus-visible, select:focus-visible, .chip:focus-visible, .thread:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-head .btn { white-space: normal; }
.new-post { gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 99px; padding: 7px 14px;
}
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.threads { display: flex; flex-direction: column; gap: 12px; }
.thread { text-decoration: none; color: var(--fg); }
.thread:hover { border-color: rgba(255, 255, 255, 0.3); }
.thread-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thread .excerpt { overflow-wrap: anywhere; }
.thread-meta { font-size: 13px; color: var(--muted); font-weight: 700; }
.when { font-size: 13px; color: var(--muted); }
.topic {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 99px; padding: 2px 10px; border: 1px solid; color: var(--gold); border-color: rgba(232, 192, 112, 0.4);
}
.topic-questions { color: #c9a8ff; border-color: rgba(58, 95, 176, 0.6); }
.topic-tips { color: var(--ok); border-color: rgba(62, 224, 127, 0.45); }
.topic-introductions { color: var(--pink); border-color: rgba(212, 166, 74, 0.5); }
.empty { color: var(--muted); text-align: center; }
.rules summary { cursor: pointer; font-weight: 800; }
.rules ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.message { gap: 10px; }
.message.original h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
.by { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mini-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 17px; color: #fff; 
  background: linear-gradient(135deg, var(--violet), var(--pink));
}
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--fg) !important; }
.msg-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.msg-actions .status { min-height: 0; }
.link-btn { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--fg); }
.replies-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.replies { display: flex; flex-direction: column; gap: 12px; }

/* admin area */
.stat-row:has(.stat:nth-child(4)) { grid-auto-rows: 1fr; }
.all-clear { color: var(--ok) !important; font-weight: 700; }
.report-list, .member-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.report, .member { background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.report-where { font-weight: 800; overflow-wrap: anywhere; }
.report .msg-body { color: var(--muted) !important; }
.btn-ghost.danger { border-color: rgba(255, 138, 159, 0.5); color: var(--bad); }
.member-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-email { font-size: 14px; color: var(--fg); overflow-wrap: anywhere; }

/* privacy policy */
.policy h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-top: 8px; }
.policy p, .policy li { color: var(--fg) !important; }
.policy ul { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.foot-links { margin-top: 8px !important; }
.foot-links a { color: var(--muted); }
.agree { font-size: 13px; color: var(--muted); margin: 0; }

/* profile pictures */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-photo { overflow: hidden; background: #15121d !important; }
.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.me-chip { text-decoration: none; width: 36px; height: 36px; }
.me-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.topbar .inner:has(.me-chip) { justify-content: flex-start; }
.topbar .me-chip { margin-left: auto; }
.photo-card { flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; }
.big-avatar {
  width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-family: var(--display); font-size: 56px; color: #fff; 
  background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 0 0 8px rgba(212, 166, 74, 0.15);
}
.photo-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo-side h3 { margin: 0; }
label.btn { font-size: 15px; padding: 12px 22px; }
input[type="file"]:focus-visible + .btn, label.btn:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 6px 0 8px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pill-photo { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.invite-card .avatar.has-photo { box-shadow: 0 0 0 8px rgba(212, 166, 74, 0.15); }
.member-head .mini-avatar { width: 30px; height: 30px; font-size: 15px; }

/* Promote section tabs and banners */
.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--panel-line); }
.subtabs a {
  color: var(--muted); text-decoration: none; font-weight: 800; font-size: 15px; padding: 10px 16px;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.subtabs a:hover { color: var(--fg); }
.subtabs a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--pink); }
.subtabs a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.social-grid { display: grid; grid-template-columns: 1.6fr 1fr 0.62fr; gap: 16px; align-items: end; margin-top: 14px; }
@media (max-width: 760px) { .social-grid { grid-template-columns: 1fr 1fr; } .social-item.is-post { grid-column: 1 / -1; } }
.social-item { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.canvas-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--panel-line); background: #000; line-height: 0; }
.canvas-box canvas { width: 100%; height: auto; display: block; }
.social-item figcaption { display: flex; flex-direction: column; font-size: 14px; }
.social-item figcaption span { color: var(--muted); font-size: 13px; }
.social-item .btn { font-size: 14px; padding: 10px 14px; white-space: normal; }
.ad-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.ad-item { background: rgba(0, 0, 0, 0.25); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-head .btn-ghost { font-size: 13px; padding: 6px 14px; }
.ad-preview { overflow-x: auto; }
.ad-preview img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.ad-fields { display: flex; flex-direction: column; gap: 8px; }
.ad-fields label { font-size: 13px; }
.ad-fields input, .ad-fields textarea { font-size: 13px; padding: 8px 10px; min-height: 0; }
.ad-fields .linkrow > input, .ad-fields .linkrow > textarea { flex: 1 1 200px; }
.ad-fields .btn-ghost { font-size: 13px; align-self: flex-start; }

/* members' side menu */
[id] { scroll-margin-top: 16px; }
.side, .side-scrim, .menu-btn { display: none; }
body.has-side { padding-left: 264px; }
body.has-side .topbar .nav, body.has-side .topbar .brand { display: none; }
body.has-side .side {
  display: flex; flex-direction: column; gap: 22px; position: fixed; top: 0; bottom: 0; left: 0; width: 264px; z-index: 30;
  padding: 22px 14px 28px; overflow-y: auto; background: rgba(12, 9, 20, 0.94); border-right: 1px solid var(--panel-line);
}
.side-brand { display: block; padding: 0 10px; font-size: 20px; }
.side-brand small { display: block; margin: 2px 0 0; }
.side-list, .side-subs { list-style: none; margin: 0; padding: 0; }
.side-list { display: flex; flex-direction: column; gap: 3px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
}
.side-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-link:hover { color: var(--fg); background: var(--panel); }
.side-link[aria-current="page"] { color: var(--fg); background: linear-gradient(135deg, rgba(58, 95, 176, 0.35), rgba(212, 166, 74, 0.22)); border-color: rgba(255, 255, 255, 0.12); }
.side-subs { display: flex; flex-direction: column; gap: 1px; margin: 6px 0 10px 22px; padding-left: 12px; border-left: 1px solid var(--panel-line); }
.side-subs a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; }
.side-subs a.indent { padding-left: 22px; font-size: 13px; font-weight: 500; }
.side-subs a:hover { color: var(--fg); background: var(--panel); }
.side-subs a.is-current { color: var(--gold); background: rgba(232, 192, 112, 0.08); }
.side-logout { display: none; align-self: flex-start; margin: 4px 0 0 10px; }
.side a:focus-visible, .menu-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  body.has-side { padding-left: 0; }
  body.has-side .topbar .brand { display: inline; }
  body.has-side .side { width: min(300px, 86vw); transform: translateX(-102%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
  body.side-open .side { transform: none; visibility: visible; }
  body.has-side .menu-btn { display: inline-flex; }
  body.has-side .topbar #logout, body.has-side .topbar .brand small { display: none; }
  body.has-side .topbar .inner { flex-wrap: nowrap; }
  body.has-side .side .side-logout { display: block; }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, 0.6); }
}
@media (prefers-reduced-motion: reduce) { body.has-side .side { transition: none; } }

/* My referrals */
.ref-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ref-list li { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(0, 0, 0, 0.25); border-radius: 14px; min-width: 0; }
.ref-list .mini-avatar { width: 44px; height: 44px; font-size: 20px; }
.ref-list b { display: block; overflow-wrap: anywhere; }
.ref-list span { color: var(--muted); font-size: 13px; }
.see-all { font-weight: 700; font-size: 14px; }

footer { padding-block: 24px 40px; font-size: 13px; color: var(--muted); text-align: center; }
footer p { margin: 0 auto; max-width: 40em; }


/* ===== Global Initiative additions ===== */
.hero h1 { max-width: 15em; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero-btns .btn-ghost { padding: 14px 22px; font-size: 16px; }

.causes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cause { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; border: 1px solid var(--panel-line); background: var(--panel); }
.cause::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cause.c1::before { background: radial-gradient(380px 200px at 100% 0, rgba(255, 138, 101, 0.18), transparent 70%); }
.cause.c2::before { background: radial-gradient(380px 200px at 100% 0, rgba(72, 199, 142, 0.18), transparent 70%); }
.cause > * { position: relative; }
.cause .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.cause.c1 .ico { background: rgba(255, 138, 101, 0.15); color: #ff9a7a; }
.cause.c2 .ico { background: rgba(72, 199, 142, 0.15); color: #5fd6a0; }
.cause .ico svg { width: 28px; height: 28px; }
.cause h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.cause p { margin: 0; color: var(--muted); }
.promise { margin: 0; border: 1px dashed rgba(232, 192, 112, 0.45); background: rgba(212, 166, 74, 0.08); border-radius: 16px; padding: 16px 20px; color: var(--fg); }
@media (max-width: 700px) { .causes { grid-template-columns: 1fr; } }

.quote { padding-block: 8px 56px; }
.quote blockquote { margin: 0 auto; max-width: 760px; text-align: center; padding: 34px 24px; border-top: 1px solid rgba(232, 192, 112, 0.35); border-bottom: 1px solid rgba(232, 192, 112, 0.35); }
.quote blockquote p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.25; color: var(--gold); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #1b1406; background: linear-gradient(135deg, #f3d48e, var(--pink)); margin-bottom: 6px; }
.step h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); }
.step a { margin-top: 6px; font-weight: 700; font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Locked until the BDM username is added */
.programme-card { border-color: rgba(232, 192, 112, 0.45); background: linear-gradient(180deg, rgba(212, 166, 74, 0.10), rgba(255, 255, 255, 0.03)); }
.programme-card .tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; }
.tag.locked { color: #1b1406; background: var(--gold); }
.tag.unlocked { color: #06231a; background: #5fd6a0; }
.programme-steps { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.programme-steps li { margin: 4px 0; }
.bdm-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.bdm-form input { flex: 1 1 240px; }
.lock-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; border: 1px solid rgba(232, 192, 112, 0.5); background: rgba(212, 166, 74, 0.12); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.lock-banner a { white-space: nowrap; }
.is-locked { position: relative; }
.is-locked > *:not(.lock-veil) { filter: blur(2px); opacity: 0.45; pointer-events: none; user-select: none; }
.lock-veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; z-index: 1; }
.lock-veil span { background: rgba(11, 22, 48, 0.92); border: 1px solid rgba(232, 192, 112, 0.5); border-radius: 99px; padding: 8px 16px; font-weight: 800; font-size: 14px; color: var(--gold); }
.people .unl { color: #5fd6a0; font-size: 12px; font-weight: 800; }
.people .lck { color: var(--gold); font-size: 12px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.programme-card a, .programme-card strong { overflow-wrap: anywhere; }

/* ===== Stage 2: showcase ===== */
.opps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.opps.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.opps.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .opps, .opps.n2 { grid-template-columns: minmax(0, 1fr); } }
.opp { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid var(--panel-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)); transition: border-color .15s, transform .15s; }
.opp:hover { border-color: rgba(232, 192, 112, 0.45); transform: translateY(-2px); }
.opp-media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1a2d5c, #0b1630); overflow: hidden; }
.opp-media img, .opp-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.opp-media-empty { display: grid; place-items: center; }
.opp-media-empty span { font-family: var(--display); font-weight: 800; font-size: 3rem; color: rgba(232, 192, 112, 0.5); }
.opp-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0b1630; display: grid; place-items: center; }
.opp-play img { opacity: 0.85; }
.opp-play-icon { position: relative; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #f3d48e, var(--pink)); box-shadow: 0 0 0 8px rgba(212, 166, 74, 0.2), 0 10px 24px rgba(0, 0, 0, 0.45); }
.opp-play-icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #1b1406; }
.opp-play:hover .opp-play-icon { filter: brightness(1.1); }
.opp-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.opp-rank { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.opp-body h3 { margin: 0; font-size: 1.2rem; font-weight: 800; overflow-wrap: anywhere; }
.opp-desc { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; flex: 1; }
.opp-link { margin-top: 8px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(232, 192, 112, 0.5); color: var(--gold); font-weight: 800; text-decoration: none; }
.opp-link:hover { background: rgba(212, 166, 74, 0.12); }
.showcase-sub { margin: -14px 0 0; color: var(--muted); max-width: 40em; }

/* editor */
.fav-form .field textarea { min-height: 110px; }
.fav-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fav-state { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; color: var(--muted); border: 1px solid var(--panel-line); }
.fav-state.live { color: #06231a; background: #5fd6a0; border-color: transparent; }
.media-choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }
.media-choice label { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 99px; padding: 7px 14px; }
.media-choice input { accent-color: var(--gold); }
.fav-thumb { width: 200px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1630; border: 1px solid var(--panel-line); position: relative; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rules { margin: 0; padding-left: 20px; color: var(--muted); }
.rules li { margin: 3px 0; }
/* ===== Stage 5: admin ===== */
.admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 8px 0 14px; }
.member-list, .fav-admin-list { display: flex; flex-direction: column; gap: 10px; }
.member, .fav-admin { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-line); min-width: 0; }
.fav-admin.is-hidden { opacity: 0.7; border-style: dashed; }
.state-pill { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 99px; padding: 2px 9px; }
.state-pill.unlocked { color: #06231a; background: #5fd6a0; }
.state-pill.locked { color: var(--gold); border: 1px solid rgba(232, 192, 112, 0.5); }
.state-pill.frozen { color: #fff; background: #b8433f; }
.fav-url { font-size: 14px; overflow-wrap: anywhere; }
.fav-admin .msg-body { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.thread-meta a { overflow-wrap: anywhere; }
/* ===== Marketing tools ===== */
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 800; text-decoration: none; color: #fff; }
.contact-btn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.contact-btn.wa { background: #1f9d55; }
.contact-btn.tg { background: #2a8bd1; }
.contact-btn.fb { background: #3b5ba9; }
.contact-btn:hover { filter: brightness(1.1); }
.talk { padding-block: 8px 56px; }
.talk .inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.talk p { margin: 0; color: var(--muted); }
.spotlight-note { margin: -14px 0 0; color: var(--muted); }
.fav-hero { padding-block: 36px 24px; }
.fav-hero .inner { max-width: 900px; display: flex; flex-direction: column; gap: 18px; }
.fav-hero .opp-media { border-radius: 20px; border: 1px solid var(--panel-line); }
.fav-hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.fav-desc { margin: 0; color: var(--fg); font-size: 1.08rem; white-space: pre-line; overflow-wrap: anywhere; }
.fav-by { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; }
.fav-by .mini-avatar { width: 36px; height: 36px; }
.fav-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.join-box { border-radius: 20px; padding: 26px; text-align: center; border: 1px solid rgba(232, 192, 112, 0.45); background: radial-gradient(500px 180px at 50% 0, rgba(212, 166, 74, 0.16), transparent 70%), var(--panel); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.join-box h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.join-box p { margin: 0; color: var(--muted); max-width: 34em; }
/* share kit */
.share-item { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-line); }
.share-item h4 { margin: 0; font-size: 1.02rem; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns a, .share-btns button { font-size: 14px; padding: 8px 14px; }
.msg-box { width: 100%; min-height: 96px; font-size: 15px; }
.qr-wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-box { background: #fff; padding: 14px; border-radius: 14px; line-height: 0; }
.qr-box canvas, .qr-box img { width: 180px; height: 180px; image-rendering: pixelated; }
.pic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 700px) { .pic-grid { grid-template-columns: minmax(0, 1fr); } }
.pic-card { display: flex; flex-direction: column; gap: 10px; }
.pic-card canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--panel-line); background: #0b1630; }
/* ===== Welcome guide ===== */
.step-card { gap: 12px; }
.step-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.step-head > div { flex: 1 1 260px; min-width: 0; }
.step-head h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); margin-top: 2px; }
.step-num { flex: 0 0 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 28px; color: #1b1406; background: linear-gradient(135deg, #f3d48e, var(--pink)); }
.step-state { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 99px; padding: 5px 12px; white-space: nowrap; }
.step-state.done { color: #06231a; background: #5fd6a0; }
.step-state.partly { color: #1b1406; background: var(--gold); }
.step-state.todo { color: var(--gold); border: 1px solid rgba(232, 192, 112, 0.5); }
.how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--fg); }
.how li { padding-left: 4px; }
.how ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.how-title { margin: 6px 0 0; font-size: 1.05rem; }
.tip { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(212, 166, 74, 0.1); border-left: 4px solid var(--gold); color: var(--fg); font-size: 15px; }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.check-row { font-weight: 700; color: var(--muted); }
.check-row.ok { color: #5fd6a0; }
.tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (max-width: 760px) { .tour-grid { grid-template-columns: minmax(0, 1fr); } }
.tour-item { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-line); }
.tour-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--gold); }
.tour-item p { margin: 0; color: var(--muted); font-size: 15px; }
/* ===== Renewal reminders ===== */
.renewal { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--panel-line); background: var(--panel); }
.renewal-ok { border-color: rgba(95, 214, 160, 0.35); }
.renewal-soon { border-color: rgba(232, 192, 112, 0.7); background: rgba(212, 166, 74, 0.14); }
.renewal-today, .renewal-overdue { border-color: rgba(255, 120, 110, 0.75); background: rgba(184, 67, 63, 0.18); }
.renewal-head { display: flex; gap: 14px; align-items: flex-start; }
.renewal-icon { font-size: 28px; line-height: 1; }
.renewal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.renewal-text b { font-size: 1.1rem; }
.renewal-text span { color: var(--muted); }
.renewal-soon .renewal-text b { color: var(--gold); }
.renewal-today .renewal-text b, .renewal-overdue .renewal-text b { color: #ff9a8f; }
.renewal-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.renewal-actions .btn { padding: 11px 18px; font-size: 15px; }
.renewal-actions .btn-ghost { font-size: 14px; }
.renewal-note { margin: 0; font-size: 13px; color: var(--muted); }
.renewal-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.renewal-form label { font-weight: 700; font-size: 14px; }
.renewal-form input { width: auto; color-scheme: dark; }
.renew-due { color: #ff9a8f; font-weight: 800; }
/* ===== Splash pages ===== */
body.splash { background-repeat: no-repeat; }
.theme-struggling { background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(58, 95, 176, 0.55), transparent 70%), radial-gradient(ellipse 50% 40% at 100% 100%, rgba(184, 67, 63, 0.25), transparent 70%); }
.theme-simple { background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(58, 95, 176, 0.5), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(95, 214, 160, 0.2), transparent 70%); }
.theme-favourites { background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 166, 74, 0.35), transparent 70%), radial-gradient(ellipse 50% 40% at 100% 100%, rgba(58, 95, 176, 0.4), transparent 70%); }
.theme-dollar { background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 166, 74, 0.45), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 138, 101, 0.2), transparent 70%); }
.theme-tired { background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 90, 200, 0.4), transparent 70%), radial-gradient(ellipse 50% 40% at 100% 100%, rgba(212, 166, 74, 0.25), transparent 70%); }
.sp { padding-block: 24px 56px; display: flex; justify-content: center; }
.sp-card { max-width: 820px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.sp-card h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); line-height: 1.05; }
.sp-card h1 .gold { display: inline; }
.sp-sub { margin: 0; color: var(--muted); font-size: 1.12rem; max-width: 40em; }
.sp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; text-align: left; }
.sp-points li { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--panel-line); font-weight: 700; }
.sp-points li::before { content: "\2713"; flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(212, 166, 74, 0.18); color: var(--gold); font-weight: 900; font-size: 14px; }
.sp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; text-align: left; }
.sp-steps li { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-line); }
.sp-steps .n { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: #1b1406; background: linear-gradient(135deg, #f3d48e, var(--pink)); margin-bottom: 6px; }
.sp-steps b { font-size: 1.05rem; }
.sp-steps span:not(.n) { color: var(--muted); font-size: 15px; }
@media (max-width: 680px) { .sp-points, .sp-steps { grid-template-columns: minmax(0, 1fr); } }
.sp-card .hero-btns .btn { padding: 17px 32px; font-size: 18px; }
.sp-by { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--muted); }
.sp-by .mini-avatar { width: 38px; height: 38px; }
.splash-thumb { width: 100%; max-width: 420px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; border: 1px solid var(--panel-line); }
.sp-fig { margin: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.sp-fig img { width: 100%; height: auto; border-radius: 18px; border: 1px solid rgba(232, 192, 112, 0.35); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); }
.sp-fig figcaption { color: var(--muted); font-size: 14px; font-weight: 700; }
.sp-step-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--panel-line); }.sp-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid rgba(232, 192, 112, 0.4); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7); background: #0b1630; }
.sp-video video { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background-size: cover; background-position: center; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 14px; padding: 0 0 5% 0; align-content: flex-end; flex-wrap: wrap; }
.sp-play { align-items: flex-end; }
.sp-play::before { content: ""; position: absolute; inset: 0; background: rgba(11, 22, 48, 0.25); }
.sp-play .opp-play-icon, .sp-play em { position: relative; }
.sp-play em { font-style: normal; font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(11, 22, 48, 0.75); padding: 6px 12px; border-radius: 99px; }
/* Tall (4:5) splash pictures: keep them a comfortable size on big screens. */
.sp-fig-tall { max-width: 540px; margin: 0 auto; }
/* Ready-made posters in the share kit. */
#poster-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { #poster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #poster-list { grid-template-columns: minmax(0, 1fr); } }
.poster-img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid var(--panel-line); background: #0b1630; }
.pic-card a.btn, .pic-card .btn-ghost { text-align: center; }
/* BDM Charity Club video in the welcome guide and dashboard (members only). */
.bdm-video-fig { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.bdm-video-fig .opp-media { border-radius: 16px; border: 1px solid rgba(232, 192, 112, 0.4); }
.bdm-video-fig figcaption { color: var(--muted); font-size: 14px; }
/* 468x60 banners in the share kit. */
.banner-img { display: block; width: 468px; max-width: 100%; height: auto; border-radius: 4px; margin: 4px 0 6px; }
.banner-item textarea.msg-box { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }

/* ===== Messages (2026-11-22) ===== */
.side-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b1630; background: linear-gradient(180deg, #F7DA94, #D4A64A); }
.menu-btn.has-unread::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; background: #E8C070; vertical-align: middle; }
.ann-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ann { padding: 14px 16px; border-radius: 14px; background: rgba(232, 192, 112, 0.08); border: 1px solid rgba(232, 192, 112, 0.35); }
.ann.is-new { border-color: #E8C070; box-shadow: 0 0 0 1px rgba(232, 192, 112, 0.4); }
.ann h4 { margin: 0 0 4px; font-size: 1.05rem; }
.ann .ann-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.ann p { margin: 0; white-space: pre-wrap; }
.ann .new-tag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1630; background: #E8C070; border-radius: 99px; padding: 2px 8px; vertical-align: middle; }
.msg-layout { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .msg-layout { grid-template-columns: minmax(0, 1fr); } .msg-layout.thread-open .convo-list-card { display: none; } .msg-layout:not(.thread-open) .thread-card { display: none; } }
.convo-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.convo-list button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--fg); cursor: pointer; font: inherit; }
.convo-list button:hover { background: var(--panel); }
.convo-list button.is-active { background: linear-gradient(135deg, rgba(58, 95, 176, 0.35), rgba(212, 166, 74, 0.18)); border-color: rgba(255, 255, 255, 0.12); }
.convo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.convo-text b { font-size: 15px; }
.convo-text small { font-size: 12px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.convo-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0b1630; background: #E8C070; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 6px 2px; margin: 10px 0; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--panel-line); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, rgba(232, 192, 112, 0.28), rgba(212, 166, 74, 0.18)); border: 1px solid rgba(232, 192, 112, 0.45); border-bottom-right-radius: 6px; }
.bubble .meta { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.bubble .meta button { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.compose textarea { width: 100%; min-height: 90px; }
.compose-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.thread-head { display: flex; align-items: center; gap: 10px; }
.thread-back { display: none; }
@media (max-width: 860px) { .thread-back { display: inline-flex; } }
/* List-mailer emails in the share kit: shown at their real 65-character width. */
.email-box { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.5; white-space: pre; overflow-x: auto; }
.email-item .linkrow .btn-ghost { padding: 8px 16px; }

/* Link stats page */
.tl-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 6px; }
.tl-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.tl-grid input { font: inherit; font-size: 16px; color: var(--fg); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--panel-line); border-radius: 12px; padding: 12px 14px; }
@media (max-width: 640px) { .tl-grid { grid-template-columns: 1fr; } }
.period { display: flex; gap: 6px; flex-wrap: wrap; }
.period .btn-ghost[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; margin-top: 16px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-line); }
.bars span { flex: 1; min-width: 1px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #F7DA94, #D4A64A); }
.bars span.zero { background: rgba(255, 255, 255, 0.1); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--panel-line); }
.tbl thead th { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.tbl td, .tbl thead th:not(:first-child) { text-align: right; }
.tbl tbody th { font-weight: 700; word-break: break-word; }

/* Text ads in the share kit */
.textad { border: 1px dashed rgba(232, 192, 112, 0.45); border-radius: 12px; padding: 12px 14px; background: rgba(0, 0, 0, 0.25); }
.textad b { display: block; color: var(--gold); font-size: 1.05rem; }
.textad span { display: block; color: var(--fg); font-size: 14.5px; }
/* Ready-made welcome messages on the Messages page */
.tpl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.tpl-row[hidden] { display: none; }
.tpl-row > span { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.tpl-btn { padding: 6px 12px; font-size: 13.5px; }
/* My rotators */
.rot-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.rot-link { display: grid; grid-template-columns: 1fr 2fr auto auto; gap: 8px 10px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-line); }
.rot-link > input { font: inherit; font-size: 15px; color: var(--fg); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--panel-line); border-radius: 10px; padding: 9px 11px; min-width: 0; }
.rot-link.is-paused { opacity: 0.7; }
.rot-link.is-blocked { border-color: rgba(255, 99, 99, 0.6); }
.rot-w { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rot-w input { width: 68px; font: inherit; font-size: 15px; color: var(--fg); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--panel-line); border-radius: 10px; padding: 8px; }
.rot-pause { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.rot-pause input { width: 18px; height: 18px; margin: 0; }
.rot-info { grid-column: 1 / 3; font-size: 13.5px; color: var(--gold); }
.rot-btns { grid-column: 3 / 5; display: flex; gap: 6px; justify-content: flex-end; }
.rot-btns .btn, .rot-btns .btn-ghost { padding: 8px 14px; font-size: 14px; }
.rot-link > .error, .rot-link > .rot-flag { grid-column: 1 / -1; margin: 0; }
.rot-flag { color: #ff9a9a; font-weight: 700; font-size: 14px; }
.rot-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--panel-line); }
.rot-tips { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) {
  .rot-link { grid-template-columns: 1fr 1fr; }
  .rot-link > input { grid-column: 1 / -1; }
  .rot-info, .rot-btns { grid-column: 1 / -1; }
  .rot-btns { justify-content: flex-start; }
}
/* "New" badge on front-page feature cards */
.card h3 .new-tag { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #0b1630; background: #E8C070; border-radius: 99px; padding: 2px 8px; vertical-align: middle; position: relative; top: -2px; }
/* Front-page headline: one sentence per line. */
.hero h1.h1-lines { max-width: none; font-size: clamp(1.9rem, 5.4vw, 3.9rem); }
.hero h1.h1-lines > span { display: block; }