/*
 * Muhuga UI — scoped design system (spec §44, §46, §91).
 * Every rule is scoped under .muhuga-ui, so themes and wp-admin are never restyled. (No @layer: layered
 * styles always lose to un-layered theme/wp-admin CSS, which broke our components.)
 */
.muhuga-ui {
	--mh-bg: #ffffff;
	--mh-surface: #fffbe6;
	--mh-text: #000029;
	--mh-text-muted: rgba(0, 0, 41, 0.62);
	--mh-border: rgba(0, 0, 41, 0.10);
	--mh-border-strong: rgba(0, 0, 41, 0.18);
	--mh-primary: #000029;
	--mh-primary-text: #ffffff;
	--mh-success: #00a14b;
	--mh-success-strong: #007a39;
	--mh-success-soft: rgba(0, 161, 75, 0.08);
	--mh-danger: #dc2626;
	--mh-danger-soft: #fef2f2;
	--mh-warning-soft: #fffbe6;
	--mh-warning-text: #7a5a00;
	--mh-neutral-soft: rgba(0, 0, 41, 0.04);
	--mh-radius-card: 16px;
	--mh-radius-control: 10px;
	--mh-control-height: 44px;
	--mh-shadow: 0 1px 2px rgba(0, 0, 41, 0.04), 0 4px 16px rgba(0, 0, 41, 0.04);
	--mh-focus: 0 0 0 3px rgba(0, 161, 75, 0.35);
	--mh-gap: 16px;

	color: var(--mh-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.muhuga-ui *, .muhuga-ui *::before, .muhuga-ui *::after { box-sizing: border-box; }
.muhuga-ui h2, .muhuga-ui h3, .muhuga-ui h4 { color: var(--mh-text); line-height: 1.25; margin: 0 0 8px; }
.muhuga-ui h2 { font-size: 22px; font-weight: 650; }
.muhuga-ui h3 { font-size: 17px; font-weight: 650; }
.muhuga-ui p { margin: 0 0 12px; }
.muhuga-ui .muhuga-muted { color: var(--mh-text-muted); }
.muhuga-ui .muhuga-small { font-size: 13px; }
.muhuga-ui a { color: var(--mh-primary); text-underline-offset: 3px; }
.muhuga-ui .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.muhuga-ui .muhuga-stack > * + * { margin-top: var(--mh-gap); }
.muhuga-ui .muhuga-grid { display: grid; gap: var(--mh-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.muhuga-ui .muhuga-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.muhuga-ui .muhuga-row--between { justify-content: space-between; }
.muhuga-ui .muhuga-spacer { flex: 1; }

/* Cards */
.muhuga-ui .muhuga-card { background: var(--mh-bg); border: 1px solid var(--mh-border); border-radius: var(--mh-radius-card); padding: 20px; box-shadow: var(--mh-shadow); min-width: 0; }
.muhuga-ui .muhuga-card--soft { background: var(--mh-surface); box-shadow: none; }
.muhuga-ui .muhuga-card--danger { border-color: rgba(220, 38, 38, 0.35); background: var(--mh-danger-soft); box-shadow: none; }
.muhuga-ui .muhuga-stat { display: flex; flex-direction: column; gap: 4px; }
.muhuga-ui .muhuga-stat__label { font-size: 13px; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-stat__value { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.muhuga-ui .muhuga-stat--success .muhuga-stat__value { color: var(--mh-success-strong); }
.muhuga-ui .muhuga-hero { font-size: 20px; font-weight: 650; margin: 0 0 4px; }

/* Buttons: 44px, one dominant action, green only for release/confirm/withdraw */
.muhuga-ui .muhuga-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--mh-control-height); padding: 0 18px; border-radius: var(--mh-radius-control);
	border: 1px solid var(--mh-primary); background: var(--mh-primary); color: var(--mh-primary-text);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.muhuga-ui .muhuga-button:hover { background: #10104a; color: #fff; }
.muhuga-ui .muhuga-button:focus-visible, .muhuga-ui .muhuga-input:focus-visible, .muhuga-ui a:focus-visible, .muhuga-ui [tabindex]:focus-visible { outline: none; box-shadow: var(--mh-focus); }
.muhuga-ui .muhuga-button--success { background: var(--mh-success); border-color: var(--mh-success); color: #fff; }
.muhuga-ui .muhuga-button--success:hover { background: var(--mh-success-strong); }
.muhuga-ui .muhuga-button--secondary { background: var(--mh-bg); color: var(--mh-text); border-color: var(--mh-border-strong); }
.muhuga-ui .muhuga-button--secondary:hover { background: var(--mh-neutral-soft); color: var(--mh-text); }
.muhuga-ui .muhuga-button--danger { background: var(--mh-bg); color: var(--mh-danger); border-color: rgba(220, 38, 38, 0.5); }
.muhuga-ui .muhuga-button--danger:hover { background: var(--mh-danger-soft); color: var(--mh-danger); }
.muhuga-ui .muhuga-button--link { background: transparent; border-color: transparent; color: var(--mh-text); text-decoration: underline; padding: 0 8px; }
.muhuga-ui .muhuga-button--small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.muhuga-ui .muhuga-button[disabled], .muhuga-ui .muhuga-button[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.muhuga-ui .muhuga-button--block { width: 100%; }

/* Forms */
.muhuga-ui .muhuga-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.muhuga-ui .muhuga-field label, .muhuga-ui .muhuga-label { font-weight: 600; font-size: 14px; }
.muhuga-ui .muhuga-input, .muhuga-ui select.muhuga-input, .muhuga-ui textarea.muhuga-input {
	width: 100%; min-height: var(--mh-control-height); padding: 8px 12px; border-radius: var(--mh-radius-control);
	border: 1px solid var(--mh-border-strong); background: #fff; color: var(--mh-text); font: inherit; max-width: 100%;
}
.muhuga-ui textarea.muhuga-input { min-height: 96px; resize: vertical; }
.muhuga-ui .muhuga-input[aria-invalid="true"] { border-color: var(--mh-danger); }
.muhuga-ui .muhuga-help { font-size: 13px; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-error-text { font-size: 13px; color: var(--mh-danger); }
.muhuga-ui .muhuga-choice { display: flex; gap: 10px; align-items: center; min-height: var(--mh-control-height); padding: 8px 12px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-control); cursor: pointer; }
.muhuga-ui .muhuga-choice:has(input:checked) { border-color: var(--mh-primary); background: var(--mh-neutral-soft); }
.muhuga-ui .muhuga-choice input { width: 18px; height: 18px; margin: 0; }

/* Status badges: always text + tone, never colour-only */
.muhuga-ui .muhuga-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mh-neutral-soft); color: var(--mh-text); white-space: nowrap; }
.muhuga-ui .muhuga-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .7; }
.muhuga-ui .muhuga-badge--success { background: var(--mh-success-soft); color: var(--mh-success-strong); }
.muhuga-ui .muhuga-badge--warning { background: var(--mh-warning-soft); color: var(--mh-warning-text); }
.muhuga-ui .muhuga-badge--danger { background: var(--mh-danger-soft); color: var(--mh-danger); }

/* Notices */
.muhuga-ui .muhuga-notice { padding: 12px 16px; border-radius: var(--mh-radius-control); background: var(--mh-surface); border: 1px solid var(--mh-border); }
.muhuga-ui .muhuga-notice--success { background: var(--mh-success-soft); border-color: rgba(0, 161, 75, .3); }
.muhuga-ui .muhuga-notice--error { background: var(--mh-danger-soft); border-color: rgba(220, 38, 38, .3); color: #7f1d1d; }

/* Tables -> stacked rows on mobile */
.muhuga-ui .muhuga-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.muhuga-ui .muhuga-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--mh-text-muted); padding: 10px 12px; border-bottom: 1px solid var(--mh-border); }
.muhuga-ui .muhuga-table td { padding: 12px; border-bottom: 1px solid var(--mh-border); vertical-align: middle; }
.muhuga-ui .muhuga-table tr:last-child td { border-bottom: 0; }
.muhuga-ui .muhuga-num { text-align: right; white-space: nowrap; }
.muhuga-ui .muhuga-table-scroll { overflow-x: auto; }
@media (max-width: 720px) {
	.muhuga-ui .muhuga-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.muhuga-ui .muhuga-table--stack tr { display: block; border-bottom: 1px solid var(--mh-border); padding: 8px 0; }
	.muhuga-ui .muhuga-table--stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 4px; text-align: right; }
	.muhuga-ui .muhuga-table--stack td::before { content: attr(data-label); font-weight: 600; color: var(--mh-text-muted); text-align: left; }
	.muhuga-ui .muhuga-card { padding: 16px; }
}

/* Timeline */
.muhuga-ui .muhuga-timeline { list-style: none; margin: 0; padding: 0; }
.muhuga-ui .muhuga-timeline li { position: relative; padding: 0 0 16px 32px; }
.muhuga-ui .muhuga-timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--mh-border-strong); background: #fff; }
.muhuga-ui .muhuga-timeline li::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--mh-border); }
.muhuga-ui .muhuga-timeline li:last-child::after { display: none; }
.muhuga-ui .muhuga-timeline li.is-done::before { border-color: var(--mh-success); background: var(--mh-success); box-shadow: inset 0 0 0 4px #fff; }
.muhuga-ui .muhuga-timeline li.is-current { font-weight: 650; }
.muhuga-ui .muhuga-timeline li.is-current::before { border-color: var(--mh-primary); }

/* Tabs / nav */
.muhuga-ui .muhuga-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--mh-border); margin-bottom: 20px; scrollbar-width: thin; }
.muhuga-ui .muhuga-tabs a { display: inline-flex; align-items: center; min-height: var(--mh-control-height); padding: 0 14px; text-decoration: none; color: var(--mh-text-muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.muhuga-ui .muhuga-tabs a[aria-current="page"] { color: var(--mh-text); border-bottom-color: var(--mh-primary); }

/* Dialog (fixed header, focus trap via JS, Escape closes) */
.muhuga-dialog-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 41, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100000; }
.muhuga-ui.muhuga-dialog { width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: #fff; border-radius: var(--mh-radius-card); box-shadow: 0 24px 64px rgba(0, 0, 41, .25); }
.muhuga-ui .muhuga-dialog__header { padding: 18px 20px; border-bottom: 1px solid var(--mh-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muhuga-ui .muhuga-dialog__body { padding: 20px; overflow-y: auto; }
.muhuga-ui .muhuga-dialog__footer { padding: 14px 20px; border-top: 1px solid var(--mh-border); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }

/* Toast */
.muhuga-toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 100001; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.muhuga-ui.muhuga-toast { background: var(--mh-primary); color: #fff; padding: 12px 16px; border-radius: var(--mh-radius-control); box-shadow: var(--mh-shadow); }
.muhuga-ui.muhuga-toast--error { background: var(--mh-danger); }

/* Empty / loading */
.muhuga-ui .muhuga-empty { text-align: center; padding: 32px 16px; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-loading { padding: 24px; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-skeleton { background: linear-gradient(90deg, var(--mh-neutral-soft), rgba(0,0,41,.08), var(--mh-neutral-soft)); background-size: 200% 100%; animation: muhuga-shimmer 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes muhuga-shimmer { to { background-position: -200% 0; } }

/* Money */
.muhuga-ui .muhuga-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muhuga-ui .muhuga-money--positive { color: var(--mh-success-strong); }
.muhuga-ui .muhuga-dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; margin: 0; }
.muhuga-ui .muhuga-dl dt { color: var(--mh-text-muted); }
.muhuga-ui .muhuga-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Seller dashboard shell */
.muhuga-ui.muhuga-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.muhuga-ui .muhuga-sidenav { display: flex; flex-direction: column; gap: 2px; }
.muhuga-ui .muhuga-sidenav a { display: flex; align-items: center; min-height: var(--mh-control-height); padding: 0 12px; border-radius: var(--mh-radius-control); text-decoration: none; color: var(--mh-text); font-weight: 550; }
.muhuga-ui .muhuga-sidenav a[aria-current="page"] { background: var(--mh-primary); color: #fff; }
.muhuga-ui .muhuga-sidenav a:hover:not([aria-current="page"]) { background: var(--mh-neutral-soft); }
@media (max-width: 860px) {
	.muhuga-ui.muhuga-shell { grid-template-columns: minmax(0, 1fr); }
	.muhuga-ui .muhuga-sidenav { flex-direction: row; overflow-x: auto; }
	.muhuga-ui .muhuga-sidenav a { white-space: nowrap; }
}

/* Checkout */
.muhuga-ui.muhuga-checkout .muhuga-sources { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.muhuga-ui .muhuga-bar { height: 8px; border-radius: 99px; background: var(--mh-neutral-soft); overflow: hidden; }
.muhuga-ui .muhuga-bar > span { display: block; height: 100%; background: var(--mh-primary); }

@media (prefers-reduced-motion: reduce) {
	.muhuga-ui *, .muhuga-ui *::before, .muhuga-ui *::after { animation: none !important; transition: none !important; }
}

/* ---------------- Seller platform ---------------- */
/* Break out of narrow theme content columns (block themes constrain page content to ~650px). */
.muhuga-ui.muhuga-shell, .muhuga-ui.muhuga-apply, .muhuga-ui.muhuga-store, .muhuga-ui.muhuga-stores {
	--mh-wide: min(1200px, calc(100vw - 32px));
	width: var(--mh-wide); max-width: none !important;
	margin-left: calc(50% - var(--mh-wide) / 2) !important; margin-right: 0 !important;
}
.muhuga-ui.muhuga-apply { --mh-wide: min(1000px, calc(100vw - 32px)); }
.muhuga-ui.muhuga-shell > main, .muhuga-ui .muhuga-form-grid > * { min-width: 0; }
@media (max-width: 720px) {
	.muhuga-ui .muhuga-table--stack, .muhuga-ui .muhuga-table--stack tbody { display: block; width: 100%; }
	.muhuga-ui .muhuga-table--stack td[data-label=""]::before { display: none; }
	.muhuga-ui .muhuga-table--stack td[data-label=""] { justify-content: flex-start; }
	.muhuga-ui .muhuga-table--stack td { flex-wrap: wrap; overflow-wrap: anywhere; }
	.muhuga-ui .muhuga-dash-header .muhuga-row { width: 100%; }
	.muhuga-ui form[role="search"], .muhuga-ui form[role="search"] .muhuga-input { width: 100% !important; }
}
.muhuga-ui .muhuga-center { text-align: center; }
.muhuga-ui .muhuga-sidenav__group { display: block; padding: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-dash-header { padding-bottom: 4px; }
.muhuga-ui h4 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
@media (max-width: 860px) { .muhuga-ui .muhuga-sidenav__group { display: none; } }

/* Two-column editor layout: main + sidebar */
.muhuga-ui .muhuga-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--mh-gap); align-items: start; margin-top: var(--mh-gap); }
@media (max-width: 960px) { .muhuga-ui .muhuga-form-grid { grid-template-columns: minmax(0, 1fr); } }
.muhuga-ui .muhuga-checkbox-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.muhuga-ui .muhuga-checkbox-list label { display: flex; gap: 8px; align-items: center; font-weight: 450; }
.muhuga-ui fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.muhuga-ui legend { padding: 0; margin-bottom: 8px; }

/* Filters + pagination (WooCommerce "subsubsub" feel) */
.muhuga-ui .muhuga-filters { display: flex; flex-wrap: wrap; gap: 4px; }
.muhuga-ui .muhuga-filters a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--mh-text-muted); font-weight: 550; font-size: 14px; }
.muhuga-ui .muhuga-filters a span { opacity: .7; font-weight: 400; }
.muhuga-ui .muhuga-filters a[aria-current="page"] { background: var(--mh-neutral-soft); color: var(--mh-text); }
.muhuga-ui .muhuga-pagination { display: flex; gap: 4px; justify-content: flex-end; margin-top: 12px; }
.muhuga-ui .muhuga-pagination a, .muhuga-ui .muhuga-pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--mh-border); text-decoration: none; }
.muhuga-ui .muhuga-pagination span[aria-current] { background: var(--mh-primary); color: #fff; border-color: var(--mh-primary); }
.muhuga-ui .muhuga-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--mh-border); display: block; }

/* Onboarding checklist */
.muhuga-ui .muhuga-checklist { list-style: none; margin: 0; padding: 0; }
.muhuga-ui .muhuga-checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mh-border); }
.muhuga-ui .muhuga-checklist__mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--mh-border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.muhuga-ui .muhuga-checklist li.is-done .muhuga-checklist__mark { background: var(--mh-success); border-color: var(--mh-success); }
.muhuga-ui .muhuga-checklist li.is-done .muhuga-checklist__label { color: var(--mh-text-muted); text-decoration: line-through; }
.muhuga-ui .muhuga-checklist__label { flex: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Sign-up stepper */
.muhuga-ui .muhuga-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; counter-reset: s; }
.muhuga-ui .muhuga-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 3px solid var(--mh-border); font-size: 14px; color: var(--mh-text-muted); font-weight: 550; }
.muhuga-ui .muhuga-steps li.is-done { border-color: var(--mh-success); color: var(--mh-text); }
.muhuga-ui .muhuga-steps li.is-current { border-color: var(--mh-primary); color: var(--mh-text); font-weight: 650; }
.muhuga-ui .muhuga-steps__num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--mh-neutral-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.muhuga-ui .muhuga-steps li.is-done .muhuga-steps__num { background: var(--mh-success); color: #fff; }
.muhuga-ui .muhuga-steps li.is-current .muhuga-steps__num { background: var(--mh-primary); color: #fff; }
@media (max-width: 640px) { .muhuga-ui .muhuga-steps li span:last-child { display: none; } .muhuga-ui .muhuga-steps li.is-current span:last-child { display: inline; } }

/* Auth */
.muhuga-ui .muhuga-auth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--mh-gap); align-items: start; }
@media (max-width: 860px) { .muhuga-ui .muhuga-auth-grid { grid-template-columns: minmax(0, 1fr); } }
.muhuga-ui .muhuga-google { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 16px 0; }
.muhuga-ui .muhuga-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--mh-text-muted); font-size: 13px; }
.muhuga-ui .muhuga-divider::before, .muhuga-ui .muhuga-divider::after { content: ""; flex: 1; height: 1px; background: var(--mh-border); }
.muhuga-ui .woocommerce-form-login { border: 0 !important; padding: 0 !important; margin: 0 !important; }
.muhuga-ui .woocommerce-form-login .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; width: 100%; float: none; }
.muhuga-ui .woocommerce-form-login .input-text { width: 100%; min-height: var(--mh-control-height); padding: 8px 12px; border-radius: var(--mh-radius-control); border: 1px solid var(--mh-border-strong); background: #fff; font: inherit; }
.muhuga-ui .woocommerce-form-login .button { min-height: var(--mh-control-height); padding: 0 18px; border-radius: var(--mh-radius-control); background: var(--mh-primary); color: #fff; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.muhuga-ui .woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.muhuga-ui .woocommerce-form-login .lost_password { font-size: 13px; }
.muhuga-ui.muhuga-auth { max-width: 440px; }
.muhuga-ui .muhuga-choice > span { line-height: 1.35; }
.muhuga-ui .muhuga-file input[type="file"] { padding: 9px 12px; }

/* Image uploader */
.muhuga-ui .muhuga-uploader__list { display: flex; flex-wrap: wrap; gap: 8px; }
.muhuga-ui .muhuga-uploader figure { position: relative; margin: 0; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; border: 1px solid var(--mh-border); }
.muhuga-ui .muhuga-uploader figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.muhuga-ui .muhuga-uploader__remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,41,.7); color: #fff; cursor: pointer; font-size: 12px; line-height: 1; }
.muhuga-ui .muhuga-uploader__add { width: 88px; height: 88px; border-radius: 10px; border: 2px dashed var(--mh-border-strong); background: var(--mh-neutral-soft); color: var(--mh-text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 6px; }
.muhuga-ui .muhuga-uploader__add:hover { border-color: var(--mh-primary); }
.muhuga-ui .muhuga-uploader--single figure, .muhuga-ui .muhuga-uploader--single .muhuga-uploader__add { width: 100%; height: auto; aspect-ratio: 1; }
.muhuga-ui .muhuga-uploader--banner figure, .muhuga-ui .muhuga-uploader--banner .muhuga-uploader__add { width: 100%; height: 160px; }
.muhuga-ui .muhuga-uploader--logo figure, .muhuga-ui .muhuga-uploader--logo .muhuga-uploader__add { width: 96px; height: 96px; border-radius: 50%; }

/* Reviews, documents */
.muhuga-ui .muhuga-review { padding: 14px 0; border-top: 1px solid var(--mh-border); }
.muhuga-ui .muhuga-review p { margin-bottom: 4px; }
.muhuga-ui .muhuga-stars { color: #e3a008; letter-spacing: 2px; }
.muhuga-ui .muhuga-doclist { list-style: none; margin: 0; padding: 0; }
.muhuga-ui .muhuga-doclist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mh-border); }

/* Public store */
.muhuga-ui.muhuga-store { margin-bottom: 24px; }
.muhuga-ui .muhuga-store__banner { height: 200px; border-radius: var(--mh-radius-card); background: linear-gradient(135deg, #000029, #1d1d6b 60%, #00a14b); background-size: cover; background-position: center; }
.muhuga-ui .muhuga-store__head { display: flex; gap: 16px; align-items: flex-end; margin: -44px 0 12px 20px; }
.muhuga-ui .muhuga-store__logo { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; background: #fff; object-fit: cover; box-shadow: var(--mh-shadow); flex: none; }
.muhuga-ui .muhuga-store__logo--initial { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mh-primary); color: #fff; font-size: 24px; font-weight: 700; flex: none; }
.muhuga-ui .muhuga-store__head .muhuga-store__logo--initial { width: 96px; height: 96px; font-size: 40px; border: 4px solid #fff; }
.muhuga-ui .muhuga-store__name { font-size: 26px; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.muhuga-ui .muhuga-store__about { max-width: 760px; }
.muhuga-ui .muhuga-store-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mh-gap); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.muhuga-ui .muhuga-store-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.muhuga-ui .muhuga-store-card:hover { border-color: var(--mh-primary); }
.muhuga-ui .muhuga-store-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* The hidden attribute must win over component display rules. */
.muhuga-ui [hidden] { display: none !important; }
.muhuga-price-unit { font-size: .8em; font-weight: 400; opacity: .75; }

/* ---------------- Marketplace categories [muhuga_categories] ---------------- */
.muhuga-ui.muhuga-cats { --mh-wide: min(1240px, calc(100vw - 32px)); width: var(--mh-wide); max-width: none !important; margin: 48px 0 48px calc(50% - var(--mh-wide) / 2) !important; }
.muhuga-ui .muhuga-cats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.muhuga-ui .muhuga-cats__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #16a34a; }
.muhuga-ui .muhuga-cats__title { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.muhuga-ui .muhuga-cats__all { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--mh-border-strong); color: #16a34a; font-weight: 650; text-decoration: none; }
.muhuga-ui .muhuga-cats__all:hover { border-color: #16a34a; }
.muhuga-ui .muhuga-cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.muhuga-ui .muhuga-cat { position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 44px 22px 22px; min-height: 100px; border-radius: 14px; border: 1px solid rgba(0,0,41,.08); text-decoration: none; color: var(--mh-text); transition: transform .15s ease, box-shadow .15s ease; }
.muhuga-ui .muhuga-cat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,41,.08); color: var(--mh-text); }
.muhuga-ui .muhuga-cat__icon { font-size: 30px; line-height: 1; flex: none; }
.muhuga-ui .muhuga-cat__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.muhuga-ui .muhuga-cat__text strong { font-size: 16px; }
.muhuga-ui .muhuga-cat__text span { font-size: 13.5px; color: var(--mh-text-muted); line-height: 1.45; }
.muhuga-ui .muhuga-cat__arrow { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: rgba(0,0,41,.35); }
.muhuga-ui .muhuga-cat--mint { background: #effbf3; }
.muhuga-ui .muhuga-cat--rose { background: #fdf0f4; }
.muhuga-ui .muhuga-cat--butter { background: #fefbe8; }
.muhuga-ui .muhuga-cat--peach { background: #fdf5ec; }
.muhuga-ui .muhuga-cat--lilac { background: #fcf2fd; }
.muhuga-ui .muhuga-cat--blush { background: #fdf0ef; }
.muhuga-ui .muhuga-cat--sky { background: #eff6fd; }
.muhuga-ui .muhuga-cat--green { background: linear-gradient(135deg, #14532d, #16a34a); color: #fff; border: 0; }
.muhuga-ui .muhuga-cat--green .muhuga-cat__text span { color: rgba(255,255,255,.75); }
.muhuga-ui .muhuga-cat--green .muhuga-cat__arrow { color: rgba(255,255,255,.8); }
.muhuga-ui .muhuga-cat--featured { grid-column: span 2; grid-row: span 2; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 32px; }
.muhuga-ui .muhuga-cat--featured .muhuga-cat__icon { font-size: 64px; margin-top: 12px; }
.muhuga-ui .muhuga-cat--featured .muhuga-cat__text strong { font-size: 18px; }
.muhuga-ui .muhuga-cat--featured .muhuga-cat__arrow { top: 32px; transform: none; }
.muhuga-ui .muhuga-cat--featured:not(.muhuga-cat--green) { color: var(--mh-text); }
@media (max-width: 960px) { .muhuga-ui .muhuga-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .muhuga-ui .muhuga-cats__grid { grid-template-columns: minmax(0, 1fr); } .muhuga-ui .muhuga-cat--featured { grid-column: auto; grid-row: auto; } }

/* ---------------- Farm directory ---------------- */
.muhuga-ui .muhuga-farm-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.muhuga-ui .muhuga-farm-card { margin: 0; border: 1px solid rgba(0,0,41,.09); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s ease, transform .15s ease; }
.muhuga-ui .muhuga-farm-card:hover { box-shadow: 0 12px 32px rgba(0,0,41,.08); transform: translateY(-2px); }
.muhuga-ui .muhuga-farm-card__media { height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eafbf0, #e3f9ea) center / cover no-repeat; text-decoration: none; }
.muhuga-ui .muhuga-farm-card__media img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: var(--mh-shadow); }
.muhuga-ui .muhuga-farm-card__icon { font-size: 44px; }
.muhuga-ui .muhuga-farm-card__body { padding: 22px 24px 20px; display: flex; flex-direction: column; flex: 1; }
.muhuga-ui .muhuga-farm-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; color: var(--mh-text-muted); }
.muhuga-ui .muhuga-farm-card__tag { padding: 3px 9px; border-radius: 6px; background: #dcfce7; color: #14532d; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.muhuga-ui .muhuga-farm-card__verified { color: #16a34a; font-weight: 650; }
.muhuga-ui .muhuga-farm-card__title { margin: 0 0 8px; font-size: 17px; font-weight: 750; }
.muhuga-ui .muhuga-farm-card__title a { text-decoration: none; color: var(--mh-text); }
.muhuga-ui .muhuga-farm-card__desc { margin: 0 0 16px; color: var(--mh-text-muted); font-size: 14.5px; line-height: 1.65; flex: 1; }
.muhuga-ui .muhuga-farm-card__more { padding-top: 14px; border-top: 1px solid var(--mh-border); color: #16a34a; font-weight: 700; font-size: 14px; text-decoration: none; }

/* The hidden attribute must win (repeated after later component rules). */
.muhuga-ui [hidden] { display: none !important; }

/* =====================================================================
   Farm profile (/farm/{name}/)
   ===================================================================== */
.muhuga-ui.mf { --mf-forest: #0b3d24; --mf-green: #16a34a; --mf-lime: #bef264; --mf-ink: #0f172a; --mf-muted: #5b6474; --mf-line: rgba(15,23,42,.08);
	--mh-wide: min(1280px, calc(100vw - 32px)); color: var(--mf-ink); margin-top: 8px !important; }
.muhuga-ui.mf .mf-ico { flex: none; vertical-align: -3px; }

/* Hero */
.muhuga-ui .mf-hero { position: relative; isolation: isolate; min-height: 440px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; background: var(--mf-forest); box-shadow: 0 30px 80px -30px rgba(11,61,36,.55); }
.muhuga-ui .mf-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); animation: mf-zoom 14s ease-out forwards; }
.muhuga-ui .mf-hero__shade { position: absolute; inset: 0; z-index: -1; background:
	linear-gradient(180deg, rgba(4,20,12,.15) 0%, rgba(4,20,12,0) 30%, rgba(4,20,12,.55) 65%, rgba(4,20,12,.92) 100%),
	linear-gradient(90deg, rgba(4,20,12,.55) 0%, rgba(4,20,12,0) 60%); }
.muhuga-ui .mf-hero--plain { background:
	radial-gradient(1200px 500px at 85% -10%, rgba(190,242,100,.35), transparent 60%),
	radial-gradient(700px 400px at 0% 110%, rgba(22,163,74,.55), transparent 60%),
	linear-gradient(135deg, #062b19, #0b3d24 45%, #136b3c); }
.muhuga-ui .mf-hero--plain .mf-hero__shade { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 8c8 10 8 22 0 32-8-10-8-22 0-32Z' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E"); }
.muhuga-ui .mf-hero__back { position: absolute; top: 22px; left: 24px; padding: 8px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); }
.muhuga-ui .mf-hero__back:hover { background: rgba(255,255,255,.24); color: #fff; }
.muhuga-ui .mf-hero__content { width: 100%; display: flex; align-items: flex-end; gap: 28px; padding: 40px 44px 44px; color: #fff; flex-wrap: wrap; animation: mf-rise .8s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .mf-logo { position: relative; flex: none; width: 136px; height: 136px; border-radius: 32px; padding: 5px; background: linear-gradient(135deg, #fff, rgba(255,255,255,.7)); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.muhuga-ui .mf-logo img, .muhuga-ui .mf-logo > span:not(.mf-logo__tick) { width: 100%; height: 100%; border-radius: 27px; object-fit: cover; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16a34a, #0b3d24); color: #fff; font-size: 56px; font-weight: 800; }
.muhuga-ui .mf-logo img { background: #fff; }
.muhuga-ui .mf-logo__tick { position: absolute; right: -8px; bottom: -8px; width: 38px; height: 38px; border-radius: 50%; background: var(--mf-green); color: #fff; display: flex; align-items: center; justify-content: center; border: 4px solid #fff; box-shadow: 0 6px 16px rgba(22,163,74,.5); }
.muhuga-ui .mf-hero__text { flex: 1; min-width: 260px; }
.muhuga-ui .mf-hero__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.muhuga-ui .mf-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.muhuga-ui .mf-chip--glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.muhuga-ui .mf-chip--green { background: var(--mf-lime); color: #14361f; }
.muhuga-ui .mf-hero__name { margin: 0 0 12px; color: #fff; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.muhuga-ui .mf-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 15px; color: rgba(255,255,255,.88); }
.muhuga-ui .mf-hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.muhuga-ui .mf-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.muhuga-ui .mf-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.muhuga-ui .mf-btn:hover { transform: translateY(-2px); }
.muhuga-ui .mf-btn--primary { background: var(--mf-lime); color: #0b2a17; box-shadow: 0 12px 30px -8px rgba(190,242,100,.6); }
.muhuga-ui .mf-btn--primary:hover { color: #0b2a17; box-shadow: 0 16px 36px -8px rgba(190,242,100,.8); }
.muhuga-ui .mf-btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Stats band */
.muhuga-ui .mf-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: -34px 32px 0; background: #fff; border-radius: 22px; box-shadow: 0 18px 50px -18px rgba(15,23,42,.25), 0 0 0 1px var(--mf-line); overflow: hidden; animation: mf-rise .8s .15s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .mf-stat { padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--mf-line); }
.muhuga-ui .mf-stat:first-child { border-left: 0; }
.muhuga-ui .mf-stat__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; display: inline-flex; align-items: center; gap: 8px; }
.muhuga-ui .mf-stat__value small { font-size: 20px; color: #f59e0b; }
.muhuga-ui .mf-stat__label { font-size: 13.5px; color: var(--mf-muted); }
.muhuga-ui .mf-stat--escrow { background: linear-gradient(135deg, #f0fdf4, #dcfce7); }
.muhuga-ui .mf-stat--escrow .mf-stat__value { color: #15803d; }

/* Layout */
.muhuga-ui .mf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 56px; align-items: start; }
.muhuga-ui .mf-section { margin-bottom: 64px; }
.muhuga-ui .mf-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.muhuga-ui .mf-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mf-green); }
.muhuga-ui .mf-title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; color: var(--mf-ink); }
.muhuga-ui .mf-about { margin-top: 18px; font-size: 17px; line-height: 1.8; color: #334155; max-width: 70ch; }
.muhuga-ui .mf-count { padding: 6px 14px; border-radius: 999px; background: #f1f5f9; font-size: 13px; font-weight: 700; color: var(--mf-muted); }
.muhuga-ui .mf-muted { color: var(--mf-muted); }

/* Produce cards */
.muhuga-ui .mf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.muhuga-ui .mf-card { margin: 0; display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--mf-line); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.muhuga-ui .mf-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(22,163,74,.25), 0 24px 50px -20px rgba(11,61,36,.35); }
.muhuga-ui .mf-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
.muhuga-ui .mf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.muhuga-ui .mf-card:hover .mf-card__media img { transform: scale(1.07); }
.muhuga-ui .mf-card__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.muhuga-ui .mf-card__cat { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--mf-ink); backdrop-filter: blur(6px); }
.muhuga-ui .mf-card__soldout { position: absolute; right: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #0f172a; color: #fff; }
.muhuga-ui .mf-card__body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.muhuga-ui .mf-card__name { margin: 0 0 6px; font-size: 16.5px; font-weight: 750; line-height: 1.3; }
.muhuga-ui .mf-card__name a { color: var(--mf-ink); text-decoration: none; }
.muhuga-ui .mf-card__origin { margin: 0 0 12px; font-size: 13px; color: var(--mf-muted); display: flex; align-items: center; gap: 5px; }
.muhuga-ui .mf-card__origin .mf-ico { width: 14px; height: 14px; }
.muhuga-ui .mf-card__price { font-size: 22px; font-weight: 800; color: #15803d; letter-spacing: -.01em; margin-bottom: 14px; }
.muhuga-ui .mf-card__price del { font-size: 14px; color: #94a3b8; font-weight: 500; margin-right: 6px; }
.muhuga-ui .mf-card__price ins { text-decoration: none; }
.muhuga-ui .mf-card__price .muhuga-price-unit { font-size: 13px; color: var(--mf-muted); font-weight: 600; }
.muhuga-ui .mf-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--mf-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muhuga-ui .mf-card__min { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #475569; }
.muhuga-ui .mf-card__min .mf-ico { width: 15px; height: 15px; }
.muhuga-ui .mf-card__go { font-weight: 750; font-size: 14px; color: var(--mf-green); text-decoration: none; }
.muhuga-ui .mf-card__go span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.muhuga-ui .mf-card:hover .mf-card__go span[aria-hidden] { transform: translateX(4px); }

/* Empty */
.muhuga-ui .mf-empty { text-align: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(500px 200px at 50% 0%, #dcfce7, transparent 70%), #f8fafc; border: 1px dashed rgba(22,163,74,.35); }
.muhuga-ui .mf-empty__art { font-size: 56px; display: inline-block; animation: mf-sway 3s ease-in-out infinite; }
.muhuga-ui .mf-empty h3 { margin: 10px 0 6px; font-size: 20px; }
.muhuga-ui .mf-empty p { margin: 0; color: var(--mf-muted); }

/* Reviews */
.muhuga-ui .mf-score { display: flex; align-items: center; gap: 12px; }
.muhuga-ui .mf-score strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.muhuga-ui .mf-stars { color: #f59e0b; letter-spacing: 2px; font-size: 16px; white-space: nowrap; }
.muhuga-ui .mf-stars span { color: #e2e8f0; }
.muhuga-ui .mf-reviews { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.muhuga-ui .mf-review { margin: 0; padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--mf-line); position: relative; }
.muhuga-ui .mf-review::before { content: "\201C"; position: absolute; right: 20px; top: 4px; font-size: 80px; line-height: 1; color: #dcfce7; font-family: Georgia, serif; }
.muhuga-ui .mf-review blockquote { margin: 12px 0 18px; padding: 0; border: 0; font-size: 15.5px; line-height: 1.7; color: #334155; font-style: normal; }
.muhuga-ui .mf-review figcaption { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--mf-muted); }
.muhuga-ui .mf-review figcaption strong { color: var(--mf-ink); font-size: 14px; }
.muhuga-ui .mf-review figcaption a { color: var(--mf-muted); }
.muhuga-ui .mf-review__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #16a34a, #0b3d24); }
.muhuga-ui .mf-review__verified { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: #15803d; font-weight: 700; font-size: 12px; }
.muhuga-ui .mf-review__verified .mf-ico { width: 13px; height: 13px; }

/* Aside */
.muhuga-ui .mf-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.muhuga-ui .mf-escrow { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; color: #e7f7ec; background:
	radial-gradient(400px 220px at 110% -10%, rgba(190,242,100,.35), transparent 60%),
	linear-gradient(160deg, #0b3d24, #062b19); box-shadow: 0 24px 60px -24px rgba(6,43,25,.7); }
.muhuga-ui .mf-escrow h3 { color: #fff; margin: 14px 0 16px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.muhuga-ui .mf-escrow__icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--mf-lime); color: #0b2a17; }
.muhuga-ui .mf-escrow__icon .mf-ico { width: 26px; height: 26px; }
.muhuga-ui .mf-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.muhuga-ui .mf-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.muhuga-ui .mf-steps li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.12); color: var(--mf-lime); border: 1px solid rgba(190,242,100,.4); }
.muhuga-ui .mf-escrow__note { margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(231,247,236,.75); }
.muhuga-ui .mf-panel { padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--mf-line); }
.muhuga-ui .mf-panel h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.muhuga-ui .mf-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 14px; }
.muhuga-ui .mf-facts dt { color: var(--mf-muted); }
.muhuga-ui .mf-facts dd { margin: 0; text-align: right; font-weight: 650; }
.muhuga-ui .mf-ok { color: #15803d; }
.muhuga-ui .mf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.muhuga-ui .mf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #f1f5f9; font-size: 13px; font-weight: 650; color: var(--mf-ink); text-decoration: none; }
.muhuga-ui a.mf-tag:hover { background: #dcfce7; color: #14532d; }
.muhuga-ui .mf-tag--cert { background: #ecfdf5; color: #14532d; }
.muhuga-ui .mf-tag--cert .mf-ico { width: 14px; height: 14px; color: var(--mf-green); }

/* Motion: sections fade up as they scroll into view (JS adds .is-in; without JS they show immediately). */
.muhuga-ui.mf.js-reveal .mf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.muhuga-ui.mf.js-reveal .mf-reveal.is-in { opacity: 1; transform: none; }
@keyframes mf-zoom { to { transform: scale(1); } }
@keyframes mf-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes mf-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* Responsive */
@media (max-width: 1040px) {
	.muhuga-ui .mf-layout { grid-template-columns: minmax(0, 1fr); }
	.muhuga-ui .mf-aside { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.muhuga-ui .mf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.muhuga-ui .mf-stat:nth-child(3) { border-left: 0; }
	.muhuga-ui .mf-stat:nth-child(n+3) { border-top: 1px solid var(--mf-line); }
}
@media (max-width: 640px) {
	.muhuga-ui .mf-hero { min-height: 520px; border-radius: 22px; }
	.muhuga-ui .mf-hero__content { padding: 28px 22px 30px; gap: 18px; }
	.muhuga-ui .mf-logo { width: 96px; height: 96px; border-radius: 24px; }
	.muhuga-ui .mf-logo img, .muhuga-ui .mf-logo > span:not(.mf-logo__tick) { border-radius: 20px; font-size: 40px; }
	.muhuga-ui .mf-hero__actions { width: 100%; }
	.muhuga-ui .mf-hero__actions .mf-btn--primary { flex: 1; justify-content: center; }
	.muhuga-ui .mf-stats { margin: -26px 12px 0; }
	.muhuga-ui .mf-stat { padding: 16px 18px; }
	.muhuga-ui .mf-stat__value { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.muhuga-ui .mf-hero__bg, .muhuga-ui .mf-hero__content, .muhuga-ui .mf-stats, .muhuga-ui .mf-empty__art { animation: none !important; transform: none; }
}

.muhuga-ui [hidden] { display: none !important; }

/* Farm profile: owner edit bar (only the farm's own account sees it) */
.muhuga-ui .mf-owner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border-radius: 18px; background: #0f172a; color: #e2e8f0; box-shadow: 0 12px 30px -16px rgba(15,23,42,.6); animation: mf-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .mf-owner__text { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.muhuga-ui .mf-owner__text strong { color: #fff; font-size: 15px; }
.muhuga-ui .mf-owner__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muhuga-ui .mf-owner__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 11px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); transition: background .15s ease; }
.muhuga-ui .mf-owner__btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.muhuga-ui .mf-owner__btn--primary { background: #bef264; color: #0b2a17; border-color: #bef264; }
.muhuga-ui .mf-owner__btn--primary:hover { background: #d9f99d; color: #0b2a17; }
.muhuga-ui [hidden] { display: none !important; }

/* =====================================================================
   Buyer account: escrow pages (.bx) + My Account navigation
   ===================================================================== */
.muhuga-ui.bx { --bx-forest: #0b3d24; --bx-green: #16a34a; --bx-lime: #bef264; --bx-ink: #0f172a; --bx-muted: #64748b; --bx-line: rgba(15,23,42,.08); color: var(--bx-ink); font-size: 15px; }
.muhuga-ui.bx .bx-ico { flex: none; }
.muhuga-ui .bx-back { display: inline-flex; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--bx-muted); text-decoration: none; }
.muhuga-ui .bx-back:hover { color: var(--bx-ink); }
.muhuga-ui .bx-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bx-muted); }
.muhuga-ui .bx-muted { color: var(--bx-muted); }

/* Hero */
.muhuga-ui .bx-hero { position: relative; overflow: hidden; isolation: isolate; padding: 30px 32px 28px; border-radius: 26px; color: #ecfdf3;
	background: radial-gradient(600px 300px at 100% -20%, rgba(190,242,100,.28), transparent 60%), radial-gradient(500px 260px at -10% 120%, rgba(22,163,74,.55), transparent 60%), linear-gradient(150deg, #0b3d24, #062b19 70%);
	box-shadow: 0 28px 60px -30px rgba(6,43,25,.8); animation: bx-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .bx-hero--settled { background: linear-gradient(150deg, #1e293b, #0f172a); }
.muhuga-ui .bx-hero__glow { position: absolute; z-index: -1; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(190,242,100,.35), transparent 65%); animation: bx-pulse 5s ease-in-out infinite; }
.muhuga-ui .bx-hero__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.muhuga-ui .bx-hero__shield { width: 50px; height: 50px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--bx-lime); color: #0b2a17; box-shadow: 0 0 0 8px rgba(190,242,100,.12); }
.muhuga-ui .bx-hero__shield .bx-ico { width: 26px; height: 26px; }
.muhuga-ui .bx-pill { padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.muhuga-ui .bx-hero__label { margin: 0; font-size: 15px; color: rgba(236,253,243,.8); font-weight: 600; }
.muhuga-ui .bx-hero__amount { margin: 4px 0 8px; font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.muhuga-ui .bx-hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(236,253,243,.72); }
.muhuga-ui .bx-hero__meta a { color: #fff; }
.muhuga-ui .bx-hero--compact { padding: 26px 30px; margin-bottom: 20px; }

/* Stepper */
.muhuga-ui .bx-steps { position: relative; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.muhuga-ui .bx-steps::before, .muhuga-ui .bx-steps::after { content: ""; position: absolute; top: 19px; left: 10%; right: 10%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); }
.muhuga-ui .bx-steps::after { right: auto; width: calc(80% * var(--bx-progress) / 100); background: linear-gradient(90deg, var(--bx-lime), #86efac); transition: width 1s ease; animation: bx-grow 1.2s .3s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .bx-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0; }
.muhuga-ui .bx-step__dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #0d3320; border: 2px solid rgba(255,255,255,.18); color: rgba(255,255,255,.55); }
.muhuga-ui .bx-step__dot .bx-ico { width: 18px; height: 18px; }
.muhuga-ui .bx-step.is-done .bx-step__dot { background: var(--bx-lime); border-color: var(--bx-lime); color: #0b2a17; }
.muhuga-ui .bx-step.is-current .bx-step__dot { background: #fff; border-color: #fff; color: var(--bx-forest); box-shadow: 0 0 0 6px rgba(255,255,255,.15); animation: bx-ring 2s ease-in-out infinite; }
.muhuga-ui .bx-step__label { font-size: 13px; font-weight: 650; color: rgba(236,253,243,.65); line-height: 1.3; }
.muhuga-ui .bx-step.is-done .bx-step__label, .muhuga-ui .bx-step.is-current .bx-step__label { color: #fff; }
.muhuga-ui .bx-step__date { font-size: 11.5px; color: rgba(236,253,243,.6); margin-top: -4px; }

/* Layout */
.muhuga-ui .bx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 22px; align-items: start; }
.muhuga-ui .bx-main, .muhuga-ui .bx-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* Seller card */
.muhuga-ui .bx-seller, .muhuga-ui .bx-card { padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--bx-line), 0 10px 30px -18px rgba(15,23,42,.18); animation: bx-rise .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .bx-seller__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.muhuga-ui .bx-seller__logo { flex: none; width: 58px; height: 58px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #16a34a, #0b3d24); box-shadow: 0 0 0 1px var(--bx-line); }
.muhuga-ui .bx-seller__logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.muhuga-ui .bx-seller__who { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.muhuga-ui .bx-seller__who h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.muhuga-ui .bx-seller__who h3 a { color: var(--bx-ink); text-decoration: none; }
.muhuga-ui .bx-seller__who h3 a:hover { color: var(--bx-green); }
.muhuga-ui .bx-seller__amount { text-align: right; display: flex; flex-direction: column; }
.muhuga-ui .bx-seller__amount span { font-size: 12.5px; color: var(--bx-muted); }
.muhuga-ui .bx-seller__amount strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.muhuga-ui .bx-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #334155; }
.muhuga-ui .bx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.muhuga-ui .bx-status--success { background: #dcfce7; color: #166534; }
.muhuga-ui .bx-status--warning { background: #fef3c7; color: #92400e; }
.muhuga-ui .bx-status--danger { background: #fee2e2; color: #991b1b; }

.muhuga-ui .bx-callout { display: flex; gap: 14px; margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--bx-line); }
.muhuga-ui .bx-callout p { margin: 4px 0 0; color: #475569; font-size: 14px; line-height: 1.6; }
.muhuga-ui .bx-callout strong { font-size: 15px; }
.muhuga-ui .bx-callout__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: #334155; }
.muhuga-ui .bx-callout--action { background: linear-gradient(135deg, #f0fdf4, #ecfccb); border-color: rgba(22,163,74,.25); }
.muhuga-ui .bx-callout--action .bx-callout__icon { background: var(--bx-green); color: #fff; }
.muhuga-ui .bx-callout--warn { background: #fffbeb; border-color: #fde68a; }
.muhuga-ui .bx-callout--warn .bx-callout__icon { background: #f59e0b; color: #fff; }
.muhuga-ui .bx-callout--done .bx-callout__icon { background: #dcfce7; color: #166534; }

.muhuga-ui .bx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.muhuga-ui .bx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; font: inherit; font-weight: 750; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.muhuga-ui .bx-btn:hover { transform: translateY(-1px); }
.muhuga-ui .bx-btn .bx-ico { width: 18px; height: 18px; }
.muhuga-ui .bx-btn--release { background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 14px 30px -12px rgba(22,163,74,.7); }
.muhuga-ui .bx-btn--release:hover { color: #fff; box-shadow: 0 18px 36px -12px rgba(22,163,74,.85); }
.muhuga-ui .bx-btn--ghost { background: #fff; color: var(--bx-ink); box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.muhuga-ui .bx-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--bx-ink); color: var(--bx-ink); }
.muhuga-ui .bx-btn--dark { background: var(--bx-ink); color: #fff; }
.muhuga-ui .bx-btn--dark:hover { color: #fff; }
.muhuga-ui .bx-link { border: 0; background: none; padding: 6px 4px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--bx-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.muhuga-ui .bx-link:hover { color: var(--bx-ink); }

/* Dispute */
.muhuga-ui .bx-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.muhuga-ui .bx-card__head h3 { margin: 0; font-size: 18px; }
.muhuga-ui .bx-thread { margin: 14px 0; }
.muhuga-ui .bx-reply { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; }
.muhuga-ui .bx-reply textarea { min-height: 56px; border-radius: 14px; }
.muhuga-ui .bx-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 13.5px; color: var(--bx-muted); }
.muhuga-ui .bx-upload label { width: 100%; }
.muhuga-ui .bx-upload input { flex: 1; min-width: 200px; }

/* Receipt */
.muhuga-ui .bx-receipt { position: relative; padding: 24px 24px 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--bx-line), 0 10px 30px -18px rgba(15,23,42,.18); animation: bx-rise .7s .15s cubic-bezier(.2,.8,.2,1) both; }
.muhuga-ui .bx-receipt::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 12px; background: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px) repeat-x; background-size: 12px 12px; filter: drop-shadow(0 1px 0 var(--bx-line)); }
.muhuga-ui .bx-receipt h3, .muhuga-ui .bx-promise h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.muhuga-ui .bx-receipt__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.muhuga-ui .bx-receipt__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin: 0; }
.muhuga-ui .bx-receipt__lines span { color: #475569; }
.muhuga-ui .bx-receipt__lines em { font-style: normal; color: var(--bx-muted); }
.muhuga-ui .bx-receipt__lines strong { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.muhuga-ui .bx-receipt__fee span { display: inline-flex; align-items: center; gap: 6px; }
.muhuga-ui .bx-receipt__fee .bx-ico { width: 15px; height: 15px; color: var(--bx-green); }
.muhuga-ui .bx-receipt__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 2px dashed #e2e8f0; }
.muhuga-ui .bx-receipt__total span { font-weight: 700; }
.muhuga-ui .bx-receipt__total strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.muhuga-ui .bx-receipt__lines--after { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bx-line); }
.muhuga-ui .bx-plus { color: #15803d; }
.muhuga-ui .bx-promise { padding: 22px 24px; border-radius: 22px; background: linear-gradient(160deg, #f0fdf4, #fff); box-shadow: 0 0 0 1px rgba(22,163,74,.18); }
.muhuga-ui .bx-promise h3 .bx-ico { color: var(--bx-green); }
.muhuga-ui .bx-promise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.muhuga-ui .bx-promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: #334155; margin: 0; }
.muhuga-ui .bx-promise li .bx-ico { width: 17px; height: 17px; color: var(--bx-green); margin-top: 2px; }

/* List */
.muhuga-ui .bx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.muhuga-ui .bx-list li { margin: 0; }
.muhuga-ui .bx-item { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; background: #fff; color: var(--bx-ink); text-decoration: none; box-shadow: 0 0 0 1px var(--bx-line); transition: transform .2s ease, box-shadow .2s ease; }
.muhuga-ui .bx-item:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(22,163,74,.3), 0 16px 34px -18px rgba(11,61,36,.35); color: var(--bx-ink); }
.muhuga-ui .bx-item--urgent { box-shadow: 0 0 0 2px #86efac; background: linear-gradient(90deg, #f0fdf4, #fff 40%); }
.muhuga-ui .bx-item__icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #f1f5f9; }
.muhuga-ui .bx-item__main, .muhuga-ui .bx-item__next, .muhuga-ui .bx-item__amount { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.muhuga-ui .bx-item__main strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muhuga-ui .bx-item__main span, .muhuga-ui .bx-item__next > span:last-child, .muhuga-ui .bx-item__amount span { font-size: 13px; color: var(--bx-muted); }
.muhuga-ui .bx-item__next { align-items: flex-start; }
.muhuga-ui .bx-item__amount { text-align: right; }
.muhuga-ui .bx-item__amount strong { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muhuga-ui .bx-item__go { color: var(--bx-green); font-weight: 800; transition: transform .2s ease; }
.muhuga-ui .bx-item:hover .bx-item__go { transform: translateX(4px); }
.muhuga-ui .bx-empty { text-align: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(500px 220px at 50% 0%, #dcfce7, transparent 70%), #f8fafc; border: 1px dashed rgba(22,163,74,.35); }
.muhuga-ui .bx-empty > span { font-size: 48px; }
.muhuga-ui .bx-empty h3 { margin: 10px 0 6px; font-size: 20px; }
.muhuga-ui .bx-empty p { color: var(--bx-muted); max-width: 46ch; margin: 0 auto 18px; }
.muhuga-ui .bx-pager { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

@keyframes bx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bx-grow { from { width: 0; } }
@keyframes bx-pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes bx-ring { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,255,255,.15); } 50% { box-shadow: 0 0 0 11px rgba(255,255,255,.05); } }
@media (prefers-reduced-motion: reduce) { .muhuga-ui.bx *, .muhuga-ui.bx { animation: none !important; } }

@media (max-width: 980px) { .muhuga-ui .bx-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) {
	.muhuga-ui .bx-hero { padding: 24px 20px; border-radius: 22px; }
	.muhuga-ui .bx-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.muhuga-ui .bx-steps::before, .muhuga-ui .bx-steps::after { display: none; }
	.muhuga-ui .bx-step { flex-direction: row; text-align: left; flex-wrap: wrap; column-gap: 12px; }
	.muhuga-ui .bx-step__date { margin: 0; flex-basis: 100%; padding-left: 52px; margin-top: -8px; }
	.muhuga-ui .bx-seller__amount { text-align: left; width: 100%; }
	.muhuga-ui .bx-actions .bx-btn { width: 100%; }
	.muhuga-ui .bx-item { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
	.muhuga-ui .bx-item__next { grid-column: 2 / -1; grid-row: 2; }
	.muhuga-ui .bx-item__go { display: none; }
	.muhuga-ui .bx-reply { flex-direction: column; align-items: stretch; }
}

/* ---------------- My Account navigation (all account pages) ---------------- */
body.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none !important; margin: 0 !important; padding: 10px !important; display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 10px 30px -20px rgba(15,23,42,.25); }
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a { display: flex !important; align-items: center; gap: 12px; padding: 11px 14px !important; border-radius: 12px; font-size: 14.5px !important; font-weight: 600; color: #334155 !important; text-decoration: none !important; line-height: 1.3; transition: background .15s ease, color .15s ease; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; opacity: .75;
	-webkit-mask: var(--mh-nav-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")) center / contain no-repeat;
	mask: var(--mh-nav-ico, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")) center / contain no-repeat; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: #f1f5f9; color: #0f172a !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: linear-gradient(135deg, #0b3d24, #14532d) !important; color: #fff !important; box-shadow: 0 10px 20px -12px rgba(11,61,36,.8); }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before { opacity: 1; background: #bef264; }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid rgba(15,23,42,.08) !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: #b91c1c !important; }
.woocommerce-MyAccount-navigation-link--dashboard { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4H6Z'/%3E%3Cpath d='M3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--muhuga-escrow { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.6 8 11 4.6-1.4 8-6 8-11V5l-8-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--muhuga-wallet { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7H5a2 2 0 0 1 0-4h13v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15V7'/%3E%3Ccircle cx='16' cy='14' r='1.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--muhuga-disputes, .woocommerce-MyAccount-navigation-link--support { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2Z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--muhuga-vendor { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-6 7-10 16-10 0 9-4 16-9 17Z'/%3E%3Cpath d='M4 21c4-6 8-9 12-11'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.1-7-11a7 7 0 1 1 14 0c0 4.9-7 11-7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--wishlist { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--compare { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--recently-viewed { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

.muhuga-ui [hidden] { display: none !important; }
/* Escrow pages adapt to the width of the account content column, not the screen. */
.muhuga-ui.bx { container-type: inline-size; }
@container (max-width: 820px) {
	.muhuga-ui .bx-layout { grid-template-columns: minmax(0, 1fr); }
	.muhuga-ui .bx-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@container (max-width: 560px) {
	.muhuga-ui .bx-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.muhuga-ui .bx-steps::before, .muhuga-ui .bx-steps::after { display: none; }
	.muhuga-ui .bx-step { flex-direction: row; text-align: left; flex-wrap: wrap; column-gap: 12px; }
	.muhuga-ui .bx-step__date { margin: -8px 0 0; flex-basis: 100%; padding-left: 52px; }
	.muhuga-ui .bx-actions .bx-btn { width: 100%; }
}
.muhuga-ui [hidden] { display: none !important; }
/* Muhuga brand marks */
.muhuga-ui .bx-hero__brand { display: inline-flex; align-items: center; gap: 12px; }
.muhuga-ui .bx-hero__brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 8px 20px rgba(0,0,0,.25); }
.muhuga-ui .bx-hero__brand > span { display: flex; flex-direction: column; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,253,243,.7); line-height: 1.3; }
.muhuga-ui .bx-hero__brand strong { font-size: 15px; letter-spacing: 0; text-transform: none; color: #fff; }
.muhuga-ui .bx-hero--compact .bx-hero__top { margin-bottom: 16px; }
.muhuga-ui .mf-escrow__icon--brand { background: none; width: 52px; height: 52px; }
.muhuga-ui .mf-escrow__icon--brand img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 4px rgba(190,242,100,.2); }
.muhuga-ui .muhuga-sidenav__brand { display: block; padding: 4px 12px 14px; }
.muhuga-ui .muhuga-sidenav__brand img { height: 32px; width: auto; display: block; }
.muhuga-ui .muhuga-apply__brand { margin: 0 0 18px; }
.muhuga-ui .muhuga-apply__brand img { height: 38px; width: auto; display: block; }
@media (max-width: 860px) { .muhuga-ui .muhuga-sidenav__brand { display: none; } }
.muhuga-ui [hidden] { display: none !important; }

/* Delivery proof (farm, buyer and staff views) */
.mh-proof { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.mh-proof__block { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(15, 23, 42, .08); }
.mh-proof__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.mh-proof-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.mh-proof-photos a { display: block; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
.mh-proof-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mh-proof-step { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgba(15, 23, 42, .12); }
.mh-proof-step p { width: 100%; margin: 0; }
.mh-proof-form + .mh-proof-or { margin: 10px 0; text-align: center; }
.muhuga-ui .muhuga-badge--info { background: #e0f2fe; color: #075985; }
.bx .mh-proof { margin: 0 0 14px; }

/* Seller marketing analytics */
.mh-market__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.mh-market__grid > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(15, 23, 42, .07); }
.mh-market__grid span { font-size: 12.5px; color: #64748b; }
.mh-market__grid strong { font-size: 22px; line-height: 1.2; }
.mh-market__grid small { font-size: 11.5px; color: #64748b; }
.mh-market__shares { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mh-spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 8px 0; border-bottom: 1px solid rgba(15, 23, 42, .1); }
.mh-spark span { flex: 1; min-width: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #22c55e, #15803d); }
.mf-hero__meta .mf-reply { color: #bef264; font-weight: 700; }
.mh-statements { list-style: none; margin: 0; padding: 0; }
.mh-statements li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.mh-statements li span { display: flex; gap: 6px; }

/* Follow farms */
.mf-follow[aria-pressed="true"] { background: rgba(244, 63, 94, .22) !important; border-color: rgba(251, 113, 133, .6) !important; }
.mf-follow__ico { color: #fda4af; font-size: 15px; line-height: 1; }
.mf-follow[aria-pressed="true"] .mf-follow__ico { color: #fb7185; }
.mh-saved { display: flex; flex-direction: column; gap: 14px; }
.mh-saved__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-saved__logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.mh-saved__logo--initial { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #16a34a, #0b3d24); color: #fff; font-weight: 800; font-size: 20px; }
.mh-saved__who { flex: 1; min-width: 160px; }
.mh-saved__who h3 { margin: 0 0 2px; font-size: 17px; }
.mh-saved__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-saved__toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.mh-saved__products { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.mh-saved__product { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; font-size: 13px; }
.mh-saved__product img, .mh-saved__noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f0fdf4; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.mh-saved__product span { color: #15803d; font-weight: 700; }
.woocommerce-MyAccount-navigation-link--muhuga-farms { --mh-nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.mh-schedule { display: flex; flex-direction: column; gap: 10px; }
.mh-schedule label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .1); cursor: pointer; }
.mh-schedule label:has(input:checked) { border-color: #16a34a; background: #f0fdf4; }
.mh-schedule__inline { display: inline-block; width: auto !important; min-width: 120px; margin-left: 6px; padding: 6px 10px !important; }
.mh-schedule button { align-self: flex-start; }

/* Volume pricing & quote requests */
.mh-tiers { margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid rgba(22, 163, 74, .2); }
.mh-tiers__title { margin: 0 0 6px; font-weight: 800; font-size: 14px; color: #14532d; }
.mh-tiers table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.mh-tiers th, .mh-tiers td { text-align: left; padding: 6px 4px; border-bottom: 1px dashed rgba(20, 83, 45, .18); }
.mh-tiers th { font-size: 12px; color: #4d7c0f; font-weight: 700; }
.mh-tiers__save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; }
.mh-tiers__note { margin: 6px 0 0; font-size: 12px; color: #4d7c0f; }
.mh-rfq { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 12px; padding: 9px 14px; font-size: 14.5px !important; line-height: 1.3; border-radius: 12px; border: 1px dashed #16a34a; background: #fff; color: #14532d; font-family: inherit; font-weight: 700; cursor: pointer; }
.mh-rfq:hover { background: #f0fdf4; }
.mh-tier-from { display: block; font-size: 12px; color: #15803d; font-weight: 600; }
.mh-tier-note { color: #15803d; font-weight: 600; }
.mh-tier-editor { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(15, 23, 42, .12); }
.mh-tier-editor__title { margin: 0 0 8px; font-size: 13.5px; }
.mh-tier-editor__row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 10px; align-items: end; margin-bottom: 8px; }
.mh-tier-editor__row label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.mh-rfq-form .muhuga-field label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

/* Dispute timeline */
.mh-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.mh-timeline::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: rgba(15, 23, 42, .1); }
.mh-timeline__item { position: relative; display: flex; gap: 12px; padding: 8px 0; }
.mh-timeline__icon { flex: none; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.mh-timeline__body { flex: 1; min-width: 0; }
.mh-timeline__head { font-size: 12px; color: #64748b; }
.mh-timeline__text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mh-timeline__item--system .mh-timeline__text { color: #166534; font-weight: 600; }
.mh-timeline__item--deadline .mh-timeline__icon { background: #fef3c7; }
.mh-timeline__item--yours .mh-timeline__text { color: #b45309; font-weight: 800; }
.mh-timeline .mh-proof-photos { margin-top: 6px; }
.mh-creds { list-style: none; margin: 0 0 14px; padding: 0; }
.mh-creds li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(15, 23, 42, .08); }
.mh-creds li > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.mf-chip--badge { font-weight: 700; }
.mh-cred-form [hidden] { display: none !important; }

/* Farm directory: filters, distance, map */
.mh-dir-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 10px 30px -22px rgba(15, 23, 42, .35); }
.mh-dir-filters label { margin: 0; }
.mh-dir-filters__search { flex: 1 1 260px; }
.mh-dir-filters .muhuga-input { margin: 0; }
.mh-dir-filters__near { border: 1px solid #cbd5e1; background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.mh-dir-filters__near.is-on { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.mh-dir-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.mh-dir-bar__count { margin: 0; color: #475569; font-size: 14px; }
.mh-dir-bar__views { display: inline-flex; padding: 3px; border-radius: 12px; background: #f1f5f9; }
.mh-dir-bar__views button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 700; color: #475569; cursor: pointer; }
.mh-dir-bar__views button[aria-pressed="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.mh-dir-map { height: min(560px, 70vh); border-radius: 18px; overflow: hidden; margin-bottom: 20px; background: #e2e8f0; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); }
.mh-dir-map[hidden], .muhuga-farm-grid[hidden] { display: none !important; }
.mh-dir-map .muhuga-empty { padding: 40px 16px; text-align: center; }
.mh-map-pop { display: flex; gap: 10px; align-items: flex-start; font: 13px/1.4 system-ui, sans-serif; }
.mh-map-pop img { border-radius: 8px; object-fit: cover; }
.mh-dir-distance { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700; }
.muhuga-farm-card__media { position: relative; }
.mh-dir-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.mh-dir-tag { padding: 3px 9px; border-radius: 999px; background: #f1f5f9; font-size: 12px; font-weight: 600; color: #334155; }
.mh-dir-tag--badge { background: #ecfdf5; color: #166534; }
.mh-pin__map { height: 280px; border-radius: 14px; overflow: hidden; margin: 8px 0; background: #e2e8f0; }
.mh-pin__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }

/* Pre-orders */
.mh-preorder { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: #fefce8; border: 1px solid rgba(202, 138, 4, .3); font-size: 14px; }
.mh-preorder p { margin: 0 0 4px; }
.mh-preorder__title { font-weight: 800; color: #854d0e; }
.mh-preorder__left { font-weight: 700; color: #a16207; }
.mh-preorder-editor [hidden] { display: none !important; }
.mh-preorder-editor__toggle { display: flex; align-items: center; gap: 8px; }
