:root {
	--mandacate-navy: #142f46;
	--mandacate-navy-deep: #0d2234;
	--mandacate-teal: #2f6b68;
	--mandacate-teal-light: #eaf3f2;
	--mandacate-red: #ac1115;
	--mandacate-red-dark: #8d0e12;
	--mandacate-ink: #17212b;
	--mandacate-muted: #687986;
	--mandacate-border: #dce5e8;
	--mandacate-surface: #fff;
	--mandacate-canvas: #f5f8f8;
	--mandacate-radius: 14px;
	--mandacate-shadow: 0 16px 44px rgba(20, 47, 70, .09);
}

.mandacate-workspace { color: var(--mandacate-ink); background: var(--mandacate-canvas); }
.mandacate-workspace * { box-sizing: border-box; }
.mandacate-workspace :focus-visible { outline: 3px solid rgba(47,107,104,.35); outline-offset: 3px; }
.mandacate-workspace .fl-page-content { min-height: 65vh; }
.mandacate-workspace .fl-content-full.container { width: min(1240px, calc(100% - 36px)); }

/* Account shell */
.mandacate-workspace .woocommerce { display: flow-root; color: var(--mandacate-ink); }
.mandacate-workspace .woocommerce-MyAccount-navigation {
	width: 250px;
	padding: 10px;
	border: 1px solid var(--mandacate-border);
	border-radius: var(--mandacate-radius);
	background: var(--mandacate-navy-deep);
	box-shadow: 0 14px 34px rgba(13,34,52,.14);
}
.mandacate-workspace .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.mandacate-workspace .woocommerce-MyAccount-navigation li { margin: 2px 0; }
.mandacate-workspace .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 13px;
	border-radius: 9px;
	color: rgba(255,255,255,.76);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
	transition: color .18s ease, background .18s ease, transform .18s ease;
}
.mandacate-workspace .woocommerce-MyAccount-navigation a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.mandacate-workspace .woocommerce-MyAccount-navigation .is-active a { color: #fff; background: var(--mandacate-red); box-shadow: 0 7px 18px rgba(172,17,21,.24); }
.mandacate-workspace .woocommerce-MyAccount-content { width: calc(100% - 286px); }
.mandacate-workspace .woocommerce-MyAccount-content > p:first-child { padding: 14px 16px; border-left: 3px solid var(--mandacate-teal); color: var(--mandacate-muted); background: #fff; }

/* Dashboard */
.mdc-account-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 230px;
	margin-bottom: 18px;
	padding: clamp(26px, 5vw, 48px);
	overflow: hidden;
	border-radius: 18px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 12%, rgba(67,145,139,.48), transparent 31%),
		linear-gradient(135deg, var(--mandacate-navy-deep), var(--mandacate-navy) 67%, #285b62);
	box-shadow: 0 18px 44px rgba(13,34,52,.17);
}
.mdc-account-hero__copy { position: relative; z-index: 1; max-width: 650px; }
.mdc-account-kicker { display: block; margin-bottom: 7px; color: #82c0bb; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.mdc-account-hero h2 { margin: 0 0 12px; color: #fff; font-size: clamp(29px, 4vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
.mdc-account-hero p { max-width: 600px; margin: 0; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.65; }
.mdc-account-hero__mark { position: relative; width: 150px; height: 150px; flex: 0 0 150px; opacity: .76; }
.mdc-account-hero__mark span { position: absolute; inset: 20px; border: 1px solid rgba(255,255,255,.36); transform: rotate(45deg); }
.mdc-account-hero__mark span:nth-child(2) { inset: 43px; background: rgba(255,255,255,.08); }
.mdc-account-hero__mark span:nth-child(3) { inset: 65px; border-color: #fff; background: var(--mandacate-red); }

.mdc-account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mdc-account-stats > div { min-height: 130px; padding: 21px; border: 1px solid var(--mandacate-border); border-radius: var(--mandacate-radius); background: #fff; box-shadow: 0 9px 26px rgba(20,47,70,.055); }
.mdc-account-stats span { display: block; color: var(--mandacate-muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.mdc-account-stats strong { display: block; margin: 9px 0 5px; color: var(--mandacate-navy); font-size: 27px; line-height: 1.15; }
.mdc-account-stats small { color: var(--mandacate-muted); }
.mdc-account-stats .mdc-state { color: var(--mandacate-red); }
.mdc-account-stats .mdc-state.is-active { color: #24734f; }

.mdc-next-actions { padding: 25px; border: 1px solid var(--mandacate-border); border-radius: var(--mandacate-radius); background: #fff; box-shadow: var(--mandacate-shadow); }
.mdc-next-actions h3 { margin: 0 0 18px; color: var(--mandacate-navy); font-size: 23px; }
.mdc-next-actions__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.mdc-next-actions__links a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; min-height: 108px; padding: 17px; border: 1px solid var(--mandacate-border); border-radius: 11px; color: var(--mandacate-ink); text-decoration: none; background: #f8fafb; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mdc-next-actions__links a:hover { border-color: #a8ceca; color: var(--mandacate-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,47,70,.08); }
.mdc-next-actions__links .dashicons { grid-row: 1 / 3; width: 36px; height: 36px; padding: 8px; border-radius: 9px; color: #fff; background: var(--mandacate-teal); }
.mdc-next-actions__links strong, .mdc-next-actions__links small { display: block; }
.mdc-next-actions__links strong { color: var(--mandacate-navy); }
.mdc-next-actions__links small { color: var(--mandacate-muted); line-height: 1.4; }

/* Login and forms */
.mandacate-workspace .woocommerce-form-login,
.mandacate-workspace .woocommerce-form-register,
.mandacate-workspace .acf-form,
.mandacate-workspace .mandacate-card,
.mandacate-workspace .arw-card {
	border: 1px solid var(--mandacate-border) !important;
	border-radius: var(--mandacate-radius) !important;
	background: #fff;
	box-shadow: var(--mandacate-shadow) !important;
}
.mandacate-workspace .woocommerce-form-login,
.mandacate-workspace .woocommerce-form-register { padding: clamp(24px, 4vw, 38px) !important; }
.mandacate-workspace .woocommerce form .form-row { margin: 0 0 17px; }
.mandacate-workspace label { margin-bottom: 7px; color: var(--mandacate-navy); font-size: 13px; font-weight: 700; }
.mandacate-workspace input[type="text"],
.mandacate-workspace input[type="email"],
.mandacate-workspace input[type="password"],
.mandacate-workspace input[type="tel"],
.mandacate-workspace input[type="number"],
.mandacate-workspace input[type="url"],
.mandacate-workspace input[type="date"],
.mandacate-workspace select,
.mandacate-workspace textarea,
.mandacate-workspace .select2-selection {
	min-height: 48px;
	padding: 10px 13px;
	border: 1px solid #cbd7dc !important;
	border-radius: 9px !important;
	color: var(--mandacate-ink);
	background: #fbfcfc;
	box-shadow: inset 0 1px 2px rgba(20,47,70,.025);
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.mandacate-workspace textarea { min-height: 120px; }
.mandacate-workspace input:focus,
.mandacate-workspace select:focus,
.mandacate-workspace textarea:focus { border-color: var(--mandacate-teal) !important; background: #fff; box-shadow: 0 0 0 3px rgba(47,107,104,.12) !important; outline: 0; }
.mandacate-workspace .woocommerce-button,
.mandacate-workspace button.button,
.mandacate-workspace input[type="submit"],
.mandacate-workspace .acf-button,
.mandacate-workspace .save-selection-button,
.mandacate-workspace .complete-button {
	min-height: 45px;
	padding: 10px 18px !important;
	border: 1px solid var(--mandacate-red) !important;
	border-radius: 9px !important;
	color: #fff !important;
	font-weight: 750 !important;
	letter-spacing: .01em;
	background: var(--mandacate-red) !important;
	box-shadow: 0 7px 17px rgba(172,17,21,.2) !important;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mandacate-workspace .woocommerce-button:hover,
.mandacate-workspace button.button:hover,
.mandacate-workspace input[type="submit"]:hover,
.mandacate-workspace .acf-button:hover { background: var(--mandacate-red-dark) !important; transform: translateY(-1px); box-shadow: 0 10px 23px rgba(172,17,21,.25) !important; }

/* Process navigation and notices */
.mandacate-workspace .mandacate-step-pills { gap: 6px; padding: 6px; border: 1px solid var(--mandacate-border); border-radius: 12px; background: #fff; }
.mandacate-workspace .mandacate-step-pill { padding: 11px; border-radius: 8px; color: var(--mandacate-muted); background: transparent; }
.mandacate-workspace .mandacate-step-pill.active { color: #fff; background: var(--mandacate-red); transform: none; }
.mandacate-workspace .woocommerce-error,
.mandacate-workspace .woocommerce-info,
.mandacate-workspace .woocommerce-message,
.mandacate-workspace .acf-notice,
.mandacate-workspace .selection-feedback:not(:empty) { padding: 14px 17px 14px 19px; border: 0; border-left: 4px solid var(--mandacate-teal); border-radius: 8px; color: var(--mandacate-ink); background: #edf6f5; }
.mandacate-workspace .woocommerce-error { border-left-color: var(--mandacate-red); background: #fbefef; }

/* Data and selection cards */
.mandacate-workspace table.shop_table,
.mandacate-workspace .mandate-table,
.mandacate-workspace .agents-table { border: 1px solid var(--mandacate-border) !important; border-radius: 11px; overflow: hidden; background: #fff; box-shadow: 0 9px 25px rgba(20,47,70,.055); }
.mandacate-workspace table th { padding: 13px 14px !important; color: #fff; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; background: var(--mandacate-navy) !important; }
.mandacate-workspace table td { padding: 14px !important; border-color: #e7edef !important; }
.mandacate-workspace table tbody tr:hover { background: #f6f9f9; }
.mandacate-workspace .nearby-agents-grid,
.mandacate-workspace .nearby-suppliers-grid { gap: 16px; }
.mandacate-workspace .agent-card,
.mandacate-workspace .supplier-card { border: 1px solid var(--mandacate-border); border-radius: 12px; background: #fff; box-shadow: 0 9px 28px rgba(20,47,70,.07); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mandacate-workspace .agent-card:hover,
.mandacate-workspace .supplier-card:hover { border-color: #a9cbc8; transform: translateY(-3px); box-shadow: 0 15px 35px rgba(20,47,70,.11); }
.mandacate-workspace .mandacate-modal__overlay { background: rgba(8,25,38,.78); backdrop-filter: blur(4px); }
.mandacate-workspace .mandacate-modal__dialog { border: 1px solid rgba(255,255,255,.2); border-radius: 16px; box-shadow: 0 28px 70px rgba(4,18,28,.35); }

@media (max-width: 960px) {
	.mandacate-workspace .woocommerce-MyAccount-navigation,
	.mandacate-workspace .woocommerce-MyAccount-content { width: 100%; float: none; }
	.mandacate-workspace .woocommerce-MyAccount-navigation { margin-bottom: 18px; }
	.mandacate-workspace .woocommerce-MyAccount-navigation ul { display: flex; gap: 4px; overflow-x: auto; }
	.mandacate-workspace .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
	.mandacate-workspace .woocommerce-MyAccount-navigation a { white-space: nowrap; }
	.mdc-next-actions__links { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.mandacate-workspace .fl-content-full.container { width: min(100% - 22px, 1240px); }
	.mdc-account-hero { min-height: 0; padding: 27px 23px; border-radius: 13px; }
	.mdc-account-hero__mark { display: none; }
	.mdc-account-stats { grid-template-columns: 1fr; }
	.mdc-account-stats > div { min-height: 0; }
	.mandacate-workspace .mandacate-step-pills { display: grid; }
	.mandacate-workspace table.responsive,
	.mandacate-workspace .agents-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.mandacate-workspace *, .mandacate-workspace *::before, .mandacate-workspace *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
