:root{
  --bg: #ffffff;
  --ink: #0b1220;
  --muted:#5b6476;
  --line:#e7ebf3;
  --card:#f7f9fc;
  --accent:#0d4b7a;
  --accent2:#d68c2a;
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius: 18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(13,75,122,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(214,140,42,.12), transparent 52%),
    var(--bg);
  line-height:1.45;
}

a{color:inherit}
.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  padding:22px 0 60px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0 18px;
}
.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand .kicker{
  font-size:.9rem;
  color:var(--muted);
}
.brand h1{
  margin:0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing:-.02em;
}
.navlinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.pill{
  text-decoration:none;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
  font-weight:600;
  font-size:.95rem;
}
.pill.primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #0a2f4b);
  color:#fff;
}
.pill.gold{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent2), #b36f18);
  color:#1c1205;
}

.hero{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  align-items:stretch;
  margin-top:6px;
}
@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
}

.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel .pad{padding:18px}
.panel h2{margin:0 0 8px;font-size:1.2rem;letter-spacing:-.01em}
.panel p{margin:8px 0;color:var(--muted)}
.badges{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:12px;
}
.badge{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-width: 160px;
}
.badge .label{color:var(--muted);font-size:.9rem}
.badge .value{font-size:1.2rem;font-weight:800;margin-top:2px}

.cardimg{
  display:grid;
  place-items:center;
  aspect-ratio: 1 / 1;
  width:100%;
  background: linear-gradient(135deg, rgba(13,75,122,.12), rgba(214,140,42,.14));
  border-bottom:1px solid var(--line);
}
.cardimg .ph{
  width:84%;
  height:84%;
  border:2px dashed rgba(11,18,32,.18);
  border-radius: 22px;
  display:grid;
  place-items:center;
  padding:18px;
  text-align:center;
  color: rgba(11,18,32,.65);
  font-weight:700;
}

.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 700px){
  .formgrid{grid-template-columns:1fr}
}

label{display:block;font-weight:700;margin-bottom:6px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  background:#fff;
  outline:none;
}
textarea{min-height:120px;resize:vertical}

.help{
  font-size:.92rem;color:var(--muted);margin-top:6px
}

.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.checkbox{display:flex;gap:10px;align-items:flex-start}
.checkbox input{width:auto;margin-top:3px}

.actions{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius: 14px;
  font-weight:800;
  font-size:1rem;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), #0a2f4b);
  color:#fff;
}
.btn.secondary{
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
}
.btn.gold{
  background: linear-gradient(135deg, var(--accent2), #b36f18);
  color:#1c1205;
}

.notice{
  border:1px solid var(--line);
  background:#fff;
  border-radius: 14px;
  padding:12px;
  color:var(--muted);
}

.wall{
  margin-top:18px;
}
.wallhead{
  display:flex; align-items:flex-end; justify-content:space-between; gap:12px; flex-wrap:wrap;
}
.wallhead h3{
  margin:0;
  font-size:1.15rem;
}
.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 950px){
  .grid{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 650px){
  .grid{grid-template-columns:1fr;}
}

.msg{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  padding:14px;
}
.msg .meta{
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  color:var(--muted); font-size:.92rem;
}
.msg .name{
  font-weight:900; color:var(--ink);
}
.msg .pledge{
  font-weight:900;
}
.msg .text{
  margin-top:10px;
  white-space:pre-wrap;
  color:#1a2233;
}
.footer{
  margin-top:24px;
  color:var(--muted);
  font-size:.92rem;
}
.small{font-size:.9rem;color:var(--muted)}
.error{
  border:1px solid rgba(190, 28, 28, .25);
  background: rgba(190, 28, 28, .06);
  color:#7a0f0f;
  padding:12px;
  border-radius: 14px;
}
.success{
  border:1px solid rgba(14, 128, 61, .25);
  background: rgba(14, 128, 61, .06);
  color:#0a4e25;
  padding:12px;
  border-radius: 14px;
}
