/* ===== Co-Moon-ity prototype — theme ===== */
:root {
  --bg: #070b1e;
  --bg-2: #0c1230;
  --ink: #eef1ff;
  --muted: #9aa3c9;
  --faint: #6b74a0;
  --line: rgba(150, 165, 230, 0.14);
  --card: rgba(22, 30, 66, 0.55);
  --card-solid: #131a3d;
  --gold: #ffcc66;
  --gold-2: #ffb347;
  --charity: #4be2a6;
  --winner: #7db4ff;
  --ops: #b79bff;
  --danger: #ff7a8a;
  --radius: 18px;
  --maxw: 1120px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 70% -10%, #1a2050 0%, transparent 55%),
              radial-gradient(900px 600px at 10% 10%, #241a4d 0%, transparent 50%),
              var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body > *:not(#stars) { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.hl { color: var(--gold); font-weight: 600; }
.accent { color: var(--gold); }
.good { color: var(--charity); }
.winner { color: var(--winner); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 650; font-size: 1rem; padding: .8em 1.4em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%); color: #2a1c00; box-shadow: 0 8px 24px rgba(255, 180, 71, .28); }
.btn-ghost { background: rgba(255,255,255,.05); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-text { background: none; color: var(--faint); border: none; padding: .6em; font-size: .9rem; }
.btn-text:hover { color: var(--danger); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.08rem; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ===== Cards ===== */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 11, 30, .72); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-moon { font-size: 1.3rem; filter: drop-shadow(0 0 10px rgba(255,204,102,.6)); }
.brand-name { letter-spacing: -.02em; }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 550; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav .btn-primary { margin-left: 0; }

/* ===== Hero ===== */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem) 3rem; text-align: center; }
.hero-badge {
  display: inline-block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(255,204,102,.35); border-radius: 999px;
  padding: .35em 1em; margin-bottom: 1.5rem; background: rgba(255,204,102,.06);
}
.hero-title { font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1.02; margin: 0 0 1rem; font-weight: 850; letter-spacing: -.03em; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero-sub strong { color: var(--ink); }

.split-pills { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-bottom: 2.5rem; }
.pill { display: flex; flex-direction: column; align-items: center; padding: .8rem 1.4rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); min-width: 150px; }
.pill-pct { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.pill-lbl { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.pill-charity .pill-pct { color: var(--charity); }
.pill-winner .pill-pct { color: var(--winner); }
.pill-ops .pill-pct { color: var(--ops); }

.hero-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.meter { padding: 1.4rem 1.2rem; text-align: center; }
.meter-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.meter-value { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 850; margin: .3rem 0 .2rem; letter-spacing: -.02em; }
.meter-value.countdown { font-variant-numeric: tabular-nums; color: var(--gold); }
.meter-foot { font-size: .82rem; color: var(--faint); }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.hero-fineprint { font-size: .84rem; color: var(--faint); max-width: 560px; margin: 0 auto; }

/* ===== Sections ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; text-align: center; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.5rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.step { padding: 1.6rem 1.3rem; }
.step-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1c00; margin-bottom: .9rem; }
.step h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.step strong { color: var(--ink); }

.amoe-note { text-align: center; font-size: .84rem; color: var(--faint); max-width: 560px; margin: 1.2rem auto 0; }
.amoe-note a { color: var(--muted); }
.amoe-details { padding: 1.2rem 1.6rem; margin-top: 1rem; }
.amoe-details summary { cursor: pointer; color: var(--muted); font-size: .9rem; font-weight: 600; }
.amoe-details summary:hover { color: var(--ink); }
.amoe-details[open] summary { margin-bottom: .8rem; }
.amoe-details p { color: var(--muted); font-size: .86rem; line-height: 1.65; margin: 0 0 .7rem; }
.amoe-details p:last-child { margin-bottom: 0; }
.amoe-addr { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink) !important; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px; padding: .7em 1em; }

/* ===== Vote ===== */
.vote-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; align-items: start; }
.vote-list { display: flex; flex-direction: column; gap: .8rem; }
.vote-card { display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, transform .12s, background .15s; }
.vote-card:hover { border-color: rgba(255,204,102,.4); transform: translateX(3px); }
.vote-card.chosen { border-color: var(--gold); background: rgba(255,204,102,.08); }
.vote-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255,255,255,.06); }
.vote-info h4 { margin: 0 0 .15rem; font-size: 1.05rem; }
.vote-info p { margin: 0; font-size: .85rem; color: var(--muted); }
.vote-info .ein { color: var(--faint); font-size: .78rem; }
.vote-bar-wrap { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: .2rem; }
.vote-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--charity), #38c690); transition: width .6s ease; }
.vote-pct { font-weight: 800; font-size: 1.1rem; text-align: right; min-width: 54px; }
.vote-pct small { display: block; font-weight: 500; font-size: .72rem; color: var(--faint); }

.vote-side { padding: 1.5rem; position: sticky; top: 90px; }
.vote-side-total { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.vote-side-num { display: block; font-size: 2.4rem; font-weight: 850; }
.vote-side-lbl { color: var(--muted); font-size: .9rem; }
.vote-side-pot { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.vote-side-pot strong { display: block; font-size: 1.8rem; color: var(--charity); }
.vote-side-note { font-size: .84rem; color: var(--faint); }
.vote-status { margin-top: 1rem; font-size: .9rem; }
.vote-status.ok { color: var(--charity); }
.vote-status.warn { color: var(--gold); }

/* ===== Draw ===== */
.draw-stage { padding: 2rem; }
.draw-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.draw-meta-lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.draw-meta-val { font-size: 1.3rem; font-weight: 800; margin-top: .2rem; }
.draw-meta-val.mono { font-size: .95rem; word-break: break-all; color: var(--gold); }

.draw-canvas-wrap { position: relative; margin: 1.5rem 0; height: 280px; border-radius: 18px; overflow: hidden; background: #070b1e; border: 1px solid rgba(125, 180, 255, .28); box-shadow: inset 0 0 70px rgba(125, 180, 255, .1); }
.draw-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
#muteDraw { padding: .6em .7em; font-size: 1.1rem; }
@media (max-width: 560px) { .draw-canvas-wrap { height: 220px; } }

.reel { position: relative; margin: 1.5rem 0; }
.reel-window {
  height: 130px; border-radius: 16px; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(125,180,255,.08), rgba(125,180,255,.02));
  border: 1px solid rgba(125,180,255,.25);
  box-shadow: inset 0 0 60px rgba(125,180,255,.12);
}
.reel-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; letter-spacing: .04em; color: var(--winner); }
.reel.spinning .reel-id { color: var(--ink); }
.reel.won .reel-window { border-color: var(--gold); box-shadow: inset 0 0 80px rgba(255,204,102,.3), 0 0 30px rgba(255,204,102,.25); }
.reel.won .reel-id { color: var(--gold); text-shadow: 0 0 24px rgba(255,204,102,.5); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.reel-line { height: 2px; background: linear-gradient(90deg, transparent, var(--winner), transparent); margin-top: -2px; opacity: .5; }

.draw-controls { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
.draw-result { text-align: center; }
.draw-winner { font-size: 1.4rem; margin: 1rem 0; }
.draw-winner strong { color: var(--gold); font-family: ui-monospace, monospace; }
.verify-box { text-align: left; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.6rem; margin-top: 1rem; }
.verify-box h4 { margin: 0 0 .7rem; }
.verify-box ol { margin: 0 0 .8rem; padding-left: 1.3rem; color: var(--muted); }
.verify-box li { margin-bottom: .4rem; }
.verify-note { font-size: .85rem; color: var(--faint); margin: 0; }

/* ===== Ledger ===== */
.ledger-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.lstat { padding: 1.3rem; text-align: center; }
.lstat-num { font-size: 1.9rem; font-weight: 850; }
.lstat-lbl { color: var(--muted); font-size: .88rem; margin-top: .2rem; }
.table-wrap { padding: .5rem; overflow-x: auto; }
.ledger-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.ledger-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.ledger-table td { padding: .9rem 1rem; border-bottom: 1px solid rgba(150,165,230,.07); font-size: .92rem; }
.ledger-table tr:last-child td { border-bottom: none; }
.ledger-table .lg-cause { font-weight: 600; }
.ledger-table .lg-amt { color: var(--charity); font-weight: 700; }
.ledger-table .lg-prize { color: var(--winner); font-weight: 700; }
.ledger-table .lg-id { font-family: ui-monospace, monospace; }
.lg-verify { color: var(--gold); font-family: ui-monospace, monospace; font-size: .82rem; cursor: pointer; }
.lg-verify:hover { text-decoration: underline; }

/* ===== Membership ===== */
.me-grid { max-width: 520px; margin: 0 auto; }
.join-card { padding: 2rem; text-align: center; }
.join-badges { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.3rem; }
.tag { font-size: .8rem; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: .3em .8em; color: var(--muted); }
.join-price { margin-bottom: .6rem; }
.join-amt { font-size: 3.4rem; font-weight: 850; }
.join-per { color: var(--muted); font-size: 1.1rem; }
.join-desc { color: var(--muted); margin-bottom: 1.5rem; }
.join-desc strong { color: var(--ink); }
.join-or { color: var(--faint); margin: 1rem 0; font-size: .85rem; }
.join-fine { font-size: .78rem; color: var(--faint); margin-top: 1.2rem; }

.member-card { padding: 2rem; }
.member-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.member-hello { color: var(--muted); font-size: .9rem; }
.member-id { font-family: ui-monospace, monospace; font-size: 2rem; font-weight: 800; color: var(--gold); }
.member-status { background: rgba(75,226,166,.15); color: var(--charity); border: 1px solid rgba(75,226,166,.3); border-radius: 999px; padding: .35em .9em; font-size: .82rem; font-weight: 600; }
.member-status.free { background: rgba(125,180,255,.15); color: var(--winner); border-color: rgba(125,180,255,.3); }
.member-rows { border-top: 1px solid var(--line); margin-bottom: 1.5rem; }
.member-row { display: flex; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid rgba(150,165,230,.08); }
.member-row span { color: var(--muted); }
.member-actions { display: flex; gap: .8rem; margin-bottom: .8rem; }
.member-actions .btn { flex: 1; }

/* ===== Trust ===== */
.pledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pledge { padding: 1.5rem; }
.pledge h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.pledge p { margin: 0; color: var(--muted); font-size: .92rem; }
.legal-note { padding: 1.5rem 1.8rem; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.legal-note strong { color: var(--ink); }

/* ===== Footer ===== */
.footer { text-align: center; padding: 3rem 1rem 4rem; border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; }
.footer-tag { color: var(--gold); margin: .3rem 0 1rem; }
.footer-links { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.footer-links a { color: var(--muted); }
.footer-fine { color: var(--faint); font-size: .82rem; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--card-solid); border: 1px solid var(--line); color: var(--ink);
  padding: .9em 1.4em; border-radius: 12px; box-shadow: var(--shadow); z-index: 100;
  transition: transform .3s cubic-bezier(.2,1.2,.3,1); max-width: 90vw; font-size: .95rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.good { border-color: rgba(75,226,166,.4); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-meters, .steps, .ledger-stats, .pledge-grid { grid-template-columns: 1fr 1fr; }
  .vote-wrap { grid-template-columns: 1fr; }
  .vote-side { position: static; }
  .draw-top { grid-template-columns: 1fr; gap: .6rem; }
}
@media (max-width: 560px) {
  .hero-meters, .steps, .ledger-stats, .pledge-grid { grid-template-columns: 1fr; }
  .member-actions { flex-direction: column; }
  .draw-controls { flex-direction: column; }
  .draw-controls .btn { width: 100%; }
}

/* ===== Rocket launch + confetti ===== */
.launch-layer { position: fixed; inset: 0; z-index: 200; pointer-events: none; overflow: hidden; }
.rocket {
  position: absolute; left: 50%; bottom: 8%; font-size: 4.5rem; transform: translateX(-50%);
  animation: launch 2.6s cubic-bezier(.35, 0, .65, 1) forwards;
  filter: drop-shadow(0 0 24px rgba(255, 204, 102, .8));
}
@keyframes launch {
  0%   { transform: translateX(-50%) translateY(34vh) scale(.5) rotate(-6deg); opacity: 0; }
  14%  { opacity: 1; transform: translateX(-50%) translateY(20vh) scale(1) rotate(-6deg); }
  55%  { transform: translateX(-50%) translateY(-28vh) scale(1) rotate(-7deg); }
  100% { transform: translateX(-50%) translateY(-135vh) scale(.85) rotate(-9deg); opacity: 1; }
}
.exhaust {
  position: absolute; left: 50%; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, #ffe08a 0%, rgba(255, 130, 60, .5) 45%, rgba(255, 120, 60, 0) 75%);
  animation: exhaust 900ms ease-out forwards;
}
@keyframes exhaust { 0% { opacity: .9; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.2) translateY(40px); } }
.spark {
  position: absolute; width: 11px; height: 11px; border-radius: 2px; will-change: transform, opacity;
  animation: spark var(--dur) cubic-bezier(.2, .6, .3, 1) forwards;
}
@keyframes spark { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

/* ===== Nominate ===== */
.nom-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: start; }
.nom-form { padding: 1.8rem; position: sticky; top: 90px; }
.nom-form h3 { margin: 0 0 .3rem; }
.nom-form-sub { color: var(--muted); font-size: .9rem; margin: 0 0 1.3rem; }
.nom-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.nom-form input, .nom-form select, .nom-form textarea {
  width: 100%; margin-top: .35rem; padding: .7em .9em; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--ink);
  font-size: .95rem; font-family: inherit;
}
.nom-form input:focus, .nom-form select:focus, .nom-form textarea:focus { outline: none; border-color: var(--gold); }
.nom-form textarea { resize: vertical; }
.nom-two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.nom-form .btn-lg { margin-top: .3rem; }
.nom-fine { font-size: .78rem; color: var(--faint); margin: 1rem 0 0; }

.nom-pipeline { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; color: var(--muted); font-size: .88rem; }
.pipe-stage { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; }
.pipe-arrow { color: var(--faint); }
.nom-list { display: flex; flex-direction: column; gap: .8rem; }
.nom-card { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.nom-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .4rem; }
.nom-head h4 { margin: 0; font-size: 1.05rem; }
.nom-head h4 a { color: var(--ink); }
.nom-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: .3em .8em; white-space: nowrap; }
.nom-badge.nominated { background: rgba(154,163,201,.15); color: var(--muted); border: 1px solid var(--line); }
.nom-badge.vetting { background: rgba(255,204,102,.14); color: var(--gold); border: 1px solid rgba(255,204,102,.35); }
.nom-badge.ballot { background: rgba(75,226,166,.15); color: var(--charity); border: 1px solid rgba(75,226,166,.35); }
.nom-meta { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.nom-cat { font-size: .74rem; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 6px; padding: .15em .55em; }
.nom-ein { font-size: .74rem; color: var(--faint); }
.nom-mine { font-size: .72rem; color: var(--winner); font-weight: 700; }
.nom-reason { color: var(--muted); font-size: .9rem; margin: 0 0 .8rem; }
.nom-foot { display: flex; align-items: center; gap: 1rem; }
.nom-boost { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .9rem; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .12s; }
.nom-boost:hover { border-color: var(--gold); transform: translateY(-1px); }
.nom-boost.boosted { border-color: var(--charity); color: var(--charity); cursor: default; }
.nom-progress { flex: 1; }
.nom-progress-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.nom-progress-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .5s ease; }
.nom-progress-lbl { font-size: .74rem; color: var(--faint); margin-top: .3rem; }

@media (max-width: 820px) { .nom-grid { grid-template-columns: 1fr; } .nom-form { position: static; } }

/* ===== Share cause button + modal ===== */
.btn-share { background: linear-gradient(135deg, var(--charity), #38c690); color: #052318; }
.share-cta { margin-top: 1rem; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(4, 6, 18, .82); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal { max-width: 420px; width: 100%; text-align: center; padding: 1.6rem; }
.modal h3 { margin: 0 0 1rem; }
.modal canvas { width: 100%; max-width: 340px; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modal-actions { display: flex; gap: .7rem; margin-top: 1.2rem; }
.modal-actions .btn { flex: 1; }
.modal-close { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 1.6rem; color: var(--muted); cursor: pointer; background: none; border: none; }
.modal-close:hover { color: var(--ink); }
