/* ==========================================================================
   Masjid Bilal CRM: app design
   Deep masjid green and a touch of gold, on calm neutral surfaces.
   ========================================================================== */
.mbc {
	--bg: #f3f5f4;
	--surface: #ffffff;
	--surface-2: #f8faf9;
	--ink: #16201b;
	--ink-2: #33403a;
	--muted: #66736c;
	--line: #e2e8e4;
	--line-2: #edf1ee;
	--brand: #0f3a25;
	--brand-2: #1b5e3b;
	--brand-3: #e8f2ec;
	--gold: #c99a2e;
	--gold-soft: #fbf3df;
	--danger: #b42318;
	--danger-soft: #fdecea;
	--warn: #b54708;
	--warn-soft: #fef4e6;
	--ok: #1b7a46;
	--ok-soft: #e7f5ec;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 1px 3px rgba(16, 24, 20, .04);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
.mbc *, .mbc *::before, .mbc *::after { box-sizing: border-box; }
.mbc a { color: var(--brand-2); text-decoration: none; }
.mbc a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.mbc :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mbc h1, .mbc h2, .mbc h3, .mbc h4 { color: var(--ink); font-family: var(--font); letter-spacing: -0.01em; }
.mbc .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mbc-ico { width: 18px; height: 18px; flex: none; }

/* ---------- App shell ---------- */
body.mbc-app-body { margin: 0; background: #f3f5f4; }
.mbc-app { min-height: 100vh; background: var(--bg); }
.mbc-side {
	position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 30;
	display: flex; flex-direction: column;
	background: var(--brand); color: #d7e5dc;
	padding: 18px 12px 12px;
}
.mbc-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff !important; text-decoration: none !important; }
.mbc-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.mbc-brand small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.mbc-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--gold); color: var(--brand); }
.mbc-brand__mark .mbc-ico { width: 20px; height: 20px; }
.mbc-brand__mark--lg { width: 52px; height: 52px; border-radius: 12px; margin: 0 auto 10px; }
.mbc-side__nav { flex: 1; overflow-y: auto; }
.mbc-side__group { margin: 18px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fb19d; }
.mbc-side__link {
	position: relative; display: flex; align-items: center; gap: 10px;
	margin: 1px 0; padding: 8px 10px; border-radius: 8px;
	color: #d7e5dc !important; font-size: 14px; font-weight: 500; text-decoration: none !important;
}
.mbc-side__link:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.mbc-side__link.is-current { background: rgba(255, 255, 255, .12); color: #fff !important; font-weight: 600; }
.mbc-side__link.is-current::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.mbc-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; }
.mbc-side__foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.mbc-user { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .15); }
.mbc-user__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-2); color: #fff; font-weight: 700; font-size: 13px; }
.mbc-user__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 13px; font-weight: 600; }
.mbc-user__out { color: #b9cfc2 !important; display: grid; place-items: center; }
.mbc-user__out:hover { color: #fff !important; }

.mbc-main { margin-left: 248px; min-width: 0; overflow-x: clip; }
.mbc-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 16px;
	padding: 14px 28px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.mbc-top__menu { display: none; border: 0; background: none; padding: 6px; color: var(--ink); cursor: pointer; }
.mbc-top__title { min-width: 0; flex: 1; }
.mbc-top__title h1 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; }
.mbc-top__title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.mbc-top__tools { display: flex; align-items: center; gap: 10px; }
.mbc-search { position: relative; display: flex; align-items: center; margin: 0; }
.mbc-search .mbc-ico { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.mbc .mbc-search input[type=search] { width: 320px; min-height: 38px; padding: 8px 12px 8px 36px; border-radius: 8px; background: var(--surface-2); }
.mbc-new { position: relative; }
.mbc-new > summary { list-style: none; }
.mbc-new > summary::-webkit-details-marker { display: none; }
.mbc-new__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(16, 24, 20, .14); z-index: 40; }
.mbc-new__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; color: var(--ink) !important; font-weight: 500; text-decoration: none !important; }
.mbc-new__menu a:hover { background: var(--surface-2); }
.mbc-content { padding: 24px 28px 48px; max-width: 1320px; }
.mbc-scrim { display: none; }

/* ---------- Building blocks ---------- */
.mbc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 20px; overflow: hidden; }
.mbc-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); cursor: default; }
.mbc-card__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.mbc-card__link { font-size: 13px; font-weight: 600; }
.mbc-card__body { padding: 16px 18px; }
.mbc-card--fold > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.mbc-card--fold[open] > summary { border-bottom: 1px solid var(--line-2); }
.mbc-card--fold > summary::-webkit-details-marker { display: none; }
.mbc-card .mbc-table-wrap { border: 0; border-radius: 0; margin: -16px -18px; }
.mbc-muted, .mbc-meta { color: var(--muted); font-size: 13px; }
.mbc-muted { margin: 0 0 12px; }

.mbc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px; margin: 0 0 20px; }
.mbc-kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink) !important; text-decoration: none !important; }
.mbc-kpi:hover { border-color: #c8d6ce; box-shadow: 0 4px 12px rgba(16, 24, 20, .07); }
.mbc-kpi span { font-size: 13px; color: var(--muted); font-weight: 500; }
.mbc-kpi strong { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mbc-kpi small { font-size: 12px; color: var(--muted); }

.mbc-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* Needs attention */
.mbc-issues { list-style: none; margin: -16px -18px; padding: 0; }
.mbc-issue { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.mbc-issue:last-child { border-bottom: 0; }
.mbc-issue__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.mbc-issue--urgent .mbc-issue__dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.mbc-issue--fix .mbc-issue__dot { background: #e08a00; box-shadow: 0 0 0 3px var(--warn-soft); }
.mbc-issue--setup .mbc-issue__dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.mbc-issue--review .mbc-issue__dot { background: #8aa597; box-shadow: 0 0 0 3px var(--line-2); }
.mbc-issue__body strong { font-size: 14px; font-weight: 600; }
.mbc-issue p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mbc-issue__count { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mbc-issue__go { white-space: nowrap; font-size: 13px; font-weight: 600; padding-top: 1px; }

/* Feeds (gifts, forms, activity) */
.mbc-feed { list-style: none; margin: -16px -18px; padding: 0; }
.mbc-feed li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.mbc-feed li:last-child { border-bottom: 0; }
.mbc-feed li > div, .mbc-feed li > a { display: flex; flex-direction: column; min-width: 0; }
.mbc-feed li > a { color: inherit !important; text-decoration: none !important; }
.mbc-feed li > a:hover strong { color: var(--brand-2); }
.mbc-feed strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.mbc-feed span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbc-feed time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mbc-amount { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ok); }

.mbc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.mbc-dl dt { font-weight: 600; color: var(--muted); }
.mbc-dl dd { margin: 0; }

/* ---------- Tables ---------- */
.mbc-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mbc-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.mbc-table th, .mbc-table td { padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.mbc-table th { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.mbc-table tbody tr:last-child td { border-bottom: 0; }
.mbc-table tbody tr:hover { background: #fafcfb; }
.mbc-table td a { font-weight: 600; color: var(--ink) !important; }
.mbc-table td a:hover { color: var(--brand-2) !important; }
.mbc-table td[data-label="Amount"] { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.mbc-col-check { width: 40px; }
.mbc-nowrap { white-space: nowrap; }

/* ---------- Chips ---------- */
.mbc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.mbc-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.mbc-chip--subscribed { background: var(--ok-soft); color: var(--ok); }
.mbc-chip--unsubscribed { background: #eef1ef; color: #4b5852; }
.mbc-chip--bounced, .mbc-chip--invalid { background: var(--warn-soft); color: var(--warn); }
.mbc-chip--none { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.mbc-chip--none::before { display: none; }

/* ---------- Buttons & fields ---------- */
.mbc-btn, .mbc .mbc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 38px; padding: 8px 14px; border: 1px solid var(--brand-2); border-radius: 8px;
	background: var(--brand-2); color: #fff !important; font: 600 14px/1.2 var(--font);
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.mbc-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.mbc-btn .mbc-ico { width: 16px; height: 16px; }
.mbc .mbc-btn--quiet, .mbc-btn--quiet { background: var(--surface); color: var(--ink-2) !important; border-color: var(--line); }
.mbc .mbc-btn--quiet:hover, .mbc-btn--quiet:hover { background: var(--surface-2); color: var(--ink) !important; border-color: #cdd8d1; }
.mbc .mbc-btn--danger, .mbc-btn--danger { background: var(--surface); color: var(--danger) !important; border-color: #f2c4bf; }
.mbc .mbc-btn--danger:hover, .mbc-btn--danger:hover { background: var(--danger); color: #fff !important; border-color: var(--danger); }
.mbc-link { font-weight: 600; font-size: 14px; }

.mbc-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; margin: 0; }
.mbc-field--grow { flex: 1 1 260px; }
.mbc-field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mbc input[type=text], .mbc input[type=email], .mbc input[type=tel], .mbc input[type=search], .mbc input[type=date], .mbc input[type=number], .mbc input[type=password], .mbc select, .mbc textarea {
	width: 100%; min-height: 40px; padding: 8px 12px;
	border: 1px solid var(--line); border-radius: 8px;
	background: var(--surface); color: var(--ink); font: 400 14px/1.4 var(--font);
	box-shadow: inset 0 1px 1px rgba(16, 24, 20, .03);
}
.mbc input:hover, .mbc select:hover, .mbc textarea:hover { border-color: #cdd8d1; }
.mbc input:focus, .mbc select:focus, .mbc textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(27, 94, 59, .15); }
.mbc input:disabled, .mbc select:disabled, .mbc textarea:disabled { background: var(--surface-2); color: var(--ink-2); }
.mbc textarea { min-height: 0; }
.mbc-check { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; font-size: 14px; }
.mbc-check input { width: 16px; height: 16px; accent-color: var(--brand-2); }

.mbc-filters, .mbc-row, .mbc-bulkbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.mbc-filters { margin: 0 0 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mbc-bulkbar { margin-top: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mbc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.mbc-count { margin: 0 auto 0 0; font-weight: 600; color: var(--ink-2); }
.mbc-inline { display: inline; margin: 0; }
.mbc-summary { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.mbc-summary a { color: var(--ink-2); font-weight: 600; }

.mbc-flash { margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-weight: 500; }
.mbc-flash--ok { background: var(--ok-soft); border-color: #bfe3cc; color: #135a33; }
.mbc-flash--err { background: var(--danger-soft); border-color: #f4c7c2; color: #8a1c13; }
.mbc-empty { padding: 36px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

.mbc-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.mbc-pager a, .mbc-pager span { min-width: 34px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.mbc-pager span[aria-current] { background: var(--brand-2); border-color: var(--brand-2); color: #fff !important; }

/* Record / contact pages */
.mbc-subtitle { margin: 4px 0 6px; font-size: 20px; font-weight: 700; }
.mbc-form { display: flex; flex-direction: column; gap: 16px; max-width: 860px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mbc-form > .mbc-btn { align-self: flex-start; }
.mbc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mbc-field--email, .mbc-field--street1 { grid-column: span 2; }
.mbc-groups { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; }
.mbc-groups legend { font-weight: 600; font-size: 13px; padding: 0 4px; color: var(--ink-2); }
.mbc-panel { margin-top: 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 860px; }
.mbc-panel h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.mbc-panel--danger { border-color: #f2d0cc; }
.mbc-duplist, .mbc-giftlist { margin: 0 0 12px; padding-left: 18px; }
.mbc-giftlist li { margin: 4px 0; }
.mbc-answers { margin: 0 0 20px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 860px; }
.mbc-dl .mbc-dl__head { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--brand-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

/* Donations: one card per fund */
.mbc-funds { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0 0 18px; }
.mbc-fund { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink) !important; text-decoration: none !important; }
.mbc-fund span { font-size: 13px; font-weight: 500; color: var(--muted); }
.mbc-fund strong { font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.mbc-fund small { color: var(--muted); font-size: 12px; }
.mbc-fund:hover, .mbc-fund.is-current { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(27, 94, 59, .12); }
.mbc-trend { font-weight: 700; font-size: 12px; } .mbc-trend--up { color: var(--ok); } .mbc-trend--down { color: var(--danger); }

/* Sign-in */
.mbc-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 50% -10%, #e3efe7 0%, var(--bg) 60%); }
.mbc-login__card { width: 100%; max-width: 400px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16, 24, 20, .1); text-align: center; }
.mbc-login__card h1 { margin: 0 0 4px; font-size: 22px; }
.mbc-login__card > p { margin: 0 0 18px; color: var(--muted); }
.mbc-login form { text-align: left; }
.mbc-login form p { margin: 0 0 12px; }
.mbc-login label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mbc-login .login-remember label { display: inline-flex; gap: 6px; font-weight: 500; }
.mbc-login input[type=submit] { width: 100%; min-height: 42px; border: 0; border-radius: 8px; background: var(--brand-2); color: #fff; font: 600 15px var(--font); cursor: pointer; }
.mbc-login input[type=submit]:hover { background: var(--brand); }
.mbc-login__lost { margin: 14px 0 0 !important; font-size: 13px; }

.mbc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mbc-signup { max-width: 640px; }
.mbc-signup .mbc-grid { margin-bottom: 12px; }

/* Status chips for gifts and form entries; shortcodes shown quietly */
.mbc-st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mbc-st--completed, .mbc-st--done { background: var(--ok-soft); color: var(--ok); }
.mbc-st--pending, .mbc-st--in_review { background: var(--warn-soft); color: var(--warn); }
.mbc-st--new { background: #e6efff; color: #1d4ed8; }
.mbc-st--refunded, .mbc-st--failed, .mbc-st--cancelled { background: var(--danger-soft); color: var(--danger); }
.mbc-st--archived, .mbc-st--started { background: #eef1ef; color: #4b5852; }
.mbc-table code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: 12px; }
.mbc-newcount { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 999px; background: #e6efff; color: #1d4ed8; font-weight: 700; font-size: 12px; text-align: center; }

/* The top bar already shows these titles. */
.mbc-app .mbc-repeat { display: none; }
.mbc-content > p:first-child .mbc-link { font-size: 13px; }

.mbc-card--attention { scroll-margin-top: 90px; }
.mbc-card--attention:target { box-shadow: 0 0 0 3px rgba(201, 154, 46, .45); }

.mbc-muted + .mbc-issues { margin-top: 0; border-top: 1px solid var(--line-2); }

/* ---------- Campaigns ---------- */
.mbc-camp-form { max-width: none; }
.mbc [data-when][hidden] { display: none !important; }
.mbc .mbc-camp-h { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 700; }
.mbc .mbc-camp-h:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.mbc-camp-save { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.mbc-new__item { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.mbc-new__item:hover { background: var(--surface-2); }
.mbc-camp-preview { padding: 14px; border-radius: 10px; background: repeating-linear-gradient(45deg, #f6f8f7 0 10px, #eef2f0 10px 20px); }
.mbc-camp-preview .mbcc { position: static !important; opacity: 1 !important; transform: none !important; width: auto !important; inset: auto !important; display: block; background: none; padding: 0; }
.mbc-camp-preview .mbcc__box { transform: none !important; }
.mbc-camp-preview .mbcc--bar .mbcc__box { border-radius: 8px; }

/* ---------- Chat conversation ---------- */
.mbc-convo { display: flex; flex-direction: column; gap: 10px; }
.mbc-convo__msg { max-width: 85%; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.mbc-convo__msg p { margin: 4px 0 0; white-space: normal; }
.mbc-convo__msg small { color: var(--muted); font-size: 12px; }
.mbc-convo__msg--visitor { align-self: flex-start; }
.mbc-convo__msg--bot { align-self: flex-start; background: #fff; border-style: dashed; }
.mbc-convo__msg--staff { align-self: flex-end; background: var(--ok-soft); border-color: #bfe3cc; }
.mbc-convo[dir=rtl] .mbc-convo__msg--visitor, .mbc-convo[dir=rtl] .mbc-convo__msg--bot { align-self: flex-end; }
.mbc-convo[dir=rtl] .mbc-convo__msg--staff { align-self: flex-start; }

/* ---------- Sign-in ---------- */
.mbc-auth { display: flex; flex-direction: column; gap: 14px; text-align: left; margin: 0; }
.mbc-auth .mbc-field input { min-height: 44px; font-size: 16px; }
.mbc-auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.mbc-auth__row .mbc-check { margin: 0; font-size: 13px; }
.mbc-auth__go { width: 100%; min-height: 46px; font-size: 15px; }
.mbc-login__card .mbc-flash { text-align: left; font-size: 14px; }
.mbc-login__card .mbc-brand__mark .mbc-ico { width: 26px; height: 26px; }

/* ---------- Admin screens inside the app (WordPress admin markup restyled) ---------- */
.mbc-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: fit-content; max-width: 100%; }
.mbc-tabs a { padding: 7px 14px; border-radius: 7px; color: var(--ink-2) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.mbc-tabs a:hover { background: var(--surface-2); }
.mbc-tabs a[aria-current] { background: var(--brand-2); color: #fff !important; }
.mbc-admin .wrap { margin: 0; max-width: 980px; }
.mbc-admin .wrap > h1 { display: none; }
.mbc-admin .wrap > h1 ~ h1 { display: block; margin: 28px 0 10px; font-size: 18px; }
.mbc-admin h2 { margin: 26px 0 10px; font-size: 16px; font-weight: 700; }
.mbc-admin h2:first-child, .mbc-admin .wrap > h1 + h2, .mbc-admin .wrap > h1 + p + h2 { margin-top: 0; }
.mbc-admin p { color: var(--ink-2); font-size: 14px; }
.mbc-admin form { margin: 0 0 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mbc-admin form form, .mbc-admin .mbc-tool form { padding: 0; border: 0; box-shadow: none; margin: 0 0 12px; }
.mbc-admin .mbc-tool { margin: 0 0 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mbc-admin .form-table { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.mbc-admin .form-table th { width: 220px; padding: 12px 16px 12px 0; text-align: left; vertical-align: top; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mbc-admin .form-table td { padding: 8px 0; }
.mbc-admin .form-table tr + tr th, .mbc-admin .form-table tr + tr td { border-top: 1px solid var(--line-2); }
.mbc-admin .regular-text { max-width: 420px; }
.mbc-admin .large-text { max-width: 640px; }
.mbc-admin .description { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.mbc-admin code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 12px; overflow-wrap: anywhere; }
.mbc-admin .submit { margin: 10px 0 0; padding: 0; }
.mbc-admin .button, .mbc-admin input[type=submit] { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; text-decoration: none; }
.mbc-admin .button:hover { background: var(--surface-2); text-decoration: none; }
.mbc-admin .button-primary, .mbc-admin input[type=submit].button-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff !important; }
.mbc-admin .button-primary:hover { background: var(--brand); }
.mbc-admin .button.delete, .mbc-admin input.delete { color: var(--danger); border-color: #f2c4bf; }
.mbc-admin .notice { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand-2); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.mbc-admin .notice p { margin: 4px 0; }
.mbc-admin .notice-success { border-left-color: var(--ok); background: var(--ok-soft); }
.mbc-admin .notice-error { border-left-color: var(--danger); background: var(--danger-soft); }
.mbc-admin .notice-warning { border-left-color: #e08a00; background: var(--warn-soft); }
.mbc-admin .widefat { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.mbc-admin .widefat th, .mbc-admin .widefat td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); text-align: left; }
.mbc-admin .widefat thead th { background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mbc-admin .widefat.striped > tbody > tr:nth-child(odd) { background: #fbfcfb; }
.mbc-admin hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.mbc-admin input[type=file] { max-width: 100%; padding: 10px; border: 1px dashed #c4d2ca; border-radius: 8px; background: var(--surface-2); }
.mbc-admin input[type=radio] { accent-color: var(--brand-2); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
	.mbc-cols { grid-template-columns: minmax(0, 1fr); }
	.mbc .mbc-search input[type=search] { width: 220px; }
}
@media (max-width: 900px) {
	.mbc-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
	.mbc-app.is-menu-open .mbc-side { transform: none; }
	.mbc-app.is-menu-open .mbc-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(10, 20, 15, .4); }
	.mbc-main { margin-left: 0; }
	.mbc-top { padding: 10px 14px; flex-wrap: wrap; }
	.mbc-top__menu { display: grid; place-items: center; }
	.mbc-top__title p { display: none; }
	.mbc-top__tools { width: 100%; }
	.mbc-search { flex: 1; }
	.mbc .mbc-search input[type=search] { width: 100%; }
	.mbc-content { padding: 16px 14px 40px; }
}
@media (max-width: 700px) {
	.mbc-admin .form-table, .mbc-admin .form-table tbody, .mbc-admin .form-table tr, .mbc-admin .form-table th, .mbc-admin .form-table td { display: block; width: 100%; }
	.mbc-admin .form-table th { padding: 12px 0 4px; }
	.mbc-admin .form-table tr + tr td { border-top: 0; }
	.mbc-admin form { padding: 14px; }
	.mbc-admin .widefat { display: block; overflow-x: auto; }
	.mbc-login__card { padding: 26px 18px; }
	.mbc-field--email, .mbc-field--street1 { grid-column: auto; }
	.mbc-table thead { display: none; }
	.mbc-table, .mbc-table tbody, .mbc-table tr, .mbc-table td { display: block; width: 100%; }
	.mbc-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.mbc-table td { border: 0; padding: 3px 14px; }
	.mbc-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
	.mbc-table td:empty { display: none; }
	.mbc-dl { grid-template-columns: 1fr; } .mbc-dl dd { margin-bottom: 8px; }
	.mbc-issue { grid-template-columns: 12px minmax(0, 1fr); }
	.mbc-issue__go { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .mbc * { transition: none !important; } }
