/**
 * Ghana Agent front-end styles.
 * All rules are namespaced under .mg- so they survive any theme.
 */

.mg-wrap {
	--mg-green: #0a7d3c;
	--mg-green-d: #065a2a;
	--mg-gold: #f2b705;
	--mg-red: #ce1126;
	--mg-ink: #12181f;
	--mg-muted: #697586;
	--mg-line: #e3e8ef;
	--mg-bg: #f7f9fb;
	--mg-wa: #25d366;
	--mg-radius: 10px;

	color: var(--mg-ink);
	font-size: 15px;
	line-height: 1.55;
	max-width: 1200px;
	margin: 0 auto;
}

.mg-wrap *,
.mg-wrap *::before,
.mg-wrap *::after {
	box-sizing: border-box;
}

.mg-wrap img {
	max-width: 100%;
	height: auto;
}

/* ---------- Headings ---------- */
.mg-page-head {
	margin-bottom: 16px;
}
.mg-page-head h1 {
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 4px;
}
.mg-page-head p {
	color: var(--mg-muted);
	font-size: 14px;
	margin: 0;
}
.mg-section-title {
	font-size: 17px;
	margin: 24px 0 10px;
}
.mg-block {
	margin-top: 16px;
	margin-bottom: 16px;
}
.mg-muted {
	color: var(--mg-muted);
	font-size: 13px;
}
.mg-center {
	text-align: center;
}

/* ---------- Notices ---------- */
.mg-flash {
	padding: 11px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 600;
}
.mg-flash-ok {
	background: #e8f4ec;
	color: var(--mg-green-d);
	border: 1px solid #b8e0c6;
}
.mg-flash-err {
	background: #fdeaec;
	color: #8c0d1c;
	border: 1px solid #f5c2c8;
}
.mg-notice {
	background: linear-gradient(90deg, #fff8e1, #fffdf5);
	border: 1px solid #f3dfa0;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13.5px;
	margin-bottom: 16px;
	font-weight: 600;
}

/* ---------- Cards ---------- */
.mg-card {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	overflow: hidden;
	margin-bottom: 10px;
}
.mg-card-body {
	padding: 14px;
}
.mg-card-body h2,
.mg-card-body h3 {
	font-size: 15px;
	margin: 0 0 6px;
}
.mg-card-gold {
	border-color: var(--mg-gold);
}

/* ---------- Artisan grid ---------- */
.mg-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.mg-grid-wide {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mg-acard {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	transition: box-shadow .15s, transform .15s;
}
.mg-acard:hover {
	box-shadow: 0 6px 20px rgba(16, 24, 40, .08);
	transform: translateY(-2px);
}
.mg-acard-pro {
	border-color: var(--mg-gold);
}

/* Header: avatar beside name */
.mg-acard-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 14px;
}
.mg-avatar {
	width: 62px;
	height: 62px;
	flex: 0 0 62px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8edf2;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.mg-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	display: block;
}
.mg-avatar-emoji {
	font-size: 26px;
	line-height: 1;
}
.mg-acard-ident {
	min-width: 0;
	flex: 1;
}
.mg-acard-name {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 3px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.mg-acard-name a {
	color: var(--mg-ink);
	text-decoration: none;
}
.mg-acard-name a:hover {
	color: var(--mg-green);
}

/* Green verified tick */
.mg-tick {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
	border-radius: 50%;
	background: var(--mg-green);
	position: relative;
	display: inline-block;
}
.mg-tick::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3.5px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mg-acard-trade {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
}
.mg-trade {
	color: var(--mg-green);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .3px;
	font-size: 13px;
}
.mg-town {
	color: var(--mg-muted);
}
.mg-dot {
	color: var(--mg-muted);
	margin: 0 2px;
}
.mg-pro-tag {
	display: inline-block;
	margin-top: 5px;
	background: var(--mg-gold);
	color: #1a1200;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* Rating + experience row */
.mg-acard-stats {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--mg-ink);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
.mg-acard-stats b {
	font-weight: 700;
}
.mg-count,
.mg-unit {
	color: var(--mg-muted);
	font-size: 14px;
	font-weight: 400;
}

.mg-acard-bio {
	margin: 0 0 18px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #4a5567;
	flex: 1;
}

/* Footer actions */
.mg-acard-foot {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}
.mg-wa-circle {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	border-radius: 50%;
	background: var(--mg-wa);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .15s;
}
.mg-wa-circle:hover {
	background: #1da851;
	color: #fff;
}
.mg-view-btn {
	flex: 1;
	text-align: center;
	padding: 12px 18px;
	border: 1px solid var(--mg-line);
	border-radius: 26px;
	font-size: 15px;
	font-weight: 700;
	color: var(--mg-ink);
	text-decoration: none;
	background: #fff;
	transition: border-color .15s, background .15s;
}
.mg-view-btn:hover {
	border-color: var(--mg-green);
	background: #f4faf6;
	color: var(--mg-green);
}


/* ---------- Shared badges & labels ---------- */
/* Used by the profile page, job board, and bid rows. */
.mg-cat {
	font-size: 13px;
	color: var(--mg-green);
	font-weight: 600;
	margin: 0;
}
.mg-ver-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: #e8f4ec;
	color: var(--mg-green-d);
	font-size: 10.5px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 20px;
}
.mg-pro-badge {
	background: var(--mg-gold);
	color: #1a1200;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: .5px;
	display: inline-block;
}
.mg-pro-badge.mg-inline {
	position: static;
	vertical-align: middle;
}

/* ---------- Category tiles ---------- */
.mg-cat-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.mg-cat-tile {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	padding: 16px 10px;
	text-align: center;
	color: var(--mg-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	display: block;
}
.mg-cat-tile:hover {
	border-color: var(--mg-green);
	background: #f4faf6;
	text-decoration: none;
	color: var(--mg-ink);
}
.mg-cat-tile .mg-emo {
	font-size: 26px;
	display: block;
	margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.mg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	background: var(--mg-green);
	color: #fff;
	text-decoration: none;
	line-height: 1.3;
	font-family: inherit;
}
.mg-btn:hover,
.mg-btn:focus {
	background: var(--mg-green-d);
	color: #fff;
	text-decoration: none;
}
.mg-btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
}
.mg-btn-wa {
	background: var(--mg-wa);
}
.mg-btn-wa:hover {
	background: #1da851;
}
.mg-btn-gold {
	background: var(--mg-gold);
	color: #1a1200;
}
.mg-btn-gold:hover {
	background: #d9a404;
	color: #1a1200;
}
.mg-btn-ghost {
	background: #fff;
	color: var(--mg-ink);
	border-color: var(--mg-line);
}
.mg-btn-ghost:hover {
	background: #f1f4f7;
	color: var(--mg-ink);
}
.mg-btn-sm {
	padding: 7px 12px;
	font-size: 13px;
}
.mg-btn-block {
	display: flex;
	width: 100%;
}

/* ---------- Forms ---------- */
.mg-form-wrap {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	padding: 20px;
	max-width: 660px;
}
.mg-form-wrap.mg-narrow {
	max-width: 420px;
}
.mg-form-wrap h2 {
	font-size: 15px;
	margin: 0 0 12px;
}
.mg-form-wrap h2 + .mg-row2,
.mg-form-wrap h2 + .mg-field {
	margin-top: 0;
}
.mg-field {
	margin-bottom: 14px;
}
.mg-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 5px;
}
.mg-hint {
	display: block;
	font-size: 12px;
	color: var(--mg-muted);
	font-weight: 400;
	margin-top: 3px;
}
.mg-wrap input[type="text"],
.mg-wrap input[type="tel"],
.mg-wrap input[type="email"],
.mg-wrap input[type="password"],
.mg-wrap input[type="number"],
.mg-wrap input[type="file"],
.mg-wrap select,
.mg-wrap textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mg-line);
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	color: var(--mg-ink);
}
.mg-wrap input:focus,
.mg-wrap select:focus,
.mg-wrap textarea:focus {
	border-color: var(--mg-green);
	box-shadow: 0 0 0 3px rgba(10, 125, 60, .12);
	outline: none;
}
.mg-wrap textarea {
	min-height: 90px;
	resize: vertical;
}
.mg-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.mg-form-foot {
	text-align: center;
	margin-top: 12px;
	font-size: 13.5px;
}
.mg-current-photo {
	width: 80px;
	height: 80px;
	object-fit: cover;
	object-position: center 25%;
	border-radius: 8px;
	margin-bottom: 6px;
	display: block;
	background: #e8edf2;
}
.mg-copy {
	font-size: 13px !important;
}

/* ---------- Filters ---------- */
.mg-filters {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	padding: 12px;
	margin-bottom: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: flex-end;
}
.mg-filters .mg-f {
	flex: 1;
	min-width: 150px;
}
.mg-filters label {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--mg-muted);
	text-transform: uppercase;
	display: block;
	margin-bottom: 4px;
}

/* ---------- Stats ---------- */
.mg-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}
.mg-stat {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	padding: 14px;
	text-align: center;
}
.mg-stat b {
	display: block;
	font-size: 24px;
	color: var(--mg-green);
	line-height: 1.2;
}
.mg-stat span {
	font-size: 12px;
	color: var(--mg-muted);
}

/* ---------- Tabs ---------- */
.mg-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid var(--mg-line);
	margin-bottom: 18px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.mg-tabs a {
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--mg-muted);
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	text-decoration: none;
}
.mg-tabs a.mg-active {
	color: var(--mg-green);
	border-bottom-color: var(--mg-green);
}
.mg-tabs a:hover {
	color: var(--mg-green);
	text-decoration: none;
}

/* ---------- Profile ---------- */
.mg-crumbs {
	font-size: 13px;
	color: var(--mg-muted);
	margin-bottom: 14px;
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	align-items: center;
}
.mg-crumbs a {
	color: var(--mg-muted);
	text-decoration: none;
}
.mg-crumbs a:hover {
	color: var(--mg-green);
	text-decoration: underline;
}
.mg-crumb-current {
	color: var(--mg-ink);
	font-weight: 600;
}

.mg-prof-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}

.mg-prof-card {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 20px;
}
.mg-prof-pad {
	padding: 22px;
}

.mg-prof-cover {
	height: 150px;
	background: linear-gradient(135deg, var(--mg-green-d), var(--mg-green) 55%, #12a352);
}

.mg-prof-identity {
	padding: 0 22px 22px;
}
.mg-prof-pic {
	width: 92px;
	height: 92px;
	border-radius: 12px;
	border: 4px solid #fff;
	background: #e8edf2;
	overflow: hidden;
	margin-top: -46px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(16, 24, 40, .1);
}
.mg-prof-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	display: block;
}
.mg-prof-pic-emoji {
	font-size: 36px;
}

.mg-prof-name {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
	margin: 14px 0 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.mg-prof-trade {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .4px;
	text-transform: uppercase;
	color: var(--mg-muted);
}

.mg-availability {
	margin: 8px 0 0;
	font-size: 13.5px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}
.mg-avail-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}
.mg-is-available {
	color: var(--mg-green-d);
}
.mg-is-available .mg-avail-dot {
	background: var(--mg-green);
}
.mg-is-busy {
	color: #8a6d0b;
}
.mg-is-busy .mg-avail-dot {
	background: var(--mg-gold);
}

.mg-prof-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 18px 0 6px;
}
.mg-pstat {
	background: #f4f8f5;
	border: 1px solid #e4ede8;
	border-radius: 10px;
	padding: 14px 10px;
	text-align: center;
}
.mg-pstat b {
	display: block;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.2;
}
.mg-pstat .mg-stars {
	display: block;
	font-size: 12px;
	margin: 2px 0;
}
.mg-pstat span {
	display: block;
	font-size: 12px;
	color: var(--mg-muted);
}

.mg-prof-h {
	font-size: 16px;
	font-weight: 700;
	margin: 22px 0 6px;
}
.mg-prof-h-first {
	margin-top: 0;
}
.mg-prof-bio,
.mg-prof-area {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: #4a5567;
}

/* ---------- Profile sidebar ---------- */
.mg-prof-side {
	position: sticky;
	top: 16px;
}
.mg-side-box {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 16px;
}
.mg-side-h {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 3px;
}
.mg-side-note {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--mg-muted);
}
.mg-side-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}
.mg-call-circle {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 50%;
	border: 1px solid var(--mg-line);
	background: #fff;
	color: var(--mg-green);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.mg-call-circle:hover {
	background: #f4faf6;
	border-color: var(--mg-green);
	color: var(--mg-green);
}
.mg-side-hint {
	font-size: 12.5px;
	color: var(--mg-muted);
	line-height: 1.35;
}
.mg-side-review-btn {
	display: block;
	text-align: center;
	padding: 11px 16px;
	border: 1px solid var(--mg-line);
	border-radius: 9px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--mg-ink);
	text-decoration: none;
	background: #fff;
}
.mg-side-review-btn:hover {
	border-color: var(--mg-green);
	background: #f4faf6;
	color: var(--mg-green);
}

.mg-side-facts {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--mg-line);
	font-size: 13.5px;
}
.mg-side-facts > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
}
.mg-side-facts dt {
	color: var(--mg-muted);
	margin: 0;
}
.mg-side-facts dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

/* Peer artisans */
.mg-peer {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 9px;
	border: 1px solid var(--mg-line);
	border-radius: 10px;
	margin-bottom: 8px;
	text-decoration: none;
	color: var(--mg-ink);
}
.mg-peer:hover {
	border-color: var(--mg-green);
	background: #f7fbf8;
	color: var(--mg-ink);
}
.mg-peer-pic {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8edf2;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mg-peer-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
}
.mg-peer-emoji {
	font-size: 17px;
}
.mg-peer-text {
	min-width: 0;
	line-height: 1.35;
}
.mg-peer-text b {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
}
.mg-peer-tick {
	color: var(--mg-green);
}
.mg-peer-meta {
	display: block;
	font-size: 12px;
	color: var(--mg-muted);
}
.mg-side-more {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.mg-side-more:hover {
	text-decoration: underline;
}

/* ---------- Reviews ---------- */
.mg-reviews-block {
	margin-top: 4px;
}
.mg-rev {
	border: 1px solid var(--mg-line);
	border-radius: 11px;
	padding: 16px;
	margin-bottom: 12px;
}
.mg-rev-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 6px;
}
.mg-rev-who {
	font-size: 15px;
	font-weight: 700;
}
.mg-rev-stars .mg-stars {
	font-size: 13px;
}
.mg-rev-body {
	margin: 0 0 8px;
	font-size: 14.5px;
	line-height: 1.55;
	color: #3c4757;
}
.mg-rev-meta {
	margin: 0;
	font-size: 12.5px;
	color: var(--mg-muted);
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.mg-rev-reply {
	margin-top: 12px;
	padding: 11px 13px;
	background: #f4f8f5;
	border-left: 3px solid var(--mg-green);
	border-radius: 0 8px 8px 0;
}
.mg-rev-reply strong {
	font-size: 13px;
	color: var(--mg-green-d);
	display: block;
	margin-bottom: 3px;
}
.mg-rev-reply p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}
.mg-rev-reply-form {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.mg-rev-reply-form textarea {
	flex: 1;
	min-height: 44px;
}
.mg-rev-new {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--mg-line);
}
.mg-rev-new h3 {
	font-size: 16px;
	margin: 0 0 14px;
}

/* ---------- Profile responsive ---------- */
@media (max-width: 900px) {
	.mg-prof-layout {
		grid-template-columns: 1fr;
	}
	.mg-prof-side {
		position: static;
	}
}

/* ---------- Shared text blocks ---------- */
/* Used by the job board, job detail, and upgrade pages. */
.mg-bio {
	font-size: 14px;
	margin: 0;
	line-height: 1.6;
}
.mg-review .mg-card-body p {
	font-size: 13.5px;
	margin: 4px 0 0;
}
.mg-review-date {
	font-size: 11.5px;
	color: var(--mg-muted);
}
.mg-list {
	margin: 10px 0 0 18px;
	font-size: 14px;
	line-height: 1.9;
}
.mg-section-title {
	font-size: 17px;
	margin: 24px 0 10px;
}

/* ---------- Public profile work gallery ---------- */
/* Photos keep their own proportions instead of being cropped into
   uniform squares. A portrait shot of a wardrobe and a landscape shot
   of a roof both need to be seen whole for the work to be judged. */
.mg-work-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 16px;
	align-items: start;
}
.mg-work-item {
	margin: 0;
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: var(--mg-radius);
	overflow: hidden;
}
.mg-work-item a {
	display: block;
	line-height: 0;
}
.mg-work-item img {
	width: 100%;
	height: auto;
	display: block;
	background: #f1f4f7;
}
.mg-work-item figcaption {
	padding: 8px 12px;
	font-size: 13px;
	color: var(--mg-muted);
	line-height: 1.4;
}

@media (max-width: 600px) {
	.mg-work-gallery {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* Accessible hidden text, in case the active theme does not define it. */
/* Hidden-but-readable text. Scoped to .mg-wrap and .mg-acard rather
   than .mg-acard alone: the same markup appears on the profile page and
   in the sidebar, where the old narrower rule did not reach and the word
   "Verified" showed as stray visible text next to the tick. */
.mg-wrap .screen-reader-text,
.mg-acard .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mg-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.mg-check input {
	width: auto !important;
}

/* ---------- Multi-step registration ---------- */
.mg-join-hero {
	background: linear-gradient(135deg, var(--mg-green-d), var(--mg-green) 60%, #12a352);
	color: #fff;
	border-radius: 16px 16px 0 0;
	padding: 34px 30px 60px;
	margin-bottom: -40px;
}
.mg-join-pill {
	display: inline-block;
	background: rgba(255, 255, 255, .2);
	border-radius: 20px;
	padding: 5px 14px;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 14px;
}
.mg-join-hero h1 {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 8px;
	color: #fff;
}
.mg-join-hero p {
	margin: 0;
	font-size: 15px;
	opacity: .92;
	max-width: 46ch;
}

.mg-join-card {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 14px;
	padding: 26px;
	position: relative;
	box-shadow: 0 4px 18px rgba(16, 24, 40, .06);
}

.mg-steps {
	margin-bottom: 22px;
}
.mg-step-bars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 12px;
}
.mg-bar {
	height: 4px;
	border-radius: 3px;
	background: var(--mg-line);
	transition: background .2s;
}
.mg-bar-on {
	background: var(--mg-green);
}
.mg-step-names {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13.5px;
	color: var(--mg-muted);
}
.mg-step-name.mg-on {
	color: var(--mg-green);
	font-weight: 700;
}

.mg-panel h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 4px;
}
.mg-panel-sub {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--mg-muted);
}

.mg-langs {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}
.mg-langs legend {
	font-size: 13px;
	font-weight: 700;
	padding: 0;
	margin-bottom: 2px;
}
.mg-lang-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 9px;
	margin-top: 8px;
}
.mg-lang {
	position: relative;
	display: block;
}
.mg-lang input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.mg-lang span {
	display: block;
	text-align: center;
	padding: 11px 8px;
	border: 1px solid var(--mg-line);
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, background .15s;
}
.mg-lang input:checked + span {
	border-color: var(--mg-green);
	background: #eaf5ee;
	color: var(--mg-green-d);
}
.mg-lang input:focus-visible + span {
	outline: 2px solid var(--mg-green);
	outline-offset: 2px;
}
.mg-invalid-group .mg-lang span {
	border-color: var(--mg-red);
}

.mg-privacy-note {
	background: #f4f8f5;
	border: 1px solid #e4ede8;
	border-radius: 10px;
	padding: 13px 15px;
	margin-bottom: 16px;
}
.mg-privacy-note strong {
	display: block;
	font-size: 13.5px;
	margin-bottom: 4px;
}
.mg-privacy-note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #4a5567;
}

.mg-nav {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}
.mg-nav .mg-btn {
	flex: 1;
	padding: 13px 20px;
	font-size: 15px;
	border-radius: 9px;
}
.mg-nav .mg-btn-ghost {
	flex: 0 0 auto;
	min-width: 96px;
}

.mg-invalid {
	border-color: var(--mg-red) !important;
}

/* Why join */
.mg-why {
	margin-top: 30px;
}
.mg-why h2 {
	font-size: 19px;
	margin: 0 0 16px;
}
.mg-why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}
.mg-why-item {
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 12px;
	padding: 18px;
}
.mg-why-icon {
	font-size: 26px;
	display: block;
	margin-bottom: 8px;
}
.mg-why-item h3 {
	font-size: 15px;
	margin: 0 0 5px;
}
.mg-why-item p {
	margin: 0;
	font-size: 13.5px;
	color: var(--mg-muted);
	line-height: 1.5;
}

@media (max-width: 600px) {
	.mg-join-hero {
		padding: 26px 20px 56px;
	}
	.mg-join-hero h1 {
		font-size: 26px;
	}
	.mg-join-card {
		padding: 18px;
	}
	.mg-lang-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mg-step-names {
		gap: 10px;
		font-size: 12.5px;
	}
	.mg-nav {
		flex-direction: column-reverse;
	}
	.mg-nav .mg-btn-ghost {
		width: 100%;
	}
}

/* ---------- Password show/hide ---------- */
.mg-pass-wrap {
	position: relative;
	display: block;
}
.mg-pass-wrap input {
	padding-right: 44px !important;
}
.mg-pass-toggle {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	background: none;
	color: var(--mg-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	padding: 0;
}
.mg-pass-toggle:hover {
	color: var(--mg-green);
	background: #f1f4f7;
}
.mg-pass-toggle:focus-visible {
	outline: 2px solid var(--mg-green);
	outline-offset: -2px;
}

/* Ghana Card field reads as a formatted number */
input[name="ghana_card"] {
	letter-spacing: .5px;
	font-variant-numeric: tabular-nums;
}

/* ---------- Pro plan selection ---------- */
.mg-plans-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 4px;
}
.mg-plan-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 18px 0 22px;
}
.mg-plan {
	display: block;
	position: relative;
}
.mg-plan input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.mg-plan-box {
	display: block;
	position: relative;
	border: 2px solid var(--mg-line);
	border-radius: 12px;
	padding: 18px 12px 16px;
	text-align: center;
	cursor: pointer;
	background: #fff;
	height: 100%;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.mg-plan-box:hover {
	border-color: #c9d4de;
}
.mg-plan input:checked + .mg-plan-box {
	border-color: var(--mg-green);
	background: #f4faf6;
	box-shadow: 0 2px 10px rgba(10, 125, 60, .1);
}
.mg-plan input:focus-visible + .mg-plan-box {
	outline: 2px solid var(--mg-green);
	outline-offset: 2px;
}
.mg-plan-save {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--mg-gold);
	color: #1a1200;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.mg-plan-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--mg-muted);
	text-transform: uppercase;
	letter-spacing: .5px;
	margin-bottom: 6px;
}
.mg-plan-price {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--mg-ink);
}
.mg-plan-days {
	display: block;
	font-size: 12.5px;
	color: var(--mg-muted);
	margin-top: 2px;
}
.mg-plan-note {
	display: block;
	font-size: 12px;
	color: var(--mg-green);
	font-weight: 600;
	margin-top: 8px;
}
.mg-pay-methods {
	text-align: center;
	font-size: 12.5px;
	color: var(--mg-muted);
	margin: 12px 0 0;
}

@media (max-width: 700px) {
	.mg-plan-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 380px) {
	.mg-plan-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Field-level validation ---------- */
.mg-wrap [aria-invalid="true"] {
	border-color: var(--mg-red) !important;
	background: #fffafa;
}
.mg-wrap [aria-invalid="true"]:focus {
	box-shadow: 0 0 0 3px rgba(206, 17, 38, .12);
}
.mg-err-msg {
	display: block;
	color: #a30f1f;
	font-size: 12.5px;
	font-weight: 600;
	margin-top: 5px;
	line-height: 1.4;
}
.mg-err-msg::before {
	content: "\26A0";
	margin-right: 5px;
}
.mg-step-err {
	color: #a30f1f !important;
}
.mg-step-warn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--mg-red);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	margin-left: 4px;
	vertical-align: middle;
}
.mg-invalid-group .mg-lang span {
	border-color: var(--mg-red);
}

/* Pagination prev/next and gaps */


/* ---------- Map ---------- */
.mg-map {
	height: 260px;
	border-radius: 10px;
	margin-top: 12px;
	border: 1px solid var(--mg-line);
	background: #eef2f6;
	z-index: 0;
}
.mg-map-note {
	font-size: 12px;
	color: var(--mg-muted);
	margin: 6px 0 0;
}
.mg-map-fail {
	padding: 20px;
	text-align: center;
	color: var(--mg-muted);
	font-size: 13px;
}

/* ---------- Live search ---------- */
.mg-f-search {
	position: relative;
}
.mg-suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--mg-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
	z-index: 40;
	margin-top: 4px;
	overflow: hidden;
	max-height: 320px;
	overflow-y: auto;
}
.mg-sugg {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	background: none;
	text-align: left;
	cursor: pointer;
	font-size: 14px;
	font-family: inherit;
	border-bottom: 1px solid #f1f4f7;
}
.mg-sugg:last-child {
	border-bottom: 0;
}
.mg-sugg:hover,
.mg-sugg:focus {
	background: #f4faf6;
}
.mg-sugg-icon {
	flex: 0 0 20px;
	font-size: 16px;
}
.mg-sugg-label {
	flex: 1;
	font-weight: 600;
}
.mg-sugg-hint {
	font-size: 12px;
	color: var(--mg-muted);
}
.mg-live-status {
	font-size: 13.5px;
	color: var(--mg-muted);
	margin: 0 0 10px;
	min-height: 20px;
}
.mg-searching {
	opacity: .5;
	transition: opacity .15s;
}

/* ---------- Dashboard subscription ---------- */
.mg-sub-status {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 14.5px;
	margin: 0 0 4px;
}
.mg-sub-active {
	color: var(--mg-green-d);
}
.mg-sub-active .mg-avail-dot {
	background: var(--mg-green);
}
.mg-sub-free {
	color: var(--mg-muted);
}
.mg-sub-free .mg-avail-dot {
	background: var(--mg-muted);
}
.mg-sub-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
	gap: 8px;
	margin: 12px 0;
}
.mg-sub-plan {
	border: 1px solid var(--mg-line);
	border-radius: 9px;
	padding: 10px 8px;
	text-align: center;
	text-decoration: none;
	color: var(--mg-ink);
}
.mg-sub-plan:hover {
	border-color: var(--mg-gold);
	background: #fffdf5;
	color: var(--mg-ink);
}
.mg-sub-plan b {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--mg-muted);
}
.mg-sub-plan span {
	display: block;
	font-size: 15px;
	font-weight: 800;
	margin-top: 2px;
}
.mg-sub-h {
	font-size: 13px;
	margin: 18px 0 6px;
}
.mg-sub-history {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
}
.mg-sub-history li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--mg-line);
}
.mg-pay-success {
	color: var(--mg-green-d);
	font-weight: 700;
}
.mg-pay-pending {
	color: #8a6d0b;
}
.mg-pay-failed {
	color: var(--mg-red);
}
.mg-geo-field .mg-btn {
	margin-top: 6px;
}

/* ---------- Initials placeholder avatars ---------- */
.mg-avatar-initials,
.mg-prof-pic-initials,
.mg-peer-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1;
}
.mg-avatar-initials {
	font-size: 22px;
}
.mg-prof-pic-initials {
	font-size: 32px;
}
.mg-peer-initials {
	font-size: 14px;
}

/* Trading name, shown under the trade rather than replacing the person */
.mg-acard-biz {
	margin: 3px 0 0;
	font-size: 13px;
	color: var(--mg-muted);
}
.mg-prof-biz {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--mg-muted);
}

/* Free-text trade box, shown only when "Other" is selected */
.mg-other-trade[hidden] {
	display: none;
}

/* Note above the review form when moderation is on */
.mg-rev-mod-note {
	background: #f4f8f5;
	border-left: 3px solid var(--mg-green);
	padding: 10px 13px;
	border-radius: 0 8px 8px 0;
	font-size: 13.5px;
	color: #4a5567;
	margin: 0 0 14px;
}

/* ---------- Pagination ---------- */
.mg-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	margin: 28px auto 8px;
	flex-wrap: wrap;
	padding: 0 8px;
}
.mg-pagination a,
.mg-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 11px 14px;
	border: 1px solid var(--mg-line);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	color: var(--mg-ink);
	transition: border-color .15s, background .15s;
}
.mg-pagination a:hover {
	border-color: var(--mg-green);
	background: #f4faf6;
	color: var(--mg-green);
}
.mg-pagination .mg-cur {
	background: var(--mg-green);
	color: #fff;
	border-color: var(--mg-green);
}

/* Prev and Next carry a word, so they need more room than a digit. */
.mg-pagination .mg-pg-step {
	padding: 11px 22px;
	font-weight: 700;
}
.mg-pagination .mg-pg-gap {
	min-width: 0;
	padding: 11px 2px;
	border: 0;
	background: none;
	color: var(--mg-muted);
}

@media (max-width: 600px) {
	.mg-pagination {
		gap: 6px;
		margin-top: 22px;
	}
	.mg-pagination a,
	.mg-pagination span {
		min-width: 38px;
		padding: 10px 11px;
		font-size: 13.5px;
	}
	.mg-pagination .mg-pg-step {
		padding: 10px 16px;
	}
}

/* Home page */
.mg-home-head {
	margin: 4px 0 14px;
}
.mg-home-head h2 {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 2px;
}
.mg-clear-filters {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 600;
}
.mg-page-count {
	text-align: center;
	font-size: 13px;
	color: var(--mg-muted);
	margin: 4px 0 20px;
}
