@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f5f6fa;
  --card: #ffffff;
  --ink: #141a33;
  --muted: #5d6578;
  --line: #e1e4ee;
  --navy: #1d3fae;
  --saffron: #ffd91a;
  --saffron-soft: #fff8d1;
  --green: #1e7a46;
  --green-soft: #e3f3e8;
  --red: #b3261e;
  --red-soft: #fbe9e7;
  --amber: #8a5a00;
  --amber-soft: #fdf3d3;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
  font-size: 17px; line-height: 1.5;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.en { color: var(--muted); font-size: .86em; font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* header */
.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.brand-mark { width: 38px; height: 38px; display: block; border-radius: 50%; box-shadow: 0 0 0 2px #ffd91a; }
.brand small { display: block; font-weight: 500; font-size: .68rem; opacity: .75; letter-spacing: .02em; margin-top: -3px; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem; opacity: .85; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.nav .hi { display: none; font-weight: 500; opacity: .8; }
.nav a.on { background: #fff; color: var(--navy); opacity: 1; }
.nav a.cta:not(.on) { background: var(--saffron); color: var(--ink); opacity: 1; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 9px; padding: 6px 12px; font: inherit; font-weight: 600; }
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 58px; background: var(--navy); flex-direction: column; padding: 8px 16px 16px; gap: 6px; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .hi { display: inline; }
}

/* layout */
main.wrap { padding: 22px 16px 56px; }
.page-title { font-size: 1.7rem; font-weight: 800; }
.page-sub { color: var(--muted); margin: 4px 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.notice { background: var(--saffron-soft); border: 1px solid #f0df8a; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; white-space: pre-line; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 18px 0 30px; text-align: center; }
.foot a { color: var(--muted); }

/* hero + stats */
.hero { background: var(--navy); color: #fff; padding: 26px 0 64px; }
.hero h1 { font-size: clamp(1.6rem, 5.4vw, 2.4rem); font-weight: 800; }
.hero p { margin: 8px 0 0; opacity: .85; max-width: 56ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -44px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: 0 6px 18px rgba(29,63,174,.08); min-width: 0; }
.stat b { display: block; font-size: clamp(1.25rem, 5vw, 1.9rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat span { color: var(--muted); font-size: .85rem; line-height: 1.25; display: block; margin-top: 4px; }
.stat.accent b { color: var(--green); }

/* forms */
label { display: block; font-weight: 600; margin: 14px 0 5px; }
label .en { font-weight: 500; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid #cdd2e0; border-radius: 10px; background: #fff; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(29,63,174,.22); border-color: var(--navy); }
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; border-radius: 10px; padding: 11px 18px; font-weight: 700; min-height: 46px; text-decoration: none;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.saffron { background: var(--saffron); color: var(--ink); }
.btn.saffron:hover { filter: brightness(.95); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid #cdd2e0; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 8px; }
.btn.block { width: 100%; }
.msg { border-radius: 10px; padding: 11px 14px; margin-top: 14px; font-weight: 500; }
.msg.err { background: var(--red-soft); color: var(--red); border: 1px solid #f0c1bc; }
.msg.ok { background: var(--green-soft); color: #14532d; border: 1px solid #b7dcc4; }
[hidden] { display: none !important; }

/* search + status */
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill.approved { background: var(--green-soft); color: var(--green); }
.pill.pending { background: var(--amber-soft); color: var(--amber); }
.pill.rejected { background: var(--red-soft); color: var(--red); }
.pill.info { background: #e7ebf5; color: var(--navy); }
.result { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; background: #fff; }
.result .who { font-weight: 700; }

/* list */
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.list-head select { width: auto; min-width: 180px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); font-weight: 700; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list td.r, table.list th.r { text-align: right; }
table.list .sub { color: var(--muted); font-size: .86rem; }
table.list tr:last-child td { border-bottom: 0; }
.sno { color: var(--muted); width: 1%; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  table.list td, table.list th { padding: 9px 6px; }
}

/* pay */
.pay-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } }
.qr-box { text-align: center; }
.qr-box img, .qr-box svg { width: 100%; max-width: 260px; height: auto; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 12px; align-items: center; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy { border: 1px solid #cdd2e0; background: #fff; border-radius: 8px; padding: 4px 10px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin: 6px 0; }
.amount-big { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.pay-grid + .card, .stats + .card { margin-top: 14px; }

/* mobile usability */
html { scroll-padding-top: 72px; }
body { overflow-wrap: break-word; }
img, svg, iframe { max-width: 100%; }
input[type=file] {
  width: 100%; max-width: 100%; min-height: 52px; padding: 9px; border: 1.5px dashed #aab2c8; border-radius: 10px;
  background: #fff; font-size: 16px; overflow: hidden; text-overflow: ellipsis;
}
input[type=file]::file-selector-button {
  font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 7px 12px; margin-right: 10px;
  background: var(--navy); color: #fff; cursor: pointer;
}
input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
input[type=checkbox] { width: 20px; height: 20px; vertical-align: middle; margin-right: 6px; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.menu-btn { min-height: 44px; padding: 8px 14px; }
.copy { min-height: 40px; padding: 6px 14px; font-size: .9rem; }
.btn, .copy, .tab, .nav a, .menu-btn { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 720px) {
  .btn.small { min-height: 42px; padding: 8px 14px; }
  .card { padding: 15px; }
  .page-title { font-size: 1.5rem; }
  .kv { gap: 10px 10px; }
}
@media (max-width: 400px) {
  .wrap, main.wrap { padding-left: 12px; padding-right: 12px; }
  .stats { gap: 7px; }
  .stat { padding: 11px 10px 10px; }
  .brand small { font-size: .62rem; }
  .list-head select { width: 100%; }
}
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr auto; gap: 0 10px; }
  .kv dt { grid-column: 1 / -1; margin-top: 10px; }
  .kv dt:first-child { margin-top: 0; }
  .kv dd { font-size: 1.08rem; }
}

/* top contributors */
.star { color: #e0a800; }
.top { background: var(--saffron-soft); border: 1px solid #f0df8a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.top-h { font-weight: 700; margin-bottom: 6px; }
.top-h .star, .top li > .star { font-size: 1.25rem; line-height: 1; }
.top ol { list-style: none; margin: 0; padding: 0; }
.top li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f0e6a8; }
.top li:first-child { border-top: 0; }
.top-n { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.top-n .sub { color: var(--muted); font-size: .86rem; }
