/* Bayanihan Bills
   Layout idea: an indigo jeepney-sign header closed by one woven banig band; below it, quiet white
   "resibo" slips on cool paper. Mango yellow is reserved for the main action. Left-aligned throughout. */
:root {
  --indigo: #1d2b7a;
  --ink: #131a3c;
  --mango: #f8b90c;
  --mango-deep: #dd9f00;
  --red: #d62839;
  --leaf: #1c7c4d;
  --paper: #f3f5fb;
  --surface: #ffffff;
  --line: #d6dcee;
  --muted: #565f88;
  --straw: #f4e4b5;
  --leaf-soft: #dcf1e5;
  --mango-soft: #fff1c9;
  --red-soft: #fbe0e3;
  --display: "Gabarito", "Trebuchet MS", sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; color: var(--indigo); }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
a { color: var(--indigo); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mango-deep); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 5; }
.small { font-size: .88rem; color: var(--muted); }

/* header */
header.site { background: var(--indigo); color: #fff; }
.bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.3rem; }
.sun { width: 30px; height: 30px; fill: var(--mango); flex: none; }
header.site nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-left: auto; }
header.site nav a, .navbtn { color: #e3e7fb; text-decoration: none; padding: 7px 12px; border-radius: 999px; font-weight: 600; background: none; border: 0; cursor: pointer; }
header.site nav a:hover, .navbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
header.site nav a[aria-current="page"] { background: var(--mango); color: var(--ink); }
form.inline { display: inline; margin: 0; }
.banig {
  height: 18px; background-color: var(--straw);
  background-image:
    linear-gradient(45deg, var(--red) 25%, transparent 25%, transparent 75%, var(--red) 75%),
    linear-gradient(45deg, var(--mango) 25%, transparent 25%, transparent 75%, var(--mango) 75%),
    linear-gradient(-45deg, rgba(29, 43, 122, .55) 12%, transparent 12%, transparent 88%, rgba(29, 43, 122, .55) 88%);
  background-size: 18px 18px, 18px 18px, 9px 9px;
  background-position: 0 0, 9px 9px, 0 0;
}
main { padding: 28px 0 56px; }

/* messages */
.flash { padding: 12px 14px; border-radius: 12px; font-weight: 500; border: 1px solid transparent; }
.flash.ok { background: var(--leaf-soft); border-color: #a9d8bd; }
.flash.info { background: var(--mango-soft); border-color: #f1d98a; }
.flash.error { background: var(--red-soft); border-color: #efa9b0; }
.flash p:last-child { margin-bottom: 0; }

/* buttons */
.btn { display: inline-block; text-align: center; text-decoration: none; cursor: pointer; font-weight: 700; padding: 11px 18px; border-radius: 12px; border: 2px solid var(--indigo); background: var(--surface); color: var(--indigo); }
.btn:hover { background: #eef1fb; }
.btn.primary { background: var(--mango); border-color: var(--mango); color: var(--ink); box-shadow: 0 3px 0 var(--mango-deep); }
.btn.primary:hover { background: #ffc825; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--mango-deep); }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red-soft); }
.btn.small { padding: 6px 12px; font-size: .9rem; border-width: 1.5px; }
.btn.big { padding: 14px 26px; font-size: 1.08rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.row.between { justify-content: space-between; align-items: flex-start; }
.row form { margin: 0; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); letter-spacing: -.02em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.slip { background: var(--surface); padding: 20px 22px 26px; transform: rotate(-1.2deg); border: 1px solid var(--line); border-bottom: 0;
  --notch: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--notch)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--notch)) 100%;
}
.slip-title { font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: var(--indigo); line-height: 1.15; }
.slip dl { margin: 14px 0 0; border-top: 2px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; }
.slip dl div { display: flex; justify-content: space-between; gap: 12px; }
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 700; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 14px; }
.filters .apply { grid-column: 1 / -1; justify-self: start; }
.js .filters .apply { display: none; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .93rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); }
select:disabled { background: #e9ecf6; color: var(--muted); }
textarea { min-height: 120px; resize: vertical; }
.chips, .quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { display: inline-block; padding: 6px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--indigo); }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* bill cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.bill { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.bill-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.biller { margin: 0 0 6px; overflow-wrap: anywhere; }
.biller a { color: var(--ink); text-decoration: none; }
.biller a:hover { text-decoration: underline; }
.amount { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; margin: 4px 0 2px; color: var(--indigo); }
.amount-note { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.bar { height: 12px; border-radius: 999px; background: #e7eaf5; display: flex; overflow: hidden; }
.bar i { display: block; height: 100%; }
.bar .c { background: var(--leaf); }
.bar .p { background: repeating-linear-gradient(135deg, var(--mango) 0 6px, #ffe08a 6px 12px); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.tear { border: 0; border-top: 2px dashed var(--line); margin: 14px -20px; position: relative; overflow: visible; }
.tear::before, .tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.tear::before { left: -9px; }
.tear::after { right: -9px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .92rem; margin: 0 0 10px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.meta.wide dd { text-align: left; }
.story { color: #3b4266; overflow-wrap: anywhere; }
.who { font-weight: 600; font-size: .93rem; }
.badge { font-size: .74rem; font-weight: 700; color: var(--leaf); border: 1.5px solid var(--leaf); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.docs { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: .8rem; color: var(--muted); }
.docs span { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; }
.bill > .btn { margin-top: auto; }
.pill { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.pill.open { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.pill.part { background: var(--mango-soft); color: #7a5600; }
.pill.paid { background: var(--leaf-soft); color: var(--leaf); }
.pill.flag { background: var(--red-soft); color: var(--red); }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; color: var(--muted); }
.empty { border: 2px dashed var(--line); border-radius: 16px; padding: 22px; color: var(--muted); }

/* panels and pages */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; }
.panel.narrow, .prose { max-width: 640px; }
.panel.quiet { background: none; border-style: dashed; }
.panel.quiet summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.stack > * { margin-bottom: 18px; }
.back { font-weight: 600; text-decoration: none; }
.back::before { content: "‹ "; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border: 0; }
.sharebox { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .92rem; overflow-wrap: anywhere; }
.holdnote { background: var(--leaf-soft); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.billphoto { max-height: 300px; border: 1px solid var(--line); border-radius: 12px; }
.steps { padding-left: 22px; display: grid; gap: 10px; margin: 0 0 18px; }
.steps li::marker { font-family: var(--display); font-weight: 900; color: var(--indigo); }
.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-top: 6px; font-size: 1.15rem; letter-spacing: .03em; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form.one { grid-template-columns: 1fr; max-width: 320px; }
.form .full { grid-column: 1 / -1; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
label.check input { width: auto; margin-top: 5px; }
.release { margin-top: 14px; }
.postform fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px 22px; margin: 0 0 18px; min-width: 0; }
.postform legend { font-family: var(--display); font-weight: 700; font-size: 1.2rem; padding: 0 8px; display: flex; align-items: center; gap: 10px; }
.stepno { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mango); color: var(--ink); font-weight: 900; }
.sec { margin: 30px 0 12px; }
.track { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.track li { border-top: 6px solid var(--line); padding-top: 8px; font-weight: 700; color: var(--muted); font-size: .93rem; }
.track li small { display: block; font-weight: 400; }
.track li.done { border-color: var(--leaf); color: var(--ink); }
.track li.now { border-color: var(--mango); color: var(--ink); }
.item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item.panel { padding: 14px 18px; border: 1px solid var(--line); }
.item p { margin: 0; }
.thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--paper); }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.thumbs figure { margin: 0; width: 84px; text-align: center; font-size: .76rem; color: var(--muted); }
.reviewcard .actions { margin: 6px 0 14px; }
.noteform { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 10px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; }
td select { width: auto; padding: 5px 8px; }
tr:last-child td { border-bottom: 0; }
.prose ul { padding-left: 20px; }
.prose h2 { margin-top: 26px; }

footer.site { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--muted); }
footer.site strong { color: var(--ink); }

@media (max-width: 760px) {
  .hero, .two { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item { grid-template-columns: auto minmax(0, 1fr); }
  .item > .row { grid-column: 1 / -1; }
  header.site nav { margin-left: 0; }
  .slip { transform: none; }
}
@media (max-width: 420px) { .filters { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn.primary:active { transform: none; } }

/* ---------- payment route, urgency, sponsor credit, receipts ---------- */
.route { font-size: .86rem; font-weight: 600; margin: -2px 0 8px; display: flex; gap: 6px; align-items: baseline; }
.route::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.biller-route { color: var(--leaf); }
.biller-route::before { background: var(--leaf); }
.wallet-route { color: #7a5600; }
.wallet-route::before { background: var(--mango-deep); }
.pill.due { background: var(--red-soft); color: var(--red); }
.meta dd.soon { color: var(--red); font-weight: 700; }
.sponsored { margin: 10px 0 0; padding: 7px 10px; border-radius: 10px; background: #eef1fb; color: var(--indigo); font-weight: 600; font-size: .9rem; }
.sponsored a { color: var(--indigo); }
.receipt-done { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf); font-weight: 700; font-size: .88rem; }
.receipt-done::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: .72rem; }
.storyparts { margin: 0 0 12px; }
.storyparts dt { font-weight: 700; font-size: .84rem; color: var(--muted); margin-top: 8px; }
.storyparts dd { margin: 2px 0 0; color: #3b4266; }

/* ---------- sponsors ---------- */
.sponsor-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.sponsor-tile { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.sponsor-tile:hover { border-color: var(--indigo); }
.sponsor-tile strong { font-family: var(--display); font-size: 1.15rem; }
.sponsor-tile span { color: var(--muted); font-size: .92rem; }
.logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex: none; }
.logo.big { width: 96px; height: 96px; border-radius: 18px; }
.logo.initials { display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--indigo); background: var(--mango-soft); }
.sponsor-head { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.impact div { padding: 16px 18px; border-left: 2px dashed var(--line); }
.impact div:first-child { border-left: 0; }
.impact dt { color: var(--muted); font-size: .88rem; }
.impact dd { margin: 4px 0 0; font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--indigo); line-height: 1.1; }
.impact dd.small-dd { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--ink); }

/* ---------- admin ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; border-bottom: 2px solid var(--line); }
.subnav a { padding: 8px 14px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.subnav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--mango); }
.linkform { align-items: flex-end; margin-top: 10px; }
.grow { flex: 1 1 240px; }
.grow-input { flex: 1 1 200px; width: auto; }
details > summary { cursor: pointer; font-weight: 600; color: var(--indigo); margin: 10px 0; }

@media (max-width: 760px) {
  .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact div:nth-child(3) { border-left: 0; }
  .impact div:nth-child(n+3) { border-top: 2px dashed var(--line); }
  .sponsor-head { flex-direction: column; align-items: flex-start; }
}
@media print {
  header.site, footer.site, .subnav, .btn, .back { display: none !important; }
  body { background: #fff; }
  .panel, .tablewrap, .impact { border-color: #bbb; }
}

/* ---------- inbox and conversations ---------- */
header.site nav .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; }
.notelist, .threadlist, .msgs { list-style: none; margin: 0; padding: 0; }
.notelist li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.notelist li.unread { border-left: 5px solid var(--mango); }
.notelist a { color: var(--ink); font-weight: 600; text-decoration: none; }
.notelist a:hover { text-decoration: underline; }
.threadlist li a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; text-decoration: none; color: var(--ink); }
.threadlist li a:hover { border-color: var(--indigo); }
.threadlist .preview { color: var(--muted); font-size: .92rem; }
.thread { max-width: 720px; }
.thread-title { font-size: 1.6rem; }
.safety { background: var(--mango-soft); border: 1px solid #f1d98a; border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.msgs { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.msgs li { max-width: 85%; align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; }
.msgs li.mine { align-self: flex-end; background: #e8ecfb; border-color: #c9d1f2; border-radius: 14px 14px 4px 14px; }
.msgs li p { margin: 4px 0 0; overflow-wrap: anywhere; }
.who-line { font-size: .8rem; color: var(--muted); font-weight: 600; }
.form.one.wide { max-width: none; }
.thread-actions { border-top: 1px dashed var(--line); margin-top: 16px; padding-top: 12px; display: grid; gap: 8px; }
.helper-note { background: var(--paper); border-left: 4px solid var(--mango); padding: 6px 10px; border-radius: 6px; font-style: italic; margin: 6px 0; }

/* ---------- illustrations and home layout ---------- */
.art { display: block; width: 100%; height: auto; }
.cur { font-family: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif; font-weight: 800; margin-right: .04em; }
.cat-icon { width: 18px; height: 18px; flex: none; }
.tag { gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .cat-icon { width: 16px; height: 16px; }
.chip.on .cat-icon { filter: brightness(0) invert(1); }

.home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; margin-bottom: 18px; align-items: center; }
.hero-text h1 { margin-bottom: 14px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink); font-weight: 500; }
.trust li { display: flex; gap: 10px; align-items: flex-start; }
.trust li::before { content: "✓"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); font-weight: 800; font-size: .8rem; margin-top: 1px; }
.hero-visual { position: relative; }
.hero-visual .slip { position: relative; width: min(340px, 78%); margin: -54px 0 0 auto; transform: rotate(-1.6deg); box-shadow: 0 10px 24px rgba(19, 26, 60, .12); padding: 16px 20px 22px; }
.hero-visual .slip-title { font-size: 1.15rem; }
.hero-visual .slip p { font-size: .92rem; }
.slip dl div + div { margin-top: 2px; }

.band { padding: 34px 0 6px; }
.band + .band { border-top: 2px dashed var(--line); margin-top: 26px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); color: var(--indigo); font-weight: 900; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.empty.with-art { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 20px; align-items: center; border-style: dashed; background: var(--surface); }
.empty.with-art p { margin: 0 0 6px; }
.empty.with-art strong { color: var(--ink); font-family: var(--display); font-size: 1.2rem; }

.how-steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; position: relative; }
.how-steps li::before { content: counter(step); position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--mango); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 900; }
.how-steps .step-art { width: 150px; margin: 0 auto 6px; }
.how-steps h3 { color: var(--indigo); }
.how-steps p { color: #3b4266; margin: 0; }

.sponsor-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.sponsor-chip { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); }
.sponsor-chip:hover { border-color: var(--indigo); }
.sponsor-chip .logo { width: 44px; height: 44px; }
.sponsor-chip span { display: flex; flex-direction: column; }
.sponsor-chip small { color: var(--muted); }

.panel .scene-art { max-width: 320px; margin: -6px auto 6px; }

footer.site { border-top: 0; padding: 0 0 34px; margin-top: 30px; background: var(--indigo); color: #cfd6f7; }
footer.site .banig { margin-bottom: 26px; }
footer.site strong { color: #fff; }
footer.site .small { color: #aab3e6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.footer-brand { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.footer-links { display: grid; gap: 8px; justify-items: start; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; gap: 10px; }
  /* Phone: picture first, then the heading and buttons, then the stats slip. */
  .home-hero { display: flex; flex-direction: column; align-items: stretch; }
  .hero-visual { display: contents; }
  .hero-visual .hero-art { order: -1; max-width: 520px; margin: 0 auto; }
  .hero-visual .slip { order: 2; width: auto; margin: 18px 0 0; transform: rotate(-1deg); }
  .how-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .empty.with-art { grid-template-columns: 1fr; }
  .empty.with-art .art { max-width: 240px; }
}
.regions-edit { flex-basis: 100%; }
.regions-edit summary { font-size: .85rem; font-weight: 500; color: var(--muted); margin: 4px 0; }
.regions-edit select { max-width: 360px; margin-bottom: 4px; }
select[multiple] { padding: 4px; }
.addbiller { margin-left: 6px; }

/* ---------- biller check mode ---------- */
.checkhead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: end; margin-bottom: 14px; }
.checkprogress .bar { height: 14px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.checkcard { margin: 0; scroll-margin-top: 16px; }
.checkcard h3 { margin: 4px 0 2px; }
.checkcard.hidden-biller { opacity: .7; border-style: dashed; }
.checkrows { display: grid; gap: 8px; margin: 12px 0; }
.checkrow { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 8px; align-items: center; }
.checkrow form { margin: 0; }
.btn.chosen { outline: 3px solid var(--ink); outline-offset: 1px; }
@media (max-width: 760px) {
  .checkhead { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .checkrow { grid-template-columns: 54px 1fr; }
  .checkrow form { grid-column: span 1; }
}

/* ---------- privacy notice ---------- */
.privacy { max-width: 760px; }
.privacy h2 { color: var(--indigo); margin-top: 28px; }
.privacy .summary { margin: 18px 0; }
.privacy .summary h2 { margin-top: 0; }
.privacy .tablewrap { margin: 8px 0 12px; }
.privacy td:first-child { font-weight: 600; width: 34%; }
.missing { background: var(--red-soft); color: var(--red); font-weight: 700; padding: 0 4px; border-radius: 4px; }
.danger-zone summary { color: var(--red); font-size: .88rem; }
.danger-zone p { max-width: 260px; }

/* ---------- trust and transparency ---------- */
.trustpage { max-width: 780px; }
.trustpage h2 { color: var(--indigo); margin-top: 28px; }
.big-promise { border: 2px solid var(--leaf); background: var(--leaf-soft); margin: 18px 0; }
.big-promise h2 { margin-top: 0; color: var(--leaf); }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.flow > div { background: var(--surface); border-radius: 14px; padding: 10px 14px; text-align: center; }
.flow .step-art { width: 130px; margin: 0 auto; }
.flow p { margin: 4px 0 0; font-size: .95rem; }
.never { list-style: none; padding: 0; display: grid; gap: 8px; }
.never li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.never li::before { content: "✕"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: .8rem; margin-top: 1px; }
.badge.org { color: var(--indigo); border-color: var(--indigo); }
.orgline { font-size: .88rem; font-weight: 600; color: var(--indigo); margin-top: -4px; }
.safe-pay { display: grid; gap: 4px; border: 2px solid var(--leaf); background: var(--leaf-soft); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.safe-pay strong { color: var(--leaf); }
.safe-pay span { font-size: .92rem; }
.safe-line { color: var(--leaf); font-weight: 600; font-size: .95rem; }
.trust-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-weight: 600; }
.never-line { color: #fff; font-weight: 600; background: rgba(255, 255, 255, .08); border-left: 4px solid var(--mango); padding: 8px 12px; border-radius: 6px; max-width: 62ch; }
.tstats { margin-bottom: 18px; }
.tstats dt { min-height: 2.6em; }
.tgrid .panel { margin: 0; height: 100%; }
.tlist { grid-template-columns: 1fr auto; }
.tlist dd { text-align: right !important; font-weight: 700; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } }
.closebill { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.closebill summary { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* =========================================================================
   Theme 2 — warm bayanihan look (from the owner's reference)
   Warm cream page, flag-colour ribbons in the hero, white rounded boxes,
   mango for every main action, navy header and footer with a banig edge.
   ========================================================================= */
:root {
  --paper: #fdf6e9;
  --paper-2: #fff9ef;
  --line: #ecdfc6;
  --flag-blue: #2747b8;
  --sky-soft: #e6edff;
  --shadow: 0 10px 30px rgba(80, 55, 10, .08), 0 2px 6px rgba(80, 55, 10, .05);
}
body { background: var(--paper); }
.ui-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* header */
header.site { position: relative; overflow: hidden; background: linear-gradient(180deg, #1b2770, var(--indigo)); }
header.site::before { content: ""; position: absolute; left: 0; top: 0; width: 150px; height: 100%; opacity: .18; pointer-events: none;
  background: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 12px); -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.bar-top { position: relative; padding-top: 10px; padding-bottom: 10px; }

/* hero: full width, warm sky, ribbons at the edges */
main { padding-top: 0; }
.home-hero { position: relative; display: block; margin: 0 calc(50% - 50vw) 8px; padding: 34px 0 40px; overflow: hidden;
  background: radial-gradient(ellipse at 78% 20%, #fff3cf 0, transparent 55%), linear-gradient(180deg, #fffaf0, var(--paper)); }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; }
.home-hero .wave { position: absolute; bottom: 0; width: 26vw; max-width: 380px; min-width: 200px; height: 74%; z-index: 0; pointer-events: none; }
.home-hero .wave-left { left: 0; }
.home-hero .wave-right { right: 0; }
.home-hero .hero-leaves { position: absolute; left: 0; top: 70px; width: 110px; z-index: 0; pointer-events: none; }
.hero-text { padding-left: 34px; }
.home-hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); line-height: 1.02; letter-spacing: -.025em; color: #1a2466; margin-bottom: 18px; }
.brush { display: inline-block; position: relative; white-space: nowrap; }
.brush::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -.12em; height: .2em; border-radius: 40% 60% 50% 40%;
  background: var(--mango); transform: rotate(-1.5deg); z-index: -1; }
.home-hero .lede { color: #2c3463; font-size: 1.1rem; }
.btn { border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { box-shadow: 0 6px 14px rgba(221, 159, 0, .35); }
.trust li::before { content: ""; background: var(--mango) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23131a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.trust-more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.trust-more a { font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.hero-visual { position: relative; }
.hero-visual .hero-art { filter: drop-shadow(0 8px 18px rgba(80, 55, 10, .08)); }
.statcard { position: relative; z-index: 2; width: min(330px, 74%); margin: -78px 0 0 auto; background: #fff; border-radius: 18px; padding: 16px 20px 14px; box-shadow: 0 16px 36px rgba(19, 26, 60, .16); }
.statcard-title { font-family: var(--display); font-weight: 900; font-size: 1.08rem; color: var(--indigo); margin-bottom: 4px; }
.statcard p { font-size: .9rem; color: #3b4266; }
.statcard dl { margin: 10px 0 0; display: grid; gap: 7px; }
.statcard dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.statcard dt { display: flex; align-items: center; gap: 9px; font-size: .92rem; }
.statcard dt .ui-icon { width: 20px; height: 20px; }
.statcard dd { margin: 0; font-weight: 800; }

/* white boxed sections */
.band { padding: 26px 0 6px; }
.band + .band { border-top: 0; margin-top: 22px; }
.band.boxed { background: #fff; border-radius: 26px; padding: 24px 26px 28px; box-shadow: var(--shadow); }
.section-head h2 { display: flex; align-items: center; gap: 12px; color: #1a2466; }
.section-head h2 .ui-icon { width: 1.25em; height: 1.25em; }
.section-head p { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.boxed .filters { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
input, select, textarea { border-color: var(--line); border-radius: 12px; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231d2b7a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 14px no-repeat; }
select:disabled { background-color: #f4efe4; }
.chip { border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(80, 55, 10, .06); padding: 7px 16px; }
.chip.on { background: var(--indigo); }

/* bill cards */
.grid { gap: 22px; }
.bill { border: 1px solid #f0e6d2; border-radius: 20px; box-shadow: var(--shadow); padding: 18px 20px 20px; }
.boxed .bill { box-shadow: 0 6px 20px rgba(80, 55, 10, .07); }
.bill .tag { color: #3b4266; font-size: .95rem; }
.pill.open { background: var(--sky-soft); border: 0; color: var(--flag-blue); }
.pill.due { background: var(--red-soft); }
.bar { height: 10px; background: #edf0f8; }
.bar .c { background: linear-gradient(90deg, var(--flag-blue), #4b8df0); border-radius: 999px; }
.legend .conf { display: inline-flex; align-items: center; gap: 5px; }
.legend .conf .ui-icon { width: 16px; height: 16px; filter: grayscale(1) opacity(.5); }
.legend .conf.yes { color: var(--leaf); font-weight: 700; }
.legend .conf.yes .ui-icon { filter: none; }
.tear { border-top: 1px solid #f0e6d2; margin: 14px 0; }
.tear::before, .tear::after { display: none; }
.meta dt { display: inline-flex; align-items: center; gap: 7px; }
.meta dt .ui-icon { color: var(--mango-deep); }
.badge { background: var(--leaf-soft); border-color: transparent; border-radius: 999px; padding: 1px 8px; }
.docs span { background: var(--sky-soft); border-color: transparent; color: var(--indigo); border-radius: 8px; padding: 1px 8px; }
.bill > .btn { width: 100%; margin-top: auto; padding: 12px 18px; }
.bill > .btn.primary .ui-icon { width: 20px; height: 20px; }
.tear { margin-left: 0; margin-right: 0; }

/* how it works */
.how-steps li { text-align: center; border: 1px solid #f0e6d2; box-shadow: var(--shadow); border-radius: 22px; padding: 22px 22px 24px; }
.how-steps .step-art { width: 140px; }
.how-steps h3 { margin-top: 4px; }

/* sponsor banner */
.sponsor-banner { margin-top: 30px; background: linear-gradient(90deg, #fff1cc, #fff8e8 60%, #fff1cc); border: 1px solid #f3dfae; border-radius: 22px; padding: 16px 22px; }
.sponsor-banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.sponsor-banner-row .ui-icon { width: 56px; height: 38px; }
.sponsor-banner h2 { margin: 0; color: #1a2466; font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.sponsor-banner p { margin: 0; flex: 1 1 260px; color: #3b4266; font-size: .95rem; }
.sponsor-banner .sponsor-strip { margin: 14px 0 0; }

/* footer */
footer.site { position: relative; overflow: hidden; margin-top: 40px; padding: 34px 0 0; background: linear-gradient(180deg, #1b2770, #172064); }
footer.site .banig { margin: 0; height: 22px; }
.footer-scene { position: absolute; left: 0; bottom: 22px; width: 230px; pointer-events: none; }
.footer-palms { position: absolute; right: 0; bottom: 22px; width: 140px; pointer-events: none; }
.footer-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr); padding-left: 190px; padding-right: 120px; }
.footer-about p { color: #d6dcf7; }
.never-line { display: flex; gap: 12px; align-items: center; border: 2px solid var(--mango); border-radius: 14px; padding: 10px 14px; color: #fff !important; font-weight: 600; font-size: .92rem; background: rgba(255, 255, 255, .04); }
.never-line .ui-icon { width: 26px; height: 26px; }
.footer-note { position: relative; z-index: 1; padding-left: 208px; color: #aab3e6 !important; margin: 10px auto 70px; }

@media (max-width: 960px) {
  .footer-grid { padding-left: 18px; padding-right: 18px; grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-note { padding-left: 18px; margin-bottom: 120px; }
}
@media (max-width: 860px) {
  .home-hero { display: block; padding: 18px 0 30px; }
  .hero-inner { display: flex; flex-direction: column; gap: 6px; }
  .hero-visual { display: block; order: -1; width: 100%; }
  .hero-visual .hero-art { max-width: 520px; margin: 0 auto; }
  .statcard { width: auto; margin: 14px 0 0; }
  .hero-text { padding-left: 0; }
  .home-hero .wave { height: 34%; width: 46vw; opacity: .9; }
  .home-hero .hero-leaves { display: none; }
  .band.boxed { padding: 18px 14px 20px; border-radius: 20px; margin-left: -6px; margin-right: -6px; }
  .hero-visual .slip { display: none; }
}
@media (max-width: 860px) {
  /* On phones the stat card goes after the buttons. */
  .hero-inner { display: grid; grid-template-columns: 1fr; }
  .hero-visual { display: contents; }
  .hero-visual .hero-art { order: -1; }
  .statcard { order: 2; }
}
footer.site::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 46px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 46' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C 60 4 120 34 200 18 C 270 4 330 30 400 16 L400 46 L0 46 Z' fill='%232747b8'/%3E%3Cpath d='M0 32 C 70 20 140 44 220 30 C 290 18 340 38 400 30 L400 46 L0 46 Z' fill='%233a63d8'/%3E%3C/svg%3E") 0 100% / 400px 46px repeat-x; }
.footer-scene { width: 300px; bottom: 40px; z-index: 1; }
.footer-palms { width: 170px; bottom: 40px; z-index: 1; }
.footer-scene path[fill="#2747b8"], .footer-scene path[fill="#3a63d8"], .footer-palms path[fill="#2747b8"] { display: none; }
.footer-grid { padding-left: 250px; padding-right: 150px; }
.footer-note { padding-left: 268px; margin-bottom: 90px; }
@media (max-width: 960px) {
  .footer-scene { width: 200px; opacity: .8; }
  .footer-palms { width: 110px; opacity: .8; }
  .footer-grid { padding-left: 18px; padding-right: 18px; }
  .footer-note { padding-left: 18px; margin-bottom: 160px; }
}
main { padding-top: 28px; }
.home-hero { margin-top: -28px; }
.panel, .postform fieldset, .sponsor-tile, .tablewrap, .impact { border-color: #f0e6d2; box-shadow: var(--shadow); }
.panel.quiet { box-shadow: none; }
.sharebox, .copyrow { background: var(--paper-2); border-color: var(--line); }
/* Bayanihan carrying picture in the hero */
.hero-visual .hero-art { filter: none; }
.statcard { margin-top: -46px; }

/* =========================================================================
   Feed layout — top bar with icon tabs, left shortcuts, centre feed,
   right "at a glance" column (owner's reference)
   ========================================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px;
  height: 60px; padding: 0 16px; box-shadow: 0 2px 10px rgba(19, 26, 60, .25); overflow: visible; }
header.topbar::before { display: none; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .brand span { white-space: nowrap; }
.topsearch { position: relative; flex: 0 1 260px; min-width: 0; }
.topsearch .ui-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #c7cff3; width: 18px; height: 18px; }
.topsearch input { height: 40px; border-radius: 999px; border: 0; padding: 0 14px 0 38px; background: rgba(255, 255, 255, .14); color: #fff; }
.topsearch input::placeholder { color: #c7cff3; }
.topsearch input:focus { background: rgba(255, 255, 255, .22); outline: 2px solid var(--mango); }
.tabs { display: flex; height: 60px; }
.tabs a { position: relative; display: grid; place-items: center; width: clamp(64px, 8vw, 112px); color: #c7cff3; border-radius: 10px; margin: 4px 2px; }
.tabs a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabs a .ui-icon { width: 26px; height: 26px; }
.tabs a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tabs a[aria-current="page"] { color: var(--mango); border-radius: 0; margin: 0 2px; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--mango); }
.tabs a::before { content: attr(title); position: absolute; top: 58px; left: 50%; transform: translateX(-50%); background: rgba(19, 26, 60, .9); color: #fff; font-size: .8rem; padding: 4px 9px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.tabs a:hover::before, .tabs a:focus-visible::before { opacity: 1; }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.round { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; border: 0; cursor: pointer; }
.round:hover { background: rgba(255, 255, 255, .24); }
.round[aria-current="page"] { background: var(--mango); color: var(--ink); }
.round .ui-icon { width: 21px; height: 21px; }
.round .count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--indigo); }
.signin { gap: 6px; }
.me .avatar { width: 40px; height: 40px; font-size: 1.05rem; border: 2px solid rgba(255, 255, 255, .5); }
.avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.05rem; object-fit: cover; }

/* the three columns */
main.wide { padding-top: 18px; }
main.wide > .wrap { max-width: 1480px; padding: 0 16px; }
.feedpage { display: grid; grid-template-columns: 280px minmax(0, 660px) 300px; justify-content: space-between; gap: 24px; align-items: start; }
.side-left, .side-right { position: sticky; top: 78px; max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; }
.sidenav { display: grid; gap: 2px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.sidenav a:hover { background: rgba(29, 43, 122, .07); }
.sidenav a[aria-current="page"] { background: #fff; box-shadow: var(--shadow); }
.sidenav .avatar { width: 36px; height: 36px; font-size: .95rem; }
.sidenav em { margin-left: auto; font-style: normal; font-size: .8rem; font-weight: 700; color: var(--muted); background: #fff; border-radius: 999px; padding: 0 8px; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; flex: none; }
.ico .ui-icon { width: 20px; height: 20px; }
.ico.plain { background: #fff; box-shadow: 0 1px 4px rgba(80, 55, 10, .1); }
.ico.plain .cat-icon { width: 20px; height: 20px; }
.c-indigo { background: var(--indigo); } .c-mango { background: var(--mango); color: var(--ink); } .c-leaf { background: var(--leaf); }
.c-red { background: var(--red); } .c-brown { background: #b4782d; } .c-blue { background: var(--flag-blue); } .c-gray { background: #6b7091; }
.side-title { font-size: 1rem; color: var(--muted); margin: 18px 10px 6px; font-weight: 700; }
.small-nav a { padding: 5px 10px; font-weight: 500; }
.small-nav .ico { width: 32px; height: 32px; }

/* centre feed */
.feed { display: grid; gap: 16px; min-width: 0; }
.feed > * { margin: 0; }
.welcome, .composer, .feedbox, .post { background: #fff; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid #f0e6d2; }
.welcome { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 20px 12px 8px; background: linear-gradient(110deg, #fff7e2, #fff 60%); }
.welcome h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: #1a2466; margin-bottom: 8px; letter-spacing: -.02em; }
.welcome p { color: #3b4266; margin-bottom: 6px; font-size: .97rem; }
.welcome-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.welcome-links a { font-weight: 700; font-size: .92rem; display: inline-flex; align-items: center; }
.composer { padding: 12px 16px 6px; }
.composer-row { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #f0e6d2; }
.composer-input { flex: 1; background: var(--paper); border-radius: 999px; padding: 10px 16px; color: var(--muted); text-decoration: none; font-size: 1.02rem; }
.composer-input:hover { background: #f8eedb; }
.composer-actions { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 4px; }
.composer-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 10px; text-decoration: none; color: #4a5070; font-weight: 600; font-size: .93rem; }
.composer-actions a:hover { background: var(--paper); }
.composer-actions a > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.composer-actions .ui-icon { width: 17px; height: 17px; }

.stories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.story-card { position: relative; flex: 0 0 112px; height: 190px; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff; scroll-snap-align: start; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: linear-gradient(160deg, var(--flag-blue), var(--indigo)); }
.story-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 14, 40, .55)); pointer-events: none; }
.story-card > * { position: relative; z-index: 1; }
.story-card:hover { transform: translateY(-2px); }
.story-card.paid.cat-electricity { background: linear-gradient(160deg, #ffcf3f, #e09a00); }
.story-card.paid.cat-water { background: linear-gradient(160deg, #4aa8ec, #1f6fb8); }
.story-card.paid.cat-internet { background: linear-gradient(160deg, #4b62d6, #1d2b7a); }
.story-card.paid.cat-school { background: linear-gradient(160deg, #36b072, #16653e); }
.story-card.paid.cat-hospital { background: linear-gradient(160deg, #ef5b6b, #b31d2e); }
.story-card.sponsor { background: linear-gradient(160deg, #c98a52, #7a4f2a); }
.story-ring { position: absolute !important; top: 10px; left: 10px; border-radius: 50%; padding: 2px; background: #fff; box-shadow: 0 0 0 3px var(--mango); }
.story-ring .avatar { width: 34px; height: 34px; font-size: .9rem; display: grid; }
.story-icon { position: absolute !important; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); border-radius: 50%; }
.story-icon svg { width: 30px; height: 30px; }
.story-amt { font-family: var(--display); font-weight: 900; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.story-name { font-weight: 700; font-size: .84rem; line-height: 1.2; }
.story-name small { display: block; font-weight: 500; opacity: .9; font-size: .74rem; }
.story-card.create { background: #fff; color: var(--ink); justify-content: flex-end; align-items: center; padding: 0 0 12px; }
.story-card.create::after { display: none; }
.story-top { position: absolute !important; top: 0; left: 0; right: 0; height: 120px; background: var(--mango-soft); overflow: hidden; display: grid; place-items: center; }
.story-top .art { width: 190px; max-width: none; }
.story-plus { position: absolute !important; top: 102px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: var(--ink); border: 4px solid #fff; }
.story-plus .ui-icon { width: 20px; height: 20px; }

.feedbox { padding: 16px 18px 6px; }
.feedbox .section-head { margin-bottom: 12px; }
.feedbox .section-head h2 { font-size: 1.3rem; }
.feedbox .filters { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feedbox .chips { margin-bottom: 10px; }

.post { padding: 0; overflow: hidden; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 14px 18px 4px; }
.post-name { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-meta { margin: 0; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-meta .cat-icon { width: 14px; height: 14px; }
.post .bill { border: 0; box-shadow: none; border-radius: 0; padding: 4px 18px 10px; }
.post .bill .tag, .post .bill .who, .post .bill > .btn { display: none; }
.post .bill-top { position: absolute; right: 18px; margin-top: -40px; }
.post { position: relative; }
.post .bill .amount { font-size: 2rem; }
.post-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 4px; padding: 6px 10px 8px; border-top: 1px solid #f0e6d2; margin: 0 8px; }
.act { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 6px; border-radius: 10px; font-weight: 700; color: #4a5070; text-decoration: none; background: none; border: 0; cursor: pointer; font-size: .94rem; }
.act:hover { background: var(--paper); }
.act .ui-icon { width: 19px; height: 19px; }
.act.pay { background: var(--mango); color: var(--ink); box-shadow: 0 4px 10px rgba(221, 159, 0, .3); }
.act.pay:hover { background: #ffc825; }
.post.empty { padding: 18px; border: 1px solid #f0e6d2; }

/* right column */
.side-right .statcard { width: auto; margin: 0 0 6px; box-shadow: var(--shadow); }
.duelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.duelist a { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.duelist a:hover { background: rgba(29, 43, 122, .07); }
.duelist small { display: block; color: var(--red); font-weight: 600; font-size: .8rem; }
.duelist .avatar { width: 36px; height: 36px; font-size: .9rem; }
.side-cta { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #3b4266; margin: 10px 8px 8px; }
.side-cta .ui-icon { width: 42px; height: 28px; }
.side-right .btn.small { margin-left: 8px; }
.side-steps { font-size: .85rem; color: var(--muted); margin: 14px 8px 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* narrower screens: drop the right column, then the left one */
@media (max-width: 1240px) {
  .feedpage { grid-template-columns: 250px minmax(0, 1fr); }
  .side-right { display: none; }
  .tabs a { width: 72px; }
}
@media (max-width: 1100px) {
  .topsearch { flex-basis: 200px; }
  .topbar .brand span { display: none; }
}
@media (max-width: 900px) {
  .feedpage { grid-template-columns: minmax(0, 1fr); }
  .side-left { display: none; }
  .feed { max-width: 680px; margin: 0 auto; width: 100%; }
  header.topbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 50px; height: auto; row-gap: 0; }
  .topbar .brand span { display: inline; }
  .topsearch { display: none; }
  .tabs { grid-column: 1 / -1; grid-row: 2; height: 50px; justify-content: space-around; border-top: 1px solid rgba(255, 255, 255, .12); }
  .tabs a { flex: 1; width: auto; margin: 0; border-radius: 0; }
  .tabs a::before { display: none; }
  .side-left, .side-right { position: static; max-height: none; }
}
@media (max-width: 560px) {
  main.wide > .wrap { padding: 0 8px; }
  .welcome { grid-template-columns: 1fr; padding: 10px 16px 14px; }
  .welcome .art { max-width: 260px; margin: 0 auto; }
  .composer-actions a { flex-direction: column; gap: 4px; font-size: .8rem; text-align: center; }
  .feedbox .filters { grid-template-columns: 1fr; }
  .post-actions { grid-template-columns: 1.2fr 1fr 1fr; }
  .act { font-size: .84rem; gap: 5px; }
  .topbar .brand span { font-size: 1.1rem; }
  .round { width: 36px; height: 36px; }
  .me .avatar { width: 36px; height: 36px; }
}
/* Search lives in the left sidebar spot on phones: show a search row inside the feed box instead. */
header.topbar .tabs a { padding: 0; background: none; }
header.topbar .tabs a:hover { background: rgba(255, 255, 255, .1); }
header.topbar .tabs a[aria-current="page"] { background: none; color: var(--mango); }
header.topbar .tabs a[aria-current="page"]:hover { background: rgba(255, 255, 255, .06); }
.story-icon { top: 36%; width: 46px; height: 46px; }
.story-icon svg { width: 26px; height: 26px; }
.duelist small.ok { color: var(--leaf); }
.phone-search { display: none; position: relative; margin-bottom: 12px; }
.phone-search .ui-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.phone-search input { border-radius: 999px; padding-left: 40px; background: var(--paper); }
@media (max-width: 900px) { .phone-search { display: block; } }
@media (max-width: 1240px) {
  .side-right { display: block; grid-column: 2; position: static; max-height: none; max-width: 660px; }
}
@media (max-width: 900px) {
  .side-right { grid-column: 1; max-width: 680px; margin: 0 auto; width: 100%; }
}

/* Signed-out visitors: the big hero and a short how-it-works strip sit above the feed */
main.wide .home-hero { margin-top: -18px; margin-bottom: 0; }
main.wide .home-hero .hero-inner { max-width: 1200px; }
.steps-strip { margin: 0 calc(50% - 50vw) 22px; background: #fff; border-top: 1px solid #f0e6d2; border-bottom: 1px solid #f0e6d2; }
.steps-strip ol { list-style: none; counter-reset: st; max-width: 1200px; margin: 0 auto; padding: 14px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps-strip li { counter-increment: st; display: flex; align-items: center; gap: 12px; position: relative; }
.steps-strip li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--mango); font-family: var(--display); font-weight: 900; font-size: .85rem; display: grid; place-items: center; z-index: 1; }
.steps-strip .step-art { width: 86px; flex: none; }
.steps-strip h3 { font-size: 1rem; color: #1a2466; margin: 0 0 2px; }
.steps-strip p { margin: 0; font-size: .88rem; color: #3b4266; }
.feedpage.guest .side-left, .feedpage.guest .side-right { top: 78px; }
@media (max-width: 860px) {
  .steps-strip ol { grid-template-columns: 1fr; gap: 10px; }
  .steps-strip .step-art { width: 70px; }
  main.wide .home-hero { margin-top: -18px; }
}
.feedpage.guest .side-steps { display: none; }
@media (max-width: 860px) { .home-hero .statcard { margin-top: 14px; } }
/* Keep jump targets clear of the sticky top bar */
[id] { scroll-margin-top: 80px; }
@media (max-width: 900px) { [id] { scroll-margin-top: 124px; } }
.sponsor-apply { margin-top: 24px; }
.choice { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
.choice legend { font-weight: 700; padding: 0 6px; }
.choice .radio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 600; }
.choice .radio small { flex-basis: 100%; padding-left: 26px; font-weight: 400; }
.receipt-ok { display: flex; gap: 8px; align-items: flex-start; background: var(--leaf-soft); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.receipt-ok .ui-icon { width: 20px; height: 20px; margin-top: 2px; }
.choice label.radio { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: start; cursor: pointer; padding: 6px 0; }
.choice .radio input { width: 18px; height: 18px; margin: 2px 0 0; grid-row: span 2; accent-color: var(--indigo); }
.choice .radio small { grid-column: 2; padding-left: 0; flex-basis: auto; }
.post-actions { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 560px) { .post-actions { grid-template-columns: 1.4fr 1fr; } }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 4px 18px 0; }
.why span { font-size: .78rem; font-weight: 700; color: #8a5a00; background: var(--mango-soft); border-radius: 999px; padding: 2px 10px; }
/* Situation photos */
.situation { border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper-2); }
.situation h3 { margin: 0 0 4px; font-size: 1.02rem; }
.situation h3 small { font-weight: 500; color: var(--muted); }
.situation .dos { margin: 6px 0 10px; padding-left: 18px; }
.post-photo { position: relative; display: block; margin: 8px 18px 0; border-radius: 14px; overflow: hidden; background: #eee; }
.post-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.post-photo span { position: absolute; right: 10px; bottom: 10px; background: rgba(19, 26, 60, .75); color: #fff; font-weight: 700; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.situation-photos { margin: 0 0 16px; }
.sp-grid { display: grid; gap: 6px; border-radius: 18px; overflow: hidden; }
.sp-grid.n2 { grid-template-columns: 1fr 1fr; }
.sp-grid.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.sp-grid.n3 a:first-child { grid-row: span 2; }
.sp-grid a { display: block; background: #eee; }
.sp-grid img { display: block; width: 100%; height: 100%; max-height: 420px; min-height: 140px; object-fit: cover; }
.situation-photos figcaption { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.situation-photos figcaption .ui-icon { width: 16px; height: 16px; }
.thumbs .public-photo { outline: 2px solid var(--mango); outline-offset: 2px; border-radius: 10px; }
dialog.confirm { border: 0; border-radius: 20px; padding: 22px 24px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(19, 26, 60, .35); }
dialog.confirm::backdrop { background: rgba(19, 26, 60, .45); }
dialog.confirm h2 { margin: 0 0 10px; font-size: 1.25rem; color: #1a2466; }
dialog.confirm ul { margin: 0 0 18px; padding-left: 20px; color: #3b4266; display: grid; gap: 6px; }
dialog.confirm .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.closebill form { display: grid; gap: 10px; justify-items: start; }
.filefield { display: grid; gap: 6px; align-content: start; }
.kept { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--leaf-soft); border-radius: 10px; padding: 7px 10px; font-size: .88rem; margin: 0; }
.kept .ui-icon { width: 18px; height: 18px; }
.kept > span { flex: 1 1 200px; }
.inline-check { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--red); cursor: pointer; }
.inline-check input { width: auto; margin: 0; }
.form .kept .inline-check { flex-direction: row !important; grid-auto-flow: column; white-space: nowrap; }
.namegroup { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.namegroup legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.namegroup legend small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.namegroup .nomiddle { grid-column: 1 / -1; color: var(--muted); font-weight: 600; }
.namegroup input:disabled { background: #f4efe4; }
@media (max-width: 640px) { .namegroup { grid-template-columns: 1fr; } }
.namegroup label.nomiddle { display: inline-flex !important; flex-direction: row !important; align-items: center; justify-self: start; gap: 8px; white-space: nowrap; }
.namegroup label.nomiddle input { width: 18px; height: 18px; margin: 0; }


/* =========================================================================
   Motion. Everything here is off for people who ask their device to reduce motion.
   One page-load moment in the hero, gentle life in the picture, and small
   animations that answer what people do.
   ========================================================================= */
@keyframes bb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bb-brush { from { transform: rotate(-1.5deg) scaleX(0); } to { transform: rotate(-1.5deg) scaleX(1); } }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@keyframes bb-march { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bb-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes bb-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes bb-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bb-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bb-dialog { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes bb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 40, 57, .35); } 50% { box-shadow: 0 0 0 6px rgba(214, 40, 57, 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* the hero arrives once, in order: headline, underline, words, buttons, picture, stats card */
  .home-hero h1, .home-hero .lede, .home-hero .hero-actions, .home-hero .trust, .home-hero .trust-more,
  .welcome h1, .welcome p { animation: bb-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero .lede, .welcome p { animation-delay: .15s; }
  .home-hero .hero-actions { animation-delay: .25s; }
  .home-hero .trust { animation-delay: .35s; }
  .home-hero .trust-more { animation-delay: .45s; }
  .brush::after { transform-origin: left center; animation: bb-brush .6s .5s cubic-bezier(.3, .7, .2, 1) both; }
  .home-hero .hero-art { animation: bb-fade .9s .2s both; }
  .home-hero .statcard { animation: bb-rise .7s .6s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero .wave { animation: bb-fade 1.2s both; }

  /* gentle life in the bayanihan picture */
  .art .sun-rays { transform-box: fill-box; transform-origin: center; animation: bb-spin 60s linear infinite; }
  .art .carry { animation: bb-march 2.4s ease-in-out infinite; }
  .art .waver { transform-box: fill-box; transform-origin: 50% 100%; animation: bb-wave 1.6s ease-in-out infinite; }
  .hero-leaves { animation: bb-wave 6s ease-in-out infinite; transform-origin: 0 100%; }

  /* answers to what people do */
  .btn, .act, .chip, .round, .tabs a, .composer-actions a { transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; }
  .btn:active, .act:active, .chip:active, .round:active { transform: scale(.96); }
  .btn.primary:hover, .act.pay:hover { box-shadow: 0 8px 18px rgba(221, 159, 0, .4); transform: translateY(-1px); }
  .post, .story-card, .sponsor-tile { transition: transform .2s ease, box-shadow .2s ease; }
  .story-card:hover, .sponsor-tile:hover { transform: translateY(-3px); }
  .flash { animation: bb-drop .35s ease-out both; }
  .flash.ok::before, .receipt-ok .ui-icon, .kept .ui-icon { animation: bb-pop .45s .1s both; }
  dialog.confirm[open] { animation: bb-dialog .22s ease-out; }
  dialog.confirm[open]::backdrop { animation: bb-fade .2s ease-out; }
  .bar .c, .bar .p { transition: width 1s cubic-bezier(.2, .7, .2, 1); }
  .copied { animation: bb-pop .35s both; }
  .count .ui-icon { animation: none; }
  .round .count { animation: bb-pop .4s .3s both; }
  .countdown.low { animation: bb-pulse 1.6s ease-in-out infinite; }
}

/* the hold countdown on the pay page */
.countdown { display: inline-block; margin-left: 6px; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--mango-soft); color: var(--ink); border-radius: 999px; padding: 1px 10px; }
.countdown:empty { display: none; }
.countdown.low { background: var(--red-soft); color: var(--red); }
.countdown.gone { background: #eee; color: var(--muted); }

/* Stats card: rows you can open, with a hover lift */
.statrows { display: grid; gap: 2px; margin: 10px -10px 0; }
.statrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: .92rem; }
.statrow > span { display: flex; align-items: center; gap: 9px; }
.statrow .ui-icon { width: 20px; height: 20px; }
.statrow strong { font-weight: 800; font-size: 1rem; }
.statrow::after { content: "›"; margin-left: 4px; color: var(--muted); font-weight: 700; opacity: 0; }
.statrow strong { margin-left: auto; }
.statrow:hover, .statrow:focus-visible { background: var(--mango-soft); }
.statrow:hover::after, .statrow:focus-visible::after { opacity: 1; }
.statcard { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .statcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(19, 26, 60, .2); }
  .statrow, .statrow::after { transition: background-color .15s ease, opacity .15s ease, transform .15s ease; }
  .statrow .ui-icon { transition: transform .2s ease; }
  .statrow:hover .ui-icon { transform: scale(1.18); }
  .statrow:hover::after { transform: translateX(2px); }
}
.statrow strong { white-space: nowrap; }

/* "Paano ito gumagana" steps: each step comes alive on hover */
.steps-strip li > a { display: flex; align-items: center; gap: 12px; width: 100%; color: inherit; text-decoration: none; border-radius: 16px; padding: 6px 10px 6px 4px; margin: -6px -10px -6px -4px; }
.steps-strip li::before { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.steps-strip li:hover::before, .steps-strip li:focus-within::before { background: var(--indigo); color: #fff; }
.steps-strip li > a:hover, .steps-strip li > a:focus-visible { background: var(--paper-2); }
.steps-strip li > a:hover h3 { text-decoration: underline; text-decoration-color: var(--mango); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.steps-strip .step-art { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.step-art .s-phone, .step-art .s-bolt, .step-art .s-tick { transform-box: fill-box; transform-origin: center; }
.step-art .s-tick-mark { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes bb-buzz { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
@keyframes bb-flow { to { stroke-dashoffset: -20; } }
@keyframes bb-flash { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.25); } }
@keyframes bb-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .steps-strip li:hover .step-art { transform: translateY(-4px) scale(1.08); }
  .steps-strip li:hover .s-phone { animation: bb-buzz .6s ease-in-out; }
  .steps-strip li:hover .s-flow { animation: bb-flow .5s linear infinite; }
  .steps-strip li:hover .s-bolt { animation: bb-flash .7s ease-in-out infinite; }
  .steps-strip li:hover .s-tick { animation: bb-pop .45s both; }
  .steps-strip li:hover .s-tick-mark { animation: bb-draw .45s .15s ease-out both; }
}

/* "Choose how much you will pay" */
.payamount { display: grid; gap: 14px; padding: 22px 22px 18px; }
.payamount h2 { margin: 0; font-size: 1.3rem; color: #1a2466; }
.payamount .safe-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--leaf-soft); color: #145c39; font-size: .92rem; line-height: 1.45; }
.payamount .safe-note .ui-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--leaf); }
.payamount .unclaimed { margin: 0; color: var(--muted); font-size: .95rem; }
.payamount .unclaimed > span { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: #1a2466; margin-right: 6px; }
.payamount .quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.payamount .chip.amt { padding: 9px 16px; font-weight: 700; background: #fff; border: 1.5px solid var(--line); cursor: pointer; }
.payamount .chip.amt:hover { border-color: var(--mango); }
.payamount .chip.amt.picked { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.payamount .chip.rest { border-style: dashed; }
.payamount .amount-field { display: grid; gap: 6px; margin: 0; font-weight: 600; font-size: .92rem; }
.peso-input { position: relative; display: block; }
.peso-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--muted); }
.peso-input input { padding-left: 32px; font-size: 1.1rem; font-weight: 700; }
.btn.wide { width: 100%; justify-content: center; margin-top: 2px; }
.btn.big { padding: 13px 20px; font-size: 1.05rem; }
.btn .ui-icon { width: 20px; height: 20px; }
.payamount .holdline { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 0; font-size: .84rem; color: var(--muted); text-align: center; }
.payamount .holdline .ui-icon { width: 15px; height: 15px; flex: none; }
.payamount .holdline { justify-content: flex-start; align-items: flex-start; text-align: left; } .payamount .holdline .ui-icon { margin-top: 3px; }

/* New logo */
.logo-link { display: inline-flex; align-items: center; flex: none; padding: 2px 0; }
.logo-link .site-logo { display: block; height: 52px; width: auto; }
.footer-brand { margin: 0 0 12px; }
.footer-brand .site-logo { display: block; height: 76px; width: auto; }
@media (max-width: 1100px) { .topbar .logo-link .site-logo { height: 42px; } }
@media (max-width: 560px) { .topbar .logo-link .site-logo { height: 40px; } }
@media (prefers-reduced-motion: no-preference) {
  .logo-link .site-logo { transition: transform .2s ease; }
  .logo-link:hover .site-logo { transform: scale(1.04); }
}
.login-logo { display: block; height: 80px; width: auto; margin: 0 auto 14px; }

/* Phones: the compact bahay-kubo icon and the name instead of the full logo */
.mobile-mark { display: none; align-items: center; gap: 8px; color: #fff; font-family: var(--display); font-weight: 900; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.mobile-mark img { display: block; width: 34px; height: 34px; }
@media (max-width: 560px) {
  .logo-link .site-logo { display: none; }
  .mobile-mark { display: inline-flex; }
}
.topbar .logo-link .mobile-mark { display: none; }
@media (max-width: 560px) {
  .topbar .logo-link .mobile-mark { display: inline-flex; flex-direction: row; align-items: center; }
  .topbar .logo-link .mobile-mark > span { display: inline; font-size: 1.12rem; }
}

/* The painted bayanihan banner */
.hero-banner, .welcome-banner, .story-banner { display: block; }
.hero-banner img, .welcome-banner img, .story-banner img { display: block; width: 100%; height: auto; }
/* soft edges so the painting melts into the cream page */
.hero-banner img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero-visual .hero-banner { width: 108%; margin-left: -4%; }
.welcome-banner img { border-radius: 14px; }
.welcome { grid-template-columns: 250px minmax(0, 1fr); }
.story-top .story-banner, .story-top .story-banner img { width: 100%; height: 100%; }
.story-top .story-banner img { object-fit: cover; object-position: 50% 45%; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero .hero-banner { animation: bb-fade .9s .15s both; }
  .home-hero .hero-banner img { animation: bb-float 7s 1.2s ease-in-out infinite; }
}
@keyframes bb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (max-width: 860px) {
  .hero-visual .hero-banner { width: 100%; margin-left: 0; order: -1; }
  .hero-visual .hero-banner { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 560px) { .welcome { grid-template-columns: 1fr; } .welcome-banner { max-width: 320px; margin: 0 auto; } }
.home-hero .hero-visual .statcard { margin-top: 4px; }

/* Shorter hero: smaller headline, less padding, stats as a slim strip under the painting */
.home-hero { padding: 18px 0 22px; }
.home-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 12px; }
.home-hero .lede { margin-bottom: 14px; font-size: 1.05rem; }
.home-hero .hero-actions { margin-bottom: 14px; }
.home-hero .trust { margin: 0; gap: 6px; }
.home-hero .trust-more { margin-top: 12px; }
.home-hero .hero-inner { align-items: center; gap: 24px; }
.home-hero .hero-visual .hero-banner { width: 100%; margin-left: 0; }
.home-hero .hero-visual .statcard { width: auto; margin: -18px 6% 0; padding: 10px 14px 8px; border-radius: 16px; position: relative; z-index: 2; }
.home-hero .statcard > p:not(.statcard-title) { display: none; }
.home-hero .statcard-title { font-size: .9rem; margin: 0 0 4px; text-align: center; }
.home-hero .statrows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.home-hero .statrow { flex-direction: column-reverse; align-items: center; justify-content: center; gap: 0; padding: 4px 6px; text-align: center; font-size: .8rem; color: var(--muted); }
.home-hero .statrow > span { gap: 5px; }
.home-hero .statrow .ui-icon { width: 15px; height: 15px; }
.home-hero .statrow strong { margin: 0; font-size: 1.25rem; color: var(--ink); }
.home-hero .statrow::after { display: none; }
@media (max-width: 860px) {
  .home-hero .hero-visual .statcard { margin: -14px 0 0; }
  .home-hero .statrow { font-size: .76rem; }
}
.home-hero .statrow > span { white-space: nowrap; }
@media (max-width: 560px) {
  .home-hero .statrow { font-size: .72rem; padding: 4px 2px; }
  .home-hero .statrow > span { gap: 3px; }
  .home-hero .statrow .ui-icon { width: 13px; height: 13px; }
  .home-hero .statrow strong { font-size: 1.15rem; }
  .home-hero .trust { font-size: .95rem; }
}
@keyframes bb-land { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--mango-deep); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  [data-count] { display: inline-block; font-variant-numeric: tabular-nums; }
  [data-count].landed { animation: bb-land .45s ease-out; }
}
/* Footer without the woven band: the sea waves sit at the very bottom */
footer.site::after { bottom: 0; }
footer.site .footer-scene, footer.site .footer-palms { bottom: 18px; }

/* Sign-in and code pages */
.authwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); max-width: 980px; margin: 8px auto 24px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 24px 60px rgba(19, 26, 60, .12); border: 1px solid #f0e6d2; }
.authwrap.single { grid-template-columns: minmax(0, 460px); justify-content: center; background: none; box-shadow: none; border: 0; }
.authwrap.single .auth-card { background: #fff; border-radius: 26px; box-shadow: 0 24px 60px rgba(19, 26, 60, .12); border: 1px solid #f0e6d2; text-align: center; }
.auth-side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, #fff8e6 0%, #fdf0cf 55%, var(--indigo) 55.2%, #17226a 100%); padding: 0 34px 32px; color: #fff; }
.auth-banner { display: block; margin: 18px -18px 0; }
.auth-banner img { display: block; width: 100%; height: auto; }
.auth-side-text { padding-top: 18px; }
.auth-kicker { margin: 0 0 4px; color: var(--mango); font-weight: 800; font-family: var(--display); }
.auth-side h2 { margin: 0 0 16px; font-size: 1.45rem; line-height: 1.25; color: #fff; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; color: #dfe4fb; font-size: .95rem; }
.auth-points .ui-icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--mango); flex: none; }
.auth-card { padding: 34px 36px 28px; display: grid; gap: 14px; align-content: start; }
.auth-card .login-logo { height: 70px; margin: 0 0 4px; }
.auth-card h1 { margin: 0; font-size: 2rem; color: #1a2466; text-align: center; }
.auth-sub { margin: -4px 0 4px; text-align: center; color: #3b4266; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { font-weight: 700; font-size: .92rem; }
.icon-input { position: relative; display: block; }
.icon-input .ui-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.icon-input input { padding-left: 44px; height: 50px; font-size: 1.02rem; border-radius: 14px; }
.auth-form .btn.wide { margin-top: 6px; }
.auth-safe { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .84rem; color: var(--muted); }
.auth-safe .ui-icon { width: 18px; height: 18px; flex: none; color: var(--leaf); margin-top: 1px; }
.auth-helper { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--mango-soft); font-size: .9rem; }
.auth-helper a { font-weight: 700; }
.auth-fine { margin: 0; font-size: .8rem; color: var(--muted); }
.auth-fine.center { text-align: center; }
.auth-badge { justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mango-soft); color: var(--indigo); }
.auth-badge .ui-icon { width: 30px; height: 30px; }
.code-input { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: .5em; padding: 10px 0 10px .5em; height: 64px; border-radius: 14px; font-variant-numeric: tabular-nums; }
.authwrap.single .auth-form label { text-align: left; }
@media (prefers-reduced-motion: no-preference) {
  .authwrap { animation: bb-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .auth-badge { animation: bb-pop .5s .2s both; }
}
@media (max-width: 860px) {
  .authwrap { grid-template-columns: 1fr; max-width: 480px; }
  .auth-side { display: none; }
  .auth-card { padding: 26px 22px 22px; }
}
.auth-card .login-logo { justify-self: center; margin: 0 auto 4px; }
.auth-side { background: linear-gradient(180deg, #fffaf0 0%, #fdf3d9 52%, var(--indigo) 52.2%, #17226a 100%); }
.auth-banner { margin: 22px -10px -14px; position: relative; z-index: 1; }
.auth-banner img {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.dbbanner { background: var(--red-soft); color: var(--red); font-weight: 700; text-align: center; padding: 8px 16px; font-size: .92rem; }
.dbbanner a { color: inherit; }
.panel form + .small { margin-top: 14px; }

/* ---------- UI pass: labeled nav, calmer feed, gold only for actions ---------- */
/* Navigation shows its labels */
.tabs a { grid-template-rows: auto auto; align-content: center; gap: 2px; place-items: center; }
.tabs a span { position: static; width: auto; height: auto; overflow: visible; clip: auto; font-size: .72rem; font-weight: 600; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.tabs a .ui-icon { width: 22px; height: 22px; }
.tabs a::before { display: none; }

/* Phones: the five sections become a bottom tab bar, like GCash and Maya */
@media (max-width: 900px) {
  header.topbar { grid-template-rows: 56px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
          background: var(--indigo); border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -6px 20px rgba(19, 26, 60, .18); }
  .tabs a { flex: 1; min-width: 0; }
  .tabs a span { font-size: .68rem; }
  .tabs a[aria-current="page"]::after { top: 0; bottom: auto; border-radius: 0 0 3px 3px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* Home: one feed column plus the glance column; the shortcut sidebar repeated the top bar */
.feedpage { grid-template-columns: minmax(0, 680px) 300px; justify-content: center; gap: 28px; }
@media (max-width: 1240px) { .feedpage { grid-template-columns: minmax(0, 640px) 280px; } .side-right { display: block; } }
@media (max-width: 1000px) { .feedpage { grid-template-columns: minmax(0, 1fr); } .side-right { display: none; } }
@media (max-width: 560px) { .steps-strip { display: none; } }

/* Place and sort fold into one row */
.filterbox { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2, #fffaf0); }
.filterbox > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 700; }
.filterbox > summary::-webkit-details-marker { display: none; }
.filterbox > summary .ui-icon { width: 18px; height: 18px; color: var(--muted); }
.filterbox > summary em { margin-left: auto; font-style: normal; font-weight: 500; font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filterbox > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 2px 0 4px; transition: transform .15s; }
.filterbox[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.feedbox .filterbox .filters { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; }

/* Recently paid strip gets a title; the "Post a bill" tile repeated the hero */
.strip-title { font-size: 1rem; margin: 4px 4px 8px; color: var(--muted); font-weight: 700; }

/* Status sits in the card's top row instead of floating */
.post .bill-top { display: none; }
.post-head .pill { margin-left: auto; align-self: flex-start; margin-top: 4px; }
.post-head > div { min-width: 0; }

/* Gold is for things you press. Tags and statuses use calm colors. */
.why span { color: #3b4266; background: #eef1f8; }
.pill.open { background: #eef1f8; color: var(--muted); border: 0; }
.pill.part { background: var(--sky-soft); color: var(--flag-blue); }
.amount-note strong { color: var(--leaf); font-weight: 700; }
@media (min-width: 901px) {
  header.topbar .tabs a, header.topbar .tabs a[aria-current="page"] { height: 60px; margin: 0 2px; padding-top: 4px; }
}
.filterbox > summary span { white-space: nowrap; }
.filterbox > summary em { min-width: 0; }
@media (max-width: 420px) { .filterbox > summary em { font-size: .8rem; } }
#bills { scroll-margin-top: 72px; }

/* ---------- UI pass 2: payment page, receipt drop area, report link ---------- */
.paygrid { display: grid; gap: 20px; max-width: 1080px; margin: 0 auto; align-items: start; }
@media (min-width: 900px) {
  .paygrid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .payreport { position: sticky; top: 76px; }
}
.paygrid .panel { margin: 0; }
.payreport h2 { margin: 0 0 4px; font-size: 1.25rem; }
.sendreceipt > summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; margin: 10px 0 4px; }
.sendreceipt > summary::-webkit-details-marker { display: none; }
.sendreceipt > summary .ui-icon { width: 20px; height: 20px; }
.sendreceipt[open] > summary { display: none; }
.btn.big { padding: 14px 20px; font-size: 1.05rem; }
.payreport .form { grid-template-columns: 1fr; }

.dropzone { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 2px dashed #c9cfe6; border-radius: 16px;
            background: #f7f8fd; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--flag-blue); background: #eef1fb; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--flag-blue); box-shadow: var(--shadow); }
.dz-icon svg { width: 26px; height: 26px; }
.dz-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dz-text strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-text small { color: var(--muted); font-weight: 400; }
.dz-preview { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; margin-left: auto; }
.dropzone.has-file { border-style: solid; border-color: var(--leaf); background: var(--leaf-soft); }
.dropzone.has-file .dz-icon { color: var(--leaf); }

.reportlink { margin: 4px 2px 0; }
.reportlink > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.reportlink > summary::-webkit-details-marker { display: none; }
.reportlink > summary .ui-icon { width: 16px; height: 16px; }
.reportlink > summary:hover { color: var(--red); }
.reportlink[open] > summary { color: var(--ink); text-decoration: none; font-weight: 600; }
.reportlink > :not(summary) { margin-top: 10px; }
.reportlink[open] { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.form label.dropzone { display: flex; flex-direction: row; align-items: center; gap: 14px; font-weight: 400; }
.form label.dropzone > * { margin: 0; }
/* Bot checks: the hidden field stays out of sight and out of the tab order */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 6px 0 10px; min-height: 65px; }

/* ---------- Payment channel tabs ---------- */
.paywith-title { font-size: 1.1rem; margin: 18px 0 8px; }
.paytabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: #eef1f8; border-radius: 14px; margin-bottom: 4px; }
.paytabs [role=tab] { flex: 1 1 auto; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
                       font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.paytabs [role=tab]:hover { color: var(--ink); }
.paytabs [role=tab][aria-selected="true"] { background: #fff; color: var(--indigo, #1d2b7a); box-shadow: 0 1px 4px rgba(19, 26, 60, .14); }
.paytabs [role=tab]:focus-visible { outline: 3px solid var(--flag-blue); outline-offset: 1px; }
.js .nojs-only { display: none; }
.paysteps-panel .steps { margin-top: 12px; }
.paysteps-panel .copyrow { margin-top: 6px; }
.paysteps-edit { display: grid; gap: 8px; margin-top: 8px; min-width: 280px; }
@media (max-width: 480px) {
  .paytabs { flex-wrap: nowrap; gap: 4px; }
  .paytabs [role=tab] { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; font-size: .84rem; padding: 8px 4px; }
}

/* ---------- Official receipt box ---------- */
.receiptbox { margin: 14px 0; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, #fff8e3, #fff); border: 1px solid #f3dc9b; }
.receiptbox h3 { margin: 2px 0 6px; font-size: 1.15rem; }
.receiptbox > p { margin: 0 0 8px; }
.rb-step { display: inline-block; margin: 0 0 4px !important; padding: 2px 10px; border-radius: 999px; background: var(--leaf-soft); color: var(--leaf); font-size: .8rem; font-weight: 700; }
.rb-why { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.rb-why li { position: relative; padding-left: 28px; }
.rb-why li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.receiptbox .form { grid-template-columns: 1fr; }
.badge.receipts { background: var(--leaf-soft); color: var(--leaf); }
.panel.danger { border: 1px solid #f1b8bf; background: #fff7f8; }
.panel.danger ul { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 4px; }

/* ---------- Living hero scene ---------- */
.hero-scene { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; isolation: isolate; }
.scene-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.scene-slide.is-on { opacity: 1; }
.scene-slide picture, .scene-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-scene .hero-banner { margin: 0; }
.scene-fx { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s; }
.hero-scene.fx-off .scene-fx { opacity: 0; }

/* the sun breathes */
.fx-sun { position: absolute; left: 80.7%; top: 21.3%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
          border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 150, .75) 0%, rgba(255, 214, 90, .35) 38%, rgba(255, 214, 90, 0) 70%);
          mix-blend-mode: screen; animation: fx-sun 5s ease-in-out infinite; }
@keyframes fx-sun { 0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

/* birds cross the sky */
.fx-bird { position: absolute; left: -6%; width: 3.4%; fill: none; stroke: #33507a; stroke-width: 1.8; stroke-linecap: round; opacity: .8;
           animation: fx-fly 22s linear infinite, fx-flap .5s ease-in-out infinite alternate; }
.fx-bird.b1 { top: 12%; animation-delay: 0s, 0s; }
.fx-bird.b2 { top: 17%; width: 2.6%; animation-delay: -7s, -.2s; animation-duration: 26s, .45s; }
.fx-bird.b3 { top: 9%; width: 2.2%; animation-delay: -15s, -.1s; animation-duration: 30s, .55s; }
@keyframes fx-fly { from { left: -6%; translate: 0 0; } 50% { translate: 0 -14px; } to { left: 106%; translate: 0 6px; } }
@keyframes fx-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

/* slow camera drift on the picture */
.scene-slide.is-on img { animation: fx-drift 24s ease-in-out infinite alternate; transform-origin: 60% 55%; }
@keyframes fx-drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }

/* hearts and coins rising from the people */
.fx-float { position: absolute; bottom: 30%; font-size: clamp(14px, 2.2vw, 22px); line-height: 1; animation: fx-rise 3.6s ease-out forwards; will-change: transform, opacity; }
.fx-float.heart { color: #e23b4e; }
.fx-float.coin { width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; font-size: clamp(10px, 1.4vw, 14px); font-weight: 800;
                 color: #7a4b00; background: radial-gradient(circle at 35% 30%, #fff3b0, #f6c21c 60%, #d99a00); box-shadow: 0 2px 4px rgba(120, 80, 0, .3); }
@keyframes fx-rise { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1); }
                     100% { opacity: 0; transform: translateY(-160%) translateX(var(--sway, 10px)) scale(1.1); } }
.hero-scene .fx-float { bottom: 34%; }

/* a "paid" bubble from a real recent payment */
.fx-paid { position: absolute; top: 34%; max-width: 86%; overflow: visible; text-overflow: ellipsis; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; color: var(--ink);
           font-size: clamp(11px, 1.3vw, 13.5px); font-weight: 700; white-space: nowrap; box-shadow: 0 6px 18px rgba(19, 26, 60, .18);
           display: inline-flex; align-items: center; gap: 6px; animation: fx-pop 4.2s ease forwards; transform-origin: bottom center; }
.fx-paid::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); color: #fff; font-size: 11px; }
.fx-paid::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); }
@keyframes fx-pop { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.04); }
                    16% { transform: translate(-50%, 0) scale(1); } 82% { opacity: 1; transform: translate(-50%, -6px); } 100% { opacity: 0; transform: translate(-50%, -14px); } }

/* slideshow dots */
.scene-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); z-index: 3; }
.scene-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #b9c0da; cursor: pointer; }
.scene-dots button[aria-current="true"] { background: var(--indigo, #1d2b7a); width: 22px; border-radius: 5px; }
.scene-dots button:focus-visible { outline: 2px solid var(--flag-blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .fx-sun, .fx-bird, .scene-slide.is-on img { animation: none !important; }
  .fx-bird { display: none; }
  .scene-slide { transition: none; }
}

/* Payment page: long file names or seven tabs never push the form past its card */
.payreport, .payreport .form, .payreport .form > *, .sendreceipt { min-width: 0; max-width: 100%; }
.payreport .form { grid-template-columns: minmax(0, 1fr); }
.form label.dropzone { width: 100%; box-sizing: border-box; }
.dz-text { flex: 1 1 auto; overflow: hidden; }
.payreport input, .payreport select, .payreport textarea { max-width: 100%; box-sizing: border-box; }
.paytabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
@media (max-width: 480px) {
  .paytabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Paskong Pinoy (on from Nov 15 to Jan 6) ---------- */
.xmas-lights { position: relative; z-index: 40; height: 0; display: flex; justify-content: space-between; padding: 0 8px; pointer-events: none; }
.xmas-lights::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 10px;
  background: radial-gradient(ellipse at 50% 0, transparent 62%, #2c3a2a 64%, #2c3a2a 70%, transparent 72%) 0 0 / 36px 10px repeat-x; opacity: .7; }
.xmas-lights i { position: relative; top: 4px; width: 8px; height: 12px; border-radius: 50% 50% 45% 45%; animation: xmas-twinkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.xmas-lights i:nth-child(even) { top: 7px; }
.xmas-lights i.r { background: #ff4d5e; --glow: #ff4d5e; }
.xmas-lights i.g { background: #3ddc84; --glow: #3ddc84; }
.xmas-lights i.y { background: #ffd23f; --glow: #ffd23f; }
.xmas-lights i.b { background: #4da3ff; --glow: #4da3ff; }
.xmas-lights i.w { background: #fff6d6; --glow: #fff6d6; }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px var(--glow); } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--glow); } }
@media (max-width: 900px) { .xmas-lights i:nth-child(n+25) { display: none; } }

.xmas-greet { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid #f3c9cf; color: #7a1d1d; font-size: .95rem; box-shadow: 0 4px 14px rgba(226, 59, 78, .12); }
.xmas-greet strong { color: #c81e33; }
.parol.mini { width: 26px; height: 34px; overflow: visible; }
.parol.mini line { display: none; }
.parol.mini .parol-glow { animation: parol-glow 2.2s ease-in-out infinite; }

.scene-fx .parol { position: absolute; top: 0; width: 9.5%; overflow: visible; transform-origin: 50% -300%; filter: drop-shadow(0 0 10px rgba(255, 214, 90, .55)); }
.scene-fx .parol.p1 { left: 6%; top: -2%; animation: parol-sway 5.5s ease-in-out infinite; }
.scene-fx .parol.p2 { left: 58%; top: -5%; width: 7.5%; animation: parol-sway 6.5s ease-in-out infinite reverse; }
.scene-fx .parol-glow { animation: parol-glow 2.2s ease-in-out infinite; }
@keyframes parol-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes parol-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.fx-float.star { color: #f6c21c; text-shadow: 0 0 8px rgba(255, 210, 63, .9); }

@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .scene-fx .parol, .parol-glow { animation: none !important; }
}
/* the greeting wraps inside narrow boxes (signed-in home) with balanced lines */
.xmas-greet { max-width: 100%; box-sizing: border-box; border-radius: 18px; }
.xmas-greet span { text-wrap: balance; }
.xmas-greet .parol.mini { flex: 0 0 auto; }

/* ---------- "Share that you helped" ---------- */
.sharecard { margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, #eefaf2, #fff); border: 1px solid #bfe5cc; }
.sharecard h2 { margin: 2px 0 6px; font-size: 1.2rem; }
.sharecard > p { margin: 0 0 10px; }
.share-msg { padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed #bfe5cc; font-size: .95rem; color: var(--ink); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Bill payment guides ---------- */
.guide { max-width: 820px; margin-left: auto; margin-right: auto; }
.guide h2 { margin-top: 26px; font-size: 1.2rem; }
.guide .steps { margin-top: 8px; }
.guide-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 18px; }
.guide-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.guide-list .small { display: block; color: var(--muted); }
.safe-note { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: #fff4f5; border: 1px solid #f3c9cf; }
.guide-cta { max-width: 820px; margin: 18px auto 0; background: linear-gradient(180deg, #fff8e3, #fff); }
.pdf-note { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
