/* ==========================================================================
   خیریه موبایل — design system
   ========================================================================== */
@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations"), url("../fonts/Vazirmatn[wght].woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--mch-primary: #046b58;
	--mch-primary-dark: #015446;
	--mch-primary-soft: #e6f2ef;
	--mch-accent: #f25c4f;
	--mch-gold: #f2a541;
	--mch-accent-dark: #d9473b;
	--mch-ink: #1f2937;
	--mch-muted: #6b7280;
	--mch-line: #e7e2d8;
	--mch-bg: #f7f5f0;
	--mch-card: #ffffff;
	--mch-red: #c2412d;
	--mch-radius: 16px;
	--mch-radius-sm: 10px;
	--mch-shadow: 0 1px 2px rgba(31, 41, 55, .04), 0 8px 24px rgba(31, 41, 55, .06);
	--mch-shadow-lg: 0 20px 50px rgba(1, 84, 70, .16);
	--mch-wrap: 1200px;
}

body.mch-site {
	font-family: "Vazirmatn", Tahoma, sans-serif;
	color: var(--mch-ink);
	background: var(--mch-bg);
	-webkit-font-smoothing: antialiased;
}
body.mch-site :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
	font-family: inherit;
}
.mch-site a { color: var(--mch-primary); }
.mch-wrap { max-width: var(--mch-wrap); margin-inline: auto; padding-inline: 20px; }
.mch-muted { color: var(--mch-muted); }
.mch-muted-l { color: rgba(255, 255, 255, .7); font-size: .9em; }
.mch-small { font-size: .85rem; color: var(--mch-muted); }
.mch-center { text-align: center; }
.mch-h { font-size: 1.15rem; margin: 28px 0 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.mch-ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.mch-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--mch-line); }
.admin-bar .mch-header { top: 32px; }
.mch-header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.mch-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--mch-ink) !important; }
.mch-brand img { width: 44px; height: 44px; }
.mch-brand span { display: flex; flex-direction: column; line-height: 1.3; }
.mch-brand b { font-size: 1.05rem; font-weight: 800; }
.mch-brand small { font-size: .72rem; color: var(--mch-muted); }
.mch-nav { flex: 1; }
.mch-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; }
.mch-menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--mch-ink); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s; }
.mch-menu a:hover, .mch-menu .current-menu-item > a { background: var(--mch-primary-soft); color: var(--mch-primary-dark); }
.mch-menu .sub-menu { display: none; }
.mch-header-actions { display: flex; gap: 8px; align-items: center; }
.mch-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.mch-burger span { display: block; width: 22px; height: 2px; background: var(--mch-ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- footer ---------- */
.mch-footer { background: linear-gradient(160deg, #015446, #013a31); color: rgba(255, 255, 255, .85); padding: 56px 0 0; margin-top: 0; }
.mch-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.mch-footer .mch-brand, .mch-footer .mch-brand small { color: #fff !important; }
.mch-footer .mch-brand small { opacity: .75; }
.mch-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.mch-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mch-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.mch-footer a:hover { color: var(--mch-accent); }
.mch-footer p { line-height: 1.9; font-size: .92rem; }
.mch-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-block: 18px; font-size: .82rem; text-align: center; opacity: .75; }

/* ---------- buttons ---------- */
.mch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 12px; border: 0; background: var(--mch-primary); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none !important; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; line-height: 1.4; }
.mch-btn:hover { background: var(--mch-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(4, 107, 88, .25); }
.mch-btn-accent { background: var(--mch-accent); color: #3b2504 !important; }
.mch-btn-accent:hover { background: var(--mch-accent-dark); box-shadow: 0 6px 16px rgba(242, 92, 79, .35); }
.mch-btn-ghost { background: transparent; color: var(--mch-primary-dark) !important; box-shadow: inset 0 0 0 1.5px var(--mch-primary); }
.mch-btn-ghost:hover { background: var(--mch-primary-soft); box-shadow: inset 0 0 0 1.5px var(--mch-primary); }
.mch-btn-danger-ghost { background: transparent; color: var(--mch-red) !important; box-shadow: inset 0 0 0 1.5px var(--mch-red); }
.mch-btn-danger-ghost:hover { background: #fbeae7; box-shadow: inset 0 0 0 1.5px var(--mch-red); }
.mch-btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.mch-btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.mch-btn-block { width: 100%; }
.mch-btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mch-linkbtn { background: none; border: 0; color: var(--mch-primary); cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; }

/* ---------- forms ---------- */
.mch-form label, .mch-settings label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; color: var(--mch-ink); }
.mch-site .mch-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
.mch-site .mch-form select, .mch-site .mch-form textarea, .mch-filterbar input, .mch-filterbar select, .mch-settings input:not([type=checkbox]), .mch-settings textarea, .mch-settings select, .mch-inline-form input, .mch-inline-form select {
	width: 100%; border: 1.5px solid var(--mch-line); border-radius: var(--mch-radius-sm); padding: 11px 14px; font-size: .95rem; background: #fff; color: var(--mch-ink); font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
.mch-site .mch-form input:focus, .mch-site .mch-form select:focus, .mch-site .mch-form textarea:focus, .mch-filterbar input:focus { outline: none; border-color: var(--mch-primary); box-shadow: 0 0 0 4px rgba(4, 107, 88, .12); }
.mch-form input[type=file] { font-size: .85rem; padding: 10px; border: 1.5px dashed var(--mch-line); border-radius: var(--mch-radius-sm); background: #fcfbf8; }
.mch-check { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; cursor: pointer; }
.mch-check input { width: 18px; height: 18px; accent-color: var(--mch-primary); }
.mch-check-mid { align-self: end; padding-bottom: 12px; }
.mch-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mch-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.mch-sep { font-weight: 800; margin: 18px 0 12px; padding-top: 14px; border-top: 1px dashed var(--mch-line); }
.mch-sep small { font-weight: 400; color: var(--mch-muted); }
.mch-inline { display: inline-block; margin: 0; }
.mch-inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.mch-inline-form input, .mch-inline-form select { width: auto !important; padding: 7px 10px !important; flex: 1; min-width: 120px; }
.mch-details summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.mch-details summary::-webkit-details-marker { display: none; }
.mch-details[open] summary { margin-bottom: 14px; }
.mch-perms { border: 1px solid var(--mch-line); border-radius: var(--mch-radius-sm); padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 0 0 14px; }
.mch-perms legend { font-weight: 700; font-size: .85rem; padding: 0 6px; }
.mch-perms .mch-check { margin: 0; font-size: .85rem; }

/* ---------- cards / alerts / badges ---------- */
.mch-card { background: var(--mch-card); border-radius: var(--mch-radius); padding: 22px; box-shadow: var(--mch-shadow); margin-bottom: 18px; border: 1px solid rgba(231, 226, 216, .6); }
.mch-card h3 { margin: 0 0 14px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.mch-narrow { max-width: 620px; margin-inline: auto; }
.mch-alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 14px; font-size: .92rem; line-height: 1.8; border: 1px solid transparent; }
.mch-alert-success { background: #e8f5ef; color: #135b45; border-color: #bfe3d2; }
.mch-alert-error { background: #fbeae7; color: #8c2b1c; border-color: #f2c6bd; }
.mch-alert-info { background: #eaf3f8; color: #1f4e66; border-color: #c8e0ec; }
.mch-alert-warn { background: #fff5e3; color: #7a4a06; border-color: #f6dcac; }
.mch-alert .mch-btn { margin-inline-start: 8px; }
.mch-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mch-badge-green { background: #e2f4ec; color: #146c4c; }
.mch-badge-amber { background: #fff1d6; color: #8a5a0a; }
.mch-badge-red { background: #fde4df; color: #a2321f; }
.mch-badge-gray { background: #eeece6; color: #575249; }
.mch-badge-blue { background: #e2eef8; color: #1d5a85; }
.mch-badge-purple { background: #efe6f7; color: #5e3487; }
.mch-empty { padding: 34px 20px; text-align: center; color: var(--mch-muted); background: #fff; border: 1.5px dashed var(--mch-line); border-radius: var(--mch-radius); }

/* ---------- progress ---------- */
.mch-progress { height: 10px; background: #ece8df; border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.mch-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mch-primary), #0f8a72); transition: width 1s ease; }
.mch-progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .85rem; color: var(--mch-muted); margin-bottom: 12px; }
.mch-progress-meta b { color: var(--mch-ink); font-size: 1rem; }

/* ---------- stats (home) ---------- */
.mch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mch-stat { text-align: center; padding: 10px 6px; position: relative; }
.mch-stat + .mch-stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 18%; height: 64%; width: 1px; background: var(--mch-line); }
.mch-stat b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--mch-primary-dark); letter-spacing: -.5px; }
.mch-stat span { font-size: .85rem; color: var(--mch-muted); }

/* ---------- campaign cards ---------- */
.mch-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.mch-filters a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--mch-line); text-decoration: none; color: var(--mch-ink); font-size: .9rem; }
.mch-filters a.is-active, .mch-filters a:hover { background: var(--mch-primary); color: #fff; border-color: var(--mch-primary); }
.mch-cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mch-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mch-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mch-ccard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: var(--mch-shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; border: 1px solid rgba(231, 226, 216, .6); }
.mch-ccard:hover { transform: translateY(-4px); box-shadow: var(--mch-shadow-lg); }
.mch-ccard-media { position: relative; aspect-ratio: 16/10; display: block; overflow: hidden; background: var(--mch-primary-soft); }
.mch-ccard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mch-ccard:hover .mch-ccard-media img { transform: scale(1.04); }
.mch-ccard-ph { position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(242, 92, 79, .35), transparent 45%), radial-gradient(circle at 80% 70%, rgba(4, 107, 88, .35), transparent 50%), linear-gradient(135deg, #e6f2ef, #f7efe2); }
.mch-ccard-ph::after { content: ""; position: absolute; inset: 0; background: url("../img/logo-icon-192.png") center/84px no-repeat; opacity: .3; }
.mch-ccard-occasion .mch-ccard-ph { background: radial-gradient(circle at 30% 30%, rgba(233, 196, 240, .6), transparent 50%), linear-gradient(135deg, #fdf3e4, #f4e4f2); }
.mch-ccard-crisis .mch-ccard-ph { background: radial-gradient(circle at 70% 30%, rgba(194, 65, 45, .25), transparent 50%), linear-gradient(135deg, #fbeae7, #eef2f5); }
.mch-ccard-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(255, 255, 255, .94); color: var(--mch-primary-dark); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.mch-ccard-done { position: absolute; top: 12px; inset-inline-end: 12px; background: #5e3487; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.mch-ccard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.mch-ccard-body h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.6; }
.mch-ccard-body h3 a { color: var(--mch-ink); text-decoration: none; }
.mch-ccard-body p { font-size: .88rem; color: var(--mch-muted); line-height: 1.8; margin: 0 0 10px; }
.mch-ccard-meta { font-size: .78rem; color: var(--mch-muted); margin-top: auto; }
.mch-ccard .mch-btn { margin-top: 4px; }

/* ---------- impact ---------- */
.mch-impacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mch-impact-card { position: relative; background: #fff; border-radius: 20px; padding: 26px 22px 20px; text-decoration: none !important; color: var(--mch-ink) !important; box-shadow: var(--mch-shadow); border-top: 4px solid var(--mch-accent); display: flex; flex-direction: column; gap: 10px; transition: transform .2s; }
.mch-impact-card:hover { transform: translateY(-3px); }
.mch-impact-q { font-size: 3.4rem; line-height: .6; color: var(--mch-accent); font-family: Georgia, serif; }
.mch-impact-card p { margin: 0; line-height: 1.9; font-weight: 500; }
.mch-impact-card div { margin-top: auto; display: flex; flex-direction: column; font-size: .85rem; }
.mch-impact-card small { color: var(--mch-muted); }
.mch-impact-empty { text-align: center; padding: 26px; background: rgba(255, 255, 255, .7); border-radius: 20px; border: 1.5px dashed var(--mch-line); }
.mch-impact { background: linear-gradient(135deg, #fff6e6, #fff); border: 1px solid #f6dcac; border-radius: var(--mch-radius); padding: 16px 20px; margin: 16px 0; }
.mch-impact span { font-weight: 800; color: var(--mch-accent-dark); font-size: .85rem; }
.mch-impact p { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; }

/* ---------- page hero for plugin routes ---------- */
.mch-page-hero { background: linear-gradient(135deg, var(--mch-primary-dark), var(--mch-primary) 60%, #1f9a84); color: #fff; padding: 42px 0 70px; }
.mch-page-hero h1 { color: #fff; margin: 8px 0; font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 900; }
.mch-page-hero p { opacity: .9; }
.mch-crumb { color: rgba(255, 255, 255, .8) !important; text-decoration: none; font-size: .85rem; }
.mch-page-body { margin-top: -40px; padding-bottom: 60px; position: relative; }
.mch-page-body > .mch-receipt, .mch-page-body > .mch-narrow { margin-top: 0; }

/* ---------- case page ---------- */
.mch-case { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }
.mch-case-main { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--mch-shadow); }
.mch-case-cover { width: 100%; border-radius: 14px; max-height: 420px; object-fit: cover; margin-bottom: 16px; }
.mch-case-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mch-case-main h3 { margin: 26px 0 10px; font-size: 1.1rem; }
.mch-lead { font-size: 1.08rem; line-height: 2; margin-top: 16px; }
.mch-case-main p { line-height: 2; }
.mch-sticky { position: sticky; top: 92px; }
.mch-side-stats { display: flex; gap: 12px; margin-bottom: 14px; }
.mch-side-stats div { flex: 1; background: var(--mch-bg); border-radius: 12px; padding: 10px; text-align: center; }
.mch-side-stats b { display: block; font-size: 1.05rem; }
.mch-side-stats span { font-size: .75rem; color: var(--mch-muted); }
.mch-share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--mch-line); }
.mch-share a, .mch-share button { background: var(--mch-bg); border: 0; border-radius: 99px; padding: 5px 12px; cursor: pointer; text-decoration: none; color: var(--mch-ink); font-size: .8rem; }
.mch-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.mch-doc { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--mch-ink); }
.mch-doc img, .mch-doc-pdf { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--mch-bg); display: grid; place-items: center; font-weight: 800; color: var(--mch-red); }
.mch-doc small { font-size: .72rem; color: var(--mch-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mch-donors { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mch-donors li { display: flex; align-items: center; gap: 10px; background: var(--mch-bg); border-radius: 12px; padding: 8px 12px; font-size: .88rem; }
.mch-donors li span:last-child { margin-inline-start: auto; color: var(--mch-muted); font-size: .8rem; }
.mch-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mch-primary-soft); color: var(--mch-primary-dark); font-weight: 800; flex: none; }
.mch-avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }

/* ---------- donate form ---------- */
.mch-donate-wrap, .mch-tribute-wrap, .mch-introduce-wrap { max-width: 720px; margin-inline: auto; }
.mch-donate-wrap > form, .mch-introduce-wrap > form:not(.mch-card) { background: #fff; padding: 26px; border-radius: 20px; box-shadow: var(--mch-shadow-lg); }
.mch-case-side .mch-donate-wrap > form { box-shadow: none; padding: 0; }
.mch-donate-target { background: var(--mch-bg); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.mch-donate-target .mch-progress { margin-bottom: 4px; }
.mch-tabs { display: flex; background: var(--mch-bg); border-radius: 14px; padding: 4px; margin-bottom: 16px; gap: 4px; }
.mch-tab { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 11px; font-weight: 700; cursor: pointer; color: var(--mch-muted); font-size: .92rem; }
.mch-tab.is-active { background: #fff; color: var(--mch-primary-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.mch-tab:disabled { opacity: .4; cursor: not-allowed; }
.mch-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mch-chip { border: 1.5px solid var(--mch-line); background: #fff; border-radius: 12px; padding: 9px 14px; cursor: pointer; font-weight: 700; font-size: .9rem; transition: .15s; }
.mch-chip.is-active, .mch-chip:hover { border-color: var(--mch-primary); background: var(--mch-primary-soft); color: var(--mch-primary-dark); }
.mch-amount-input { position: relative; }
.mch-amount-input input { font-size: 1.15rem !important; font-weight: 800 !important; padding-inline-end: 64px !important; }
.mch-amount-input span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--mch-muted); font-size: .85rem; font-weight: 500; }
.mch-amount-words { min-height: 1.2em; font-weight: 500; }
.mch-donor-me { background: var(--mch-primary-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: .9rem; }
.mch-total { background: var(--mch-bg); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; display: flex; justify-content: space-between; font-size: .95rem; }
.mch-total b { font-size: 1.15rem; color: var(--mch-primary-dark); }

/* schematic bank card */
.mch-bankcard { position: relative; max-width: 400px; aspect-ratio: 1.586; margin: 0 auto 12px; border-radius: 18px; padding: 20px 22px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 85% 0%, rgba(242, 165, 65, .55), transparent 45%), radial-gradient(circle at 0% 100%, rgba(34, 163, 140, .7), transparent 55%), linear-gradient(135deg, #015446, #013a31); box-shadow: 0 18px 40px rgba(7, 63, 55, .35); }
.mch-bankcard::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .05); inset-inline-end: -90px; bottom: -120px; }
.mch-bankcard-top { display: flex; justify-content: space-between; align-items: center; }
.mch-bankcard-bank { font-weight: 800; font-size: 1rem; }
.mch-bankcard-logo .mch-brand { pointer-events: none; }
.mch-bankcard-logo .mch-brand span { display: none; }
.mch-bankcard-logo img { width: 36px; height: 36px; }
.mch-bankcard-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f7d98b, #c99a3c); position: relative; }
.mch-bankcard-chip::after { content: ""; position: absolute; inset: 8px 10px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 3px; }
.mch-bankcard-num { font-size: clamp(1.1rem, 4.6vw, 1.55rem); font-weight: 800; letter-spacing: 1px; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); word-spacing: 6px; }
.mch-bankcard-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; font-size: .85rem; }
.mch-bankcard-bottom small { display: block; opacity: .7; font-size: .68rem; }
.mch-bankcard-sheba { font-size: .68rem; letter-spacing: .3px; text-align: left; }
.mch-copy-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; }

/* ---------- tribute ---------- */
.mch-tribute .mch-steps { display: grid; gap: 16px; }
.mch-step { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--mch-shadow); }
.mch-step h3 { margin: 0 0 16px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.mch-step h3 span { width: 30px; height: 30px; border-radius: 50%; background: var(--mch-primary); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.mch-step h3 small { color: var(--mch-muted); font-weight: 400; }
.mch-occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.mch-occ input, .mch-design input, .mch-item input { position: absolute; opacity: 0; pointer-events: none; }
.mch-occ { margin: 0 !important; }
.mch-occ span { display: block; padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--mch-line); cursor: pointer; font-weight: 600; transition: .15s; }
.mch-occ-grief span { border-style: dashed; }
.mch-occ input:checked + span { background: var(--mch-primary); border-color: var(--mch-primary); color: #fff; }
.mch-occ-grief input:checked + span { background: #2f3a48; border-color: #2f3a48; }
.mch-designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mch-design { margin: 0 !important; cursor: pointer; align-items: center; }
.mch-design-thumb { display: block; width: 100%; aspect-ratio: 400/260; border-radius: 12px; overflow: hidden; border: 3px solid transparent; transition: .15s; }
.mch-design-thumb svg { width: 100%; height: 100%; display: block; }
.mch-design input:checked + .mch-design-thumb { border-color: var(--mch-accent); box-shadow: 0 6px 16px rgba(242, 92, 79, .35); }
.mch-design small { font-weight: 500; font-size: .8rem; }
.mch-preview-wrap { background: var(--mch-bg); border-radius: 16px; padding: 14px; }
.mch-tribute-preview .mch-gcard { margin: 8px auto 0; max-width: 420px; }
.mch-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mch-item { margin: 0 !important; }
.mch-item span { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; border: 1.5px solid var(--mch-line); cursor: pointer; }
.mch-item small { color: var(--mch-muted); font-weight: 400; }
.mch-item input:checked + span { border-color: var(--mch-primary); background: var(--mch-primary-soft); }

/* gift card */
.mch-gcard { --bg: #fff8f2; --ink: #3d2b1f; --tint: #f4a6a6; background: var(--bg); color: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .15); max-width: 520px; margin: 0 auto; }
.mch-gcard-art { aspect-ratio: 400/200; overflow: hidden; background: var(--tint); }
.mch-gcard-art svg { width: 100%; height: 100%; display: block; }
.mch-gcard-body { padding: 26px 30px 30px; text-align: center; }
.mch-gcard-occ { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .5px; padding: 4px 14px; border-radius: 99px; background: rgba(0, 0, 0, .06); }
.mch-gcard h2 { font-size: 2rem; font-weight: 900; margin: 10px 0; color: inherit; }
.mch-gcard-msg { line-height: 2.1; font-size: 1.02rem; margin: 0 0 8px; }
.mch-gcard-from { font-weight: 700; margin: 0 0 18px; opacity: .8; }
.mch-gcard-deed { display: flex; gap: 12px; align-items: center; text-align: start; background: rgba(255, 255, 255, .6); border-radius: 16px; padding: 14px 16px; font-size: .9rem; line-height: 1.8; }
.mch-gcard-deed > span { font-size: 1.6rem; }
.mch-gcard-impact { margin-top: 12px; background: rgba(242, 165, 65, .18); border-radius: 14px; padding: 12px 14px; font-size: .9rem; line-height: 1.8; text-align: start; }
.mch-gcard-bloom { --bg: #fff8f2; --tint: #fde8e4; }
.mch-gcard-confetti { --bg: #fffdf6; --tint: #fff2d1; }
.mch-gcard-sky { --bg: #f3f9fc; --ink: #173b4a; --tint: linear-gradient(#bfe3f2, #e9f6fb); }
.mch-gcard-sky .mch-gcard-art, .mch-design-thumb.mch-gcard-sky { background: linear-gradient(#a9d8ec, #e9f6fb); }
.mch-gcard-candle { --bg: #1f2633; --ink: #f2ede4; --tint: #141a24; }
.mch-gcard-candle .mch-gcard-deed, .mch-gcard-night .mch-gcard-deed { background: rgba(255, 255, 255, .07); }
.mch-gcard-candle .mch-gcard-occ, .mch-gcard-night .mch-gcard-occ { background: rgba(255, 255, 255, .1); }
.mch-gcard-olive { --bg: #f4f6f1; --ink: #2d3b30; --tint: #e3eadf; }
.mch-gcard-night { --bg: #1b2340; --ink: #eef0f8; --tint: linear-gradient(#0f1530, #2a3566); }
.mch-gcard-night .mch-gcard-art, .mch-design-thumb.mch-gcard-night { background: linear-gradient(#0f1530, #2a3566); }
.mch-design-thumb.mch-gcard-bloom { background: #fde8e4; }
.mch-design-thumb.mch-gcard-confetti { background: #fff2d1; }
.mch-design-thumb.mch-gcard-candle { background: #141a24; }
.mch-design-thumb.mch-gcard-olive { background: #e3eadf; }
.mch-card-page { min-height: 100vh; background: radial-gradient(circle at 20% 10%, rgba(242, 165, 65, .2), transparent 40%), radial-gradient(circle at 90% 80%, rgba(4, 107, 88, .2), transparent 45%), var(--mch-bg); padding: 40px 16px; }
.mch-card-stage { max-width: 560px; margin: 0 auto; animation: mch-pop .8s cubic-bezier(.2, .9, .3, 1.2) both; }
.mch-card-cta { text-align: center; margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
@keyframes mch-pop { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- receipt ---------- */
.mch-receipt { max-width: 560px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: var(--mch-shadow-lg); overflow: hidden; }
.mch-receipt-head { padding: 30px 26px 20px; text-align: center; background: linear-gradient(180deg, var(--mch-primary-soft), #fff); }
.mch-receipt-review .mch-receipt-head { background: linear-gradient(180deg, #fff5e3, #fff); }
.mch-receipt-failed .mch-receipt-head, .mch-receipt-rejected .mch-receipt-head { background: linear-gradient(180deg, #fbeae7, #fff); }
.mch-receipt-icon { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--mch-primary); color: #fff; font-size: 1.8rem; font-weight: 900; }
.mch-receipt-review .mch-receipt-icon { background: var(--mch-accent); }
.mch-receipt-failed .mch-receipt-icon, .mch-receipt-rejected .mch-receipt-icon, .mch-receipt-pending .mch-receipt-icon { background: var(--mch-red); }
.mch-receipt h1 { font-size: 1.35rem; margin: 14px 0 6px; }
.mch-receipt-rows { margin: 0; padding: 6px 26px; border-top: 2px dashed var(--mch-line); }
.mch-receipt-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1eee7; font-size: .92rem; }
.mch-receipt-rows dt { color: var(--mch-muted); }
.mch-receipt-rows dd { margin: 0; font-weight: 700; text-align: left; }
.mch-receipt .mch-alert { margin: 16px 26px 0; }
.mch-receipt-actions { display: flex; gap: 10px; justify-content: center; padding: 22px 26px 28px; flex-wrap: wrap; }

/* ---------- auth ---------- */
.mch-app-page .entry-title, .mch-app-page .page-header { display: none; }
.mch-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 40px auto; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--mch-shadow-lg); }
.mch-auth-side { background: radial-gradient(circle at 100% 0%, rgba(242, 165, 65, .45), transparent 40%), linear-gradient(160deg, var(--mch-primary), var(--mch-primary-dark)); color: #fff; padding: 44px; display: flex; align-items: center; }
.mch-auth-side .mch-brand, .mch-auth-side .mch-brand small { color: #fff !important; }
.mch-auth-side h2 { color: #fff; font-size: 1.6rem; margin: 24px 0 16px; }
.mch-checks { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 20px; }
.mch-checks li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .18); margin-inline-end: 8px; font-size: .75rem; }
.mch-auth-main { padding: 44px; }
.mch-auth-main h1 { font-size: 1.5rem; margin: 0 0 6px; }
.mch-auth-main .mch-muted { margin-bottom: 22px; }
.mch-otp-input { text-align: center; font-size: 1.6rem !important; letter-spacing: 12px; font-weight: 800 !important; }

/* ---------- panel ---------- */
.mch-app-page .site-main, .mch-app-page main#content { max-width: none !important; padding: 0 !important; }
.mch-app-page .page-content { max-width: none; }
.mch-panel { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 72px); max-width: 1440px; margin: 0 auto; }
.mch-panel-nav { background: #fff; border-inline-end: 1px solid var(--mch-line); padding: 22px 14px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; }
.mch-panel-user { display: flex; gap: 12px; align-items: center; padding: 4px 10px 20px; border-bottom: 1px solid var(--mch-line); margin-bottom: 14px; }
.mch-panel-user div { display: flex; flex-direction: column; }
.mch-panel-user small { color: var(--mch-muted); }
.mch-nav-group { margin-bottom: 14px; }
.mch-nav-group > span { display: block; font-size: .72rem; font-weight: 800; color: var(--mch-muted); padding: 6px 12px; letter-spacing: .3px; }
.mch-panel-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--mch-ink); text-decoration: none; font-size: .92rem; font-weight: 500; margin-bottom: 2px; }
.mch-panel-nav a:hover { background: var(--mch-bg); }
.mch-panel-nav a.is-active { background: var(--mch-primary-soft); color: var(--mch-primary-dark); font-weight: 700; }
.mch-panel-nav a em { margin-inline-start: auto; background: var(--mch-accent); color: #3b2504; font-style: normal; font-size: .72rem; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.mch-nav-logout { color: var(--mch-red) !important; margin-top: 10px; }
.mch-panel-main { padding: 28px 32px 60px; min-width: 0; }
.mch-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mch-panel-head h1 { font-size: 1.5rem; margin: 0; }
.mch-panel-toggle { display: none; border: 0; background: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 1.2rem; box-shadow: var(--mch-shadow); cursor: pointer; }
.mch-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.mch-kpi { background: #fff; border-radius: var(--mch-radius); padding: 16px 18px; box-shadow: var(--mch-shadow); display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(231, 226, 216, .6); }
.mch-kpi span { font-size: .8rem; color: var(--mch-muted); }
.mch-kpi b { font-size: 1.25rem; font-weight: 900; color: var(--mch-primary-dark); }
.mch-kpi small { font-size: .75rem; color: var(--mch-muted); }
.mch-kpis-sm .mch-kpi { box-shadow: none; background: var(--mch-bg); }
.mch-kpis-sm .mch-kpi b { font-size: 1rem; }
.mch-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.mch-quick a { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--mch-radius); background: #fff; color: var(--mch-ink); text-decoration: none; font-weight: 600; box-shadow: var(--mch-shadow); transition: .2s; font-size: .9rem; }
.mch-quick a:hover { background: var(--mch-primary); color: #fff; }
.mch-quick .mch-ic { width: 26px; height: 26px; color: var(--mch-primary); }
.mch-quick a:hover .mch-ic { color: #fff; }
.mch-member-card { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 22px; color: #fff; margin-bottom: 18px; background: radial-gradient(circle at 100% 0%, rgba(242, 165, 65, .5), transparent 40%), linear-gradient(135deg, var(--mch-primary-dark), var(--mch-primary)); box-shadow: var(--mch-shadow-lg); }
.mch-member-card .mch-brand span { display: none; }
.mch-member-card .mch-brand img { width: 56px; height: 56px; }
.mch-member-card-body { display: flex; flex-direction: column; }
.mch-member-card-body small { opacity: .75; }
.mch-member-card-body b { font-size: 1.25rem; }
.mch-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.mch-todo a { display: flex; gap: 10px; align-items: center; background: #fff5e3; border: 1px solid #f6dcac; color: #7a4a06; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: .88rem; }
.mch-todo a.warn { background: #fbeae7; border-color: #f2c6bd; color: #8c2b1c; }
.mch-mgr { margin-bottom: 8px; }
.mch-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mch-plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mch-plan-head b { font-size: 1.2rem; }
.mch-plan-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mch-filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fff; padding: 12px; border-radius: var(--mch-radius); margin-bottom: 14px; box-shadow: var(--mch-shadow); }
.mch-filterbar input, .mch-filterbar select { width: auto !important; flex: 1; min-width: 130px; padding: 8px 12px !important; }
.mch-inline-label { font-size: .85rem; color: var(--mch-muted); }
.mch-summary { font-size: .88rem; color: var(--mch-muted); margin-bottom: 10px; }
.mch-table-wrap { overflow-x: auto; background: #fff; border-radius: var(--mch-radius); box-shadow: var(--mch-shadow); margin-bottom: 16px; }
.mch-card .mch-table-wrap, .mch-case-main .mch-table-wrap { box-shadow: none; }
.mch-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0; }
.mch-table th { text-align: start; font-weight: 700; font-size: .8rem; color: var(--mch-muted); background: #faf8f4; padding: 12px 14px; border-bottom: 1px solid var(--mch-line); white-space: nowrap; }
.mch-table td { padding: 12px 14px; border-bottom: 1px solid #f1eee7; vertical-align: top; }
.mch-table tfoot th { background: var(--mch-primary-soft); color: var(--mch-primary-dark); }
.mch-table tr.is-hl td { background: #fffaf0; }
.mch-table-compact td, .mch-table-compact th { padding: 9px 12px; }
.mch-row-details summary { cursor: pointer; color: var(--mch-primary); font-size: .85rem; }
.mch-row-details > div { min-width: 260px; padding-top: 8px; }
.mch-row-details .mch-form label { margin-bottom: 8px; }
.mch-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.mch-file-link { font-size: .82rem; display: inline-block; margin-inline-end: 6px; }
.mch-pages { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.mch-pages a, .mch-pages span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; text-decoration: none; font-size: .88rem; box-shadow: var(--mch-shadow); }
.mch-pages .cur { background: var(--mch-primary); color: #fff; }
.mch-list { list-style: none; padding: 0; margin: 0 0 10px; }
.mch-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1eee7; font-size: .9rem; }
.mch-votes { list-style: none; padding: 0; display: grid; gap: 8px; }
.mch-votes li { background: var(--mch-bg); padding: 10px 14px; border-radius: 12px; }
.mch-votes p { margin: 6px 0 0; font-size: .88rem; }
.mch-cview-head { display: grid; gap: 14px; }
.mch-cview-head h2 { margin: 0 0 8px; font-size: 1.3rem; }
.mch-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mch-staff-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.mch-staff-head div { display: flex; flex-direction: column; }
.mch-staff-head small { color: var(--mch-muted); }
.mch-staff .mch-perms { grid-template-columns: 1fr; }
.mch-gift-row { display: grid; gap: 10px; }
.mch-gift-main { font-size: .9rem; line-height: 1.9; }
.mch-delivery { background: var(--mch-bg); padding: 12px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.9; }
.mch-delivery .mch-ic { width: 16px; height: 16px; vertical-align: middle; margin-inline-end: 4px; }

/* bars & charts */
.mch-bars-h { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mch-bars-h li { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.mch-bars-h i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--mch-primary), #0f8a72); width: var(--w); min-width: 4px; }
.mch-bars-h b { font-size: .82rem; white-space: nowrap; }
.mch-chart-legend { display: flex; gap: 16px; font-size: .8rem; margin-bottom: 10px; }
.mch-chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.mch-chart-legend .a::before { background: var(--mch-primary); }
.mch-chart-legend .b::before { background: var(--mch-accent); }
.mch-chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 10px; border-bottom: 1px solid var(--mch-line); }
.mch-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.mch-chart-pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.mch-chart-pair i { display: block; width: 40%; max-width: 18px; border-radius: 5px 5px 0 0; min-height: 2px; }
.mch-chart-pair i.a { background: var(--mch-primary); }
.mch-chart-pair i.b { background: var(--mch-accent); }
.mch-chart-col small { font-size: .65rem; color: var(--mch-muted); margin-top: 6px; white-space: nowrap; transform: translateY(100%); position: absolute; }
.mch-chart-col { position: relative; }
.mch-chart { padding-bottom: 22px; }
.mch-transparency .mch-h { margin-top: 34px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.mch-cgrid, .mch-cols-4, .mch-impacts { grid-template-columns: repeat(2, 1fr); }
	.mch-case { grid-template-columns: 1fr; }
	.mch-sticky { position: static; }
	.mch-kpis, .mch-quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.mch-burger { display: block; }
	.mch-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--mch-line); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
	.mch-nav.is-open { transform: none; }
	.mch-menu { flex-direction: column; }
	.mch-header-actions .mch-btn-ghost { display: none; }
	.mch-footer-grid { grid-template-columns: 1fr 1fr; }
	.mch-panel { grid-template-columns: 1fr; }
	.mch-panel-nav { position: fixed; inset: 72px auto 0 0; inset-inline-start: 0; width: 280px; z-index: 40; transform: translateX(110%); transition: transform .3s; box-shadow: var(--mch-shadow-lg); height: auto; }
	.mch-panel.nav-open .mch-panel-nav { transform: none; }
	.mch-panel-toggle { display: grid; place-items: center; }
	.mch-panel-main { padding: 20px 16px 50px; }
	.mch-auth { grid-template-columns: 1fr; margin: 16px; }
	.mch-auth-side { padding: 28px; }
	.mch-auth-main { padding: 28px 22px; }
}
@media (max-width: 640px) {
	.mch-cgrid, .mch-cols-2, .mch-cols-4, .mch-impacts, .mch-grid2, .mch-grid3, .mch-donors, .mch-perms { grid-template-columns: 1fr; }
	.mch-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
	.mch-stat:nth-child(3)::before { display: none; }
	.mch-designs { grid-template-columns: repeat(2, 1fr); }
	.mch-footer-grid { grid-template-columns: 1fr; }
	.mch-header-in { gap: 10px; min-height: 64px; }
	.mch-brand small { display: none; }
	.mch-bars-h li { grid-template-columns: 1fr auto; }
	.mch-bars-h i { grid-column: 1 / -1; grid-row: 2; }
	.mch-case-main { padding: 18px; }
	.mch-gcard h2 { font-size: 1.6rem; }
	.mch-gcard-body { padding: 22px 20px 24px; }
}

@media print {
	.mch-header, .mch-footer, .mch-receipt-actions, .mch-page-hero { display: none !important; }
	.mch-receipt { box-shadow: none; }
	.mch-page-body { margin: 0; }
}

/* ==========================================================================
   v1.1 — brand refresh (logo palette: green #015446, coral #f25c4f)
   ========================================================================== */
::selection { background: rgba(242, 92, 79, .22); }
body.mch-site { background: radial-gradient(1200px 600px at 100% -10%, rgba(4, 107, 88, .06), transparent 60%), var(--mch-bg); }

/* logo */
.mch-brand img { width: auto; height: auto; }
.mch-brand .mch-logo-full { height: 48px; width: auto; display: block; }
.mch-header .mch-brand .mch-logo-full { height: 50px; transition: height .25s; }
.mch-header.is-scrolled .mch-brand .mch-logo-full { height: 40px; }
.mch-footer .mch-brand .mch-logo-full { height: 58px; margin-bottom: 8px; }
.mch-brand .mch-logo-icon { height: 56px; width: auto; display: block; }
.mch-bankcard-logo .mch-logo-icon { height: 38px; }
.mch-member-card .mch-logo-icon { height: 64px; }
.mch-card-cta .mch-logo-icon { height: 72px; }

/* header */
.mch-header { transition: box-shadow .25s, background .25s; }
.mch-header.is-scrolled { box-shadow: 0 8px 30px rgba(1, 84, 70, .08); background: rgba(255, 255, 255, .97); }
.mch-header.is-scrolled .mch-header-in { min-height: 62px; }
.mch-header-in { transition: min-height .25s; }
.mch-menu a { position: relative; }
.mch-menu a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--mch-accent); transform: scaleX(0); transition: transform .25s; }
.mch-menu a:hover::after, .mch-menu .current-menu-item > a::after { transform: scaleX(1); }
.mch-user-btn { gap: 6px; padding-inline-start: 6px; }
.mch-avatar-xs { width: 26px; height: 26px; font-size: .75rem; }

/* buttons */
.mch-btn { background: linear-gradient(135deg, var(--mch-primary), var(--mch-primary-dark)); }
.mch-btn-accent { background: linear-gradient(135deg, #f7735f, var(--mch-accent) 50%, var(--mch-accent-dark)); color: #fff !important; box-shadow: 0 6px 18px rgba(242, 92, 79, .28); }
.mch-btn-accent:hover { background: linear-gradient(135deg, #f25c4f, var(--mch-accent-dark)); box-shadow: 0 10px 24px rgba(242, 92, 79, .38); }
.mch-btn-ghost, .mch-btn-danger-ghost { background: transparent; }
.mch-btn-ghost:hover { background: var(--mch-primary-soft); }
.mch-btn:focus-visible, .mch-tab:focus-visible, .mch-chip:focus-visible { outline: 3px solid rgba(242, 92, 79, .45); outline-offset: 2px; }

/* floating donate (mobile) */
.mch-fab { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; color: #fff !important; text-decoration: none !important; font-weight: 800; background: linear-gradient(135deg, #f7735f, var(--mch-accent-dark)); box-shadow: 0 12px 30px rgba(242, 92, 79, .45); animation: mch-fab-in .6s .8s both; }
.mch-fab span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .22); animation: mch-beat 1.6s infinite; }
@keyframes mch-fab-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes mch-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

/* footer */
.mch-footer { background: radial-gradient(800px 300px at 90% 0%, rgba(242, 92, 79, .18), transparent 60%), linear-gradient(160deg, #015446, #013a31); position: relative; overflow: hidden; }
.mch-footer::before { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-start: -160px; bottom: -220px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .03); }
.mch-footer h4 { position: relative; padding-bottom: 10px; }
.mch-footer h4::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--mch-accent); }

/* stats */
.mch-stat b { background: linear-gradient(135deg, var(--mch-primary-dark), var(--mch-primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* cards */
.mch-ccard { border-radius: 22px; }
.mch-ccard-tag { backdrop-filter: blur(6px); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.mch-ccard-done { background: linear-gradient(135deg, #f25c4f, #d9473b); }
.mch-progress span { background: linear-gradient(90deg, var(--mch-primary), #0f8a72 70%, #34b39a); position: relative; overflow: hidden; }
.mch-progress span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(100%); animation: mch-shine 2.6s infinite; }
@keyframes mch-shine { to { transform: translateX(-100%); } }
.mch-impact-card { border-top-color: var(--mch-accent); }
.mch-impact-card::after { content: ""; position: absolute; inset-inline-end: 16px; top: 16px; width: 34px; height: 34px; background: url("../img/logo-icon-64.png") center/contain no-repeat; opacity: .25; }

/* page hero (plugin routes) */
.mch-page-hero { background: radial-gradient(600px 260px at 10% 0%, rgba(242, 92, 79, .25), transparent 60%), linear-gradient(135deg, #013a31, var(--mch-primary-dark) 45%, var(--mch-primary)); position: relative; overflow: hidden; }
.mch-page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; inset-inline-end: -80px; top: -60px; background: url("../img/logo-icon-white.png") center/contain no-repeat; opacity: .06; }

/* bank card in brand colours */
.mch-bankcard { background: radial-gradient(circle at 85% 0%, rgba(242, 92, 79, .55), transparent 45%), radial-gradient(circle at 0% 100%, rgba(15, 138, 114, .7), transparent 55%), linear-gradient(135deg, #015446, #012e27); }

/* reveal on scroll */
.mch-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.mch-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mch-reveal { opacity: 1; transform: none; } .mch-progress span::after, .mch-fab span { animation: none; } }

/* ---------- auth (login + staff) ---------- */
.mch-auth-page { padding: 30px 16px 60px; }
.mch-auth { grid-template-columns: 1.05fr 1fr; max-width: 1040px; border-radius: 30px; box-shadow: 0 40px 80px rgba(1, 84, 70, .18); }
.mch-auth-side { position: relative; overflow: hidden; padding: 48px; background: radial-gradient(500px 300px at 100% 0%, rgba(242, 92, 79, .4), transparent 60%), linear-gradient(160deg, #046b58, #015446 55%, #012e27); }
.mch-auth-staff .mch-auth-side { background: radial-gradient(500px 300px at 100% 0%, rgba(242, 92, 79, .3), transparent 60%), linear-gradient(160deg, #1e2a3a, #142033 55%, #0b1422); }
.mch-auth-side::after { content: ""; position: absolute; width: 380px; height: 380px; inset-inline-start: -120px; bottom: -140px; background: url("../img/logo-icon-white.png") center/contain no-repeat; opacity: .07; }
.mch-auth-side-in { position: relative; z-index: 1; }
.mch-auth-side .mch-logo-full { height: 62px; }
.mch-auth-kicker { display: inline-block; margin-top: 28px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-size: .78rem; font-weight: 700; letter-spacing: .3px; }
.mch-auth-side h2 { margin: 12px 0 18px; font-size: 1.7rem; line-height: 1.5; font-weight: 900; }
.mch-checks li { padding: 2px 0; }
.mch-checks li::before { background: var(--mch-accent); }
.mch-auth-main { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.mch-auth-switch { display: flex; background: var(--mch-bg); border-radius: 14px; padding: 4px; margin-bottom: 26px; }
.mch-auth-switch a { flex: 1; text-align: center; padding: 10px; border-radius: 11px; text-decoration: none; color: var(--mch-muted); font-weight: 700; font-size: .9rem; transition: .2s; }
.mch-auth-switch a.is-active { background: #fff; color: var(--mch-primary-dark); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.mch-auth-staff .mch-auth-switch a.is-active { color: #142033; }
.mch-auth-main h1 { font-size: 1.6rem; font-weight: 900; }
.mch-or { display: flex; align-items: center; gap: 12px; color: var(--mch-muted); font-size: .8rem; margin: 18px 0; }
.mch-or::before, .mch-or::after { content: ""; flex: 1; height: 1px; background: var(--mch-line); }
.mch-pass { position: relative; display: block; }
.mch-pass-toggle { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; opacity: .55; font-size: 1rem; }
.mch-auth-done { grid-template-columns: 1fr; max-width: 520px; }
.mch-auth-done .mch-auth-main { align-items: center; gap: 8px; }
.mch-auth-done .mch-logo-icon { height: 90px; }

/* ---------- panel ---------- */
.mch-panel-nav { background: linear-gradient(180deg, #fff, #fbfaf6); }
.mch-panel-nav a.is-active { position: relative; background: linear-gradient(90deg, transparent, var(--mch-primary-soft)); }
.mch-panel-nav a.is-active::before { content: ""; position: absolute; inset-inline-start: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--mch-accent); }
.mch-panel-nav a.is-active .mch-ic { color: var(--mch-accent); }
.mch-panel-nav a em { background: var(--mch-accent); color: #fff; }
.mch-panel-user .mch-avatar { background: linear-gradient(135deg, var(--mch-primary), var(--mch-primary-dark)); color: #fff; }
.mch-hello { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 28px; margin-bottom: 18px; border-radius: 24px; color: #fff; background: radial-gradient(500px 220px at 0% 0%, rgba(242, 92, 79, .35), transparent 60%), linear-gradient(135deg, #013a31, var(--mch-primary-dark) 50%, var(--mch-primary)); box-shadow: var(--mch-shadow-lg); }
.mch-hello::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -40px; top: -50px; background: url("../img/logo-icon-white.png") center/contain no-repeat; opacity: .08; }
.mch-hello h2 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; font-weight: 900; }
.mch-hello p { margin: 0; opacity: .85; font-size: .9rem; }
.mch-hello .mch-btn-row { position: relative; z-index: 1; }
.mch-hello .mch-btn-ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.mch-hello .mch-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.mch-kpi { position: relative; overflow: hidden; transition: transform .2s; }
.mch-kpi:hover { transform: translateY(-2px); }
.mch-kpi::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--mch-primary), var(--mch-accent)); opacity: .8; }
.mch-quick a { border: 1px solid rgba(231, 226, 216, .7); }
.mch-quick a:hover { background: linear-gradient(135deg, var(--mch-primary), var(--mch-primary-dark)); }
.mch-member-card { background: radial-gradient(circle at 100% 0%, rgba(242, 92, 79, .45), transparent 40%), linear-gradient(135deg, #012e27, var(--mch-primary)); }
.mch-table tbody tr { transition: background .15s; }
.mch-table tbody tr:hover td { background: #fbfaf6; }

/* gift + receipt accents */
.mch-step h3 span { background: linear-gradient(135deg, var(--mch-accent), var(--mch-accent-dark)); }
.mch-receipt-icon { background: linear-gradient(135deg, var(--mch-primary), var(--mch-primary-dark)); box-shadow: 0 10px 24px rgba(4, 107, 88, .3); }

@media (max-width: 960px) {
	.mch-fab { display: inline-flex; }
	.mch-header .mch-brand .mch-logo-full { height: 40px; }
	.mch-auth-side { padding: 30px; }
	.mch-auth-side h2 { font-size: 1.3rem; }
	.mch-auth-side .mch-checks, .mch-auth-side .mch-muted-l { display: none; }
	.mch-auth-main { padding: 28px 22px; }
	.mch-hello { padding: 20px; }
}
@media (max-width: 640px) {
	.mch-header .mch-brand .mch-logo-full { height: 34px; }
	.mch-header-actions .mch-btn-accent { padding: 7px 12px; }
}
@media print { .mch-fab { display: none !important; } }

/* ==========================================================================
   v1.2 — button hardening (theme reset.css + Elementor kit style every <button>)
   ========================================================================== */
body.mch-site .mch-header .mch-burger { display: none; background: none; border: 0; border-radius: 10px; padding: 8px; margin: 0; color: var(--mch-ink); box-shadow: none; width: auto; height: auto; }
body.mch-site .mch-header .mch-burger:hover, body.mch-site .mch-header .mch-burger:focus { background: var(--mch-primary-soft); color: var(--mch-ink); }
body.mch-site .mch-header .mch-burger span { background: var(--mch-ink); }
body.mch-site .mch-header .mch-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mch-site .mch-header .mch-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
body.mch-site .mch-header .mch-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
	body.mch-site .mch-header .mch-burger { display: block; }
	body.mch-site .mch-header-actions .mch-user-btn { display: inline-flex; }
}
@media (max-width: 480px) {
	body.mch-site .mch-header-actions .mch-user-btn { font-size: 0; gap: 0; padding: 4px; }
	body.mch-site .mch-header-actions .mch-user-btn .mch-avatar { font-size: .8rem; }
}
.mch-login-btn { min-width: 84px; }

/* plugin <button>s: neutralise theme/kit defaults, keep our look on hover/focus too */
body.mch-site button.mch-btn { border: 0; }
body.mch-site button.mch-btn:not(.mch-btn-accent):not(.mch-btn-ghost):not(.mch-btn-danger-ghost),
body.mch-site button.mch-btn:not(.mch-btn-accent):not(.mch-btn-ghost):not(.mch-btn-danger-ghost):hover,
body.mch-site button.mch-btn:not(.mch-btn-accent):not(.mch-btn-ghost):not(.mch-btn-danger-ghost):focus { background: linear-gradient(135deg, var(--mch-primary), var(--mch-primary-dark)); color: #fff; }
body.mch-site button.mch-btn-accent, body.mch-site button.mch-btn-accent:hover, body.mch-site button.mch-btn-accent:focus { background: linear-gradient(135deg, #f7735f, var(--mch-accent) 50%, var(--mch-accent-dark)); color: #fff; }
body.mch-site button.mch-btn-ghost, body.mch-site button.mch-btn-ghost:focus { background: transparent; color: var(--mch-primary-dark); box-shadow: inset 0 0 0 1.5px var(--mch-primary); }
body.mch-site button.mch-btn-ghost:hover { background: var(--mch-primary-soft); color: var(--mch-primary-dark); }
body.mch-site button.mch-btn-danger-ghost, body.mch-site button.mch-btn-danger-ghost:focus { background: transparent; color: var(--mch-red); box-shadow: inset 0 0 0 1.5px var(--mch-red); }
body.mch-site button.mch-btn-danger-ghost:hover { background: #fbeae7; color: var(--mch-red); }

body.mch-site .mch-tab, body.mch-site .mch-tab:focus { background: transparent; color: var(--mch-muted); border: 0; border-radius: 11px; padding: 10px; box-shadow: none; }
body.mch-site .mch-tab:hover { background: rgba(255, 255, 255, .6); color: var(--mch-ink); }
body.mch-site .mch-tab.is-active, body.mch-site .mch-tab.is-active:hover { background: #fff; color: var(--mch-primary-dark); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
body.mch-site .mch-chip, body.mch-site .mch-chip:focus { background: #fff; color: var(--mch-ink); border: 1.5px solid var(--mch-line); border-radius: 12px; padding: 9px 14px; }
body.mch-site .mch-chip:hover, body.mch-site .mch-chip.is-active { background: var(--mch-primary-soft); color: var(--mch-primary-dark); border-color: var(--mch-primary); }
body.mch-site .mch-panel-toggle, body.mch-site .mch-panel-toggle:hover, body.mch-site .mch-panel-toggle:focus { background: #fff; color: var(--mch-ink); border: 0; border-radius: 10px; padding: 0; }
body.mch-site .mch-linkbtn, body.mch-site .mch-linkbtn:hover, body.mch-site .mch-linkbtn:focus { background: none; border: 0; padding: 0; color: var(--mch-primary); border-radius: 0; }
body.mch-site .mch-pass-toggle, body.mch-site .mch-pass-toggle:hover, body.mch-site .mch-pass-toggle:focus { background: none; border: 0; padding: 4px; color: inherit; }
body.mch-site .mch-share button, body.mch-site .mch-share button:hover, body.mch-site .mch-share button:focus { background: var(--mch-bg); color: var(--mch-ink); border: 0; border-radius: 99px; padding: 5px 12px; }

/* floating "help" button on every screen size (header now holds "login") */
.mch-fab { display: inline-flex; }
@media (min-width: 961px) { .mch-fab { inset-inline-start: 28px; bottom: 28px; padding: 14px 24px; } }
