/* GP SSS Finance - shared styles. Brand: navy, red, yellow (school crest), green motto. */
:root {
  --navy: #14215a;
  --navy-2: #1e2f7a;
  --navy-3: #2b3f96;
  --red: #d2232a;
  --red-soft: #fbe7e7;
  --yellow: #f7c600;
  --yellow-soft: #fff6d1;
  --green: #1c7c3c;
  --green-soft: #e3f3e8;
  --ink: #16181d;
  --ink-2: #3b3f4a;
  --muted: #6a6f7c;
  --line: #e5e1d6;
  --bg: #f7f5ef;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 90, .06), 0 6px 20px rgba(20, 33, 90, .06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / nav ---------- */
.stripe { height: 6px; background: linear-gradient(100deg, var(--red) 0 50%, var(--yellow) 50% 100%); }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand img { width: 44px; height: 42px; flex: none; }
.brand > div { min-width: 0; }
.brand b { display: block; font-family: var(--serif); color: var(--navy); font-size: 17px; line-height: 1.1; }
.brand span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { margin-left: auto; display: none; gap: 4px; }
.top-nav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.top-nav a:hover { background: var(--bg); }
.top-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11.5px; text-decoration: none; color: var(--muted); font-weight: 500; }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--navy); }
.bottom-nav a[aria-current="page"] svg { color: var(--red); }
body.has-bottom-nav { padding-bottom: 72px; }
@media (min-width: 820px) {
  .top-nav { display: flex; }
  .bottom-nav { display: none; }
  body.has-bottom-nav { padding-bottom: 0; }
}

.demo-banner { background: var(--yellow-soft); color: #5a4700; font-size: 13px; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f0dc8a; }

/* ---------- footer ---------- */
.site-footer { margin-top: 48px; background: var(--navy); color: #cfd5ee; font-size: 14px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 28px; display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer h3 { color: #fff; font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .motto { font-family: var(--serif); font-style: italic; color: var(--yellow); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 12.5px; color: #9aa3cc; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font: 600 15px var(--sans); cursor: pointer; text-decoration: none; transition: filter .15s, background .15s; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(.93); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-2); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: #cfcabb; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 34px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-2); font: inherit; cursor: pointer; text-decoration: underline; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.paid { background: var(--green-soft); color: var(--green); }
.badge.pending, .badge.awaiting_eft { background: var(--yellow-soft); color: #7a5d00; }
.badge.cancelled, .badge.failed { background: #eeeef1; color: #5b5f6b; }
.badge.overdue { background: var(--red-soft); color: var(--red); }
.badge.expense { background: var(--red-soft); color: var(--red); }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert.info { background: #eaf0ff; color: #1d2f6f; }
.alert.warn { background: var(--yellow-soft); color: #5a4700; }
.alert.error { background: var(--red-soft); color: #8a1419; }
.alert.success { background: var(--green-soft); color: #145c2d; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; align-content: start; }
.field label, .label { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.req { color: var(--red); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 16px var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #d8d3c5; border-radius: 10px; padding: 11px 12px; min-height: 46px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(43, 63, 150, .15); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: 13px; }
.row-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
legend { font-weight: 600; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; padding: 0; }

.choice-grid { display: grid; gap: 10px; }
@media (min-width: 480px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; gap: 12px; align-items: center; border: 1.5px solid #d8d3c5; border-radius: 12px; padding: 13px 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: #b9b3a2; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #c4bfb0; flex: none; display: grid; place-items: center; background: #fff; }
.choice input[type=radio] + .tick { border-radius: 50%; }
.choice .tick svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.choice input:checked + .tick { background: var(--navy); border-color: var(--navy); }
.choice input:checked + .tick svg { opacity: 1; }
.choice:has(input:checked) { border-color: var(--navy); background: #f3f5fc; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(43, 63, 150, .25); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice .body { flex: 1; min-width: 0; }
.choice .body b { display: block; }
.choice .body span { font-size: 13px; color: var(--muted); }
.choice .amt { font-weight: 700; color: var(--navy); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid #d8d3c5; background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 15px var(--sans); cursor: pointer; color: var(--ink-2); min-height: 42px; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.reveal { border-left: 3px solid var(--yellow); padding: 12px 0 2px 14px; margin: -4px 0 14px; animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; gap: 6px; background: #ebe7dc; padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font: 600 15px var(--sans); color: var(--ink-2); cursor: pointer; min-height: 44px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- home ---------- */
.hero { background: radial-gradient(1200px 400px at 90% -10%, #2b3f96 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -80px; bottom: -40px; width: 340px; height: 90px; transform: rotate(-18deg);
  background: linear-gradient(var(--red) 0 50%, var(--yellow) 50% 100%); opacity: .9; }
.hero .wrap { display: grid; gap: 26px; padding-top: 34px; padding-bottom: 44px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p.lead { color: #d8def5; font-size: 17px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.notice { background: var(--yellow); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 56px; padding-bottom: 64px; } }

.quick { margin-top: -26px; position: relative; z-index: 2; }
.quick .grid { gap: 12px; }
.quick a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.quick a:hover { border-color: #cfcabb; }
.quick .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.quick .ico svg { width: 22px; height: 22px; }
.quick b { display: block; color: var(--navy); }
.quick span { font-size: 13px; color: var(--muted); }

.fee-card { display: flex; flex-direction: column; gap: 6px; }
.fee-card .amount { font-family: var(--serif); font-size: 30px; color: var(--navy); font-weight: 700; }
.fee-card .amount small { font-size: 14px; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.fee-card .due { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }

.bank { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.bank::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(100deg, var(--red) 0 50%, var(--yellow) 50%); }
.bank h3 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.bank dt { color: #aeb7de; font-size: 13px; }
.bank dd { margin: 0; font-weight: 600; }
.bank .acc { font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: .06em; }

.contact-list { display: grid; gap: 10px; }
.contact-list > a, .contact-list > div { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.contact-list > a:hover { border-color: #cfcabb; }
.contact-list svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.contact-list b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* hero with the Finance Office photo */
.hero.photo { background:
  linear-gradient(90deg, rgba(20, 33, 90, .97) 0%, rgba(20, 33, 90, .9) 42%, rgba(20, 33, 90, .45) 72%, rgba(20, 33, 90, .2) 100%),
  url(/images/finance-office.jpg) 70% 40% / cover no-repeat, var(--navy); }
@media (max-width: 899px) { .hero.photo { background: linear-gradient(rgba(20, 33, 90, .9), rgba(20, 33, 90, .94)), url(/images/finance-office.jpg) center / cover no-repeat, var(--navy); } }
.hero.photo .wrap { min-height: 460px; align-content: center; }
.hero-text { max-width: 620px; }
.hero-badge { display: none; margin: 0; justify-self: end; align-self: end; background: rgba(255, 255, 255, .96); border-radius: 18px; padding: 16px 18px 12px; text-align: center; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.hero-badge img { width: 120px; height: auto; margin: 0 auto; }
.hero-badge figcaption { font: italic 600 12.5px/1.3 var(--serif); color: var(--green); margin-top: 4px; }
@media (min-width: 900px) { .hero-badge { display: block; } }
.notice.glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(4px); }

/* shared: images that open in the lightbox */
[data-lightbox] { cursor: zoom-in; }
button[data-lightbox] { border: 0; padding: 0; background: none; font: inherit; color: inherit; text-align: left; display: block; width: 100%; }
button[data-lightbox]:focus-visible { outline: 3px solid var(--navy-3); outline-offset: 3px; }

/* welcome section */
.welcome { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .welcome { grid-template-columns: 1fr 1fr; gap: 40px; } }
.welcome-media { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 16 / 10; }
.welcome-media .shot { border-radius: 14px; overflow: hidden; background: #e9e5da; box-shadow: var(--shadow); height: 100%; }
.welcome-media .shot.tall { grid-row: span 2; }
.welcome-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.welcome-media .shot:hover img { transform: scale(1.04); }
.value-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.value-chip { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.value-chip.v0 { background: var(--red); color: #fff; }
.value-chip.v1 { background: var(--yellow); color: var(--ink); }
.value-chip.v2 { background: var(--navy); color: #fff; }
.doc-links { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.doc-link { display: flex !important; gap: 12px; align-items: center; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 12px; padding: 10px !important; }
.doc-link:hover { border-color: #cfcabb !important; }
.doc-link img { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.doc-link span { font-size: 12.5px; color: var(--muted); }
.doc-link b { display: block; color: var(--navy); font-size: 14px; }

.leader-card { display: flex !important; gap: 16px; align-items: center; margin-top: 14px; background: #fff !important; border: 1px solid var(--line) !important; border-left: 4px solid var(--red) !important; border-radius: 14px; padding: 12px !important; box-shadow: var(--shadow); }
.leader-card:hover { border-color: #cfcabb !important; }
.leader-card img { width: 92px; height: 116px; object-fit: cover; object-position: center 18%; border-radius: 10px; flex: none; }
.leader-card .eyebrow { display: block; margin-bottom: 2px; }
.leader-card b { display: block; font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.leader-card .muted { display: block; font-size: 13.5px; line-height: 1.45; }

/* departments donors can support */
.dept-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .dept-grid { grid-template-columns: repeat(3, 1fr); } }
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dept-img { aspect-ratio: 3 / 2; overflow: hidden; background: #e9e5da; }
.dept-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dept-card:hover .dept-img img { transform: scale(1.04); }
.dept-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dept-body h3 { margin: 0; }
.dept-body .btn { align-self: flex-start; margin-top: auto; }

/* finance office photo card next to the bank details */
.photo-card { position: relative; border-radius: var(--radius) !important; overflow: hidden; min-height: 240px; box-shadow: var(--shadow); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-card-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; background: linear-gradient(transparent, rgba(10, 16, 40, .85)); font-size: 13.5px; }
.photo-card-text b { display: block; font-size: 17px; font-family: var(--serif); }

/* notices & admissions posters */
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .poster-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .poster-grid { grid-template-columns: repeat(6, 1fr); } }
.poster { background: #fff !important; border: 1px solid var(--line) !important; border-radius: 12px; overflow: hidden; display: flex !important; flex-direction: column; box-shadow: var(--shadow); }
.poster-img { aspect-ratio: 2 / 3; overflow: hidden; background: #f0eee7; display: block; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.poster:hover .poster-img img { transform: scale(1.03); }
.poster-text { padding: 10px 12px 12px; font-size: 12px; color: var(--muted); display: block; }
.poster-text b { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.3; margin-bottom: 2px; }

/* school life mosaic */
.mosaic { columns: 2 180px; column-gap: 10px; }
@media (min-width: 900px) { .mosaic { columns: 4; } }
.mosaic-item { position: relative; margin: 0 0 10px; border-radius: 12px; overflow: hidden; break-inside: avoid; background: #e9e5da; }
.mosaic-item img { width: 100%; height: auto; transition: transform .4s; }
.mosaic-item:hover img { transform: scale(1.03); }
.mosaic-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); }
.team-photo { border-radius: 12px; overflow: hidden; }
.team-photo img { width: 100%; height: auto; }

.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 30, .92); z-index: 100; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 84vh; max-width: min(1100px, 100%); border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: #e3e7f7; font-size: 14px; margin-top: 10px; }
.lightbox button { position: absolute; top: 14px; right: 14px; }

.install { display: flex; gap: 14px; align-items: center; }
.install img { width: 56px; height: 56px; border-radius: 14px; }

/* ---------- pay ---------- */
.pay-layout { display: grid; gap: 18px; padding-top: 24px; }
@media (min-width: 960px) { .pay-layout { grid-template-columns: 1fr 340px; align-items: start; } .summary { position: sticky; top: 84px; } }
.form-section { margin-bottom: 18px; }
.form-section h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 13px var(--sans); display: inline-grid; place-items: center; flex: none; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.summary .total { border-top: 2px solid var(--navy); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--navy); }
.summary .empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.payee { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f3f5fc; border: 1px solid #dfe4f5; font-size: 13px; color: var(--ink-2); }
.payee svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.payee b { display: block; color: var(--navy); font-size: 13.5px; }
.payee .acc { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.secure { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.secure svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- status / receipt ---------- */
.status-hero { text-align: center; padding: 28px 20px; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.status-icon svg { width: 36px; height: 36px; }
.status-icon.paid { background: var(--green-soft); color: var(--green); }
.status-icon.pending, .status-icon.awaiting_eft { background: var(--yellow-soft); color: #7a5d00; }
.status-icon.cancelled, .status-icon.failed { background: #eeeef1; color: #5b5f6b; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.receipt { max-width: 760px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 36px; position: relative; overflow: hidden; }
.receipt::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(100deg, var(--red) 0 50%, var(--yellow) 50%); }
.receipt-head { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 16px; margin-bottom: 18px; }
.receipt-head img { width: 90px; }
.receipt-head h1 { font-size: 22px; margin: 0; }
.receipt-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.receipt-title h2 { margin: 0; letter-spacing: .08em; text-transform: uppercase; font-size: 20px; }
.receipt table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.receipt th, .receipt td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.receipt th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.receipt td.num, .receipt th.num { text-align: right; }
.receipt th.sno, .receipt td.sno { width: 56px; color: var(--muted); }
.receipt .receipt-no { font-size: 16px; color: var(--navy); }
.receipt tfoot td { font-weight: 700; font-size: 16px; color: var(--navy); border-bottom: 0; border-top: 2px solid var(--navy); }
.stamp { display: inline-block; border: 3px solid var(--green); color: var(--green); padding: 4px 14px; border-radius: 8px; font-weight: 800; letter-spacing: .12em; transform: rotate(-4deg); }
.stamp.unpaid { border-color: var(--red); color: var(--red); }
.receipt .foot { margin-top: 22px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.print-bar { display: flex; gap: 10px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
@media print {
  body { background: #fff; padding: 0 !important; }
  .no-print, .site-header, .bottom-nav, .site-footer, .stripe, .demo-banner { display: none !important; }
  .receipt { border: 0; margin: 0; padding: 12px; max-width: none; }
}

/* ---------- history ---------- */
.tx-list { display: grid; gap: 10px; }
.tx-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; }
.tx-item:hover { border-color: #cfcabb; }
.tx-item .amt { font-weight: 700; color: var(--navy); text-align: right; }
.tx-item .meta { font-size: 13px; color: var(--muted); }
.empty-state { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty-state svg { width: 44px; height: 44px; color: #c4bfb0; margin-bottom: 8px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: slideIn .2s ease; }
@media (min-width: 820px) { .toast { bottom: 28px; } }
