/* Bangladesh Sports Club Boston — members portal */
:root {
  --bg: #03130c;
  --bg-2: #062619;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #0a2a1c;
  --line: rgba(212, 175, 55, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #d9b444;
  --gold-2: #f3d77a;
  --red: #e5463d;
  --blue: #4a78e6;
  --green: #2fbf71;
  --amber: #f0a531;
  --text: #eef5f0;
  --muted: #9db6a8;
  --faint: #6f8a7c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* fixed backdrop: glow + faint pitch lines (works on iOS too) */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.016) 0 80px, transparent 80px 160px),
    radial-gradient(1200px 600px at 85% -10%, rgba(217, 180, 68, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(47, 191, 113, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: 0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.05; text-transform: uppercase; }
h2 { font-size: 22px; text-transform: uppercase; }
h3 { font-size: 17px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.i { width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex: none; }
#app { position: relative; z-index: 1; min-height: 100vh; }

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #0b3a25, var(--bg) 70%);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#splash.out { opacity: 0; visibility: hidden; }
#splash .splash-logo { width: min(46vw, 210px); position: relative; animation: splashIn 1s var(--ease) both; }
#splash .splash-logo img { width: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
#splash .splash-logo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  mix-blend-mode: overlay; transform: translateX(-120%);
  animation: shine 1.2s 0.45s var(--ease) both;
  -webkit-mask: url(assets/logo.webp) center/contain no-repeat; mask: url(assets/logo.webp) center/contain no-repeat;
}
#splash .splash-bar { position: absolute; bottom: 18%; width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
#splash .splash-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); animation: load 1s ease-in-out infinite; border-radius: 3px; }
@keyframes splashIn { from { opacity: 0; transform: scale(.82) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(120%); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Page transitions ---------- */
.page { animation: pageIn 0.55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: rise 0.6s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: .03s } .stagger > *:nth-child(2) { animation-delay: .08s }
.stagger > *:nth-child(3) { animation-delay: .13s } .stagger > *:nth-child(4) { animation-delay: .18s }
.stagger > *:nth-child(5) { animation-delay: .23s } .stagger > *:nth-child(6) { animation-delay: .28s }
.stagger > *:nth-child(7) { animation-delay: .33s } .stagger > *:nth-child(n+8) { animation-delay: .38s }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(3, 19, 12, 0.72); border-bottom: 1px solid var(--line-soft);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand b { font-family: var(--head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 15px; line-height: 1.05; }
.brand b span { display: block; color: var(--gold); font-size: 11px; letter-spacing: .18em; }
.nav { display: flex; gap: 4px; margin-left: auto; position: relative; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 14px; transition: color .25s, background .25s;
}
.nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav a.active { color: var(--bg); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.userchip { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #1f6b46, #0f3d29); border: 1px solid var(--line);
  font-family: var(--head); font-size: 14px; color: var(--gold-2);
}
.main { padding: 30px 0 110px; }

.tabbar { display: none; }
@media (max-width: 820px) {
  .nav, .userchip .signout-text { display: none; }
  .topbar .wrap { height: 60px; }
  .userchip { margin-left: auto; }
  .tabbar {
    display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(8, 34, 23, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 20px; padding: 6px; box-shadow: var(--shadow);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px;
    color: var(--muted); font-size: 11px; font-weight: 500; border-radius: 14px; transition: all .25s var(--ease);
  }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.active { color: var(--bg); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
  .tabbar svg { width: 20px; height: 20px; }
  .main { padding-top: 22px; }
}

/* ---------- Cards & grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .span2 { grid-column: auto; } }
@media (max-width: 420px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .stat .value { font-size: 22px; } .card { padding: 18px; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card.hover:hover { transform: translateY(-3px); border-color: var(--line); background: var(--surface-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 10px; }
.card.gold { border-color: var(--line); background: linear-gradient(160deg, rgba(217,180,68,.12), rgba(255,255,255,.03) 50%); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 34px 0 14px; flex-wrap: wrap; }

.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.stat .value { font-family: var(--head); font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.stat .ico { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--gold-2); }
.stat .ico svg { width: 19px; height: 19px; }
.pos { color: #6be3a2; } .neg { color: #ff8a80; }

/* ---------- Hero (dashboard) ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hello h1 { font-size: clamp(26px, 4vw, 38px); }
.hello .eyebrow, .eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }

.status-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; overflow: hidden; }
.status-card::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,180,68,.18), transparent 70%); pointer-events: none;
}
.status-card .big { font-family: var(--head); font-size: clamp(34px, 6vw, 52px); font-weight: 600; line-height: 1; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.status-card .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 680px) { .status-card { grid-template-columns: 1fr; } .ring-wrap { justify-self: center; } }

/* ring */
.ring-wrap { position: relative; width: 150px; height: 150px; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-wrap .track { stroke: rgba(255,255,255,.07); }
.ring-wrap .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease) .2s; }
.ring-wrap .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-wrap .center b { font-family: var(--head); font-size: 30px; display: block; line-height: 1; }
.ring-wrap .center span { font-size: 10px; color: var(--muted); letter-spacing: .08em; display: block; max-width: 86px; line-height: 1.3; margin-top: 4px; text-transform: uppercase; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.green { color: #6be3a2; background: rgba(47,191,113,.12); border-color: rgba(47,191,113,.25); }
.pill.amber { color: #ffc768; background: rgba(240,165,49,.12); border-color: rgba(240,165,49,.25); }
.pill.red { color: #ff8a80; background: rgba(229,70,61,.13); border-color: rgba(229,70,61,.28); }
.pill.blue { color: #9ab8ff; background: rgba(74,120,230,.14); border-color: rgba(74,120,230,.28); }
.pill.gray { color: var(--muted); background: rgba(255,255,255,.06); border-color: var(--line-soft); }
.pill.pulse::before { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--gold-2); background: rgba(217,180,68,.1); border: 1px solid var(--line); }
.chip svg { width: 14px; height: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --bgc: var(--surface-2);
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bgc); color: var(--text);
  font: 600 14px/1.1 var(--body); cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .2s var(--ease), box-shadow .3s, background .3s, border-color .3s, opacity .2s;
}
.btn:hover { border-color: var(--line); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1b1503; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(217,180,68,.65); }
.btn.primary:hover { box-shadow: 0 14px 30px -10px rgba(217,180,68,.85); }
.btn.green { background: linear-gradient(135deg, #36c97b, #1d9a58); color: #03140b; border-color: transparent; }
.btn.danger { background: rgba(229,70,61,.14); color: #ffb0a9; border-color: rgba(229,70,61,.3); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.xs { padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.icon { padding: 9px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label, .label-sm { font-size: 13px; font-weight: 600; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.22);
  color: var(--text); font: 15px var(--body); transition: border-color .25s, background .25s, box-shadow .25s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(0,0,0,.32); box-shadow: 0 0 0 4px rgba(217,180,68,.12); }
input[readonly] { color: var(--muted); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239db6a8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: #0a2a1c; }
textarea { min-height: 80px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; border-radius: 8px; }
.pw-wrap button svg { width: 18px; height: 18px; display: block; }
.form-error { display: none; padding: 10px 14px; border-radius: 12px; background: rgba(229,70,61,.12); border: 1px solid rgba(229,70,61,.3); color: #ffb0a9; font-size: 13.5px; margin-bottom: 14px; }
.form-error.show { display: block; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.month-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.month-picks label {
  position: relative; cursor: pointer; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.2);
  font-size: 13px; font-weight: 500; color: var(--muted); transition: all .25s var(--ease); user-select: none;
}
.month-picks input { position: absolute; opacity: 0; pointer-events: none; }
.month-picks label:has(input:checked) { color: #1b1503; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; transform: translateY(-1px); }
.month-picks label.late { border-color: rgba(229,70,61,.35); }
.month-picks label:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; }
.auth-card { width: 100%; max-width: 430px; padding: 34px 30px; }
.auth-card .logo { width: 92px; display: block; margin: -4px auto 14px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.5)); animation: floaty 6s ease-in-out infinite; }
.auth-card h1 { font-size: 26px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 6px 0 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Landing ---------- */
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 60px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: .98; }
.hero h1 .red { color: var(--red); } .hero h1 .blue { color: #6f97ff; }
.hero p.lead { font-size: 17.5px; color: var(--muted); margin: 20px 0 28px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .btn { padding: 14px 24px; font-size: 15px; }
.hero-logo { position: relative; justify-self: center; width: min(78vw, 400px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo img { width: 78%; position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); animation: floaty 7s ease-in-out infinite; }
.hero-logo .halo { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(217,180,68,.0), rgba(217,180,68,.35), rgba(47,191,113,.25), rgba(229,70,61,.2), rgba(217,180,68,.0)); filter: blur(30px); animation: rotate 14s linear infinite; }
.hero-logo .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(217,180,68,.25); animation: rotate 40s linear infinite; }
.hero-logo .orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 16px var(--gold); }
.hero-logo .orbit.o2 { inset: 12%; animation-duration: 26s; animation-direction: reverse; border-color: rgba(47,191,113,.22); }
.hero-logo .orbit.o2::after { background: #6be3a2; box-shadow: 0 0 16px var(--green); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes rotate { to { transform: rotate(360deg); } }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 50px; }
.feature .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: linear-gradient(135deg, rgba(217,180,68,.22), rgba(217,180,68,.06)); color: var(--gold-2); border: 1px solid var(--line); }
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; text-transform: uppercase; }
.feature p { color: var(--muted); font-size: 14.5px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 70px; }
.steps .card::before { counter-increment: s; content: counter(s); font-family: var(--head); font-size: 54px; line-height: 1; color: rgba(217,180,68,.25); position: absolute; right: 18px; top: 10px; }
.footer { border-top: 1px solid var(--line-soft); padding: 26px 0 40px; color: var(--faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 10px; gap: 10px; }
  .hero-logo { order: -1; width: min(70vw, 300px); }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .features, .steps { grid-template-columns: 1fr; }
}
.reveal { animation: rise .7s var(--ease) .25s both; }

/* ---------- Tables / lists ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; padding: 0 12px 10px; white-space: nowrap; }
td { padding: 13px 12px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background .2s; animation: rise .5s var(--ease) both; }
tbody tr:hover { background: rgba(255,255,255,.025); }
td.right, th.right { text-align: right; }
td .who { display: flex; align-items: center; gap: 10px; }
td .who .avatar { width: 32px; height: 32px; font-size: 12px; flex: none; }
td .who b { display: block; font-weight: 600; }
td .who span { font-size: 12.5px; color: var(--faint); }
.td-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 680px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-top: 1px solid var(--line-soft); padding: 12px 0; }
  table.stack td { border: 0; padding: 4px 2px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.stack td::before { content: attr(data-l); color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-align: left; }
  table.stack td.full { display: block; text-align: left; }
  table.stack td.full::before { display: none; }
  table.stack .td-actions { justify-content: flex-start; padding-top: 6px; }
}

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-soft); animation: rise .5s var(--ease) both; }
.list-item:first-child { border-top: 0; }
.list-item .li-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(229,70,61,.1); color: #ff9d94; }
.list-item .li-ico svg { width: 18px; height: 18px; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-main span { color: var(--faint); font-size: 12.5px; }
.list-item .li-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; }

/* ---------- Chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-width: 0; }
.chart .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart .b { width: min(14px, 40%); border-radius: 6px 6px 2px 2px; height: 0; transition: height 1.1s var(--ease); position: relative; }
.chart .b.inc { background: linear-gradient(180deg, #5fe39b, #1d9a58); }
.chart .b.exp { background: linear-gradient(180deg, #ff8a80, #c2342c); }
.chart .b:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #0e3524; border: 1px solid var(--line); padding: 3px 7px; border-radius: 7px; font-size: 11.5px; white-space: nowrap; z-index: 2; }
.chart .m { font-size: 11px; color: var(--faint); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 560px) { .chart .col:nth-child(-n+6) { display: none; } }

.progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 1.3s var(--ease) .15s; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); border-radius: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 10px; color: var(--muted); font: 600 14px var(--body); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color .3s; display: inline-flex; align-items: center; gap: 7px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .active { color: #1b1503; }
.tabs .indicator { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); transition: left .45s var(--ease), width .45s var(--ease); }
.tabs .count { background: var(--red); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 7px; }

/* copy rows */
.copy-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); margin-bottom: 10px; }
.copy-row .cr-main { flex: 1; min-width: 0; }
.copy-row .cr-main span { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; display: block; }
.copy-row .cr-main b { font-size: 15.5px; overflow-wrap: anywhere; }
ol.howto { margin: 0; padding-left: 0; list-style: none; counter-reset: h; }
ol.howto li { counter-increment: h; position: relative; padding: 0 0 14px 40px; color: var(--muted); }
ol.howto li b { color: var(--text); }
ol.howto li::before { content: counter(h); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: rgba(217,180,68,.14); color: var(--gold-2); border: 1px solid var(--line); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(74,120,230,.1); border: 1px solid rgba(74,120,230,.25); color: #c9d8ff; font-size: 14px; }
.notice.warn { background: rgba(240,165,49,.1); border-color: rgba(240,165,49,.28); color: #ffd99a; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(1, 8, 5, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; animation: fade .25s ease both; }
.modal-back.closing { animation: fadeOut .2s ease both; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 36px); overflow-y: auto; background: linear-gradient(180deg, #0d3121, #08251a); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); animation: pop .35s var(--ease) both; }
.modal-back.closing .modal { animation: popOut .2s ease both; }
.modal h2 { margin-bottom: 6px; }
.modal .m-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } } @keyframes fadeOut { to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes popOut { to { opacity: 0; transform: scale(.97); } }
@media (max-width: 560px) { .modal-back { align-items: end; padding: 0; } .modal { border-radius: 22px 22px 0 0; max-height: 92vh; animation-name: sheet; } @keyframes sheet { from { transform: translateY(100%); } } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 90; top: 80px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: #0f3826; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: toastIn .45s var(--ease) both; }
.toast.out { animation: toastOut .3s ease both; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.ok svg { color: #6be3a2; } .toast.err svg { color: #ff8a80; } .toast.info svg { color: var(--gold-2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- Skeleton ---------- */
.sk { border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 180px; position: relative; }
.toolbar .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); }
.toolbar .search input { padding-left: 40px; }
.month-nav { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); padding: 4px; border-radius: 12px; }
.month-nav b { min-width: 130px; text-align: center; font-size: 14px; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; text-align: right; font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 820px) { #toasts { top: 12px; right: auto; left: 50%; transform: translateX(-50%); } }
.brand .short { display: none; }
@media (max-width: 520px) { .brand .long { display: none; } .brand .short { display: inline; } }

/* ---------- Preview switcher ---------- */
#demo { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--gold); background: linear-gradient(135deg, #1a3f2b, #0c2a1c); color: var(--text); font: 500 13px var(--body); cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); animation: rise .6s var(--ease) 1s both; }
.demo-pill:hover { border-color: var(--gold-2); }
.demo-pill svg { width: 16px; height: 16px; color: var(--gold-2); }
.demo-pill b { color: var(--gold-2); font-weight: 600; }
.demo-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); max-height: min(560px, 70vh); overflow-y: auto; background: linear-gradient(180deg, #0f3524, #08251a); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); animation: pop .3s var(--ease) both; }
.demo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.demo-head b { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; }
.demo-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.demo-person { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.18); color: var(--text); font: 14px var(--body); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.demo-person:hover { border-color: var(--line); background: rgba(255,255,255,.05); transform: translateX(2px); }
.demo-person b { margin-right: 6px; }
.demo-person .pill { padding: 1px 8px; font-size: 11px; }
.demo-person .pill::before { display: none; }
.demo-person .avatar { flex: none; }
.demo-foot { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 820px) { #demo { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } .demo-pill { padding: 8px 13px; } }

/* ---------- Shared bits for feed / payments / messages ---------- */
.pill.gold-pill { color: var(--gold-2); background: rgba(217,180,68,.12); border-color: var(--line); padding: 2px 9px; font-size: 11px; }
.pill.gold-pill::before { display: none; }
.pill.gold-pill svg { width: 12px; height: 12px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.btn.disabled { opacity: .45; pointer-events: none; }

/* switch */
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; font-size: 14px; color: var(--text); font-weight: 500; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row .sw { flex: none; width: 40px; height: 23px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--line-soft); position: relative; transition: background .25s; margin-top: 1px; }
.switch-row .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #dfe9e3; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.switch-row input:checked + .sw { background: linear-gradient(135deg, #36c97b, #1d9a58); border-color: transparent; }
.switch-row input:checked + .sw::after { transform: translateX(17px); }
.switch-row input:focus-visible + .sw { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.switch-row input:disabled + .sw { opacity: .6; }
.chk-row { display: flex; gap: 18px; flex-wrap: wrap; }

/* home: mini feed */
.mini-post { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--text); animation: rise .5s var(--ease) both; }
.mini-post:first-child { border-top: 0; }
.mini-post:hover { text-decoration: none; }
.mini-post:hover .mp-body { color: var(--text); }
.mini-post .avatar { width: 36px; height: 36px; font-size: 12px; flex: none; }
.mini-post .li-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-post .li-main b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.mp-body { color: var(--muted); font-size: 14px; transition: color .2s; overflow-wrap: anywhere; }

/* feed */
.feed-wrap { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.composer { padding: 18px; }
.cmp-row { display: flex; gap: 12px; align-items: flex-start; }
.cmp-row .avatar { flex: none; }
.cmp-row textarea { min-height: 48px; resize: none; border-radius: 14px; overflow-y: auto; }
.cmp-preview { position: relative; margin: 12px 0 0 48px; }
.cmp-preview img { display: block; max-height: 260px; border-radius: 14px; border: 1px solid var(--line-soft); }
.cmp-preview .btn { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.65); }
.cmp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-left: 48px; flex-wrap: wrap; }
.cmp-foot label.btn { cursor: pointer; }
.cmp-pin { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cmp-pin input { width: 16px; height: 16px; accent-color: var(--gold); }
@media (max-width: 520px) { .cmp-foot, .cmp-preview { padding-left: 0; margin-left: 0; } }
.post { padding: 18px 20px; animation: rise .5s var(--ease) both; }
.post.pinned { border-color: var(--line); background: linear-gradient(170deg, rgba(217,180,68,.10), rgba(255,255,255,.035) 45%); }
.post-head { display: flex; gap: 12px; align-items: flex-start; }
.post-head .avatar { flex: none; }
.ph-main { flex: 1; min-width: 0; }
.ph-main b { font-weight: 600; }
.ph-actions { display: flex; gap: 2px; }
.ph-actions .btn { color: var(--faint); border-color: transparent; }
.ph-actions .btn:hover { color: var(--text); }
.pin-label { color: var(--gold-2); }
.pin-label svg { width: 12px; height: 12px; vertical-align: -1px; }
.post-body { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; }
.post-img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; margin-top: 12px; border: 1px solid var(--line-soft); }
.post-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pa { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 500 13.5px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.pa:hover { background: var(--surface-2); color: var(--text); }
.pa svg { width: 19px; height: 19px; }
.pa.liked { color: #ff6b7a; }
.pa.liked svg { fill: currentColor; }
.pa svg.pop { animation: heartPop .5s var(--ease); }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.comments { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; animation: fade .3s ease; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.c-bubble { background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); border-radius: 4px 14px 14px 14px; padding: 8px 12px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.c-bubble b { font-weight: 600; font-size: 13.5px; }
.c-form { display: flex; gap: 10px; align-items: center; }
.c-form input { padding: 9px 14px; border-radius: 999px; font-size: 14px; }
.c-form .btn { flex: none; border-radius: 999px; padding: 9px 12px; }

/* pay online */
.pay-online { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 22px; align-items: center; }
.pay-online h2 { margin: 2px 0 8px; font-size: 24px; }
.po-buttons { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 760px) { .pay-online { grid-template-columns: minmax(0, 1fr); } }
.wallet { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; font: 600 15px var(--body); cursor: pointer; transition: transform .2s var(--ease), box-shadow .3s; border: 1px solid transparent; }
.wallet:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.8); }
.wallet:active { transform: scale(.98); }
.wallet.apple { background: #000; color: #fff; border-color: #333; }
.wallet.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.wallet[disabled] { opacity: .6; pointer-events: none; }
.wallet .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.co-head img { width: 44px; height: 44px; object-fit: contain; }
.co-head h2 { margin: 0; }
.co-sum { padding: 14px 16px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line-soft); margin: 4px 0 10px; }
.co-sum .co-total { font-weight: 700; font-size: 16px; color: var(--text); padding-top: 8px; border-top: 1px solid var(--line-soft); }
.wallets { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 4px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.card-fields { display: flex; flex-direction: column; gap: 8px; }
.card-fields .row { gap: 8px; }
.co-note { margin-top: 12px; text-align: center; }
.co-done { text-align: center; padding: 18px 4px 6px; }
.co-done .btn { margin-top: 18px; min-width: 140px; }
.done-check { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #36c97b, #1d9a58); color: #03140b; animation: pop .5s var(--ease) both; box-shadow: 0 0 0 0 rgba(47,191,113,.5); animation: donePop .7s var(--ease) both; }
.done-check svg { width: 38px; height: 38px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck .5s .25s var(--ease) forwards; }
@keyframes donePop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 0 14px rgba(47,191,113,.15); } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* executives & messaging */
.exec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.exec { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.18); }
.exec .li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.exec .avatar { flex: none; }
.msg-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.wa { background: #1fa855; color: #fff; border-color: transparent; }
.sms-bubble { background: #1f8a4d; color: #fff; padding: 12px 14px; border-radius: 18px 18px 4px 18px; font-size: 14px; max-width: 92%; margin-left: auto; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); }
.schedule { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.list-item .btn.xs { flex: none; }
@media (max-width: 820px) { .tabbar a span { font-size: 10.5px; } }

/* ---------- Donations ---------- */
.hello-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.campaign-list { display: flex; flex-direction: column; gap: 8px; }
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.campaign { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.2); text-align: left; min-width: 0; }
.campaign p { margin: 0; }
.cp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cp-top b { font-weight: 600; }
.campaign.pick { position: relative; cursor: pointer; transition: border-color .2s, background .2s; padding-left: 44px; }
.campaign.pick input { position: absolute; opacity: 0; }
.campaign.pick::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); transition: all .2s; }
.campaign.pick:has(input:checked) { border-color: var(--gold); background: rgba(217,180,68,.08); }
.campaign.pick:has(input:checked)::before { border-color: var(--gold-2); background: radial-gradient(circle, var(--gold-2) 0 4px, transparent 5px); }
.campaign.pick:has(input:focus-visible) { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.campaign-btn { all: unset; display: block; cursor: pointer; border-radius: 14px; transition: transform .2s var(--ease); }
.campaign-btn:hover { transform: translateY(-2px); }
.campaign-btn:hover .campaign { border-color: var(--line); background: rgba(255,255,255,.04); }
.campaign-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.campaign-btn .campaign { height: 100%; }
.progress.sm { height: 7px; }
.progress.sm > i { background: linear-gradient(90deg, #ff8a96, var(--gold-2)); }
.amt-picks label { min-width: 64px; text-align: center; }
.done-check.heart { background: linear-gradient(135deg, #ff8a96, #e5463d); color: #fff; }
.done-check.heart svg { fill: currentColor; stroke-dasharray: none; stroke-dashoffset: 0; animation: heartPop .7s .3s var(--ease); }
.donate-card .card-head h3 svg { color: #ff8a96; }

/* =========================================================
   Motion layer: landing page scroll story + interactions
   ========================================================= */
.rise { animation: riseT .9s var(--ease) var(--d, 0s) both; }
@keyframes riseT { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

#loadbar { position: fixed; z-index: 95; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2), #6be3a2); box-shadow: 0 0 12px rgba(243,215,122,.7); pointer-events: none; }
#loadbar.go { opacity: 1; transform: scaleX(.7); transition: transform 2.2s cubic-bezier(.1,.6,.2,1); }
#loadbar.go.done { transform: scaleX(1); opacity: 0; transition: transform .25s ease, opacity .35s ease .2s; }

/* cursor spotlight on cards */
.card::after, .campaign::after, .exec::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(243,215,122,.10), transparent 60%);
}
.campaign, .exec { position: relative; }
@media (pointer: fine) { .card:hover::after, .campaign:hover::after, .exec:hover::after { opacity: 1; } }

/* magnetic buttons ease back */
.btn, .wallet { transition: transform .2s var(--ease), translate .45s var(--ease), box-shadow .3s, background .3s, border-color .3s, opacity .2s; }
.btn.glass { background: rgba(255,255,255,.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(255,255,255,.16); }

/* tilt */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); transform-style: preserve-3d; }
[data-tilt].tilting { transition: transform .12s linear; }

/* in-app headline: words rise in */
.hello h1 .w { display: inline-block; animation: riseT .7s var(--ease) calc(var(--i) * 60ms + .05s) both; }

/* ---------- landing ---------- */
.landing { position: relative; }
.scroll-progress { position: fixed; z-index: 60; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), var(--gold-2), #6be3a2); }

.hero2 { position: relative; min-height: min(100svh, 920px); display: flex; overflow: hidden; isolation: isolate; }
#tide { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.2s ease; display: block; }
#tide.on { opacity: 1; }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -3; background: radial-gradient(900px 600px at 75% 40%, rgba(47,191,113,.25), transparent 60%), radial-gradient(700px 500px at 85% 80%, rgba(217,180,68,.18), transparent 60%), var(--bg-2); }
.hero2-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(3,19,12,.78), rgba(3,19,12,.25) 55%, rgba(3,19,12,0)), linear-gradient(180deg, transparent 70%, var(--bg)); }
.hero2-inner { display: flex; flex-direction: column; width: 100%; padding-block: 0 28px; }
.hero2-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 30px; align-items: center; padding: 20px 0 40px; }
.hero2-copy { will-change: transform; }
.hero2 h1 { font-size: clamp(40px, 6.1vw, 88px); line-height: .92; letter-spacing: .01em; margin: 6px 0 0; }
.hero2 h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero2 h1 .ln.red { color: var(--red); } .hero2 h1 .ln.blue { color: #6f97ff; }
.hero2 h1 .ch { display: inline-block; animation: charUp .95s var(--ease) calc(var(--i) * 28ms + .25s) both; }
@keyframes charUp { from { translate: 0 105%; rotate: 8deg; opacity: 0; } to { translate: 0 0; rotate: 0deg; opacity: 1; } }
.hero2 .lead { font-size: 17.5px; color: #c4d6cb; margin: 22px 0 28px; max-width: 520px; }
.hero2 .cta, .cta-band .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero2 .cta .btn { padding: 14px 24px; font-size: 15px; }
.hero2-logo { justify-self: center; width: min(80vw, 430px); will-change: transform; }
.tilt-wrap { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.tilt-wrap img { width: 80%; position: relative; z-index: 2; filter: drop-shadow(0 34px 60px rgba(0,0,0,.65)); transform: translateZ(40px); }
.tilt-wrap .halo { position: absolute; inset: 6%; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(217,180,68,.4), rgba(47,191,113,.3), rgba(229,70,61,.25), transparent); filter: blur(34px); animation: rotate 14s linear infinite; }
.tilt-wrap .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(243,215,122,.28); animation: rotate 40s linear infinite; }
.tilt-wrap .orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 18px var(--gold); }
.tilt-wrap .orbit.o2 { inset: 12%; animation-duration: 26s; animation-direction: reverse; border-color: rgba(107,227,162,.25); }
.tilt-wrap .orbit.o2::after { background: #6be3a2; box-shadow: 0 0 16px var(--green); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scroll-cue span { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 80% { opacity: 0; translate: 0 12px; } 100% { opacity: 0; } }
@media (max-width: 860px) {
  .hero2 { min-height: 0; }
  .hero2-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 0; padding-top: 0; }
  .hero2-logo { order: -1; width: min(66vw, 300px); }
  .hero2 .lead { margin-left: auto; margin-right: auto; }
  .hero2 .cta { justify-content: center; }
  .hero2-veil { background: linear-gradient(180deg, rgba(3,19,12,.2), rgba(3,19,12,.7) 55%, var(--bg)); }
  .scroll-cue { display: none; }
}

.marquee { position: relative; z-index: 2; border-block: 1px solid var(--line); background: linear-gradient(90deg, #0b2e1f, #10382a, #0b2e1f); overflow: hidden; padding: 16px 0; margin: 10px 0 0; transform-origin: center; will-change: transform; }
.mq-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: mq 32s linear infinite; }
.mq-track span { font-family: var(--head); font-size: clamp(20px, 3vw, 30px); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; color: var(--text); }
.mq-track span:nth-of-type(3n+1) { color: var(--gold-2); }
.mq-track i { font-style: normal; color: var(--red); font-size: 18px; }
@keyframes mq { to { transform: translateX(-50%); } }

.statement { padding-block: clamp(70px, 12vw, 150px) clamp(40px, 8vw, 90px); }
.statement p { font-family: var(--head); font-size: clamp(28px, 4.6vw, 58px); line-height: 1.12; text-transform: uppercase; max-width: 1000px; letter-spacing: .01em; }
.statement .w { transition: opacity .25s linear; }

.feat2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 40px; }
.feat2 .f2 { padding: 28px; animation: riseT .8s var(--ease) calc(var(--k) * 120ms + .2s) both; }
.feat2 .fi { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(217,180,68,.24), rgba(217,180,68,.06)); color: var(--gold-2); border: 1px solid var(--line); transform: translateZ(30px); }
.feat2 .fi svg { width: 24px; height: 24px; }
.feat2 h3 { font-size: 21px; text-transform: uppercase; margin-bottom: 8px; transform: translateZ(20px); }
.feat2 p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .feat2 { grid-template-columns: minmax(0, 1fr); } }

.hscroll { position: relative; height: 300vh; }
.hs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: hidden; }
.hs-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.hs-head h2 { font-size: clamp(30px, 4.5vw, 52px); }
.hs-count { font-family: var(--head); font-size: 22px; color: var(--faint); letter-spacing: .08em; }
.hs-count b { color: var(--gold-2); font-size: 40px; }
.hs-viewport { overflow: hidden; padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px)); }
.hs-track { display: flex; gap: 22px; width: max-content; will-change: transform; padding-right: max(20px, calc((100vw - 1120px) / 2 + 20px)); }
.hs-panel { width: min(78vw, 760px); min-height: 360px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, .8fr); gap: 26px; align-items: center; padding: 36px; border-radius: 26px; border: 1px solid var(--line-soft); background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); transition: border-color .5s, background .5s, opacity .5s, scale .6s var(--ease); opacity: .55; scale: .96; }
.hs-panel.current { opacity: 1; scale: 1; border-color: var(--line); background: linear-gradient(150deg, rgba(217,180,68,.13), rgba(255,255,255,.03) 60%); }
.hs-n { font-family: var(--head); font-size: 88px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(243,215,122,.6); align-self: start; }
.hs-panel h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 10px; }
.hs-panel p { color: var(--muted); font-size: 16px; }
.hs-art { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(0,0,0,.25); border: 1px solid var(--line-soft); }
.hs-art .wallet { height: 42px; font-size: 13.5px; }
.mock-row { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.mock-row .avatar { flex: none; }
.mock-post { font-size: 13.5px; } .mock-post p { margin: 6px 0 10px; color: var(--muted); }
.mock-post .pa { padding: 0; }
.hs-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.hs-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
@media (max-width: 819px) {
  .hscroll { height: auto; }
  .hs-sticky { position: relative; height: auto; padding-block: 40px; }
  .hs-viewport { padding: 0; }
  .hs-track { flex-direction: column; width: 100%; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); transform: none !important; }
  .hs-panel { width: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr); padding: 24px; opacity: 1; scale: 1; gap: 14px; }
  .hs-n { font-size: 56px; }
  .hs-count, .hs-bar { display: none; }
}
@media (min-width: 820px) and (max-width: 1060px) { .hs-panel { grid-template-columns: auto minmax(0, 1fr); } .hs-art { display: none; } }

.stats2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-block: 60px; border-top: 1px solid var(--line-soft); margin-top: 20px; }
.stats2 > div { padding: 10px 22px; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.stats2 > div:first-child { border-left: 0; }
.stats2 b { font-family: var(--head); font-size: clamp(42px, 6vw, 72px); line-height: 1; color: var(--gold-2); font-weight: 600; }
.stats2 .lbl { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } .stats2 > div:nth-child(3) { border-left: 0; } }

.cta-band { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(135deg, #0f3a26, #082317); margin: 30px 0 60px; transform-origin: center bottom; will-change: transform; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 54px); margin: 4px 0 10px; }
.cb-glow { position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(243,215,122,.28), transparent 65%); animation: glowDrift 9s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glowDrift { to { translate: -240px 160px; } }
.cta-band > div:not(.cb-glow) { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .hero2 h1 .ch, .rise, .feat2 .f2, .hello h1 .w { animation: none !important; opacity: 1 !important; translate: none !important; rotate: none !important; }
  .mq-track { animation: none; }
}
.hero2 h1 .wd { display: inline-block; white-space: nowrap; }
.demo-pill.attn { animation: rise .6s var(--ease) 1s both, attn 2s ease-in-out 2s 4; }
@keyframes attn { 0%, 100% { box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(243,215,122,.55); } 50% { box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 10px rgba(243,215,122,0); } }

/* ---------- Bank connection ---------- */
.bank-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, rgba(74,120,230,.25), rgba(74,120,230,.08)); color: #b5c9ff; border: 1px solid rgba(74,120,230,.3); font-family: var(--head); font-size: 18px; }
.bank-ico svg { width: 22px; height: 22px; }
.bank-ico.sm { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
.bank-ico.lg { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; } .bank-ico.lg svg { width: 30px; height: 30px; }
.bank-card { display: flex; flex-direction: column; gap: 16px; border-color: rgba(74,120,230,.28); background: linear-gradient(160deg, rgba(74,120,230,.10), rgba(255,255,255,.03) 55%); }
.bank-card.empty-bank { flex-direction: row; align-items: center; flex-wrap: wrap; }
.bank-card.empty-bank > div:nth-child(2) { flex: 1; min-width: 240px; }
.bank-card.empty-bank h3 { margin-bottom: 4px; }
.bank-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bank-id { display: flex; align-items: center; gap: 12px; }
.bank-id b { display: block; font-weight: 600; }
.bank-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bank-nums > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); min-width: 0; }
.bank-nums .label { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.bank-nums b { font-family: var(--head); font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
@media (max-width: 640px) { .bank-nums { grid-template-columns: minmax(0, 1fr); } }
.bank-card .btn.sm { align-self: flex-start; }
.bank-hero { text-align: center; max-width: 640px; margin: 0 auto; padding: 36px 28px; }
.bank-hero h2 { margin-bottom: 8px; }
.ticks { list-style: none; padding: 0; margin: 18px auto 22px; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; color: var(--muted); font-size: 14px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; } .ticks svg { color: #6be3a2; width: 18px; height: 18px; flex: none; margin-top: 2px; }
.bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bank-opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.2); color: var(--text); font: 500 14px var(--body); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.bank-opt:hover { border-color: var(--line); background: rgba(255,255,255,.05); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
#bk-tb .pill { white-space: normal; }
.notice.confirming { align-items: center; background: rgba(47,191,113,.1); border-color: rgba(47,191,113,.3); color: #c9f2db; }
.notice.confirming .spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #6be3a2; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(0,0,0,.18); }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--gold); }
.footer a { color: var(--muted); }
/* policy pages */
.legal { max-width: 760px; margin: 0 auto; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); position: relative; z-index: 1; }
.legal header { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.legal header img { width: 46px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 6px; }
.legal h2 { font-size: 19px; margin: 30px 0 10px; color: var(--gold-2); }
.legal p, .legal li { color: #c9d8cf; font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal .box { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(217,180,68,.07); margin: 14px 0; }
